News:

Looking for documentation? Take a look on our wiki

Main Menu

Add to cart issue

Started by WSS, May 06, 2013, 04:56:44 AM

Previous topic - Next topic

WSS

Hi,

Can I get some help with this issues?
- click on add to cart, it opens a new screen/the cart, no product added in the cart???

VM- 2.0.20b
JL - 2.5.6
PHP - 5.2.17

http://www.windsurfnsnow.com.au/

Anything else???

jenkinhill

I could not see any products with an add to cart button???

Also this error on a few screens - JUser: :_load: Unable to load user with ID: 940  - suggests to me you used a quickstart template package with K2? That is known to cause admin userID issues.

Almost certainly you will have a JavaScript issue stopping add to cart but can't test. http://forum.virtuemart.net/index.php?topic=111843.0

You also should have a main menu link to the VirtueMart component home page.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

isabeaux

This didn't do the trick for me. What did seem to help somewhat, was making sure to keep positive stock values on the products.

isabeaux

Sorry, forgot to paste site data

PHP Built On    Linux energeticsynthesis.com 3.2.0-38-virtual #61-Ubuntu SMP Tue Feb 19 12:37:47 UTC 2013 x86_64
Database Version    5.5.31-0ubuntu0.12.04.1-log
Database Collation    utf8_general_ci
PHP Version    5.3.10-1ubuntu3.6
Web Server    Apache
WebServer to PHP Interface    apache2handler
Joomla! Version    Joomla! 2.5.11 Stable [ Ember ] 26-April-2013 14:00 GMT
Joomla! Platform Version    Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT
User Agent    Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31

Using Gantry Rocket theme Clarion
Not using K2

Milbo

Maybe you have strange chars in the product name? you must escape them,.. for example " or ' must be manually escaped
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

isabeaux

Numbers and letters are all that I have in the product names and descriptions. I have disabled the modal window pop up and it works ok now, less fancy but reliable. Otherwise in 80% of the instances it didn't add the product to the cart, or it added it and immediately removed it. I couldn't find a pattern that would let me know when it would work or not.
I've upgraded to 2.0.22b and fancybox didn't make a difference. I also tried all the possible combinations with jquery to no avail.

Also I'm using the Shopilicious template.

Thank you.

Maxim Pishnyak

Could I try to test your issue?
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

isabeaux


Jumbo!

You have disabled loading of Ajax Add to Cart feature therefore Facebox is not getting loaded in your site. However the "Click to enlarge" image function still look for the library and generated Javascript errors for you. Check the console of your browser. Therefore even if you do not use Ajax Add to Cart then also you will need to manually load facebox plugin in product details page so that the image enlarge button works and it does not generate any javascript errors.

Regarding the Add to Cart functionality of your site it seems to be working fine with me. Tested using Google Chrome, FireFox and IE10. However as long as the Javascript error is there in your site you may face unsuitability issues.

isabeaux

Thanks for checking it out Jumbo!

And thanks for pointing out the error for the 'facebox' modal function. I went over the code, but didn't find where to add the facebox js/css. Still it is a minor consideration at this point.
The Add to cart is working with the "Display modal popup upon 'Add to cart'" configuration disabled. If I enable it, the pop up works fine, but the product gets removed from the cart as soon as the modal window is closed. Clearly I can't have this happening on the live site. I can give you access to my developers mirror site if you'd like to see the problem there.

Thank you.
Tomas

Maxim Pishnyak

Quote from: isabeaux on September 12, 2013, 06:57:24 AM
The Add to cart is working with the "Display modal popup upon 'Add to cart'" configuration disabled. If I enable it, the pop up works fine, but the product gets removed from the cart as soon as the modal window is closed.
So what is your final goal? Wonna disable or enable? Be more clear. This 'If I enable it' makes solving problem more complex then it should be.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart