#uCase(qPromoArea1.classificationDesc)#
currentDetailUrl = '';
currentDetailUrl = 'detail?id=#qPromoArea1.product_apparel_inventory_product_apparel_id#';
if ( color gte 1 ) {
currentDetailUrl = '#currentDetailUrl#&color=#color#';
}
if ( isDefined("qPromoArea1.unique_name") AND len(qPromoArea1.unique_name) gt 5 ) {
currentDetailUrl = 'style-#qPromoArea1.unique_name#';
if ( color gte 1 ) {
currentDetailUrl = '#currentDetailUrl#?color=#color#';
}
}
groupCount = 0;
currentPrimaryImage = '';
if ( len(qPromoArea1.product_primary_image) gt 4 ) {
currentPrimaryImage = qPromoArea1.product_primary_image;
}
else if ( color gte 1 AND len(qPromoArea1.imageDetailColorSpecificPrimary) gt 4 ) {
currentPrimaryImage = qPromoArea1.imageDetailColorSpecificPrimary;
}
else {
currentPrimaryImage = qPromoArea1.imageDetailPrimary;
}
currentDetailUrl = '';
currentDetailUrl = 'detail?id=#qStyles.product_apparel_inventory_product_apparel_id#';
if ( color gte 1 ) {
currentDetailUrl = '#currentDetailUrl#&color=#color#';
}
if ( isDefined("qStyles.unique_name") AND len(qStyles.unique_name) gt 5 ) {
currentDetailUrl = 'style-#qStyles.unique_name#';
if ( color gte 1 ) {
currentDetailUrl = '#currentDetailUrl#?color=#color#';
if ( sale eq 1 ) {
currentDetailUrl = '#currentDetailUrl#&sale=1';
}
}
}
groupCount = 0;
currentPrimaryImage = '';
currentPrimaryImageColorId = '';
if ( color gte 1 AND len(qStyles.imageDetailColorSpecificPrimary) gt 4 ) {
currentPrimaryImage = qStyles.imageDetailColorSpecificPrimary;
}
else if ( color gte 1 AND len(qStyles.imageDetailPrimary) gt 4 ) {
currentPrimaryImage = qStyles.imageDetailPrimary;
}
else {
currentPrimaryImage = qStyles.product_primary_image;
}
// 27 Feb, 2018 - Pass color id for the primary image selected (at product level) even if the color was not previously selected from the color search menu
if ( isDefined("qStyles.product_primary_image_color_id") && qStyles.product_primary_image_color_id >= 1 && color == 0) {
currentPrimaryImageColorId = qStyles.product_primary_image_color_id;
currentDetailUrl = '#currentDetailUrl#?color=#currentPrimaryImageColorId#';
if ( sale eq 1 ) {
currentDetailUrl = '#currentDetailUrl#&sale=1';
}
}
// 4 Jan, 2019 - Check for secondary "b" image to show on hover
currentAltImage = qStyles.product_primary_image;
if ( len(qStyles.product_primary_image2) gt 4 AND fileExists(expandPath("#app_settings.app_content_relative_path#/products/#qStyles.product_primary_image2#") ) ) {
currentAltImage = "#app_settings.app_content_relative_path#/products/#qStyles.product_primary_image2#";
}
else {
/* currentAltImage = "#app_settings.app_content_relative_path#/products/photo-missing-cj-logo-lg.jpg"; */
}
// 19 Nov, 2019 - Get "Zoom" image for carousel
try {
currentHighCountColorId = 0;
colorIdList = '';
resultColors = clsInventory.getInventoryColors(product_apparel_inventory_product_apparel_id=qStyles.product_apparel_inventory_product_apparel_id);
if ( resultColors.recordCount >= 1 ) {
colorIdList = valueList(resultColors.product_apparel_color_id);
}
resultZoomCount = clsImage.getZoomImageCounts(
product_apparel_image_product_apparel_id=qStyles.product_apparel_inventory_product_apparel_id,
color_id_list=colorIdList
);
// dump(var=resultZoomCount, label="resultZoomCount");
if ( resultZoomCount.zoom_primary_color_id > 1 ) { currentHighCountColorId = resultZoomCount.zoom_primary_color_id; }
resultDetailImages = clsImage.getDetailImages(
product_apparel_image_product_apparel_id=qStyles.product_apparel_inventory_product_apparel_id,
product_apparel_color_product_apparel_color_id=currentPrimaryImageColorId,
primary_color_id=currentHighCountColorId,
generate_union_query=1
);
// dump(var=resultDetailImages, label="resultDetailImages");
} catch (any e) {
// dump(e);
}
#app_settings.site_retail_alert_sale_no_styles#
No styles currently available matching your search criteria.