Guest Posted January 10, 2006 Posted January 10, 2006 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.
kgt Posted January 10, 2006 Posted January 10, 2006 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
Guest Posted January 10, 2006 Posted January 10, 2006 I want to put this php code into the product description: <?php include "somefilename.php"; ?> Is this possible, or have you another solution? Thanks
kgt Posted January 10, 2006 Posted January 10, 2006 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.