"I WANT YOU" but I can’t have your baseball cap and sun shade
${function() {
const variantData = data.variant || {"id":"ba91d6be-0370-467b-9dd3-7c51a29b550e","product_id":"a7f0422e-a29f-4f5a-a1cc-8d575c1c0531","title":"adjustable size-One Size-China","weight_unit":"g","inventory_quantity":82,"sku":"95028878-adjustable-size-one-size-china","barcode":"","position":1,"option1":"adjustable size","option2":"One Size","option3":"China","note":"","image":{"src":"\/\/img.staticdj.com\/e3ff28bb991e92b339a2655d9c799d98.jpeg","path":"e3ff28bb991e92b339a2655d9c799d98.jpeg","width":1071,"height":1071,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":77.99,"min_quantity":1}],"weight":"0","compare_at_price":"151.99","price":"77.99","retail_price":"151.99","available":true,"url":"\/products\/i-want-you-but-i-can-t-have-your-baseball-cap-and-sun-shade?variant=ba91d6be-0370-467b-9dd3-7c51a29b550e","available_quantity":82,"options":[{"name":"Color","value":"adjustable size"},{"name":"Size","value":"One Size"},{"name":"Ships From","value":"China"}],"off_ratio":49,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
adjustable size
${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:
One Size
${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}
`
}()}
Ships From:
China
${function(){
const optName = "Ships From";
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
$77.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":"ba91d6be-0370-467b-9dd3-7c51a29b550e","product_id":"a7f0422e-a29f-4f5a-a1cc-8d575c1c0531","title":"adjustable size-One Size-China","weight_unit":"g","inventory_quantity":82,"sku":"95028878-adjustable-size-one-size-china","barcode":"","position":1,"option1":"adjustable size","option2":"One Size","option3":"China","note":"","image":{"src":"\/\/img.staticdj.com\/e3ff28bb991e92b339a2655d9c799d98.jpeg","path":"e3ff28bb991e92b339a2655d9c799d98.jpeg","width":1071,"height":1071,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":77.99,"min_quantity":1}],"weight":"0","compare_at_price":"151.99","price":"77.99","retail_price":"151.99","available":true,"url":"\/products\/i-want-you-but-i-can-t-have-your-baseball-cap-and-sun-shade?variant=ba91d6be-0370-467b-9dd3-7c51a29b550e","available_quantity":82,"options":[{"name":"Color","value":"adjustable size"},{"name":"Size","value":"One Size"},{"name":"Ships From","value":"China"}],"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.
Sku : 95028878-adjustable-size-one-size-china
${function(){
const variantData = data.variant || {"id":"ba91d6be-0370-467b-9dd3-7c51a29b550e","product_id":"a7f0422e-a29f-4f5a-a1cc-8d575c1c0531","title":"adjustable size-One Size-China","weight_unit":"g","inventory_quantity":82,"sku":"95028878-adjustable-size-one-size-china","barcode":"","position":1,"option1":"adjustable size","option2":"One Size","option3":"China","note":"","image":{"src":"\/\/img.staticdj.com\/e3ff28bb991e92b339a2655d9c799d98.jpeg","path":"e3ff28bb991e92b339a2655d9c799d98.jpeg","width":1071,"height":1071,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":77.99,"min_quantity":1}],"weight":"0","compare_at_price":"151.99","price":"77.99","retail_price":"151.99","available":true,"url":"\/products\/i-want-you-but-i-can-t-have-your-baseball-cap-and-sun-shade?variant=ba91d6be-0370-467b-9dd3-7c51a29b550e","available_quantity":82,"options":[{"name":"Color","value":"adjustable size"},{"name":"Size","value":"One Size"},{"name":"Ships From","value":"China"}],"off_ratio":49,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}