فستان مذهل يبرز جمالك الداخلي
people are viewing this right now
${function() {
const variantData = data.variant || {"id":"09a74e19-d7ce-4f85-9794-a0ce6c809256","product_id":"b912583e-10e1-489c-a1b6-0c90e370c5c9","title":"blue-S","weight_unit":"lb","inventory_quantity":924,"sku":"charm080-blue-s","barcode":"","position":1,"option1":"blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5c99d7a90e03dea9b9c176c33aeb0f3a.jpg","path":"5c99d7a90e03dea9b9c176c33aeb0f3a.jpg","width":720,"height":960,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":250,"min_quantity":1}],"weight":"0","compare_at_price":"500","price":"250","retail_price":"500","available":true,"url":"\/en\/products\/elegant-charming-sweet-dress-80-lou5?variant=09a74e19-d7ce-4f85-9794-a0ce6c809256","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"name":"Size","value":"S"}],"off_ratio":50,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
blue
${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
﷼250.00
${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":"09a74e19-d7ce-4f85-9794-a0ce6c809256","product_id":"b912583e-10e1-489c-a1b6-0c90e370c5c9","title":"blue-S","weight_unit":"lb","inventory_quantity":924,"sku":"charm080-blue-s","barcode":"","position":1,"option1":"blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5c99d7a90e03dea9b9c176c33aeb0f3a.jpg","path":"5c99d7a90e03dea9b9c176c33aeb0f3a.jpg","width":720,"height":960,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":250,"min_quantity":1}],"weight":"0","compare_at_price":"500","price":"250","retail_price":"500","available":true,"url":"\/en\/products\/elegant-charming-sweet-dress-80-lou5?variant=09a74e19-d7ce-4f85-9794-a0ce6c809256","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"name":"Size","value":"S"}],"off_ratio":50,"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 minInventory = parseInt('10');
const maxInventory = parseInt('50');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "\u0644\u0645 \u064a\u062a\u0628\u0642 \u0633\u0648\u0649 {stock} \u0645\u0646 \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0641\u064a \u0627\u0644\u0645\u062e\u0632\u0648\u0646!".replace(/\{stock\}/g, '' + randomInventory + ' ');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}