diff --git a/cartridges/cloudinary_sfra_changes/cartridge/templates/default/product/bundleDetails.isml b/cartridges/cloudinary_sfra_changes/cartridge/templates/default/product/bundleDetails.isml
index e888163..569eef9 100644
--- a/cartridges/cloudinary_sfra_changes/cartridge/templates/default/product/bundleDetails.isml
+++ b/cartridges/cloudinary_sfra_changes/cartridge/templates/default/product/bundleDetails.isml
@@ -8,12 +8,6 @@
Custom Start: include cloudinary shrinkwrap.
-
-
-
-
@@ -56,6 +50,7 @@
Custom start: add cloudinary PGW
+
diff --git a/cartridges/cloudinary_sfra_changes/cartridge/templates/default/product/productDetails.isml b/cartridges/cloudinary_sfra_changes/cartridge/templates/default/product/productDetails.isml
index 4f44126..cff3a69 100644
--- a/cartridges/cloudinary_sfra_changes/cartridge/templates/default/product/productDetails.isml
+++ b/cartridges/cloudinary_sfra_changes/cartridge/templates/default/product/productDetails.isml
@@ -8,9 +8,6 @@
Custom Start: include cloudinary shrinkwrap.
-
-
-
@@ -42,6 +39,7 @@
Custom start: add cloudinary PGW
+
diff --git a/cartridges/cloudinary_sfra_changes/cartridge/templates/default/product/setDetails.isml b/cartridges/cloudinary_sfra_changes/cartridge/templates/default/product/setDetails.isml
index ab91229..44997cd 100644
--- a/cartridges/cloudinary_sfra_changes/cartridge/templates/default/product/setDetails.isml
+++ b/cartridges/cloudinary_sfra_changes/cartridge/templates/default/product/setDetails.isml
@@ -8,12 +8,6 @@
Custom Start: include cloudinary shrinkwrap.
-
-
-
-
@@ -58,6 +52,10 @@
+
+
+
+
Custom start: Add cloudinary video player
diff --git a/cartridges/cloudinary_sfra_changes/cartridge/templates/default/search/components/productTiles.isml b/cartridges/cloudinary_sfra_changes/cartridge/templates/default/search/components/productTiles.isml
index e73ffa9..f88f363 100644
--- a/cartridges/cloudinary_sfra_changes/cartridge/templates/default/search/components/productTiles.isml
+++ b/cartridges/cloudinary_sfra_changes/cartridge/templates/default/search/components/productTiles.isml
@@ -7,10 +7,7 @@
-
-
+
Custom End: include cloudinary shrinkwrap.
diff --git a/cartridges/int_cloudinary/cartridge/js/cloudinaryWidgets.js b/cartridges/int_cloudinary/cartridge/js/cloudinaryWidgets.js
index 5c3c2db..6cf1f7e 100644
--- a/cartridges/int_cloudinary/cartridge/js/cloudinaryWidgets.js
+++ b/cartridges/int_cloudinary/cartridge/js/cloudinaryWidgets.js
@@ -16,8 +16,8 @@ window.renderCloudinaryGalleryWidget = function () {
galleryOptions.SecureDistribution = cloudinaryObj.domain;
galleryOptions.privateCdn = true;
}
- window.cldGallery = window.cldProductGallery ? window.cldProductGallery.galleryWidget(galleryOptions) : cloudinary.galleryWidget(galleryOptions); // eslint-disable-line no-undef
- cldGallery.render(); // eslint-disable-line no-undef
+ window.cldGallery = window.cldProductGallery ? window.cldProductGallery.galleryWidget(galleryOptions) : (cloudinary.galleryWidget && cloudinary.galleryWidget(galleryOptions)); // eslint-disable-line no-undef
+ window.cldGallery && cldGallery.render(); // eslint-disable-line no-undef
} else if (cloudinaryObj.images && cloudinaryObj.images.imageURLs) {
imgUrls = cloudinaryObj.images.imageURLs;
}
@@ -41,8 +41,8 @@ window.renderCloudinarySetGalleryWidgets = function () {
cldSetImages.galleryWidget.options.SecureDistribution = cldObj.domain;
cldSetImages.galleryWidget.options.privateCdn = true;
}
- window.cldGallery = window.cldProductGallery.galleryWidget(cldSetImages.galleryWidget.options); // eslint-disable-line no-undef
- cldGallery.render(); // eslint-disable-line no-undef
+ window.cldGallery = window.cldProductGallery ? window.cldProductGallery.galleryWidget(cldSetImages.galleryWidget.options) : (cloudinary.galleryWidget && cloudinary.galleryWidget(cldSetImages.galleryWidget.options)); // eslint-disable-line no-undef
+ window.cldGallery && cldGallery.render(); // eslint-disable-line no-undef
}
});
};
@@ -82,7 +82,7 @@ window.makeCloudinaryImagesResponsive = function () {
var $cldEl = $('.cloudinary-data-container');
var cloudinaryObj = $cldEl.data('cloudinary');
if ($cldResponsiveImgTags && $cldResponsiveImgTags.length > 0) {
- if ( window.cldObj === undefined && window.cloudinary && window.cloudinary.default) {
+ if (window.cldObj === undefined && window.cloudinary && window.cloudinary.default) {
window.cldObj = window.cloudinary.default.Cloudinary.new({ cloud_name: cloudinaryObj.cloudName || cloudinaryObj });
}
window.cldObj && window.cldObj.responsive(); // eslint-disable-line no-undef
@@ -90,9 +90,7 @@ window.makeCloudinaryImagesResponsive = function () {
};
$(document).ready(function () {
- window.renderCloudinaryGalleryWidget();
window.renderCloudinaryVideoPlayer();
- window.renderCloudinarySetGalleryWidgets();
window.makeCloudinaryImagesResponsive();
$('.icon-next, .icon-prev').on('click', function () {