Page 1 of 1

[Solved] CartMS - Problem updating Quantity of products

Posted: Mon Mar 30, 2009 8:49 am
by elina
Hi guys,

I'm making a site using the 1.5.3 version of CMSMS. I havve succesfully installed the 0.2.1 version of ShopMS and 0.2.2 CartMS. Everything is working as it should be. ShopMS shows the products, via CartMS i can add them to my basket, I can view my basket as well as proceed an order correctly.

My only problem is that when I try to update the number of serten product in my basket, I've been directed to my homepage all of a suddan and no changes have been made to my shopping basket when I come back to it.
I am using the 'tinebox' template and then the 'template' template as a default.

I should say I'm a newbie to CMSMS. I've managed on my own untill now, but this bathers me a bit.

Is there anybody that could give me any ideas on what I should do to fix the problem?

Thanks

Re: CartMS - Problem updating Quantity of products

Posted: Mon Mar 30, 2009 5:10 pm
by elina
Pls, Cananybody help me solve this problem?

Re: CartMS - Problem updating Quantity of products

Posted: Wed Apr 01, 2009 6:01 pm
by dikruo
Hi Elina,
You need to change the code inside fe_showcart
This line of code is in there right now:

Code: Select all

function UpdateQty(item)
{
	product_id = item.name;
	newQty = item.options[item.selectedIndex].text;
	document.location.href = 'index.php?mact=CartMadeSimple,cntnt01,cart,0&cntnt01product_id='+product_id+'&cntnt01qty='+newQty+'&cntnt01perfaction=update_product';

}
It lacks a redirect to the Shop Made Simple module.

Code: Select all

function UpdateQty(item)
{
	product_id = item.name;
	newQty = item.options[item.selectedIndex].text;
	document.location.href = 'index.php?mact=CartMadeSimple,cntnt01,cart,0&cntnt01product_id='+product_id+'&cntnt01qty='+newQty+'&cntnt01perfaction=update_product&returnmod=ShopMadeSimple&cntnt01returnid=59';

}
You need to make sure that the number 59 (last number in the code) works for you. You can check it by opening your Shopping Cart inside your website before you alter the code.
Check the number mentioned in your webbrowser address (last number there) and use it instead of the numer 59.
Hope it works,
if not,
contact me.
Matthijs

Re: CartMS - Problem updating Quantity of products

Posted: Wed Apr 01, 2009 7:04 pm
by elina
Hi, Matthijs,

Thank you so much for your reply! I've tried what you wrote and it works exactly as it should be!

I really appreciate your help. 

Regards
Elina

Re: CartMS - Problem updating Quantity of products

Posted: Wed Apr 01, 2009 7:08 pm
by dikruo
Your welcome Elina,

(please insert [solved] in your header)

Matthijs

Re: [Solved] CartMS - Problem updating Quantity of products

Posted: Wed Apr 08, 2009 2:18 am
by inyerface
guys, where is fe_showcart?