| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How do I include contents of a php page into a product's detail page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() How do I include the contents of a php page into a product's "Detailed description" area?
I'd like to be able to paste an include statement in the "Detailed description" section of a Product's Details, and have it post the html contents of the php page. I uploaded a php page to my server, then pasted various include statements in "Detailed description" section of a product, but it didn't show on the product's page. These are what I tried: <? include('https://www.websitedomain.com/filename.php') ?> {include file="https://www.websitedomain.com/filename.php"} I'm using X-Cart Gold Version 4.4.3 * Do anyone know the solution? Thanks in advance.
__________________
Using *Upgrading Dev Copy of 4.4.3 to 4.6.3 (currently at 4.5.4) X-Cart Gold Version 4.6.3 (Fresh Install) X-Cart Gold Version 4.4.4 X-Cart Gold Version 4.4.3 Godaddy Shared Linux Hosting PHP 5.3.24 MySQL server 5.5.33-log MySQL client 5.5.19 ----------------------------------------------- |
|||||||
#2
|
|||||||||
|
|||||||||
![]() You can't do that. You can include smarty code in the description if you want to and then use 'eval' smarty to show description. If you want to include php code in smarty you have to use
{php} php code here {/php} in the template (not in the description) but this is not recommended at all
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#3
|
|||||||
|
|||||||
![]() Quote:
Is it safe to Embed the php page into the description area of a product? I have a php page with some sizing & measurement info & a image diagram on it, that I want to post on some products pages. But to save time from having to retype it each time, I figured i could embed it. That way if i wanted to update the sizing info, I could change one page to have it change on the product pages i put it on.
__________________
Using *Upgrading Dev Copy of 4.4.3 to 4.6.3 (currently at 4.5.4) X-Cart Gold Version 4.6.3 (Fresh Install) X-Cart Gold Version 4.4.4 X-Cart Gold Version 4.4.3 Godaddy Shared Linux Hosting PHP 5.3.24 MySQL server 5.5.33-log MySQL client 5.5.19 ----------------------------------------------- |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Just include that php page in product.php and assign its result to smarty, then you can use it on the template
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#5
|
|||||||
|
|||||||
![]() Quote:
Umm ok. Will that appear on All the Product pages?? Because I Do Not want it on all product pages, only on certain product pages.
__________________
Using *Upgrading Dev Copy of 4.4.3 to 4.6.3 (currently at 4.5.4) X-Cart Gold Version 4.6.3 (Fresh Install) X-Cart Gold Version 4.4.4 X-Cart Gold Version 4.4.3 Godaddy Shared Linux Hosting PHP 5.3.24 MySQL server 5.5.33-log MySQL client 5.5.19 ----------------------------------------------- |
|||||||
#6
|
|||||||||
|
|||||||||
![]() It will be on all product pages yes unless you specify some kind of flag to include it on specific pages only
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#7
|
|||||||
|
|||||||
![]() Quote:
I stated before I wanted it on "some" specific pages, Not all pages.
__________________
Using *Upgrading Dev Copy of 4.4.3 to 4.6.3 (currently at 4.5.4) X-Cart Gold Version 4.6.3 (Fresh Install) X-Cart Gold Version 4.4.4 X-Cart Gold Version 4.4.3 Godaddy Shared Linux Hosting PHP 5.3.24 MySQL server 5.5.33-log MySQL client 5.5.19 ----------------------------------------------- |
|||||||
#8
|
|||||||||
|
|||||||||
![]() YOu have to use conditional statement to show it on specific pages only
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
|||
X-Cart forums © 2001-2020
|