| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
URGENT - Need to use PHP in html description | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I am trying to use a php script to hash urls in my product description but it requires that I use this as a link in the HTML description.....
<a href="<?php linkurl('demo.mp3');?>">Download Here</a> But it doesn't seem to work. Can someone tell what php/tpl to edit to allow the html description field to accept php tags. the developer of the script seems to think that the html description is not accepting the open php tag ie < I am desperately trying to get this to work so all help is greatfully receieved
__________________
xcartgold 4.5.4 xcartgold 4.5.5 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() You can't use php code in html description. Suggesting you do so leads me to wonder how much x-cart experience your developer has.
|
|||||||||
#3
|
|||||||
|
|||||||
![]() The developer is not an X-cart developer, he is the writer of link protection code and suspected that his code wouldn't work because the field didn't accept php.
Do you think X-cart tech support will be able to make the HTML description accept php or is it one of those things that can't be done?
__________________
xcartgold 4.5.4 xcartgold 4.5.5 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() For php execution inside template you can use
Code:
__________________
Regards, Victor Dubiniuk X-Cart Skins Store ![]() - twenty two different skins for 4.1.x and 4.2.x; - 4.3.x compatible versions are available; - refresh you store now! Smart menu X-Cart add-on for 4.1.8 - 4.3.x Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x |
|||||||||
#5
|
|||||||
|
|||||||
![]() Sorry, this doesn't seem to work inside the HTML description field. You mentioned this for execution inside a template not the HTML description field.
Anyone? Before I take up technical support who have said they can tell me the way to put php in the html description. Or is this what they are going to give me? Thanks for the reply anyway Let me know if you come up with anything else
__________________
xcartgold 4.5.4 xcartgold 4.5.5 |
|||||||
#6
|
|||||||||
|
|||||||||
![]() Why not to hash url in product.php and pass it to template as variable?
It has more sense to my mind.
__________________
Regards, Victor Dubiniuk X-Cart Skins Store ![]() - twenty two different skins for 4.1.x and 4.2.x; - 4.3.x compatible versions are available; - refresh you store now! Smart menu X-Cart add-on for 4.1.8 - 4.3.x Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x |
|||||||||
#7
|
|||||||
|
|||||||
![]() That's what the script I am using does but externally. It allows me to hash paricular urls in my product description, that is why I need to put the php tag in the html description.
__________________
xcartgold 4.5.4 xcartgold 4.5.5 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|