VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: ZoBabe on September 05, 2013, 03:26:09 AM

Title: Update to 2.0.22c breaks shopping cart
Post by: ZoBabe on September 05, 2013, 03:26:09 AM
JM: 2.5.14
VM: 2.0.22b

Upgraded from 2.0.22a to to 2.0.22c, and "Add to Cart" button stopped working on most products (I use child products for inventory control). Rolled back to 2.0.22a, and it solved the problem. Tried updating to 2.0.22b, that still works fine. Again tried to update to 2.0.22c, and that's where it gives up the ghost.
  The issue is, the pop-up window pops up with only the message

"Continue Shopping
0
undefined"

  The item does not get added to the cart. If modal popup is disabled, add to cart just redirects to the parent category, and the item is not added to the cart.
  Can't afford to leave shop useless, so just rolled back to 2.0.22b for now. Have attached images of modal pop-up in 2.0.22b and in 2.0.22c.
  Tried with Beez20 template, problem still exists.
  Anyone else having this problem?
  Z

[attachment cleanup by admin]
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: Maxim Pishnyak on September 05, 2013, 20:36:41 PM
Url?
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: ZoBabe on September 06, 2013, 04:38:37 AM
Let's say http://www.sweetskins.com/pants/culottes-detail.html, but any product would do.

  Things I have already tried that did not work:

  Switching to Beez20 Template
  Updating jQuery Library, and adding Easy jQuery plug-in
  Using the "Disable MooTools where possible" setting in the jQuery plug-in
  disabling other modules/plug-in on the page one by one.
  Updating the PHP version from 5.2 to 5.3
  lots of cashe clearing in between various attempts.

However, if you go look now, you won't see the problem. I rolled back to VM 2.0.22b in order to get the cart working. I would like to be able to update, but not at the expense of losing sales for several days.
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: I-LION on September 06, 2013, 22:15:08 PM
I've the same problem!!! Help me please!!!

Giovanni
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: jenkinhill on September 06, 2013, 23:31:05 PM
Try this. In configuration/templates please ensure that Select the default template for your Shop is set to Use Joomla default, (and the same for Category template)
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: I-LION on September 07, 2013, 00:00:24 AM
I'm sorry but this solution is not recommended that you  :-\
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: ZoBabe on September 07, 2013, 00:18:52 AM
Unfortunately, switching to default template is one of the first things I tried (top of the list in things I tried that did not work).
  I suspect that it's another stockable variants issue, as the only products that actually will still even add to the cart after update are the ones with no child products (unfortunately, their modal pop-up still go into never-load-limbo, as I reported on a different thread).
  I-Lion, are you also using stockable variants?
  To the developers, Is there any progress in debugging this feature? It's a kind of essential feature, but between ghosting out of stock options and breaking the whole cart, it seriously needs some work.
  Z
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: I-LION on September 07, 2013, 00:45:25 AM
I use the stockable variants issue and only this have the problem with the cart.
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: Milbo on September 09, 2013, 11:19:30 AM
Please try http://dev.virtuemart.net/attachments/download/641/com_virtuemart.2.0.22d_extract_first.targz.zip
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: ZoBabe on September 09, 2013, 12:17:21 PM
Still breaks mine  :'(
  Rolled back to 2.0.22b again (still the last one that works)
  Z
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: Milbo on September 10, 2013, 14:24:43 PM
Escapezone made some interesting observation

Quote from: escapezone on September 10, 2013, 11:08:46 AM
Hello,

Since i updated to vm 2.0.22c i have a problem with my stockable variants. when i am in a product tha has stockable variant i can't see the price and the add to cart button doesn't work...

I don't know what causes the problem but i found the file that has the problem...

components/com_virtuemart/views/productdetails/tmpl/default_addtocart.php

I replaced this file from 2.0.22b and everything works fine ...

I know this is not a solution but plz take a look at this file and fix it because i am running all my sites with stockable variants.

Thank you!

Does this help you also?
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: ZoBabe on September 10, 2013, 14:40:02 PM
It does! It works!
  Have added it to my template overrides. Thank you!
  Z
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: Milbo on September 10, 2013, 16:00:05 PM
Thanks to Escapezone and ZoBabe I was able to find the issue.

Please try this file

[attachment cleanup by admin]
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: escapezone on September 10, 2013, 16:42:25 PM
Thank you very much Milbo for the updated file !

It works fine now!
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: I-LION on September 12, 2013, 14:09:44 PM
Thank you very much!!!!
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: Inas on September 13, 2013, 09:48:39 AM
Thank you so much!!

I have several stores that are constructed with this solution, all ended getting orders when this problem occurred. This solution is worth gold  8)
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: mariloj@hotmail.com on September 27, 2013, 13:33:54 PM
Thank you Thank you Thank you ;D ;D ;D ;D
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: coligtho on November 28, 2013, 09:19:34 AM
hi I tried the instructions here and updated the default_addtocart.php file from the override and the core code as well but the problem still exist I still can't add products on the shopping cart.
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: coligtho on November 29, 2013, 00:04:38 AM
I tried to update our virtuemart version to 2.0.24c but the issue is still there I cannot add any stockable variant product set on a product to the shopping cart did I do anything wrong on the update? I just used the virtuemart update button and it automatically updated the component.
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: coligtho on November 29, 2013, 01:04:33 AM
very funny I have just resolved my issue the product set for the option on the stockable variant is already out of stock though it's strange why the button is still showing the add to cart button when an item for that variant is out of stock but I think this is already a different issue by then
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: kelecz on September 11, 2014, 18:15:52 PM
Hello,
when I go on "Show cart" nothing happen, won't show checkout page.
Please help.
Thank in advance.

url: www.petproba.konji.rs

Joomla 25
VM2
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: jenkinhill on September 11, 2014, 18:55:27 PM
Site not found.

This thread is about VM2.0.22c - are you using that version or something else?
Title: Re: Update to 2.0.22c breaks shopping cart
Post by: kelecz on September 11, 2014, 20:17:23 PM
Site is on: http://petproba.konji.rs/

I am using 2.6.6 VM
If I missed subject please give me some link to go on appropriate theme.

Thank you and sorry for "spamming"