Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

VM2 Error when adding children products in cart
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 4 (Joomla 1.6/1.7/2.5+ compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: VM2 Error when adding children products in cart

VM2 Error when adding children products in cart 12 years, 3 months ago #32630

Hi David,

We have noticed the following issue with VM2:

When adding a child product in the cart (stockable variant), there is some delay and then we get the following msg:

ERROR: The product could not be added

The product is finally added in the cart, but there is some conflict or something. Would appreciate your assistance as it is difficult for us to debug.

You can check this here:

www.quality-tuning.co.uk/audi-a4-a6-stai...l-2x76-l190-200-in60

When Joomsef is disabled, there is no problem.

Rgrds,
Chris
Test Site: 62.1.216.81/~qualtun/
Joomla 2.5.6
Virtuemart 2.0.10
Joomsef 4.2.8
Joomsef Virtuemart Extension 3.0.6
The topic has been locked.

Re: VM2 Error when adding children products in cart 12 years, 3 months ago #32669

  • dajo
  • OFFLINE
  • Posts: 5069
Hi Chris,

I checked what's going on and I found out that there's some problem with AJAX request being redirected when JoomSEF is enabled. However, the redirection does not occur in JoomSEF, so it seems that VirtueMart itself causes the redirection when JoomSEF is enabled for some reason. I can use the time that's left from your last paid support to check what exactly causes this and fix it.
ARTIO Support Team
The topic has been locked.

Re: VM2 Error when adding children products in cart 12 years, 3 months ago #32774

Sure David, pls go ahead, the credentials remain the same.

Rgrds,
Chris
Test Site: 62.1.216.81/~qualtun/
Joomla 2.5.6
Virtuemart 2.0.10
Joomsef 4.2.8
Joomsef Virtuemart Extension 3.0.6
The topic has been locked.

Re: VM2 Error when adding children products in cart 12 years, 3 months ago #32799

  • dajo
  • OFFLINE
  • Posts: 5069
I've found a problem in /components/com_virtuemart/assets/js/vmprices.js. When the Add to Cart button was clicked, a task=add was added to URL, which overwrote the original task=addJS used by your AJAX cart. For some reason, when JoomSEF was disabled, Joomla used the first task=addJS found in URL and ignored the appended task=add.
I've commented out line number 51 in the mentioned file:
form.append('<input type="hidden" name="task" value="add" />');

and the problem is solved both with JoomSEF enabled and disabled.
ARTIO Support Team
The topic has been locked.

Re: VM2 Error when adding children products in cart 12 years, 3 months ago #32804

Hi David,

Thanks for your assistance to the matter. We confirm that the issue is solved in the product flypage, thanks! We just noted that this also happens in the browse page for all products, you may see here:

http://www.quality-tuning.co.uk/universa...cle-exhaust-mufflers

I guess we should modify a similar .js file?

Do you think i should contact the VM team or the Cart Module company for a rectification in their code?

Rgrds,
Chris
Test Site: 62.1.216.81/~qualtun/
Joomla 2.5.6
Virtuemart 2.0.10
Joomsef 4.2.8
Joomsef Virtuemart Extension 3.0.6
Last Edit: 12 years, 3 months ago by atrus80.
The topic has been locked.

Re: VM2 Error when adding children products in cart 12 years, 3 months ago #32820

  • dajo
  • OFFLINE
  • Posts: 5069
Hi Chris,

Yes, try modifying a similar .js file. Please let me know if you encounter some problem.

I think you can try contacting them, so they can check compatibility of VM and the Cart module. I'm not sure if the problem is originally caused by VM code or the Cart module should handle it differentally.
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
Přihlášení uživatele Prázdný