[Skip to main content](#vessel-content)

#   Shadowbox integration, local use

##

- **[michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile")**
- [![michaelmyth's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33888-michaelmyth "View michaelmyth's Profile") Topic Author
- [ Offline](/forum/user/33888-michaelmyth)

Less More

- Posts: 42
- Thank you received: 0
-
-

8 years 7 months ago [\#290554](#290554) by [michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile")  *[Shadowbox integration, local use](/forum/26-product-category-display/894300-shadowbox-integration-local-use#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!")* was created by *[michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQzMDAtc2hhZG93Ym94LWludGVncmF0aW9uLWxvY2FsLXVzZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

8 years 7 months ago [\#290557](#290557) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shadowbox integration, local use](/forum/26-product-category-display/894300-shadowbox-integration-local-use#290557 "-- 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!")*

Hi,

No, that's all you need to do.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQzMDAtc2hhZG93Ym94LWludGVncmF0aW9uLWxvY2FsLXVzZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile")**
- [![michaelmyth's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33888-michaelmyth "View michaelmyth's Profile") Topic Author
- [ Offline](/forum/user/33888-michaelmyth)

Less More

- Posts: 42
- Thank you received: 0
-
-

8 years 7 months ago -  8 years 7 months ago [\#290662](#290662) by [michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile")  Replied by *[michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile")* on topic *[Shadowbox integration, local use](/forum/26-product-category-display/894300-shadowbox-integration-local-use#290662 "-- 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!")*

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](/forum/user/33888-michaelmyth "View michaelmyth's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQzMDAtc2hhZG93Ym94LWludGVncmF0aW9uLWxvY2FsLXVzZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

8 years 7 months ago [\#290663](#290663) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shadowbox integration, local use](/forum/26-product-category-display/894300-shadowbox-integration-local-use#290663 "-- 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!")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQzMDAtc2hhZG93Ym94LWludGVncmF0aW9uLWxvY2FsLXVzZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile")**
- [![michaelmyth's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33888-michaelmyth "View michaelmyth's Profile") Topic Author
- [ Offline](/forum/user/33888-michaelmyth)

Less More

- Posts: 42
- Thank you received: 0
-
-

8 years 7 months ago -  8 years 7 months ago [\#290744](#290744) by [michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile")  Replied by *[michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile")* on topic *[Shadowbox integration, local use](/forum/26-product-category-display/894300-shadowbox-integration-local-use#290744 "-- 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!")*

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.

[ ![screen&#95;2018-04-03.png](/forum/attachment/43241) ](/forum/attachment/43241 "...2018-04-03.png")

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

thanks!

- [ ![screen&#95;2018-04-03.png](/forum/attachment/43241) ](/forum/attachment/43241 "...2018-04-03.png") [ ](/forum/attachment/43241?download=1 "...2018-04-03.png")

Last edit: 8 years 7 months ago by [michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQzMDAtc2hhZG93Ym94LWludGVncmF0aW9uLWxvY2FsLXVzZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

8 years 7 months ago [\#290745](#290745) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shadowbox integration, local use](/forum/26-product-category-display/894300-shadowbox-integration-local-use#290745 "-- 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!")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQzMDAtc2hhZG93Ym94LWludGVncmF0aW9uLWxvY2FsLXVzZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.078 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
