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)
-   -   Display - Dont Display certain items on certain pages (https://forum.x-cart.com/showthread.php?t=37840)

uglysign 02-25-2008 05:37 PM

Display - Dont Display certain items on certain pages
 
I've been tinkering with different areas of the skin1 template. Still learning this smarty thing.

I have this inline microcart that just reads # item(s) : $0.00 thats all and
have it placed in the head.tpl.

When I go to the cart page it's still there of course.

What would be the {code of smarty} to make it {*not display*} for that page view and resume showing elsewhere.


I ask this because not only the above but I have other things that I'd like NOT to show on certain pages.

Possible help here?? :D/



Is this it... seems to work. :oops:

Quote:

{if $main ne "cart"}

code... yada yada

{/if}

Yurij 02-27-2008 12:26 AM

Re: Display - Dont Display certain items on certain pages
 
How do you connect your "tpl" - file ()?
Which file inserted
PHP Code:

{include file ="......" 



PS. To familiarize possible modes open file "skin1/customer/home_main.tpl"

or

insert the temporary lines in skin1/head.tpl, for the understanding of the process:

PHP Code:

mode = {$mode}<br>
main = {$main}<br>
chekoutestep = {$checkout_step


uglysign 02-27-2008 03:45 PM

Re: Display - Dont Display certain items on certain pages
 
Quote:

Originally Posted by Yurij
How do you connect your "tpl" - file ()?
Which file inserted
PHP Code:

{include file ="......" 



I ended up putting it inside head.tpl at bottom. Seems to work ok.
It shows on all products pages, not on checkout.
BUT, with One Page Checkout, it shows. :o

Quote:

PS. To familiarize possible modes open file "skin1/customer/home_main.tpl"

or

insert the temporary lines in skin1/head.tpl, for the understanding of the process:

PHP Code:

mode = {$mode}<br>
main = {$main}<br>
chekoutestep = {$checkout_step



Say thats neat. I've been trying to see whats what in a cpl of files. The nitty gritty of the .php files is a bit cryptic to me but i keep searching the forums to see if anything relates to what im after. If it doesnt work, then its not meant for me. Thanks holub for some insight.


All times are GMT -8. The time now is 11:49 PM.

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