TTPD The Tortured Poets Department Washed Cap
${function() {
const variantData = data.variant || {"id":"da39d295-c772-42eb-a0c9-b1383ac61ed5","product_id":"197d9e2f-1977-4ff3-b3f6-92680407c909","title":"Khaki-one size","weight_unit":"g","inventory_quantity":0,"sku":"WL20240221001-Khaki-one size","barcode":"","position":2,"option1":"Khaki","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8f5ef0cff6d5c7b3dd31f4f6e33769d8.jpeg","path":"8f5ef0cff6d5c7b3dd31f4f6e33769d8.jpeg","width":750,"height":1000,"alt":"TTPD The Tortured Poets Department Washed Cap","aspect_ratio":0.75},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"150","compare_at_price":"43.89","price":"19.99","retail_price":"43.89","available":true,"url":"\/products\/ttpd-the-tortured-poets-department-washed-cap?variant=da39d295-c772-42eb-a0c9-b1383ac61ed5","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"one size"}],"off_ratio":54,"flashsale_info":[],"sales":7};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Khaki
${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}
`
}()}
Add to cart
$19.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":"da39d295-c772-42eb-a0c9-b1383ac61ed5","product_id":"197d9e2f-1977-4ff3-b3f6-92680407c909","title":"Khaki-one size","weight_unit":"g","inventory_quantity":0,"sku":"WL20240221001-Khaki-one size","barcode":"","position":2,"option1":"Khaki","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8f5ef0cff6d5c7b3dd31f4f6e33769d8.jpeg","path":"8f5ef0cff6d5c7b3dd31f4f6e33769d8.jpeg","width":750,"height":1000,"alt":"TTPD The Tortured Poets Department Washed Cap","aspect_ratio":0.75},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"150","compare_at_price":"43.89","price":"19.99","retail_price":"43.89","available":true,"url":"\/products\/ttpd-the-tortured-poets-department-washed-cap?variant=da39d295-c772-42eb-a0c9-b1383ac61ed5","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"one size"}],"off_ratio":54,"flashsale_info":[],"sales":7};
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.