Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Extra UPDATE button in your cart.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 06-25-2003, 08:21 AM
 
YuriC YuriC is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 66
 

Default 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

__________________
4.3.8
Reply With Quote
  #2  
Old 06-26-2003, 09:14 AM
 
need300z need300z is offline
 

Member
  
Join Date: May 2003
Posts: 16
 

Default

where would you put this code?
Reply With Quote
  #3  
Old 06-26-2003, 09:59 AM
 
YuriC YuriC is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 66
 

Default 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)
__________________
4.3.8
Reply With Quote
  #4  
Old 07-07-2003, 06:09 PM
 
stryker898 stryker898 is offline
 

Senior Member
  
Join Date: Jan 2003
Posts: 113
 

Default

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

Ahhh the little changes that makes WORLDS of difference!

Chris
__________________
Never take life too seriously, cause none of us are getting out of here alive!
Reply With Quote
  #5  
Old 05-15-2004, 10:47 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

For 3.5.7

skin1/customer/main/cart.tpl


Very useful and recommended!
Reply With Quote
  #6  
Old 02-04-2005, 12:39 PM
 
jkirkpatrick jkirkpatrick is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 193
 

Default

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.

Jennifer
__________________
Jennifer Kirkpatrick
X-Cart Pro Version 4.4.1
AND
X-Cart Gold Version 4.1.9
Reply With Quote
  #7  
Old 02-16-2005, 02:04 AM
 
andreas04031 andreas04031 is offline
 

Advanced Member
  
Join Date: Jun 2004
Location: Dallas, TX
Posts: 64
 

Default

Hi Jeniffer,
ver 4.0.11

customer/main/cart.tpl

around line 67

put this code

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

right after

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

and before

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

Beside every delete item button is now an update button, Andy
__________________
X-Cart version 3.5.9 (online)
X-Cart Version 4.0.19 (online)
X-Cart Version 4.1.3 (in dev)
PHP 4.4.4
MySQL 4.1.21
Reply With Quote
  #8  
Old 02-16-2005, 06:28 AM
 
jkirkpatrick jkirkpatrick is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 193
 

Default

Thank you!
__________________
Jennifer Kirkpatrick
X-Cart Pro Version 4.4.1
AND
X-Cart Gold Version 4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:28 AM.

   

 
X-Cart forums © 2001-2020