Jump to content

Java script in product description?

Recommended Posts

I am trying to add a java script inside the description area of my product.  This script allows customers to see what names the CDs are available in and listen to how the name sounds to make sure it sounds right.  The script is externally hosted so I cannot really change the script.  When clicking the "play" button, instead of playing the sample it is trying to add the product to the cart.  How can I fix this? 



Share this post

Link to post
Share on other sites

Not having executed any of the javascript, I would have to assume the content that is brought in by the <script> that follows the <div id="name_player"> has a <form> tag.

If so, the resultant code of the whole page would then have a nested <form> block. That nesting will cause trouble.

You could try enclosing the player code in an <iframe> block.

Or, you can try moving the closing </form> tag in the content.product.php template to just above the <hr> that separates the gallery from the product details.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now