PrettyPhoto

Hi All,



Fairly new to CS-Cart as I’m picking up some one elses work.



I’m trying to use PrettyPhoto to create a Gallery of images. But I’m pretty much stuck at the first hurdle :)



I don’t know where to put the code, I’ve tried various places and the best result I’ve had is it doesnt work, the worst result it takes the site down with script errors!



The below is taken from the prettyPhoto website

Script needed



First include the jQuery library, prettyPhoto javascript and the prettyPhoto CSS in the head of the page(s) where you want to use prettyPhoto.




Then, initialize prettyPhoto. Put the following code before the closing tag of your body ()

Ideally I would like prettyphoto to be available from all the pages and not just the gallery as well

Could anyone advise where I need to add both lots of code please??

Thank you for your time.

[quote name=‘Venno’ timestamp=‘1335179516’ post=‘135280’]

Hi All,



Fairly new to CS-Cart as I’m picking up some one elses work.



I’m trying to use PrettyPhoto to create a Gallery of images. But I’m pretty much stuck at the first hurdle :)



I don’t know where to put the code, I’ve tried various places and the best result I’ve had is it doesnt work, the worst result it takes the site down with script errors!



The below is taken from the prettyPhoto website

Script needed



First include the jQuery library, prettyPhoto javascript and the prettyPhoto CSS in the head of the page(s) where you want to use prettyPhoto.




Then, initialize prettyPhoto. Put the following code before the closing tag of your body ()

Ideally I would like prettyphoto to be available from all the pages and not just the gallery as well

Could anyone advise where I need to add both lots of code please??

Thank you for your time.
[/quote]

If you are using version 2.2.4 then prettyPhoto is already built into CS-Cart. Just go into Appearance settings and change the default image previewer to prettyPhoto.

Ahh yes, I've just found that. Would you happen to know the code required to get this to work on pages other than products? The standard from the prettyphoto site



This is the title



Doesn't seem to work

[quote name='Venno' timestamp='1335189092' post='135294']

Ahh yes, I've just found that. Would you happen to know the code required to get this to work on pages other than products? The standard from the prettyphoto site



This is the title



Doesn't seem to work

[/quote]



I would check view the source on a product page and then look in the product tpl to see how they implemented it in CS.