Skip to main content

Shadowbox integration, local use

8 years 7 months ago #290554 by michaelmyth
-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.5

Hi,

I would like to use shadowbox for product pages images. I know I can use the external files from your CDN, but I prefer to use it locally on my server.

For local integration of shadow box, is there anything else I need to do except adding to my template the shadowbox.js and shadowbox.css ?

thanks!

Please Log in or Create an account to join the conversation.

8 years 7 months ago #290557 by nicolas
Hi,

No, that's all you need to do.

Please Log in or Create an account to join the conversation.

8 years 7 months ago - 8 years 7 months ago #290662 by michaelmyth
Hi,

Is script order important? Your external library is loaded immediately after chosen.jquery.min.js and is working correctly. Mine is loaded after all scripts from media folder are loaded and it doesn't work.

thanks!
Last edit: 8 years 7 months ago by michaelmyth.

Please Log in or Create an account to join the conversation.

8 years 7 months ago #290663 by nicolas
Hi,

Shadowbox doesn't require JQuery so it shouldn't matter.
Are you using the exact same javascript file than we provide ?

Please Log in or Create an account to join the conversation.

8 years 7 months ago - 8 years 7 months ago #290744 by michaelmyth
Hi,

yes. I've copied the JS and CSS code from your CDN.

I've looked at your code and it looks that the script needs initialization. Please see code marked with 1 in the image.



Please let me know for what is the code marked with 2 in the image?

thanks!
Last edit: 8 years 7 months ago by michaelmyth.

Please Log in or Create an account to join the conversation.

8 years 7 months ago #290745 by nicolas
Hi,

Ah yes, I've forgot about that.
You indeed need to call shadowbox.init(); to initialize it.
The second piece of code is used for when the characteristics swap the product images on the product page when you have different images for different variants of the product. If you don't have that, then you don't need it.

Please Log in or Create an account to join the conversation.

Time to create page: 0.081 seconds
Powered by Kunena Forum