VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: nickon2 on June 10, 2013, 23:44:04 PM

Title: [Solved ] wrong products in cart
Post by: nickon2 on June 10, 2013, 23:44:04 PM
Hi

While testing our new site at demo.multitec.gr I notest that at some point the vm cart looses it products
Try this with firefox or chrome (not tested with other browsers)

Go to
demo.multitec.gr/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=303&virtuemart_category_id=1

Add product to cart using the red button (minicart and cart show 1 product)
Add a new product eg
http://demo.multitec.gr/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=307&virtuemart_category_id=1

Then go to
demo.multitec.gr/index.php?option=com_content&view=article&id=3&Itemid=166
or
http://demo.multitec.gr/index.php?option=com_content&view=article&id=2&Itemid=168
do this one or twice

at some point minicart  show 1 product less)

Go to cart
demo.multitec.gr/index.php?option=com_virtuemart&view=cart&Itemid=21

product shown are 2


This happens most of the times.
Some other times it "remembers" old product even though I have removed them from the cart (either from dropdown or the cart itself) What is going wrong ?


Note that if at some point I login with a user and while the minicart shows the wrong product after the login products are ok
Seems this is happening while user is not logged in.
Kind Regards

Title: Re: wrong products in cart
Post by: PRO on June 11, 2013, 00:06:51 AM
have you tested this with the "modal" pop up add to cart?

what version vmart you using?

have you tested this with a standard joomla template?

Title: Re: wrong products in cart
Post by: nickon2 on June 11, 2013, 00:34:31 AM
vm version is 2.0.20b (latest on j 2.5.11)
Yes I have tested it with modal popup with the same result
Please note that the problem is not when adding a product. But AFTER that when it looses the products from the cart
Seems that this is happening while browsing to non vm pages
Tried it with beez5 with the same effect.
Also strange is that even though I remove the products from the cart page at some point the product are displayed agian
Please note that I have disabled the system cache plugin and installed jotcache and disabled the vm cache in the hope this would help
Title: Re: wrong products in cart
Post by: AH on June 11, 2013, 10:16:20 AM
I think you can already see that maybe it is the cache having problems, we never run with cache of any sorts.  Try disabling ALL caching
Title: Re: wrong products in cart
Post by: nickon2 on June 11, 2013, 22:03:15 PM
I'm not that sure. I have already disabled the cache plugin. Should I do anything else ?
Title: Re: wrong products in cart
Post by: AH on June 11, 2013, 22:57:20 PM
Quoteinstalled jotcache

try disabling this

then clear all cache and try again
Title: Re: wrong products in cart
Post by: nickon2 on June 11, 2013, 23:22:56 PM
Done that :-)
Title: Re: wrong products in cart
Post by: AH on June 12, 2013, 00:50:59 AM
Is it working now or still an issue?
Title: Re: wrong products in cart
Post by: nickon2 on June 12, 2013, 00:56:25 AM
Still the same problem.
Title: Re: wrong products in cart
Post by: AH on June 12, 2013, 01:27:45 AM
I have spent some time on the site (My greek is not improved!)

I think this is caching, as I move from product to product, if I return to a product I have added to cart or been on previously, the state of the cart is "reset"

I skip from 2 products to 8 back to 4 etc.

I cannot really provide much more assistance.

Question for you - are you using the CKmaximenu plugin for Virtuemart and if you are is it working well for you and straight forward to setup?

Title: Re: wrong products in cart
Post by: Milbo on June 12, 2013, 13:53:55 PM
joomla caching must be disabled or use correct plugins. The cart view MUST NOT be cached ! Same for user, order, invoice view and so on.
Title: Re: wrong products in cart
Post by: nickon2 on June 12, 2013, 14:46:49 PM
Hi Milbo,

I have disabled cache from the plugin manager (system-cache) I had jotcache installed but is currently disabled. Is there anything else I should do?
Title: Re: wrong products in cart
Post by: AH on June 12, 2013, 17:44:51 PM
ehrm, I think I already said that you need to turn off caching!  If there is still a problem, then look at the cart module you are using.  Disable this and try testing the base cart module.
Title: Re: wrong products in cart
Post by: nickon2 on June 12, 2013, 18:22:48 PM
I did! I tried with the standard vm cart. but have the same result.
Title: Re: wrong products in cart
Post by: nickon2 on June 12, 2013, 18:25:41 PM
Quote from: Hutson on June 12, 2013, 01:27:45 AM


Question for you - are you using the CKmaximenu plugin for Virtuemart and if you are is it working well for you and straight forward to setup?



No I don't use the vm plugin, I added the links manually, maximenu works quite well though
Title: Re: wrong products in cart
Post by: Milbo on June 12, 2013, 20:06:52 PM
You must disable the cache in the JOOMLA config.
Title: Re: wrong products in cart
Post by: nickon2 on June 12, 2013, 21:42:22 PM
I have done that also.
Also something that is strange is if you go eg
http://demo.multitec.gr/index.php?option=com_virtuemart&view=category&virtuemart_category_id=4&Itemid=188
And add a product and then add a second product you will see that while the modal window show cart pops up (and until you click on continue shopping) you see in minicart 2 products, when you click continue shopping only one product is displayed.


Meanwhile jenkinhill suggested in threat
http://forum.virtuemart.net/index.php?topic=116348.0
that there maybe is a ajax problem but did not provide any additional info on how to fix this
Please note that after jenkinhill's reply I had disabled almost any extra module I have installed with no change
Also I tried beez5 theme just in case it would be a template issue but had no result

Kind Regards



Title: Re: wrong products in cart
Post by: nickon2 on June 13, 2013, 23:57:51 PM
Hi,

Seems I have managed to fix the problem.
Problem was the jtouch plugin. When disabled all seems to be OK
I would never believe that plugin could create so much trouble.
I am not a developer so I don't know the tech part of it but after disabling this all seems to be OK (so far)
Title: Re: [Solved ] wrong products in cart
Post by: AH on June 14, 2013, 09:46:46 AM
This is an issue with the "ease" of creating a site with CMS systems.
The numerous plugins built for Joomla at no cost which is a great strenght is also a big problem for non technical site owners. With so many free modules we are all guilty of installing with happy abandon.  :)
You have experienced a common issue with this strategy, a module/plugin conflict.

Non developers do not use firefox (firebug) or chrome (console) debug tools and are unaware of problems until things do not work.

You will not be the last person to have an issue with a plugin.

In the end, if you are trying to run a dedicated ecommerce site, the ecommerce software has to take priority over all the other nice to have and "essential" extras that are available for Joomla.

I am sure the team have spent much time on following best practice (and this can be seen from the great progress in VM2).

That said, I have yet to have a conflict with modules that I have installed (but i read carefully the feedback and the VM forums before using one!)

Title: Re: [Solved ] wrong products in cart
Post by: nickon2 on June 14, 2013, 22:34:53 PM
Trust me when I say that I have tried both firebug and most debug tools I could think of.
The reason I wanted to use jtouch is to make the template responsive, I would never have thought that this will conflict with vm as I don't see any direct connection with vm.
That beeing said setting up vm is not the easiest task for both technical or non-technical users, the time you spent tweaking vm and fixing bugs is something not for the average site admin.
But I like vm nevertheless.
Title: Re: [Solved ] wrong products in cart
Post by: AH on June 15, 2013, 00:32:13 AM
Glad you found the issue.