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

Display - Dont Display certain items on certain pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-25-2008, 05:37 PM
 
uglysign uglysign is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 70
 

Red face 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??



Is this it... seems to work.

Quote:
{if $main ne "cart"}

code... yada yada

{/if}
__________________
4.4.3
One Page Checkout :: OnSale :: Download Expander
Smart Template by X-Cart MODS
Reply With Quote
  #2  
Old 02-27-2008, 12:26 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default 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
Reply With Quote
  #3  
Old 02-27-2008, 03:45 PM
 
uglysign uglysign is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 70
 

Default 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.

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.
__________________
4.4.3
One Page Checkout :: OnSale :: Download Expander
Smart Template by X-Cart MODS
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


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 02:56 AM.

   

 
X-Cart forums © 2001-2020