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

How do I control which modules appear on different pages?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-01-2005, 10:43 AM
 
Jagmeister Jagmeister is offline
 

Member
  
Join Date: Dec 2004
Location: Colorado Springs, CO
Posts: 11
 

Default How do I control which modules appear on different pages?

I would like to know how I can control which modules appear on the various pages. My initial problem is that I have several external links on my main page and when I go to the secure checkout I get that annoying "non-secure items" warning. There is no real reason for those modules to be showing up at this point of the checkout process and I would gladly make them go away but am unsure of how to turn them off.

I am using a slightly modifed FlexyRectangle skin. Actually, I would like to completely drop the right-hand columns when processing checkouts, or replace them with some different modules. I'm guessing this will require some code. If so, which template should I be looking at modifying so I can basically say:

If Normal include ModuleList
ElseIf Checkout include OtherModuleList

Thanks!

Matt
(Getting closer to going Live)
__________________
X-Cart Version 4.0.9
Linux/Apache Server
Reply With Quote
  #2  
Old 02-01-2005, 11:32 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

you would use if statements , but it looks like you already know that, for example this is the code I use to show a menu item on the products page but not on the more detailed product page

Code:
{if $main eq "product" AND "products"} { include file="cartmods/recently_viewed.tpl"} {/if}
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #3  
Old 02-01-2005, 11:45 AM
 
Jagmeister Jagmeister is offline
 

Member
  
Join Date: Dec 2004
Location: Colorado Springs, CO
Posts: 11
 

Default

Hmmm... I think I see what you mean. It looks like I need to get more familiar with the variables. Is there a list or reference to them anywhere?

Is it fairly safe to assume that home.tpl will always be the top level no matter where I am in the site? And that I will have to control the flow of what is displayed from inside home.tpl?
__________________
X-Cart Version 4.0.9
Linux/Apache Server
Reply With Quote
  #4  
Old 02-06-2005, 01:11 AM
 
EZ EZ is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Old Bridge, NJ
Posts: 96
 

Default Hiding the right column

If someone can I need a little more help then the posts above to hide the column on certain product Detail pages. I just want to hide it on certian product detail pages not all of them.

Thanks
__________________
Never believe anything you hear and only half of what you see!

Edward J Ziejka
www.innervisionpc.com
X-Cart Gold 4.1.3
Unix
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 01:17 PM.

   

 
X-Cart forums © 2001-2020