can not submit query
-
hi, i have question , and i bought the pro version, but why i can not submit the query at the backend.
https://pasteboard.co/JOuuUWw.pngand the problem for my website is hi , when i use the short code to show the vendor store name , it will show There has been a critical error on this website..
https://pasteboard.co/JOunu6Y.pnghttps://pasteboard.co/JOutd6o.png
/*Shortcode [vendor_shop_name]*/
add_shortcode(‘vendor_shop_name’, ‘vendor_shop_name_function’);
function vendor_shop_name_function() {
global $product;
$seller = get_post_field(‘post_author’, $product->get_id());
$author = get_user_by(‘id’, $seller);
$vendor = dokan()->vendor->get($seller);
$store_info = dokan_get_store_info($author->ID);if (!empty($store_info[‘store_name’])) {
?>
<?php printf(‘<span>%s</span>’, $vendor->get_shop_url(), $vendor->get_shop_name()); ?>
<?php
}
}
- The topic ‘can not submit query’ is closed to new replies.