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

hooter 12-07-2005 12:39 PM

oops! :oops:
I took too long to make my carefully crafted :D response and balinor beat me to it! 8)

Lionel 12-07-2005 12:42 PM

nevertherless, thanks for telling me about that mod. I could use it somewhere else.

Lionel 12-07-2005 08:09 PM

Quote:

Originally Posted by balinor
Using a smarty {if} statement like this:

{if $smarty.get.pageid eq "1" or $smarty.get.pageid eq "2"}Display this{else}Display this{/if}

Replace 1 and 2 with the actual number of the static pages you want to hide the menus for.


I tried that with pages_menu.tpl, it does not work

correction. It works, but only when browsing pages.php

got it to work with
{if $pages_menu[pg].pageid eq "2"

Lionel 12-11-2005 03:24 PM

sorry to come back on that, but I really need an empty.php. I am a vbulletin guy and all I need is xcart top and bottom, so i could put my code in middle.

For example I duplicated pages.php into states.php and created a dropdown displaying all states. On select it gives me states.php?state=$stateid. I altered states table to include a description, and all i need is to display that text.

I could also use an empty.php to replace index.php with relevant content.

Lionel 12-11-2005 08:32 PM

Allright I figured it out. That Smarty is really fun.


All times are GMT -8. The time now is 12:55 AM.

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