Video on product page
-
I found this information on the forum but when I went in I cant find this section of code. I’m thinking in 3 years this has been updated. Can someone update the following please?
Previous post in forum
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 3 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.
- The topic ‘Video on product page’ is closed to new replies.