Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

adding a new .php to certain products


Recommended Posts

ok i want to add a new .php file to be included with only some of my products. What i basiclly am looking for is a way to add a new table like

<?php require(DIR_WS_INCLUDES . 'decah.php'); ?>

to be added into the product description so when that product is viewed it will load that php file too but for products that dont have that in its description it wont load it. I dont want to just copy the text to every product i need it in cause if i ever have to change anything in it i want it to globally change and not me go thru hours of work to change it. i added the code mentioned before to the product description but it didnt do anything, just ignored it i guess, any one have any suggestions?

Link to comment
Share on other sites

anyone have any ideas?

goto here to see what i mean. I want the whole "INSERT TEXT HERE" box a seperate .php file that i can call out in the product description, cause i dont want that box in all of my products.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...