High Rise Frayed Hem Cut Off Dad Shorts
${function() {
const variantData = data.variant || {"id":"39162e89-a5ca-4c18-9475-f05e60fb53b9","product_id":"eae8f1b4-3a5b-46c3-acd7-6b2a03a2a370","title":"LIGHT BLUE-XS","weight_unit":"kg","inventory_quantity":0,"sku":"SLRYFU6U-0001","barcode":"","position":1,"option1":"LIGHT BLUE","option2":"XS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d32b25ead797c947a3a94fa92464dc79.png","path":"d32b25ead797c947a3a94fa92464dc79.png","width":900,"height":900,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.99,"min_quantity":1}],"weight":"0","compare_at_price":"68.6","price":"34.99","retail_price":"68.6","available":true,"url":"\/products\/high-rise-frayed-hem-cut-off-dad-shorts?variant=39162e89-a5ca-4c18-9475-f05e60fb53b9","available_quantity":999999999,"options":[{"name":"\u2728Color","value":"LIGHT BLUE"},{"name":"\u2705 Size","value":"XS"}],"off_ratio":49,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
✨Color:
LIGHT 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:
XS
${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
$34.99
${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":"39162e89-a5ca-4c18-9475-f05e60fb53b9","product_id":"eae8f1b4-3a5b-46c3-acd7-6b2a03a2a370","title":"LIGHT BLUE-XS","weight_unit":"kg","inventory_quantity":0,"sku":"SLRYFU6U-0001","barcode":"","position":1,"option1":"LIGHT BLUE","option2":"XS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d32b25ead797c947a3a94fa92464dc79.png","path":"d32b25ead797c947a3a94fa92464dc79.png","width":900,"height":900,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.99,"min_quantity":1}],"weight":"0","compare_at_price":"68.6","price":"34.99","retail_price":"68.6","available":true,"url":"\/products\/high-rise-frayed-hem-cut-off-dad-shorts?variant=39162e89-a5ca-4c18-9475-f05e60fb53b9","available_quantity":999999999,"options":[{"name":"\u2728Color","value":"LIGHT BLUE"},{"name":"\u2705 Size","value":"XS"}],"off_ratio":49,"flashsale_info":[],"sales":0};
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":"39162e89-a5ca-4c18-9475-f05e60fb53b9","product_id":"eae8f1b4-3a5b-46c3-acd7-6b2a03a2a370","title":"LIGHT BLUE-XS","weight_unit":"kg","inventory_quantity":0,"sku":"SLRYFU6U-0001","barcode":"","position":1,"option1":"LIGHT BLUE","option2":"XS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d32b25ead797c947a3a94fa92464dc79.png","path":"d32b25ead797c947a3a94fa92464dc79.png","width":900,"height":900,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.99,"min_quantity":1}],"weight":"0","compare_at_price":"68.6","price":"34.99","retail_price":"68.6","available":true,"url":"\/products\/high-rise-frayed-hem-cut-off-dad-shorts?variant=39162e89-a5ca-4c18-9475-f05e60fb53b9","available_quantity":999999999,"options":[{"name":"\u2728Color","value":"LIGHT BLUE"},{"name":"\u2705 Size","value":"XS"}],"off_ratio":49,"flashsale_info":[],"sales":0};
return `
`
}()}