Casual Surf Shorts
${function() {
const variantData = data.variant || {"id":"9a03a9a8-6993-42fb-ab1f-f150c88b3683","product_id":"4a0a7f1b-89d9-4faf-9d8f-1677aab86ef3","title":"Light green-M","weight_unit":"kg","inventory_quantity":999,"sku":"1664088780595867650","barcode":"","position":1,"option1":"Light green","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f42e7e91e161204113a0e2b2effb725a.png","path":"f42e7e91e161204113a0e2b2effb725a.png","width":800,"height":800,"alt":"a629764013aa0ad3a3ffd2e18749e089","aspect_ratio":1},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"200","compare_at_price":"0","price":"25.99","retail_price":"0","available":true,"url":"\/products\/casual-surf-shorts?variant=9a03a9a8-6993-42fb-ab1f-f150c88b3683","available_quantity":999999999,"options":[{"name":"Color","value":"Light green"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":71};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Light green
${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:
M
${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
$25.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":"9a03a9a8-6993-42fb-ab1f-f150c88b3683","product_id":"4a0a7f1b-89d9-4faf-9d8f-1677aab86ef3","title":"Light green-M","weight_unit":"kg","inventory_quantity":999,"sku":"1664088780595867650","barcode":"","position":1,"option1":"Light green","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f42e7e91e161204113a0e2b2effb725a.png","path":"f42e7e91e161204113a0e2b2effb725a.png","width":800,"height":800,"alt":"a629764013aa0ad3a3ffd2e18749e089","aspect_ratio":1},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"200","compare_at_price":"0","price":"25.99","retail_price":"0","available":true,"url":"\/products\/casual-surf-shorts?variant=9a03a9a8-6993-42fb-ab1f-f150c88b3683","available_quantity":999999999,"options":[{"name":"Color","value":"Light green"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":71};
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.
people are viewing this right now