BUG: Conflict with the (!)free version of YITH WooCommerce Catalog Mode
-
If the free versions of YITH WooCommerce Product Add-Ons (version 1.5.34) and YITH WooCommerce Catalog Mode (version 2.0.9) are active the error below may show on /product/some-productname urls:
Error thrown
Call to undefined method YITH_WooCommerce_Catalog_Mode::check_price_hidden()This is primarily caused by referring on line 41 of
yith-woocommerce-product-add-ons/templates/frontend/yith-wapo-group-container.php
:
if ( function_exists('YITH_WCTM') && ! YITH_WCTM()->check_price_hidden(false,$product_id) ) {
but the function does not exsist in the free version of YITH_WCTM.This function is also referred on line 1891 of
yith-woocommerce-product-add-ons/includes/classes/class.yith-wapo-frontend.php
but safe-way with checking on the preceeding line if the method exsists.A partly fix seems to be already included in
yith-woocommerce-product-add-ons/includes/classes/class.yith-wapo-frontend.php
on line 338:$ywctm_check_price_hidden = apply_filters( 'ywctm_check_price_hidden', false, $post_id );
The same
apply_filters( 'ywctm_check_price_hidden' ...
exist inyith-woocommerce-catalog-mode/class-yith-woocommerce-catalog-mode.php
The only occurence of
public function check_price_hidden( $hide, $post_id )
i could find, was inclass YITH_WC_Catalog_Mode_Premium
of an old site, which also suggest a relation to the Premium version, as the changelog states:Version 2.0.9 – Released: 27 July 2020
Fix: Integration with YITH WooCommerce Product Add-Ons
- The topic ‘BUG: Conflict with the (!)free version of YITH WooCommerce Catalog Mode’ is closed to new replies.