• Resolved coinxxpress

    (@coinxxpress)


    Nice plugin, but I have a issue with it’s compatibility with some features from booster for woocommerce and each time it’s activate my snippet remove_action(‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’); stop working. Is there any way this could be fixed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author 10Horizons Plugins

    (@tentenbiz)

    Thanks for trying out our plugin.

    I will look into this issue. Just a question, are using Astra theme?

    Plugin Author 10Horizons Plugins

    (@tentenbiz)

    If you are NOT using Astra theme:

    Open the file index.php located in the plugin’s directory /wp-content/plugins/you-save-x-for-woocommerce/

    Go to line 203, you will see the following code:

    add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 20 );

    Just comment out that line, like so:

    //add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 20 );

    I will fix this in the next update.

    Thread Starter coinxxpress

    (@coinxxpress)

    Thanks, it worked perfectly.

    Plugin Author 10Horizons Plugins

    (@tentenbiz)

    We’re going to be updating the plugin very soon.

    I suggest you to use the codes below so that you don’t have to touch the core plugin files again.

    So instead of your original code here:

    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );

    You change it to the following code instead:

    add_action( 'woocommerce_after_shop_loop_item', 'thp_wc_remove_my_action', 19 );
    function thp_wc_remove_my_action(){
      remove_action('woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 20);
    }

    Please let me know if you need further help with this or anything at all. Sorry for the inconvenience.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not functioning properly’ is closed to new replies.