What can we help you with?
Home › Forums › Themes Support › How to allow admin and vendor to purchase their own product – Dokan Multivendor plugin
Response time up to 1 business day.
Tagged: add to basket not working, add to cart button not working
Hi all customer,
In the latest version of Dokan – Best WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy
Plugin download URL: https://wordpress.org/plugins/dokan-lite/
This plugin not allow admin and vendor purchase their own product! That’s why when you logged in as Administrator you can’t buy your own products and thinking Add To Cart button is not working.
To allow this action you can follow this solution by add the code below in functions.php of the theme you are using:
remove_filter( 'woocommerce_is_purchasable', 'dokan_vendor_own_product_purchase_restriction', 10, 2 );
remove_filter( 'woocommerce_product_review_comment_form_args', 'dokan_vendor_product_review_restriction' );
You also can do it via child theme to keep this custom work when you update theme to the latest version. Child theme already included in the package that you download from ThemeForest.
Reference more here: https://harutheme.com/forums/topic/customize-wordpress-theme-using-child-theme/
Thanks for your time and reading!
Hope this helps!
You must be logged in to reply to this topic.