Title: [Plugin: WP e-Commerce] Run Javascript on Product Pages
Last modified: August 19, 2016

---

# [Plugin: WP e-Commerce] Run Javascript on Product Pages

 *  Resolved [supertheman7](https://wordpress.org/support/users/supertheman7/)
 * (@supertheman7)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-run-javascript-on-product-pages/)
 * 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?

Viewing 1 replies (of 1 total)

 *  Thread Starter [supertheman7](https://wordpress.org/support/users/supertheman7/)
 * (@supertheman7)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-run-javascript-on-product-pages/#post-1456179)
 * 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.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP e-Commerce] Run Javascript on Product Pages’ is closed to
new replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [pages](https://wordpress.org/support/topic-tag/pages/)
 * [product](https://wordpress.org/support/topic-tag/product/)

 * 1 reply
 * 1 participant
 * Last reply from: [supertheman7](https://wordpress.org/support/users/supertheman7/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-run-javascript-on-product-pages/#post-1456179)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
