Western Vintage Carved Buckle Basic Belt
${function() {
const variantData = data.variant || {"id":"6971db74-e657-48bb-a2e3-72e60fd78c32","product_id":"ffc2e7f9-bf3e-4c5e-8979-b174371b3938","title":"Black-One Size","weight_unit":"kg","inventory_quantity":997,"sku":"T3227-Black-One Size","barcode":"","position":1,"option1":"Black","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/57dcee10773afac5f69bd77509b5a3c6.jpeg","path":"57dcee10773afac5f69bd77509b5a3c6.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":8.99,"min_quantity":1}],"weight":"0","compare_at_price":"14.99","price":"8.99","retail_price":"14.99","available":true,"url":"\/products\/western-vintage-carved-buckle-basic-belt884ecb8d-a52e-46a7-bcbc-ce443843a4bb?variant=6971db74-e657-48bb-a2e3-72e60fd78c32","available_quantity":997,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"One Size"}],"off_ratio":40,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
people are viewing this right now
Color:
Black
${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
$8.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":"6971db74-e657-48bb-a2e3-72e60fd78c32","product_id":"ffc2e7f9-bf3e-4c5e-8979-b174371b3938","title":"Black-One Size","weight_unit":"kg","inventory_quantity":997,"sku":"T3227-Black-One Size","barcode":"","position":1,"option1":"Black","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/57dcee10773afac5f69bd77509b5a3c6.jpeg","path":"57dcee10773afac5f69bd77509b5a3c6.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":8.99,"min_quantity":1}],"weight":"0","compare_at_price":"14.99","price":"8.99","retail_price":"14.99","available":true,"url":"\/products\/western-vintage-carved-buckle-basic-belt884ecb8d-a52e-46a7-bcbc-ce443843a4bb?variant=6971db74-e657-48bb-a2e3-72e60fd78c32","available_quantity":997,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"One Size"}],"off_ratio":40,"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":"6971db74-e657-48bb-a2e3-72e60fd78c32","product_id":"ffc2e7f9-bf3e-4c5e-8979-b174371b3938","title":"Black-One Size","weight_unit":"kg","inventory_quantity":997,"sku":"T3227-Black-One Size","barcode":"","position":1,"option1":"Black","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/57dcee10773afac5f69bd77509b5a3c6.jpeg","path":"57dcee10773afac5f69bd77509b5a3c6.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":8.99,"min_quantity":1}],"weight":"0","compare_at_price":"14.99","price":"8.99","retail_price":"14.99","available":true,"url":"\/products\/western-vintage-carved-buckle-basic-belt884ecb8d-a52e-46a7-bcbc-ce443843a4bb?variant=6971db74-e657-48bb-a2e3-72e60fd78c32","available_quantity":997,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"One Size"}],"off_ratio":40,"flashsale_info":[],"sales":0};
return `
`
}()}