Hi:
I want to be able to use php include file inside a product description.
I want ot ad a sizing chart in html that I can edit later if it changes. I would like to add this to the bottom of all my descriptions.
It is not working.
Anyone have input the code I have tried is as follows: The code does not throw up errors just no sizing chart
put the code within {php}{php}
The above did not work either. No errors just nor showing the html
The {php} tag just tells smarty to parse the code as PHP, no need for smarty variables within the code. I can’t help much further as I don’t code in php too often.
[quote name=‘jknapp’]
The above did not work either. No errors just nor showing the html[/QUOTE]
The closing tag was not quite right. You might want to try again:
[B]{php}[/B][B]{[COLOR="Red"]/[/COLOR]php}[/B]
Bob
when possible put the includes in the …/controllers/products.php file and not the smarty templates.
hey sno im trying to put php with javascript inside, i try to find what you mention before the controllers/products.php where is it?
i try jobosales using {php} in html block it doesnt show anything inside, or i am wrong?
I’m trying to include a file into a new Block I made, its a HTML style block… is it possible?
If not with the blocks section of the admin, how?