Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

add php code in product description


Guest

Recommended Posts

Posted

Hi!

 

How can I add php code in product description area (administration site)? I try to do it, but in store product description the code is not working.

Posted

This is possible, but I'd highly recommend against trying to do something like this. Can you give more description as to what you want to do? There's nearly always an alternative solution to trying to run data as code.

Contributions

 

Discount Coupon Codes

Donations

Posted

I want to put this php code into the product description:

 

<?php include "somefilename.php"; ?>

 

Is this possible, or have you another solution?

 

Thanks

Posted

A better way would be to create a custom field called 'include_file' or something similar. You'd create this as an additional field in the products table and then modify admin/categories.php to allow you to enter 'somefile.php' in this field. Then you modify the products_info.php file to include the file in the 'include_file' field for that product. It's a much safer way of doing things. (And it's faster.)

Contributions

 

Discount Coupon Codes

Donations

Archived

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

×
×
  • Create New...