| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
How to include embedded page in .tpl file | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
How to include embedded page in .tpl file
Hello Guys,
I would like to include the content of an embedded page into a .tpl file In customer/main/subcategories.tpl i have added this code a the top of the page : Code:
If the cateogry is 244 i would like to call the content of an embedded page instead of the subcategories list. Do you have any idea how i could do this? Thanks a lot
__________________
X-Cart version 4.2 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: How to include embedded page in .tpl file
When you create a embedded page you will get the .html link As Page filelike this: C:\wamp\www\xcart/skin1\pages\US\page_001.html)
So, Try to use like this.I hope this will work. {if $cat eq 244} {include file="pages/US/page_001.html" } Quote:
__________________
MercuryMinds Technologies Development Team, Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com X-Cart Mailchimp Ecommerce 360 Plugin/integration module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) Smasher, a smart search engine for x-cart store (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) One Page Checkout (OPC) - X-Cart module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: How to include embedded page in .tpl file
you can also call the page like this
pages.php?pageid=8
__________________
xcart 5.1.2 |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: How to include embedded page in .tpl file
Hi Ashley,
Do you think it is possible? Because I have tried it but it just return the error, Warning: Smarty error: unable to read resource: Quote:
__________________
MercuryMinds Technologies Development Team, Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com X-Cart Mailchimp Ecommerce 360 Plugin/integration module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) Smasher, a smart search engine for x-cart store (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) One Page Checkout (OPC) - X-Cart module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: How to include embedded page in .tpl file
I don't think you can actually call the embeded page.
I think you would ahve to make a custom .tpl file, maybe pageInfo.tpl and place the embeded page info int the .tpl. then call the .tpl file instead of the subcat list.
__________________
xcart 5.1.2 |
|||||||||
#6
|
|||||||||
|
|||||||||
Re: How to include embedded page in .tpl file
You can try post 11 in this thread. Post 10 is the way to do it, but requires a little more work.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold (CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module) |
|||||||||
#7
|
|||||||
|
|||||||
Re: How to include embedded page in .tpl file
Thanks a lot Vetrivel,
It works with : {include file="pages/US/page_001.html" }
__________________
X-Cart version 4.2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|