Wc Marketplace Frontend Manager (Product & Coupon) Bug
-
I have a theme where my customers are buying Wc Marketplace Frontend Manager (Product & Coupon)
Now there is a bug in this plugin where it is causing a lot of problems for my customs.
Here are the details please fix it, i even fixed the bug and I am sending you the solution, it is causing me problems because css and javascript of WCMP are then loaded all over the webiste when front end manager plugin is installed.
function in /plugins/wcmp-frontend_product_manager/classes/class-wcmp-frontend-product-manager-frontend.php
function called is_fpm_vendor_page
It is always returning true, so then WCMP thinks all website pages are vendor pages.
Here is how it should be:
/**
* check if fpm vendor pages
* @return boolean
*/
function is_fpm_vendor_page($return) {$return = false;
$pages = get_option(“wcmp_vendor_general_settings_name”);
if(is_page( ( $pages[‘frontend_product_manager’] ) ) ) $return = true;
if(is_page( ( $pages[‘wcmp_pending_products’] ) ) ) $return = true;
if(is_page( ( $pages[‘wcmp_coupons’] ) ) ) $return = true;
if(is_page( ( $pages[‘wcmp_vendor’] ) ) ) $return = true;
if(is_page( ( $pages[‘vendor_registration’] ) ) ) $return = true;
return $return;
}I hope you can take that and fix it asap for both our benifit.
Thank you
- The topic ‘Wc Marketplace Frontend Manager (Product & Coupon) Bug’ is closed to new replies.