This question is referring to the use of Cloudinary's Product Gallery in the Salesforce Commerce Cloud Site Cartridge. For details of including 360 spin sets in the Product Gallery in general, see the Product Gallery Guide.
In projectDir/cartridges/int_cloudinary/cartridge/scripts/model/CloudinaryModel.js in function getCloudinaryImages
:
-
Add/uncomment the variable:
var cldSpinTag = '';
-
After the line:
cldTag = cloudinaryHelper.getCloudinaryTagName(product);
add the line:
cldSpinTag = cldTag + cloudinaryConstants.CLD_360_SPIN_SET_TAG_SUFFIX;
The
cldSpinTag
becomes the product ID appended with the suffix "_360", e.g.1845415646_360
-
After the lines:
mediaAssets.push({ tag: cldTag, mediaType: cloudinaryConstants.CLD_IMAGE_RESOURCE_TYPE }); mediaAssets.push({ tag: cldTag, mediaType: cloudinaryConstants.CLD_VIDEO_RESOURCE_TYPE });
add the line:
mediaAssets.push({ tag: cldSpinTag, mediaType: cloudinaryConstants.CLD_SPIN_SET_RESOURCE_TYPE });
Comments
0 comments
Article is closed for comments.