Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

using an include in the product description


CentralMass

Recommended Posts

I tried to do this with standard php code. But no luck. It seems that the code is not rendering at all and it is just appearing in the source as the include was written.

 

Can anyone tell me if I can enter an include call into a description field and have that included page appear on the product info page for the specified product?

Need Hosting? Just ask!

Link to comment
Share on other sites

I have tried to enter the include into the description in many different ways. In every case it doesn't work, but if I type the url for the include into the browser bar it works fine.

 

Here is what I am trying to insert

 

 

<?php
 $id = 7;
 include("tablemaker.php");
?>

 

Now tablemaker is in the catalog folder and the same level as product_info.php.

Need Hosting? Just ask!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...