VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Magev88 on October 23, 2015, 13:06:14 PM

Title: Assign different style to one product also in category view
Post by: Magev88 on October 23, 2015, 13:06:14 PM
Hello,
i have create a new flypage style for my product, because for some VM product i DON'T want to see the "Add to cart" button. And it's ok, i assign the new style directly in the product option.
The problem is that when i insert the product in other categories, and i see it in grid/list view, i see the "Add to cart button" (while inside the details page i don't see it), and if i click on it, i can't go in the cart page, of course. So, i need to show products with "Add to cart" button and product without, in the same category, in the same page.

How can i do?
Thanks so much for help
Title: Re: Assign different style to one product also in category view
Post by: jenkinhill on October 23, 2015, 13:28:32 PM
By "flypage" do you mean product details page or category page?

http://forum.virtuemart.net/index.php?topic=128401.0   
Title: Re: Assign different style to one product also in category view
Post by: Magev88 on October 23, 2015, 14:22:22 PM
I mean all both, i have now assigned the product flypage, but the category no. Because i have to see som products with "Add to cart" button, and somenthing without. So if i modify also the category page, this button disappear from all products.

I have 3.0.9.4 VM and Joomla 3.4.5
Title: Re: Assign different style to one product also in category view
Post by: jenkinhill on October 25, 2015, 18:10:34 PM
Do you need stock control? If not then assign stock to all products which show add to cart and set to zero for those that don't. Set "Action when a Product is Out of Stock" to "Displays 'Notify Me' instead of 'Add To Cart' button". Then no add to cart would show in category or product details list, and if the phrase "Notify Me" is set to a blank string for the front end (or hidden with css) then that would not show either.