VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: nsepe on July 08, 2013, 20:14:29 PM

Title: Adding HTML/javascript path to product description/image
Post by: nsepe on July 08, 2013, 20:14:29 PM
Hi there,

I would like to have this html/javascript/image series called up in my product description. It can be part of the description, but preferably in place of the image. I have no idea if this can be dome or is possible. Here is the html page:

http://casite-511697.cloudaccess.net/components/com_virtuemart/front-rotate-3D/sample.html

Anyone have any idea how I can do this in a clean way?

Thanks!  ???

Nancy

Title: Re: Adding HTML/javascript path to product description/image
Post by: PRO on July 08, 2013, 20:56:50 PM
is this just 1 product?

how many slideshows do you have?
Title: Re: Adding HTML/javascript path to product description/image
Post by: nsepe on July 09, 2013, 16:23:59 PM
Hi there! Thanks for responding to my question. It is just one product, though there will be another animation. The intention is for both "animations" to be viewable on this page above each product, respectively:

http://casite-511697.cloudaccess.net/index.php/products/copper/telco/512-ult-term-block

I am also open to having them viewed in each product page only, whatever works at this point I think I will be happy with!

FYI, I am using Joomla 2.5.4.

THANKS.  :)

Nancy
Title: Re: Adding HTML/javascript path to product description/image
Post by: PRO on July 10, 2013, 15:08:36 PM
do you have the html?
Title: Re: Adding HTML/javascript path to product description/image
Post by: nsepe on July 10, 2013, 20:56:35 PM
Yes, this is the html:

      <!-- Begin 3D Fuze . Processed at http://FotoFuze.com -->
      <div id='3EB93F8A-ADAC-11E2-906F-A7D920D14AE3' style='width:279px;height:280px;background-image:url(E67E6442-ADAD-11E2-B140-8FA0DE326AFC.jpg)'></div><script type='text/javascript' src='3EB93F8A-ADAC-11E2-906F-A7D920D14AE3.js' defer='defer'></script>
      <!-- End 3D Fuze -->
Title: Re: Adding HTML/javascript path to product description/image
Post by: PRO on July 10, 2013, 22:55:04 PM

I am still not quite understanding, WHEN do you want them to show?
how do you want to differentiate when they show or do not show?

I wrote this little bit to show it BY product ID

I placed this code in my product template & it worked


  <?php
  if (($this->product->virtuemart_product_id==133) OR ($this->product->virtuemart_product_id==134)){?><div id='3EB93F8A-ADAC-11E2-906F-A7D920D14AE3' style='width:279px;height:280px;background-image:url(E67E6442-ADAD-11E2-B140-8FA0DE326AFC.jpg)'></div>
  <script type='text/javascript' src='3EB93F8A-ADAC-11E2-906F-A7D920D14AE3.js' defer='defer'></script>';
     <?php }?>

http://forum.virtuemart.net/index.php?topic=90935.0
http://forum.virtuemart.net/index.php?topic=92756.0
Title: Re: Adding HTML/javascript path to product description/image
Post by: nsepe on July 11, 2013, 17:17:15 PM
Okay...I would like them to show where the "X" is in the attached 2 screen shots.



[attachment cleanup by admin]
Title: Re: Adding HTML/javascript path to product description/image
Post by: PRO on July 11, 2013, 18:46:40 PM
thats on the category page & not the product page


place your code in the category descriotion.

Make sure your ojoomla editor allows for the code & does not strip it
Title: Re: Adding HTML/javascript path to product description/image
Post by: jenkinhill on July 11, 2013, 18:55:44 PM
I generally use the Soucerer plugin when adding code into an editor window to be sure it does not get stripped. http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-content/5051
Title: Re: Adding HTML/javascript path to product description/image
Post by: nsepe on July 12, 2013, 16:18:58 PM
Thanks every one! I will try! :D