• Resolved yumumu

    (@yumumu)


    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.png

    and 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.png

    https://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
    }
    }

Viewing 1 replies (of 1 total)
  • Nazmul Hassan

    (@nazmulhassann20)

    Hello @yumumu,

    I am sorry for the trouble you are facing during submitting a ticket. You can try from another browser or directly send an email.

    The code you have provided seems like generating a shortcode and this should work fine. I am not sure if you have tried to debug the error. You can enable WP_DEBUG to true so that you can see whats the actual error.

    If you can log a ticket on our own support forum (as you are a paid customer) then we can check it for you.

    Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘can not submit query’ is closed to new replies.