Shadowbox integration, local use

  • Posts: 42
  • Thank you received: 0
7 years 3 weeks ago #290554

-- 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.

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
7 years 3 weeks ago #290557

Hi,

No, that's all you need to do.

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

  • Posts: 42
  • Thank you received: 0
7 years 2 weeks ago #290662

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: 7 years 2 weeks ago by michaelmyth.

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
7 years 2 weeks ago #290663

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.

  • Posts: 42
  • Thank you received: 0
7 years 2 weeks ago #290744

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!

Attachments:
Last edit: 7 years 2 weeks ago by michaelmyth.

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
7 years 2 weeks ago #290745

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.069 seconds
Powered by Kunena Forum