X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Removing cart totals from shopping cart (https://forum.x-cart.com/showthread.php?t=24112)

mikalou 08-15-2006 11:00 AM

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?

jdiehl 08-15-2006 12:55 PM

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.

mikalou 08-15-2006 01:05 PM

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.

mikalou 08-15-2006 01:59 PM

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


All times are GMT -8. The time now is 05:56 AM.

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