VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Brockney on October 20, 2016, 12:51:12 PM

Title: Add To Cart button has disappeared on some items
Post by: Brockney on October 20, 2016, 12:51:12 PM
Hi there, I am using Joomla 3.6.3 with Virtuemart 3.0.18

The Add to Cart buttons have disappeared on some items

One example is this Tornado Pro Vape: http://www.emporiumvape.com/index.php/lighting/tornado-pro/0
Another example is this Tesla Invader III: http://www.emporiumvape.com/index.php/e-cigs/tesla/tesla-invader-iii-detail

An example where the button is still there is http://www.emporiumvape.com/index.php/lighting/cheap-thrills/Cheap%20Thrills%20-%20Rush%20Rush%20Yayo%2060ml

Sorry if this has been posted or explained somewhere else, I did take a look and couldn't find anything on the forum. This started happening last week, would anybody know why?

Thanks
Title: Re: Add To Cart button has disappeared on some items
Post by: Milbo on October 20, 2016, 13:43:35 PM
The problem is imho your ajax, please check our news https://virtuemart.net/news/latest-news/477-release-of-3-0-18-connecting-the-loose-ends

"Important for shops with overrides

The new js for using ajax for reloading product content uses now always the same class. The class is "product-container". Just search for the div with "productdetails-view productdetails" and add "product-container". In case you want the ajax reload within a product modul, you need to adjust the overrides here also."
Title: Re: Add To Cart button has disappeared on some items
Post by: Brockney on October 20, 2016, 13:54:11 PM
Thank you. I'm not quite at this level yet but I am keen to learn it! Hopefully I can figure it out now. Thanks :)
Title: Re: Add To Cart button has disappeared on some items
Post by: Brockney on October 20, 2016, 14:00:21 PM
Where do I find the product container?
Title: Re: Add To Cart button has disappeared on some items
Post by: Brockney on October 20, 2016, 14:23:25 PM
And is it possible to backdate to 3.0.16 until I have figured it out?
Title: Re: Add To Cart button has disappeared on some items
Post by: Brockney on October 20, 2016, 16:03:46 PM
I have amended this for a product by going to the custom fields and changing the 'Please Select' option to one of the option values.

The 'ADD TO CART' button now displays.

Can I change this is bulk for all product that have this issue? There are a few hundred that were ok until last week.

Screenshots of before and after the edit are attached.

Milbo I appreciate your help but I cannot find the Ajax options you mentioned
Title: Re: Add To Cart button has disappeared on some items
Post by: Brockney on October 20, 2016, 16:06:31 PM
Not quite fixed though.... the cart does not show the strength of the product selected.
Title: Re: Add To Cart button has disappeared on some items
Post by: Milbo on October 25, 2016, 13:21:23 PM
I fear you are using the wrong variant for that. I do not see the ramification. Seems you setup none.
Title: Re: Add To Cart button has disappeared on some items
Post by: Brockney on October 26, 2016, 15:18:57 PM
I found an explanation in a similar thread that solved the problem :D

Thanks to GJC

Here it is for anybody with the same issue

\templates\xxxxxxxxx\html\com_virtuemart\productdetails\default.php if over ridden .. if not in the VM views

find the html container holding the whole code

normally something like

<div id="productdetails-view" class="productdetails-view productdetails">

change it to

<div id="productdetails-view" class="productdetails-view productdetails product-container">
Title: Re: Add To Cart button has disappeared on some items
Post by: Brockney on October 28, 2016, 13:54:55 PM
Milbo, thanks to you too! Oh my gosh, rude of me you told me this too, much appreciated

Sent from my SM-G920F using Tapatalk