| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Static Page and Smarty | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I want to create a static page to use as the entry point for our website but when I create a static page through the admin tool, if the page is not embeded I cant have it parse smarty code. Is there a way around this?
__________________
X-Cart DB Version: 4.1.10 GOLD Addons: Gift Registry (enabled); RMA (enabled); Special Offers (enabled); |
|||||||
#2
|
|||||||
|
|||||||
![]() Are you SURE you want to use a splash page? Those are SEO killers....
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Really? Darn! I guess spash page is not what I mean per se. I guess what I mean is a customized home page. is that the same thing?
__________________
X-Cart DB Version: 4.1.10 GOLD Addons: Gift Registry (enabled); RMA (enabled); Special Offers (enabled); |
|||||||
#4
|
|||||||
|
|||||||
![]() just to give you an idea of what I want to do...
https://www.greenpeanursery.com/cart/splash.html then I want to customize the store to have that header and menu and then only have the subcategories show up on the side once in the store. does that make sense?
__________________
X-Cart DB Version: 4.1.10 GOLD Addons: Gift Registry (enabled); RMA (enabled); Special Offers (enabled); |
|||||||
#5
|
|||||||
|
|||||||
![]() You can do that with simple {if} statements. To hide something on the home page or show something on the home page only, use this code:
{if $main eq "catalog" and $current_category.category eq ""} Stuff you want to show on the home page only {else} Stuff you want to show on every page BUT the home page {/if}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#6
|
|||||||
|
|||||||
![]() i want to create a new header and footer to be used throughout, but then I want the center portion to be unique for the home page with no side boxes.
__________________
X-Cart DB Version: 4.1.10 GOLD Addons: Gift Registry (enabled); RMA (enabled); Special Offers (enabled); |
|||||||
#7
|
|||||||
|
|||||||
![]() does this mean there are no ways to display smarty tags in random pages?
__________________
X-Cart DB Version: 4.1.10 GOLD Addons: Gift Registry (enabled); RMA (enabled); Special Offers (enabled); |
|||||||
#8
|
|||||||
|
|||||||
![]() Then that code will work great - customer/main/welcome.tpl is the code for the home page center section, customer/home.tpl contains the sidebars.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||
|
|||||||
![]() You can't display smarty without the smarty engine - non-embedded static pages are just plain html, no php at all.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|