Author Topic: Add to cart issues - what's the actual solution?  (Read 98646 times)

Denniz0229

  • Beginner
  • *
  • Posts: 2
Re: Add to cart issues - what's the actual solution?
« Reply #180 on: January 17, 2013, 14:39:53 pm »
so... after reading this whole topic and a lot of other stuff via google I still haven't found a solution.

my website is running VM 2.0.18a and joomla 2.5.8 (website: www.novosmoke.nl)

everything worked perfect, until i made some adjustments to some products, by simply adding child products and making card variants for them.
after that i can't add anything to the cart, and also i am getting this error.
Quote
Warning: Invalid argument supplied for foreach() in /public/sites/www.novosmoke.nl/plugins/vmcustom/stockable/stockable.php on line 229

pretty weird that it happened after adding some products. also, the problem only appears in firefox.
and since alot of my customers do use firefox its a pretty nasty problem.

any help would be greatly appreciated.

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3549
  • using Matomo instead of Google Analytics
Re: Add to cart issues - what's the actual solution?
« Reply #181 on: April 11, 2013, 07:11:40 am »
Do you have a link to a product where errors happen? I just tried to add a few of your child products to the cart using Firefox 20 and all of them were placed into the cart correcty without any errors showing up.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

WSS

  • Beginner
  • *
  • Posts: 5
Re: Add to cart issues - what's the actual solution?
« Reply #182 on: May 07, 2013, 04:05:01 am »
Hi,

When your ready... Can I have some help with this issues too?
I click 'add to cart' the new cart screen opens however there is no products.

VM-2.0.20b
JL- 2.5.6
PHP- 5.2.17
www.windsurfnsnow.com
anything else?


jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27601
  • Always on vacation
    • Jenkin Hill Internet
Re: Add to cart issues - what's the actual solution?
« Reply #183 on: May 07, 2013, 10:27:29 am »
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

greaves

  • Beginner
  • *
  • Posts: 38
Re: Add to cart issues - what's the actual solution?
« Reply #184 on: January 20, 2014, 20:14:40 pm »
Hello, I also have a problem with the add to cart button, is there a conflict between those files :
  <script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
  <script src="/media/system/js/core.js" type="text/javascript"></script>
  <script src="/media/system/js/modal.js" type="text/javascript"></script>
  <script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js" type="text/javascript"></script>
  <script src="https://ajax.aspnetcdn.com/ajax/jquery.migrate/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
  <script src="/plugins/system/jqueryeasy/jquerynoconflict.js" type="text/javascript"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9/jquery-ui.min.js" type="text/javascript"></script>
  <script src="/components/com_virtuemart/assets/js/vmsite.js" type="text/javascript"></script>
  <script src="/components/com_virtuemart/assets/js/fancybox/jquery.fancybox-1.3.4.pack.js" type="text/javascript"></script>
  <script src="/components/com_virtuemart/assets/js/vmprices.js" type="text/javascript"></script>
  <script src="/plugins/system/jsntplframework/assets/joomlashine/js/noconflict.js" type="text/javascript"></script>
  <script src="/plugins/system/jsntplframework/assets/joomlashine/js/utils.js" type="text/javascript"></script>
  <script src="/templates/jsn_nuru_free/js/jsn_template.js" type="text/javascript"></script>
  <script src="http://tw.mixew.com/modules/mod_virtuemart_quickcart/assets/jquery.mCustomScrollbar.js" type="text/javascript"></script>
  <script src="http://tw.mixew.com/modules/mod_virtuemart_quickcart/assets/jlscript.js" type="text/javascript"></script>

Thx in advance

greaves

  • Beginner
  • *
  • Posts: 38
Re: Add to cart issues - what's the actual solution?
« Reply #185 on: January 23, 2014, 19:43:38 pm »
update : It seems to be cause by the quickcart extension, I'll keep you posted

Which JS file does the add to cart button use ?

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 issues - what's the actual solution?
« Reply #186 on: January 29, 2014, 19:44:05 pm »
atm jquery1.6, but we have now a version running up to jquery1.10

btw I read in another thread this solution, maybe it helps also here

For me it was the same problem: add to cart button fancybox did not work.
tried my page with http://www.hermex.hu, then tried http://hermex.hu
One of them was working well with the add to cart popup, other didn't.

