Shape 5

Joomla Templates => Your Store - July 2007 - Club => : iturea June 12, 2008, 01:37:50 AM



: lytebox in Your Store?
: iturea June 12, 2008, 01:37:50 AM
Dear all,

Does anybody know if it is possible to have the nice 'amped up lytebox' feature in the Your Store template, like in eMercantillism ?

I need something for Your Store to show the VirtueMart images in the same nice way like in eMarcantilism....

Thanks and best regards!
Maaike



: Re: lytebox in Your Store?
: jonahh June 12, 2008, 12:24:59 PM
Hello,

Sure, just grab "lytebox.js" and "s5_vm_product_show.js" from the 1.0.x version of etensity and place these files in the JS folder of the Your Store template.


Add the following line of code right before you closing body tag:

:
<script type="text/javascript" language="javascript" src="<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/yourstore/js/lytebox.js"></script></script>

Add the following line of code right before you closing body tag:

:
<script type="text/javascript" language="javascript" src="<?php echo $mosConfig_live_site;?>/templates/yourstore/js/s5_vm_product_show.js"></script>

Regards,


: Re: lytebox in Your Store?
: iturea June 12, 2008, 02:37:43 PM
Dear Jonah,

Many thanks for your fast response and excellent support again!
Sorry, one last question, I added both lines to bottom of the index.php file of the YourStore template, but nothing changed... Do I need to modify something else?

(By the way, It looks like in the demo of Etensity, the lytebox feature is not enabled too (in Firefox a normal image display shows up, not the lytebox).
The link in the Etensity demo refers to eMercantilism, I am not sure if that's right?
"VirtueMart Product Zoom Lytebox:
Go to product and click the image ")

Best regards and thanks,
Maaike


: Re: lytebox in Your Store?
: jonahh June 16, 2008, 10:35:03 AM
Hello Maaike,

Perhaps the javascript didn't load for you in eTensity but the lytebox is enabled. 

Do you have a URL to your site that you could post?

Thanks,


: Re: lytebox in Your Store?
: iturea June 16, 2008, 10:54:54 AM
Dear Jonah,
Many thanks for your reply, please see this link:
http://www.artimart.com/index.php?page=shop.product_details&flypage=shop.flypage&product_id=42&category_id=2&manufacturer_id=0&option=com_virtuemart&Itemid=1

Best regards,
Maaike


: Re: lytebox in Your Store?
: jonahh June 16, 2008, 11:18:14 AM
You have the Javascript commented out at the bottom of your index.php file, thats why its not working.  You need to remove the "<!-- "  and "-->" before and after each file.  For example you have:

:
<!-- <script type="text/javascript" src="http://www.artimart.com/templates/yourstore/js/lytebox.js"></script> 
 -->

It should be:


:
<script type="text/javascript" src="http://www.artimart.com/templates/yourstore/js/lytebox.js"></script> 

Regards,


: Re: lytebox in Your Store?
: iturea June 16, 2008, 01:26:49 PM
Thanks Jonah,
I temporarily commented it out, since I added these lines of code elsewhere in the index.php.
I have now added them at the bottom too and in Firefox it sometimes works (but without the 'close' button in the right corner), however in IE it's still not working...
sorry, hope you have another idea?
Thanks and best regards!
Maaike


: Re: lytebox in Your Store?
: jonahh June 18, 2008, 10:21:03 AM
I just tried this page in IE and FF and it worked the second time I clicked it.  The first it did the old school popup style.  It might be because the lytebox didn't completely load the first time I tried it.

http://www.artimart.com/index.php?page=shop.product_details&category_id=3&flypage=shop.garden_flypage&product_id=21&option=com_virtuemart&Itemid=1

I noticed you have a bunch of calls to load the lytebox at the bottom of the index.php file.  I would take all of these out because you already have the lytebox being called at the top of your index.php file and thats all you need.

Regards,