Add to cart button active even if product has global options

As the title says I need to have on homepage or category pages the “add to cart button” even if the products have global options.

Take a look in the picture attached.

I would be gratefull for an answer.



Me to, I would be great to have this feature

I’m confused. I think I need the exact opposite…but it should be default?

I use global options on almost every product I have and the “add to cart” button is there on all of them. I need to eliminate this so a customer can’t add to cart without choosing options. Is this how the cart should function but mine isn’t working properly?

I’ve got this working on (view one of the products)

You should be able to get the same thing working on products displayed anywhere though. You’ll have to find the tpl file used for the display of products and then play with the following “add to cart” code:

{include file="views/products/components/buy_now.tpl" but_role="text" but_meta="cm-tools-list" but_rev="product_form_`$obj_id`" simple=true obj_id=$obj_id hide_wishlist_button=true hide_compare_list_button=true hide_add_to_cart_button=$hide_add_to_cart_button}

You’ll notice there are some parameters that can be passed. If you change simple=true to simple=false I think this will display the options.

Try that out.

I’ve also been able to use conditional code throughout the site to detect what page I’m on and apply an ID to the body tag and then I can easily hide components on other pages…

  • Jonah