| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
embedded static pages, html only? | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
I would like to run a simple php photo gallery as an embedded page from within x-cart.
However, it appears that only .html embedded static pages are created. Is this correct? Can someone point me in the right direction. Big Thanks!
__________________
X-Cart version 4.1.8 Operation system Linux location - a blue state |
|||||||
|
#2
|
|||||||
|
|||||||
|
You can if you copy the home.tpl file and rename it something else eg, photo_gallery.tpl get rid of the line home_main.tpl, where that was you can put you php code etc.
The in the actual customer php which call the tpl files copy home.php rename it photo_gallery.php and replace the line $smarty->display("customer/home.tpl"); with $smarty->display("customer/photo_gallery.tpl"); this should allow you to have your photo gallery page but with the x-cart features as well. hope that helps. sorry if it seems rather rushed. jez
__________________
X-Cart 4.0.17 |
|||||||
|
#3
|
|||||||
|
|||||||
|
thanks for the reply. I follow all of that.
My next question is can I put php code directly in a .tpl page? so on photo_gallery.tpl - in that area between: do I simply insert all the php code? or must I do an include. What is the syntax for that? Sorry, I've not mixed php and smarty before.
__________________
X-Cart version 4.1.8 Operation system Linux location - a blue state |
|||||||
|
#4
|
|||||||||
|
|||||||||
|
to use php code in smarty you can use
{php} echo "here is my php code"; {/php} In this case, you'd be better doing an include, or you could do a php include {php} include "file.php"; {/php} |
|||||||||
|
#5
|
|||||||||
|
|||||||||
|
FunkyDunk has a simple gallery mod for X-Cart @ http://www.prodynamix.co.uk. I used it for a while and it is good for a simple mod.
|
|||||||||
|
#6
|
|||||||
|
|||||||
|
Thanks Jon - that is just the info I need.
Thanks adpboss - I went ahead and ordered funkydunk's mod. Just what I was looking to do.
__________________
X-Cart version 4.1.8 Operation system Linux location - a blue state |
|||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||