VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Elusyion on July 14, 2012, 03:00:40 AM

Title: [solved] SHOPPING CART NOW WONT ALLOW SHOPPERS TO ADD TO CART
Post by: Elusyion on July 14, 2012, 03:00:40 AM
Im feeling so let down by this new VM2.
I have three websites all of which were functional until we upgraded... apparently it had to be done or "technical dooms day would happen"
Now I cant have different price categories for different shopper groups wholesale, retail etc.
Now on top of that there seems to be a new issue with the cart daily.
We did a upgrade on Thursday night   2.0.8c and now shoppers cant add products to the cart.?????????????????

Help
Im almost at my wits end and are going to seek a different cart if things aren't resolved

Title: Re: SHOPPING CART NOW WONT ALLOW SHOPPERS TO ADD TO CART
Post by: Milbo on July 14, 2012, 12:38:46 PM
Quote from: Elusyion on July 14, 2012, 03:00:40 AM
Now I cant have different price categories for different shopper groups wholesale, retail etc.
Why you cant have that? how you did it before? and why it is not working now? Did you see this? http://forum.virtuemart.net/index.php?topic=105088.0
You can update to d, but then load also the attached file here http://forum.virtuemart.net/index.php?topic=105220.msg350406#msg350406

Quote from: Elusyion on July 14, 2012, 03:00:40 AM
Now on top of that there seems to be a new issue with the cart daily.
We did a upgrade on Thursday night   2.0.8c and now shoppers cant add products to the cart.?????????????????

I have no clue about this and your description is like a news headline "there was an accident on Trafalgar square".
Title: Re: SHOPPING CART NOW WONT ALLOW SHOPPERS TO ADD TO CART
Post by: webceo on July 14, 2012, 13:29:14 PM
I'm having a similar issues regarding adding products to the shopping cart. I'm not sure what the problem is. When you click add to cart, it redirects to the shopping cart, but no product is added. You can test it here :
http://www.mufflex-performance.com/v2/index.php/store/more-catalogs/f-body-catalog/1982-to-1992-3-5-catback-detail

I'm having another issue when editing products that have children. If a child product's name has the inch symbol (") in it, editing the parent will truncate the child product's name at the inch symbol position. I temporarily fixed this by adding the following code to the file administrator/components/com_virtuemart/views/product/tmpl/product_edit_information.php at the line 362

$child->product_name = preg_replace("/\"/",""",$child->product_name);
Title: Re: SHOPPING CART NOW WONT ALLOW SHOPPERS TO ADD TO CART
Post by: jjk on July 14, 2012, 16:09:14 PM
Quote from: webceo on July 14, 2012, 13:29:14 PM
I'm having a similar issues regarding adding products to the shopping cart. I'm not sure what the problem is.
You have several javascript errors/conflicts on your pages, in example this one:

Error: jQuery is not defined
Source File: ...mufflex-performance.com/v2/components/com_virtuemart/assets/js/vmsite.js
Line: 110
Does it work with a standard template and or without other extensions? First you can try to disable "Using the VirtueMart jQuery" in VM2 configuration.
Title: Re: SHOPPING CART NOW WONT ALLOW SHOPPERS TO ADD TO CART
Post by: webceo on July 14, 2012, 16:51:14 PM
jjk,

"Using the VirtueMart jQuery" is already disabled, and I'm having the same issue with a standard Joomla template.

I forgot to mention that the problem started when I upgraded from 2.0.6 to 2.0.8c. Before that, the cart was working properly. I'm using Joomla 2.5.6 if that matters.

Thank you
Title: Re: SHOPPING CART NOW WONT ALLOW SHOPPERS TO ADD TO CART
Post by: webceo on July 14, 2012, 17:38:13 PM
I fixed my cart issues. It turned out I only needed to include the jQuery in my template's header before including VM2 javascript.. HTML 101 !!

Thanks jjk for your help :)
Title: Re: SHOPPING CART NOW WONT ALLOW SHOPPERS TO ADD TO CART
Post by: jjk on July 14, 2012, 17:41:11 PM
Ok, you were a little bit quicker  ;) - I had just typed this:
The problem seems to be that your site for some reason currently loads vmsite.js, vmprices.js and facebox.js before jQuery is loaded. This won't work, because all three are based on jQuery. Normally VM2 loads jquery.min.js and jquery.noConflict.js. ahead of the three files mentioned above. So I guess, that one of your other extensions loads jQuery 1.6.4 ahead of calling VM2.
Title: Re: SHOPPING CART NOW WONT ALLOW SHOPPERS TO ADD TO CART
Post by: webceo on July 14, 2012, 18:30:04 PM
Thank you jjk for your help. I simply included jQuery in the template and removed it from all other extensions since it's used by many !
Title: Re: SHOPPING CART NOW WONT ALLOW SHOPPERS TO ADD TO CART
Post by: Milbo on July 15, 2012, 11:22:38 AM
Yeh, the reason we added the option, that you can disable that vm is loading the jquery library, so that you can do it with your template.
Title: Re: [solved] SHOPPING CART NOW WONT ALLOW SHOPPERS TO ADD TO CART
Post by: leobrian on September 19, 2012, 16:34:10 PM
I see that the fix for this problem is to include VM js after loading jQuery.  is there any documentation on this.  Where do I do the includes?  It look like I have the same problem but I cant figure out where to make the changes.
My url is:   http://alexavior.com/index.php/production-services/recording-services

Thanks
Title: Re: [solved] SHOPPING CART NOW WONT ALLOW SHOPPERS TO ADD TO CART
Post by: jjk on September 19, 2012, 17:32:21 PM
Try to switch off the Google jQuery and eventually the Virtuemart jQuery in VM2 Configuration - Templates tab. It looks like one of your extensions is loading a minified jQuery 1.3.2 version from the Google api, which produces a conflict with your VM2 facebox (lightbox).

You can use the Firefox browser plugin "Firebug" to detect problems. See here: http://forum.virtuemart.net/index.php?topic=102850.msg341610#msg341610 (http://forum.virtuemart.net/index.php?topic=102850.msg341610#msg341610)