VirtueMart Forum

VirtueMart 2 + 3 => Product creation => Topic started by: bigrich66 on December 01, 2017, 11:18:33 am

Title: Product detail Variants in Product display rather than clicking first
Post by: bigrich66 on December 01, 2017, 11:18:33 am
J 3.8.2
VM 3.2.4

Hi all

On the product listings page below...

https://antiligatureshopdirect.com/index.php?virtuemart_category_id[0]=29&Itemid=229&option=com_customfilters&view=products

...you have a combination of products with variants and those without. Those without variants can be added to the cart with just one click. Those with variants need to be clicked then the product detail page comes up then the variants selected before they can be added to the cart.

My customer, however is asking if those products with variants can also be selected from the product listing page above so no second click is required to the product detail page?

I am aware the product template could be hacked to included the variants but even if they could, would 'add to cart' work from the product listing page?

Thanks

Title: Re: Product detail Variants in Product display rather than clicking first
Post by: jenkinhill on December 01, 2017, 11:57:19 am
It is a "feature" of your template that the variants do not show. Using default VM templates it works like this:  http://demo.virtuemart.net/

Where a child needs to be selected there is a message to say so. On selecting a variant the add to cart button shows.
Title: Re: Product detail Variants in Product display rather than clicking first
Post by: Studio 42 on December 04, 2017, 14:13:50 pm
I think that you have a javascript problem, the product should be reloaded in the list.