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 the cart display (https://forum.x-cart.com/showthread.php?t=21994)

Grant 05-22-2006 03:41 PM

removing the cart display
 
How can I remove the cart display from all of the checkout pages except the very last one?

balinor 05-22-2006 06:02 PM

You just need to comment out the includes in each part of checkout.tpl

Grant 05-23-2006 01:45 AM

Quote:

Originally Posted by balinor
You just need to comment out the includes in each part of checkout.tpl


Wordage ;)

Grant 05-23-2006 02:51 AM

I can remove it totally from the checkout process but I do need to display it on the last page. Is there an include that says something along the lines of (if customer at checkout step 1 then dont show cart else show cart) because as far as I can tell it's either show it all the time or don't show it at all.

balinor 05-23-2006 02:59 AM

Well, the checkout template has all of the steps already in it...you just need to remove the include from whatever steps you don't want displayed.

Grant 05-23-2006 03:02 AM

Ok so what is the step code I should be looking for?

Sorry to bang on - but I'm learning slowly ;)

Grant 05-23-2006 03:44 AM

Ok sorted it out by doing the following.

1. Commented out the cart code from checkout.tpl

2. Added the following include to checkout.tpl :

Quote:

{if $main eq "checkout"}
{include file="customer/main/singlecheckout.tpl"}{/if}

3. Created and uploaded the following singlecheckout.tpl :

Quote:

{if $payment_data.payment_method ne ""} {capture name=checkout_dialog}
<FORM action="cart.php" method="POST" name="cartform">
<INPUT type="hidden" name="paymentid" value="{$payment_data.paymentid}">

<INPUT type="hidden" name="cart_operation" value="cart_operation">

{if $config.Appearance.show_cart_details eq "Y" or ($config.Appearance.show_cart_details eq "L" and $smarty.get.paymentid ne "" and $smarty.get.mode eq "checkout")}
{include file="customer/main/cart_details.tpl"}
{else}
{include file="customer/main/cart_contents.tpl"}
{/if}

<HR noshade size="1">

{include file="customer/main/cart_totals.tpl"}




{if $js_enabled}
{include file="buttons/update.tpl" href="javascript: document.cartform.submit()" js_to_href="Y"}
{else}
{include file="submit_wo_js.tpl" value=$lng.lbl_update}
{/if}

</FORM>

{/capture}
{include file="dialog.tpl" title="Your cart" content=$smarty.capture.checkout_dialog extra="width=100%"}
{/if}




You can see this in action at www.wyzehop.com

That seems to do the job nicely. If I've missed anything or this is flawed in some way please let me know.

balinor 05-23-2006 03:49 AM

Nice job :)

Grant 05-23-2006 03:53 AM

Quote:

Originally Posted by balinor
Nice job :)


So that is all correct? Surely not :lol:

balinor 05-23-2006 04:04 AM

If it works and looks good to you, it works :)


All times are GMT -8. The time now is 10:31 AM.

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