TR Double Pleated Wide Slacks
${function() {
const variantData = data.variant || {"id":"b33c598f-5918-4433-a911-04714bd4189c","product_id":"00c35a8c-7c41-4dba-93e3-0972a1c3e319","title":"Black-S","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/64e81300139519cf4ed6c787963c5713.jpeg","path":"64e81300139519cf4ed6c787963c5713.jpeg","width":2289,"height":2861,"alt":"","aspect_ratio":0.800069905627403},"wholesale_price":[{"price":7.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"7.99","retail_price":"0","available":true,"url":"\/products\/tr-double-tuck-wide-slacks?variant=b33c598f-5918-4433-a911-04714bd4189c","available_quantity":999999999,"options":[{"name":"COLOR","value":"Black"},{"name":"SIZE","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
COLOR:
Black
${function(){
return `${data.value} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
SIZE:
S
${function(){
return `${data.value} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$7.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":"b33c598f-5918-4433-a911-04714bd4189c","product_id":"00c35a8c-7c41-4dba-93e3-0972a1c3e319","title":"Black-S","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/64e81300139519cf4ed6c787963c5713.jpeg","path":"64e81300139519cf4ed6c787963c5713.jpeg","width":2289,"height":2861,"alt":"","aspect_ratio":0.800069905627403},"wholesale_price":[{"price":7.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"7.99","retail_price":"0","available":true,"url":"\/products\/tr-double-tuck-wide-slacks?variant=b33c598f-5918-4433-a911-04714bd4189c","available_quantity":999999999,"options":[{"name":"COLOR","value":"Black"},{"name":"SIZE","value":"S"}],"off_ratio":0,"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.