SUCCESS SMARTU Amazon Essentials Men's Skinny-fit Washed Comfort Stretch Chino Pant (previously Goodthreads
Apparel & Accessories > Clothing > Pants
${function() {
const variantData = data.variant || {"id":"cedfe471-c590-4cda-a5cd-e0cbedf6ffbd","product_id":"fb1b1d5e-9a10-4bb8-8166-4b7969a72c88","title":"Black-28W x 28L","weight_unit":"kg","inventory_quantity":640,"sku":"","barcode":"","position":1,"option1":"Black","option2":"28W x 28L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0cd882493e8c7f3e79ab51e09a812b35.jpeg","path":"0cd882493e8c7f3e79ab51e09a812b35.jpeg","width":739,"height":1500,"alt":"","aspect_ratio":0.49266666666666664},"wholesale_price":[{"price":34.5,"min_quantity":1}],"weight":"0","compare_at_price":"57.5","price":"34.5","retail_price":"57.5","available":true,"url":"\/products\/success-smartu-amazon-essentials-mens-skinny-fit-washed-comfort-stretch-chino-pant-previously-goodthreads?variant=cedfe471-c590-4cda-a5cd-e0cbedf6ffbd","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"28W x 28L"}],"off_ratio":40,"flashsale_info":[],"sales":339};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
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:
28W x 28L
${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
$34.50
${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":"cedfe471-c590-4cda-a5cd-e0cbedf6ffbd","product_id":"fb1b1d5e-9a10-4bb8-8166-4b7969a72c88","title":"Black-28W x 28L","weight_unit":"kg","inventory_quantity":640,"sku":"","barcode":"","position":1,"option1":"Black","option2":"28W x 28L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0cd882493e8c7f3e79ab51e09a812b35.jpeg","path":"0cd882493e8c7f3e79ab51e09a812b35.jpeg","width":739,"height":1500,"alt":"","aspect_ratio":0.49266666666666664},"wholesale_price":[{"price":34.5,"min_quantity":1}],"weight":"0","compare_at_price":"57.5","price":"34.5","retail_price":"57.5","available":true,"url":"\/products\/success-smartu-amazon-essentials-mens-skinny-fit-washed-comfort-stretch-chino-pant-previously-goodthreads?variant=cedfe471-c590-4cda-a5cd-e0cbedf6ffbd","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"28W x 28L"}],"off_ratio":40,"flashsale_info":[],"sales":339};
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":"cedfe471-c590-4cda-a5cd-e0cbedf6ffbd","product_id":"fb1b1d5e-9a10-4bb8-8166-4b7969a72c88","title":"Black-28W x 28L","weight_unit":"kg","inventory_quantity":640,"sku":"","barcode":"","position":1,"option1":"Black","option2":"28W x 28L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0cd882493e8c7f3e79ab51e09a812b35.jpeg","path":"0cd882493e8c7f3e79ab51e09a812b35.jpeg","width":739,"height":1500,"alt":"","aspect_ratio":0.49266666666666664},"wholesale_price":[{"price":34.5,"min_quantity":1}],"weight":"0","compare_at_price":"57.5","price":"34.5","retail_price":"57.5","available":true,"url":"\/products\/success-smartu-amazon-essentials-mens-skinny-fit-washed-comfort-stretch-chino-pant-previously-goodthreads?variant=cedfe471-c590-4cda-a5cd-e0cbedf6ffbd","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"28W x 28L"}],"off_ratio":40,"flashsale_info":[],"sales":339};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}