• 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 in yith-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 in class 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,
    and thank you for reporting that!

    We’ll fix this issue and we’ll release an update as soon as possible.

    Thread Starter gna

    (@gna)

    Replacing the call of
    YITH_WCTM()->check_price_hidden(false,$product_id)

    with

    $yith_wapo_frontend->hide_price($product_id)

    allowed me to activate both plugins and get the product page too

    Plugin Author YITHEMES

    (@yithemes)

    Hi there,
    many thanks for your suggestion, we’ll evaluate that in the next release.
    Many thanks for your cooperation.
    We remain at your disposal.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘BUG: Conflict with the (!)free version of YITH WooCommerce Catalog Mode’ is closed to new replies.