SUCCESS SMARTU Dockers Men's Perfect Classic Fit Shorts (regular And Big & Tall
${function() {
const variantData = data.variant || {"id":"6d669250-cf22-4335-9711-883ddf462efc","product_id":"a15f6266-4612-4ff1-bcef-5e668bc4b10a","title":"Maritime Blue-28","weight_unit":"g","inventory_quantity":729,"sku":"","barcode":"","position":1,"option1":"Maritime Blue","option2":"28","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a1a349445400ef544505451dfd9d786d.jpeg","path":"a1a349445400ef544505451dfd9d786d.jpeg","width":442,"height":800,"alt":"","aspect_ratio":0.5525},"wholesale_price":[{"price":17.4,"min_quantity":1}],"weight":"10","compare_at_price":"24.9","price":"17.4","retail_price":"24.9","available":true,"url":"\/products\/success-smartu-dockers-mens-perfect-classic-fit-shorts-regular-and-big-amp-tall?variant=6d669250-cf22-4335-9711-883ddf462efc","available_quantity":999999999,"options":[{"name":"Color","value":"Maritime Blue"},{"name":"Size","value":"28"}],"off_ratio":30,"flashsale_info":[],"sales":844};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Maritime Blue
${function(){
const optName = "Color";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Size:
28
${function(){
const optName = "Size";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$17.40
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]);
const productVariant = {"id":"6d669250-cf22-4335-9711-883ddf462efc","product_id":"a15f6266-4612-4ff1-bcef-5e668bc4b10a","title":"Maritime Blue-28","weight_unit":"g","inventory_quantity":729,"sku":"","barcode":"","position":1,"option1":"Maritime Blue","option2":"28","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a1a349445400ef544505451dfd9d786d.jpeg","path":"a1a349445400ef544505451dfd9d786d.jpeg","width":442,"height":800,"alt":"","aspect_ratio":0.5525},"wholesale_price":[{"price":17.4,"min_quantity":1}],"weight":"10","compare_at_price":"24.9","price":"17.4","retail_price":"24.9","available":true,"url":"\/products\/success-smartu-dockers-mens-perfect-classic-fit-shorts-regular-and-big-amp-tall?variant=6d669250-cf22-4335-9711-883ddf462efc","available_quantity":999999999,"options":[{"name":"Color","value":"Maritime Blue"},{"name":"Size","value":"28"}],"off_ratio":30,"flashsale_info":[],"sales":844};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `
`
}else {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"6d669250-cf22-4335-9711-883ddf462efc","product_id":"a15f6266-4612-4ff1-bcef-5e668bc4b10a","title":"Maritime Blue-28","weight_unit":"g","inventory_quantity":729,"sku":"","barcode":"","position":1,"option1":"Maritime Blue","option2":"28","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a1a349445400ef544505451dfd9d786d.jpeg","path":"a1a349445400ef544505451dfd9d786d.jpeg","width":442,"height":800,"alt":"","aspect_ratio":0.5525},"wholesale_price":[{"price":17.4,"min_quantity":1}],"weight":"10","compare_at_price":"24.9","price":"17.4","retail_price":"24.9","available":true,"url":"\/products\/success-smartu-dockers-mens-perfect-classic-fit-shorts-regular-and-big-amp-tall?variant=6d669250-cf22-4335-9711-883ddf462efc","available_quantity":999999999,"options":[{"name":"Color","value":"Maritime Blue"},{"name":"Size","value":"28"}],"off_ratio":30,"flashsale_info":[],"sales":844};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}