It turned out that in configuration php it was a setting for live site either one link with www or without it.

I just cleared out that setting in configuration.php like this:
public $live_site = '';

And now both way of domain name works correctly.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

foo

  • Beginner
  • *
  • Posts: 8
Re: Add to cart issues - what's the actual solution?
« Reply #187 on: March 18, 2014, 00:07:40 am »
Can someone check and tell me if the add to cart button works on IE8 and IE9 for this website please? http://forfarfurnitureuk.co.uk/index.php/bedroom-furniture/view/productdetails/virtuemart_product_id/10/virtuemart_category_id/23

I don't want to waste time with virtuemart if I can't get the cart to work on IE

I have it working on Firefox and Chrome. To get it to work on FireFox I had to install JQuery Easy Plugin. With it set to JQuery enabled version 1.4 and subversion 4 (1.4.1).

I am using Joomla! 2.5.17 and Virtuemart 2.0.26d

PHP Built On    Linux lin197.gridhost.co.uk 2.6.32.21-grsec #6 SMP Fri May 20 17:37:06 BST 2011 x86_64
Database Version    5.5.28-29.1
Database Collation    utf8_general_ci
PHP Version    5.3.28
Web Server    Apache
WebServer to PHP Interface    cgi-fcgi
Joomla! Version    Joomla! 2.5.17 Stable [ Ember ] 18-December-2013 14:30 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 5.1; rv:27.0) Gecko/20100101 Firefox/27.0

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 issues - what's the actual solution?
« Reply #188 on: March 19, 2014, 09:31:12 am »
You have a wrong impression.

The add to cart button works completly normal. The thread is now almost a year old and within this year only 2 people posted that they have a problem with it.

One time
update : It seems to be cause by the quickcart extension, I'll keep you posted

Which JS file does the add to cart button use ?

in your case it will be similar, somehow connected to your template. We cannot prevent that a bad template destroys the features of VM. You may read in our template FAQ http://forum.virtuemart.net/index.php?board=137.0

I will unsticky this post now, because the thread was active almost a year ago and within this year only 2 people posted that they have a problem with it.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9244
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Add to cart issues - what's the actual solution?
« Reply #189 on: May 17, 2014, 13:25:25 pm »
As this is something that happens only "sometimes" on your site it must be something "on" your site

If it was a VM bug it would have been reported / noticed 100's of times

On yours I notice there is constant posting from Yandex
you also have google & counterrambling - what ever this is  - but at least unobstrusive Gets

as addto cart is Ajax posts etc maybe this amount of traffic is interfering?

try for a period of time with this traffic hogging switched off?  - just an idea..

[attachment cleanup by admin]
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

borro

  • Jr. Member
  • **
  • Posts: 207
  • Wish you happiness!
    • web developing, web design
  • VirtueMart Version: a few
Re: Add to cart issues - what's the actual solution?
« Reply #190 on: May 19, 2014, 11:37:58 am »
Thank you for idea
try for a period of time with this traffic hogging switched off?  - just an idea..
I tried. I deleted them all (Yandex, Google and Rambler counter). Mistake was repeated again, it was still there. It's something else makes all priceses of a products in cart having the cost of a product which I was trying to add the last. But what is it?.. I've noticed that it usually happens when you trying to add something into a cart right after the loading some page with a products. May be some scripts have not enough time to be loaded from a server to make adding operation correct. In other words may be some scripts which influence the cart cann't be downloaded in time. What do you think?
It seems that in a holidays no such mistakes can be detected. May be it depends on hosting capacity. Here is the site
Wish you happiness!

borro

  • Jr. Member
  • **
  • Posts: 207
  • Wish you happiness!
    • web developing, web design
  • VirtueMart Version: a few
Re: Add to cart issues - what's the actual solution?
« Reply #191 on: May 29, 2014, 15:59:09 pm »
After upgrade to VM 2.6.2 the problem of the same costs of all products in a cart has gone. But still sometimes the click on add-to-cart button right after a new category is opened redirects to a cart view. I can't find an multiple jquery loading at site. Please confirm or deny my vision by checking one typical page. So what could be the reason of such rare redirections?
Wish you happiness!