Excluding items from the Sticky Add To cart toolbar
-
Hello,
I’m using the Widget Currency Converter plugin (see an example of the widget added to the woocommerce_before_add_to_cart_form hook: https://paste.pics/edit/328d4a07f27cc5645173c3a7aed6e4f3) but it’s causing issues with my Sticky Add to Cart Astra feature. See this: https://paste.pics/e58f493d98bc2b1d47949d910b0ff83f
I’m using this snippet:
add_action( 'woocommerce_before_add_to_cart_form', 'woo_currency_convert', 15 ); function woo_currency_convert() { if ( ! is_product() ) { echo do_shortcode('[woocommerce_currency_converter currency_codes="USD, GBP, EUR, AUD" message="Prefer to see prices in a different currency?" show_symbols=1 show_reset=1 currency_display="select"]'); echo '<p><em>*Currency conversions are estimates.</em></p>'; } }
I’ve found this hook guide: https://www.businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/ and have tried all of the hooks in that section between woocommerce_single_product_summary and woocommerce_shareHow do I exclude this widget from appearing in the astra sticky toolbar while still showing in the product meta for users to check the currency conversion? I’ve contacted the Conversion plugin support but they say I need to ask the theme developers as they’ll know what hook’s they’ve used.
Thank you
- The topic ‘Excluding items from the Sticky Add To cart toolbar’ is closed to new replies.