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

Removing cart totals from shopping cart

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-15-2006, 11:00 AM
 
mikalou mikalou is offline
 

Advanced Member
  
Join Date: Jun 2005
Posts: 71
 

Default Removing cart totals from shopping cart

In the shopping cart, I only want to show the cart sub totals and not tax, shipping, etc.

I've tried replacing the line: {include file="customer/main/cart_totals.tpl"} with:{include file="currency.tpl" value=$cart.display_subtotal} in the file /customer/main/cart.tpl and it looks good, BUT... updating quantities doesn't work now. No error messages.

I'm assuming the update quantity function in /cart.php is where the problem lies but haven't been able to nail down where exactly.

Any Help?
__________________
X-Cart Gold 4.2.2 - 3.1.19
Reply With Quote
  #2  
Old 08-15-2006, 12:55 PM
 
jdiehl jdiehl is offline
 

eXpert
  
Join Date: Dec 2003
Location: Kansas City, MO
Posts: 270
 

Default

Why don't you just open that file and comment out the areas that display those totals? That seems like the simplest method. Then all the functionality will stay in place and look the same as you want at the same time.
__________________
Jason Diehl

Finding Cures for Your Online Headaches: http://www.internetmedicineman.com/
Reply With Quote
  #3  
Old 08-15-2006, 01:05 PM
 
mikalou mikalou is offline
 

Advanced Member
  
Join Date: Jun 2005
Posts: 71
 

Default

You mean comment out code for the tax, shipping, etc in the customer/main/cart_totals.tpl file?
But then those values wont display in the checkout page (i.e. cart.php?mode=checkout)
I want those values to show only in the checkout page but not the shopping cart page.
__________________
X-Cart Gold 4.2.2 - 3.1.19
Reply With Quote
  #4  
Old 08-15-2006, 01:59 PM
 
mikalou mikalou is offline
 

Advanced Member
  
Join Date: Jun 2005
Posts: 71
 

Default

In file:/customer/main/cart_totals.tpl

I placed this code around any cart display values that I dont want displayed in the shopping cart. Seems to work.
Code:
{if $smarty.get.mode ne ''}{/if}
This code checks the querystring to see if there is a value for "mode". If the checkout page is displayed the address would be /cart.php?mode=checkout
__________________
X-Cart Gold 4.2.2 - 3.1.19
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 03:07 AM.

   

 
X-Cart forums © 2001-2020