VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: marvays on July 27, 2018, 04:20:37 AM

Title: Hide add to cart button from parent items
Post by: marvays on July 27, 2018, 04:20:37 AM
Hi,
When I am in the Product Details page the "Add to Cart" is still visible for the parent items, which means that someone can click on it with no effect (he will get the message 'To add this product into your cart you have to select a product variant on the details page.'). How I can remove the Add to Cart button or disable it until someone selects a child item? I am using joomla 2.5.28 and VirtueMart 2.6.22. Maybe i must use any other Custom Fields For ALL plugin?
Thank you!
Title: Re: Hide add to cart button from parent items
Post by: marvays on July 27, 2018, 04:47:45 AM
For a quick solution, I've dealt with sh404sef as an alias on url for now. I redirected the parent's address to the cheapest child.
Title: Re: Hide add to cart button from parent items
Post by: Studio 42 on July 27, 2018, 04:54:30 AM
I have write plugin doing this for you, bt in Vm 3.2, this is perhaps solved. Why you dont update ?
Title: Re: Hide add to cart button from parent items
Post by: marvays on July 27, 2018, 05:20:32 AM
I will be update this website after done summer. will be after the season. client sells bows and arrows.
Do you have link to your plugin?
Title: Re: Hide add to cart button from parent items
Post by: GJC Web Design on July 27, 2018, 11:47:22 AM
In VM3 you can mark parents as non saleable -- so u get a please make a choice dropdown on the parent
Title: Re: Hide add to cart button from parent items
Post by: azri445 on March 14, 2019, 09:01:42 AM
In VM3 you can mark parents as non saleable <---- where i can get this?

i only want add to cart available in product detail with variant, rather than on frontpage.
Title: Re: Hide add to cart button from parent items
Post by: GJC Web Design on March 14, 2019, 09:13:34 AM
on multi variants we do this