Author Topic: Product detail Variants in Product display rather than clicking first  (Read 124 times)

bigrich66

  • Beginner
  • *
  • Posts: 33
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


jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26415
  • Always on vacation
    • Jenkin Hill Internet
Re: Product detail Variants in Product display rather than clicking first
« Reply #1 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.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM3.2.8 on Joomla 3.8.2 PHP 7.0.25

Testing VM3.2.8 on J3.8.3RC

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2402
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Product detail Variants in Product display rather than clicking first
« Reply #2 on: December 04, 2017, 14:13:50 pm »
I think that you have a javascript problem, the product should be reloaded in the list.