[Solved] CartMS - Problem updating Quantity of products

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
elina
Forum Members
Forum Members
Posts: 11
Joined: Wed Mar 11, 2009 8:24 am

[Solved] CartMS - Problem updating Quantity of products

Post 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
Last edited by elina on Wed Apr 01, 2009 7:45 pm, edited 1 time in total.
elina
Forum Members
Forum Members
Posts: 11
Joined: Wed Mar 11, 2009 8:24 am

Re: CartMS - Problem updating Quantity of products

Post by elina »

Pls, Cananybody help me solve this problem?
dikruo
Forum Members
Forum Members
Posts: 12
Joined: Sat Jan 24, 2009 10:12 am

Re: CartMS - Problem updating Quantity of products

Post 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
elina
Forum Members
Forum Members
Posts: 11
Joined: Wed Mar 11, 2009 8:24 am

Re: CartMS - Problem updating Quantity of products

Post 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
dikruo
Forum Members
Forum Members
Posts: 12
Joined: Sat Jan 24, 2009 10:12 am

Re: CartMS - Problem updating Quantity of products

Post by dikruo »

Your welcome Elina,

(please insert [solved] in your header)

Matthijs
inyerface
Forum Members
Forum Members
Posts: 191
Joined: Mon Nov 26, 2007 4:46 pm

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

Post by inyerface »

guys, where is fe_showcart?
Post Reply

Return to “Modules/Add-Ons”