Author Topic: Add to cart issue  (Read 3798 times)

WSS

  • Beginner
  • *
  • Posts: 5
Add to cart issue
« on: May 06, 2013, 04:56:44 am »
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

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27604
  • Always on vacation
    • Jenkin Hill Internet
Re: Add to cart issue
« Reply #1 on: May 07, 2013, 10:26:38 am »
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

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 VM 3.6.10.10211 on Joomla 3.9.13 PHP 7.0.33

isabeaux

  • Beginner
  • *
  • Posts: 14
Re: Add to cart issue
« Reply #2 on: May 08, 2013, 22:10:47 pm »
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

  • Beginner
  • *
  • Posts: 14
Re: Add to cart issue
« Reply #3 on: May 08, 2013, 22:15:54 pm »
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10000
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Add to cart issue
« Reply #4 on: June 08, 2013, 21:58:38 pm »
Maybe you have strange chars in the product name? you must escape them,.. for example " or ' must be manually escaped
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

isabeaux

  • Beginner
  • *
  • Posts: 14
Re: Add to cart issue
« Reply #5 on: August 28, 2013, 00:05:14 am »
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2657
Re: Add to cart issue
« Reply #6 on: August 28, 2013, 20:47:16 pm »
Could I try to test your issue?

isabeaux

  • Beginner
  • *
  • Posts: 14
Re: Add to cart issue
« Reply #7 on: September 09, 2013, 08:50:42 am »
Hi Maxim,
You can see the shop at http://www.energeticsynthesis.com/index.php/shop
Thank you.

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 679
  • Full-stack Web Developer
    • www.virtueplanet.com
  • VirtueMart Version: Always latest
Re: Add to cart issue
« Reply #8 on: September 09, 2013, 20:50:02 pm »
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

  • Beginner
  • *
  • Posts: 14
Re: Add to cart issue
« Reply #9 on: September 12, 2013, 06:57:24 am »
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2657
Re: Add to cart issue
« Reply #10 on: September 12, 2013, 10:46:20 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.