1. Home
  2. Knowledge Base
  3. WooCommerce Product Add-Ons Ultimate
  4. Archive button style changes
  1. Home
  2. Knowledge Base
  3. Troubleshooting Add-Ons Ultimate
  4. Archive button style changes

Archive button style changes

You might notice that the ‘Add to Cart’ button in your Shop and archive pages changes text and users are no longer able to add products to their cart direct from archive pages.

The plugin changes the default Add to Cart button on products archives and the shop page to a ‘Select Options’ field. This is to ensure users can’t select products to their cart without selecting the add-ons first. You can filter this text like this: https://pluginrepublic.com/documentation/filter-view-product-text/.

Some themes might format their add to cart buttons in a non-standard way on archive pages. In this instance, you might need to contact your theme developer to understand.

You can also disable this setting altogether and reinstate the original add to cart button. However, note that users will be able to add products to the cart without seeing the add-on fields. But you can remove it using:

<?php
remove_filter( 'woocommerce_loop_add_to_cart_link', 'pewc_view_product_button', 10, 3 );

Here’s how to add snippets.

Was this article helpful?

Related Articles