• Resolved supertheman7

    (@supertheman7)


    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

    (@supertheman7)

    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.