VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: vaskern on May 15, 2013, 07:14:24 AM

Title: [ SOLVED ] Cart not working as expected?
Post by: vaskern on May 15, 2013, 07:14:24 AM
My VM has a problem with the cart, for instance on the cart-page:
- nothing happens when the delete-button is pressed
- add a product, go to cart, add another product, go back to cart. Only the first product is there.

VM 2.0.20b
Joomla! 2.5.11
Site:http://motivuppsala.se/

Thank you
Title: Re: Cart not working as expected?
Post by: jenkinhill on May 15, 2013, 11:26:45 AM
You have a JavaqScript issue which stops the cart update function. It shows up as 
Expected ')'
cart, line 338 character 125

This is the line referred to, but likely this is not the actual cause as the code here looks correct.
<input type="text" onblur="check1(this);" onclick="check1(this);" onchange="check1(this);" onsubmit="check(1this);" title="Uppdatera antal artiklar i kundvagn" class="quantity-input js-recalculate" size="3" maxlength="4" name="quantity" value="1" />

Can you get rid of Google translate and test, as Joomla 2.5/VM2 is multilingual you do not need something like translate to get in the way of cart function. I do not know if that can cause the problem you have.

Also if you installed disable any other plugins then disable those in case they cause problems.
Title: Re: Cart not working as expected?
Post by: vaskern on May 15, 2013, 12:28:07 PM
Thanks for the quick answer.
Disabled the translation. Also disabled all the vmpayments and xmap plugins, cant think of anything else that is not joomla or vm core. But problem seems to be the same.
Title: Re: Cart not working as expected?
Post by: jenkinhill on May 15, 2013, 13:01:39 PM
In that case you may have a file corruption, so I would suggest a re-install. Do not uninstall first so you don't lose your products.
Title: Re: Cart not working as expected?
Post by: vaskern on May 15, 2013, 14:32:07 PM
Ok, thanks. You mean just install the com_virtuemart.2.0.20b.tar and com_virtuemart.2.0.20b_ext_aio.tar the usual way?
Title: Re: Cart not working as expected?
Post by: vaskern on May 15, 2013, 14:50:12 PM
I can answer myself I think - download manual install fileset from https://dev.virtuemart.net/redmine/projects/virtuemart/files (https://dev.virtuemart.net/redmine/projects/virtuemart/files)
Title: Re: Cart not working as expected?
Post by: jenkinhill on May 15, 2013, 15:26:52 PM
NO Install the 2.0.20b components the normal way using Joomla's extensions manager.   http://dev.virtuemart.net/projects/virtuemart/files
Title: Re: Cart not working as expected?
Post by: vaskern on May 15, 2013, 15:37:29 PM
Hm, too late. Uploaded administrator/components/com_virtuemart and components/com_virtuemart to the corresponding folders. Any harm in that? Install the normal way now?
Title: Re: Cart not working as expected?
Post by: vaskern on May 17, 2013, 16:31:23 PM
Got it sorted finally. A feeling it was connected to the caching-system the previous webhotel used (not connected to joomla or VM)