supertheman7
Member
Posted 2 years ago #
Okay so this is what I want to do. In WP e-Commerce I would like to run any type of Javascript or HTML on a product page.
For example I would like to embed a Youtube video on a product page. Also I am getting annoyed how I can't just put in any type of HTML into a product page.
So how do I do this?
supertheman7
Member
Posted 2 years ago #
Ok I have found a fix.
All you have to do is open up "homepage_products_functions.php" (example.com/wp-content/plugins/wp-e-commerce/homepage_products_functions.php). Then go to line 160.
There should be a bit of code that looks like this:
$output .= nl2br(stripslashes($product['additional_description'])) . "";
Replace it with the following:
$output .= stripslashes($product['additional_description']) . "";
Save the file and make sure it has been uploaded to your site. Then whenever you put any Javascript or HTML code into the Additional Description field it will appear on the product page as it should.