X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Extra UPDATE button in your cart.tpl (https://forum.x-cart.com/showthread.php?t=3337)

YuriC 06-25-2003 08:21 AM

Extra UPDATE button in your cart.tpl
I've been getting a few complaints from our customers that when they change the quantity of the product in the shopping cart, nothing happens. (Duh!)

Because sometimes ppl tend not to scroll down, i've added an extra "Update" button right next to the "Delete button" iside of the shopping cart... so here it is

need300z 06-26-2003 09:14 AM

where would you put this code?

YuriC 06-26-2003 09:59 AM

Where to put hte code
Inside of cart.tpl find the first line of the code (delete button), and replace it with the code (delete and update button)

stryker898 07-07-2003 06:09 PM

Nice quick mod that will stop a little frustration...thanks for sharing your hack! :lol:

Ahhh the little changes that makes WORLDS of difference!


adpboss 05-15-2004 10:47 AM

For 3.5.7


Very useful and recommended!

jkirkpatrick 02-04-2005 12:39 PM

Has anyone got this working for 4.0.9?

I tried both code suggestions and they have the same problem - when I click either button I'm taken to my Home Page.

Thanks for any help.


andreas04031 02-16-2005 02:04 AM

Hi Jeniffer,
ver 4.0.11


around line 67

put this code


{include file="buttons/update.tpl" type="input" href="javascript: document.cartform.submit()" js_to_href="Y"}

right after


{include file="buttons/delete_item.tpl" href="cart.php?mode=delete&productindex=`$products[product].cartid`"}

and before


{if $products[product].product_options ne ''}

Beside every delete item button is now an update button, Andy

jkirkpatrick 02-16-2005 06:28 AM

Thank you!

All times are GMT -8. The time now is 10:53 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.