【 TOPPP 】 【 Pre sale, shipped on April 27, 2026 】GF267- Popular men's clothing, model style, casual shorts
${function() {
const variantData = data.variant || {"id":"4ece4a9e-bbc8-4318-9a98-72411ff8f392","product_id":"c98a4cd9-fd11-44e1-ac2f-8850004158cf","title":"khaki-M","weight_unit":"kg","inventory_quantity":8,"sku":"GF267-00190-khaki-M-A00110087","barcode":"","position":1,"option1":"khaki","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/182c8465f681b61d9ae65dbb8d2d5584.jpg","path":"182c8465f681b61d9ae65dbb8d2d5584.jpg","width":1040,"height":1560,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":45.8,"min_quantity":1}],"weight":"0.5","compare_at_price":"0","price":"45.8","retail_price":"0","available":true,"url":"\/products\/toppp-pre-sale-shipped-on-april-27-2026-gf267-popular-mens-clothing-model-style-casual-shorts?variant=4ece4a9e-bbc8-4318-9a98-72411ff8f392","available_quantity":8,"options":[{"name":"colour","value":"khaki"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":9};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Colour:
khaki
${function(){
const optName = "colour";
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:
M
${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
$45.80
${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":"4ece4a9e-bbc8-4318-9a98-72411ff8f392","product_id":"c98a4cd9-fd11-44e1-ac2f-8850004158cf","title":"khaki-M","weight_unit":"kg","inventory_quantity":8,"sku":"GF267-00190-khaki-M-A00110087","barcode":"","position":1,"option1":"khaki","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/182c8465f681b61d9ae65dbb8d2d5584.jpg","path":"182c8465f681b61d9ae65dbb8d2d5584.jpg","width":1040,"height":1560,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":45.8,"min_quantity":1}],"weight":"0.5","compare_at_price":"0","price":"45.8","retail_price":"0","available":true,"url":"\/products\/toppp-pre-sale-shipped-on-april-27-2026-gf267-popular-mens-clothing-model-style-casual-shorts?variant=4ece4a9e-bbc8-4318-9a98-72411ff8f392","available_quantity":8,"options":[{"name":"colour","value":"khaki"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":9};
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":"4ece4a9e-bbc8-4318-9a98-72411ff8f392","product_id":"c98a4cd9-fd11-44e1-ac2f-8850004158cf","title":"khaki-M","weight_unit":"kg","inventory_quantity":8,"sku":"GF267-00190-khaki-M-A00110087","barcode":"","position":1,"option1":"khaki","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/182c8465f681b61d9ae65dbb8d2d5584.jpg","path":"182c8465f681b61d9ae65dbb8d2d5584.jpg","width":1040,"height":1560,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":45.8,"min_quantity":1}],"weight":"0.5","compare_at_price":"0","price":"45.8","retail_price":"0","available":true,"url":"\/products\/toppp-pre-sale-shipped-on-april-27-2026-gf267-popular-mens-clothing-model-style-casual-shorts?variant=4ece4a9e-bbc8-4318-9a98-72411ff8f392","available_quantity":8,"options":[{"name":"colour","value":"khaki"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":9};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('50');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + ' ');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}