فستان سهرة فضي - تألقي كنجمة في كل أمسية
people are viewing this right now
${function() {
const variantData = data.variant || {"id":"6233189b-d8b1-464f-adee-8589194d9e7f","product_id":"83d44c30-bf69-41ed-85a2-a4e93afbe0fa","title":"pink-S","weight_unit":"kg","inventory_quantity":980,"sku":"tailored081-pink-s","barcode":"","position":1,"option1":"pink","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e7acedfedaf9f4c7e29da7daf3bfb597.jpg","path":"e7acedfedaf9f4c7e29da7daf3bfb597.jpg","width":563,"height":750,"alt":"","aspect_ratio":0.7506666666666667},"wholesale_price":[{"price":290,"min_quantity":1}],"weight":"0","compare_at_price":"560","price":"290","retail_price":"560","available":true,"url":"\/en\/products\/elegant-luxury-charming-white-party-dress-tailored-081-utm_source-sq?variant=6233189b-d8b1-464f-adee-8589194d9e7f","available_quantity":999999999,"options":[{"name":"Color","value":"pink"},{"name":"Size","value":"S"}],"off_ratio":48,"flashsale_info":[],"sales":1};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
pink
${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
﷼290.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":"6233189b-d8b1-464f-adee-8589194d9e7f","product_id":"83d44c30-bf69-41ed-85a2-a4e93afbe0fa","title":"pink-S","weight_unit":"kg","inventory_quantity":980,"sku":"tailored081-pink-s","barcode":"","position":1,"option1":"pink","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e7acedfedaf9f4c7e29da7daf3bfb597.jpg","path":"e7acedfedaf9f4c7e29da7daf3bfb597.jpg","width":563,"height":750,"alt":"","aspect_ratio":0.7506666666666667},"wholesale_price":[{"price":290,"min_quantity":1}],"weight":"0","compare_at_price":"560","price":"290","retail_price":"560","available":true,"url":"\/en\/products\/elegant-luxury-charming-white-party-dress-tailored-081-utm_source-sq?variant=6233189b-d8b1-464f-adee-8589194d9e7f","available_quantity":999999999,"options":[{"name":"Color","value":"pink"},{"name":"Size","value":"S"}],"off_ratio":48,"flashsale_info":[],"sales":1};
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 `
`;
}()}