PLUS LOFTS American Mechanical Style Tooling Straight-leg Trousers
${function() {
const variantData = data.variant || {"id":"669325eb-dce9-4a8a-9096-4398e5cb4318","product_id":"01368afb-ed4c-4868-abea-ff334f39b680","title":"Dark Gray-S","weight_unit":"g","inventory_quantity":896,"sku":"","barcode":"","position":1,"option1":"Dark Gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4716a7f653c360796277402fd052a3db.jpeg","path":"4716a7f653c360796277402fd052a3db.jpeg","width":1000,"height":999,"alt":"","aspect_ratio":1.001001001001001},"wholesale_price":[{"price":42.2,"min_quantity":1}],"weight":"670","compare_at_price":"76.7","price":"42.2","retail_price":"76.7","available":true,"url":"\/products\/plus-lofts-american-mechanical-style-tooling-straight-leg-trousers?variant=669325eb-dce9-4a8a-9096-4398e5cb4318","available_quantity":999999999,"options":[{"name":"Color","value":"Dark Gray"},{"name":"Size","value":"S"}],"off_ratio":45,"flashsale_info":[],"sales":121};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Dark Gray
${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:
S
${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
$42.20
${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":"669325eb-dce9-4a8a-9096-4398e5cb4318","product_id":"01368afb-ed4c-4868-abea-ff334f39b680","title":"Dark Gray-S","weight_unit":"g","inventory_quantity":896,"sku":"","barcode":"","position":1,"option1":"Dark Gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4716a7f653c360796277402fd052a3db.jpeg","path":"4716a7f653c360796277402fd052a3db.jpeg","width":1000,"height":999,"alt":"","aspect_ratio":1.001001001001001},"wholesale_price":[{"price":42.2,"min_quantity":1}],"weight":"670","compare_at_price":"76.7","price":"42.2","retail_price":"76.7","available":true,"url":"\/products\/plus-lofts-american-mechanical-style-tooling-straight-leg-trousers?variant=669325eb-dce9-4a8a-9096-4398e5cb4318","available_quantity":999999999,"options":[{"name":"Color","value":"Dark Gray"},{"name":"Size","value":"S"}],"off_ratio":45,"flashsale_info":[],"sales":121};
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.