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)
-   -   How do I control which modules appear on different pages? (https://forum.x-cart.com/showthread.php?t=11873)

Jagmeister 02-01-2005 10:43 AM

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)

cotc2001 02-01-2005 11:32 AM

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}


Jagmeister 02-01-2005 11:45 AM

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?

EZ 02-06-2005 01:11 AM

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


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

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