Jump to content

Java script in product description?


MyCAB

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? 

http://mykidsmusic.net/store/personalized-music-cds/let-s-play-and-learn.html

 

Link to comment
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...