${(function(){ const get_random_six_digits = () => { return Math.random().toString().slice(-6) }; const wholesale_enabled = false; const setting_product_image_display = "100%"; const product_image = data.image; const secondary_image = data.secondImage; const image_width = product_image.width; let image_height = product_image.height; if(setting_product_image_display == '100%'){ image_height = image_width }else if(setting_product_image_display == '133.33%'){ image_height = image_width * 1.3333; }; const product_image_hover_on = true && !!secondary_image.src; const has_save_label = true && ((+data.compare_at_price) > (+data.price)); const is_single_variant = data.variants.length == 1; const min_price_variant_href = (data.min_price_variant && data.min_price_variant.available) ? data.min_price_variant.withinUrl : data.withinUrl; const retail_price_max = data.retail_price_max || data.compare_at_price_max; const THUMBNAILS_MAX_SIZE = 3; const thumbnails = data.thumbVariants.slice(0, THUMBNAILS_MAX_SIZE); const image_wrap_id = 'image_wrap_' + get_random_six_digits(); const image_carousel_id = 'image_carousel_' + get_random_six_digits(); const thumbnails_selector_id = 'thumbnails_selector_' + get_random_six_digits(); const form_id = 'form_' + get_random_six_digits(); const mixed_wholesale = data.mixed_wholesale; return `
${ data.available ? `${ (+data.compare_at_price > +data.price) ? `حفظ
` : '' }` : "\u0646\u0641\u0630" }
الكثير مختلط
${data.title}
${ data.price_min != data.price_max ? `من
` : `
` }
+${data.remainInvisibleThumbCount}
` })()}
يسجل دخول
إنشاء حساب
${data.data && data.data.count}
الصفحة الرئيسية
جميع المنتجات
اضاءة
اضاء
انارة
اضاءات
حفظ
﷼89.97
حفظ
﷼89.97
فتاة صغيرة غلاية الضوء
﷼134.90
﷼224.87
إنارة داخلية
لمبة
اضاءة جدارية
مصباح الليل
سبوت لايت
حفظ
﷼224.90
حفظ
﷼224.90
مصباح حائط زجاجي إبداعي شخصي
﷼262.35
﷼487.25
انارة خارجية
لمبات طاقة شمسية
لمبات زينه
حفظ
﷼41.23
حفظ
﷼41.23
مصباح لطوب الثلج الشمسي الكبير
﷼71.18
﷼112.41
الإنارة الديكورية
فانوس
لمبات زينه
لمبات سقف ديكور
لمبات جدارية
اضاءة سقف
لمبة سقف
حفظ
﷼104.96
حفظ
﷼104.96
ضوء شمسي خارجي حديقة ضوء أرنب صغير أبيض
﷼116.16
﷼221.12
لمبات
لمبات ليد
لمبات سقف
لمبات زينه
حفظ
﷼59.97
حفظ
﷼59.97
أضواء حديقة شمسية مدببة
﷼86.18
﷼146.15
ادوات كهربائية
كشاف
كشاف طاقة شمسية
حفظ
﷼104.96
حفظ
﷼104.96
ضوء شمسي خارجي حديقة ضوء أرنب صغير أبيض
﷼116.16
﷼221.12
المزيد من الروابط
${(function(){ const formatLinks = (links) => { return links.map(link => { link.tag = tags[link.title.toUpperCase()] || {}; link.target_attr = link.target == '_blank' ? 'target="_blank"' : ''; link.href_attr = link.url ? `href="${link.url}"` : ''; if(link.children && link.children.length){ link.children = formatLinks(link.children); } return link; }) }; const tags = "{}"; let linkList = [ { id: 58215319, title: "\u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629", url: "\/", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 58215321, title: "\u062c\u0645\u064a\u0639 \u0627\u0644\u0645\u0646\u062a\u062c\u0627\u062a", url: "\/collections\/\u062c\u0645\u064a\u0639-\u0627\u0644\u0645\u0646\u062a\u062c\u0627\u062a", target: "", levels: 1, product0: { id: ("54854a40-3c9d-4a9c-b6a0-0a7a72d1ad24") }, children: [ { title: "\u0627\u0636\u0627\u0621\u0629", url: "\/collections\/\u0627\u0636\u0627\u0621\u0629", target: "", levels: 0, children: [ ] }, { title: "\u0627\u0636\u0627\u0621", url: "\/collections\/\u0627\u0636\u0627\u0621", target: "", levels: 0, children: [ ] }, { title: "\u0627\u0646\u0627\u0631\u0629", url: "\/collections\/\u0627\u0646\u0627\u0631\u0629", target: "", levels: 0, children: [ ] }, { title: "\u0627\u0636\u0627\u0621\u0627\u062a", url: "\/collections\/\u0627\u0636\u0627\u0621\u0627\u062a", target: "", levels: 0, children: [ ] }, ] }, { id: 58215331, title: "\u0625\u0646\u0627\u0631\u0629 \u062f\u0627\u062e\u0644\u064a\u0629 ", url: "\/collections\/\u0625\u0646\u0627\u0631\u0629-\u062f\u0627\u062e\u0644\u064a\u0629", target: "", levels: 1, product0: { id: ("53fe12db-5796-4bc2-b98f-5ba2195f1e72") }, children: [ { title: "\u0644\u0645\u0628\u0629", url: "\/collections\/\u0644\u0645\u0628\u0629", target: "", levels: 0, children: [ ] }, { title: "\u0627\u0636\u0627\u0621\u0629 \u062c\u062f\u0627\u0631\u064a\u0629", url: "\/collections\/\u0627\u0636\u0627\u0621\u0629-\u062c\u062f\u0627\u0631\u064a\u0629", target: "", levels: 0, children: [ ] }, { title: "\u0645\u0635\u0628\u0627\u062d \u0627\u0644\u0644\u064a\u0644", url: "\/collections\/\u0645\u0635\u0628\u0627\u062d-\u0627\u0644\u0644\u064a\u0644", target: "", levels: 0, children: [ ] }, { title: "\u0633\u0628\u0648\u062a \u0644\u0627\u064a\u062a", url: "\/collections\/\u0633\u0628\u0648\u062a-\u0644\u0627\u064a\u062a", target: "", levels: 0, children: [ ] }, ] }, { id: 58215341, title: "\u0627\u0646\u0627\u0631\u0629 \u062e\u0627\u0631\u062c\u064a\u0629", url: "\/collections\/\u0627\u0646\u0627\u0631\u0629-\u062e\u0627\u0631\u062c\u064a\u0629", target: "", levels: 1, product0: { id: ("3ca1ebbe-7288-4d13-b484-41e5b4b98592") }, children: [ { title: "\u0644\u0645\u0628\u0627\u062a \u0637\u0627\u0642\u0629 \u0634\u0645\u0633\u064a\u0629", url: "\/collections\/\u0644\u0645\u0628\u0627\u062a-\u0637\u0627\u0642\u0629-\u0634\u0645\u0633\u064a\u0629", target: "", levels: 0, children: [ ] }, { title: "\u0644\u0645\u0628\u0627\u062a \u0632\u064a\u0646\u0647", url: "\/collections\/\u0644\u0645\u0628\u0627\u062a-\u0632\u064a\u0646\u0647", target: "", levels: 0, children: [ ] }, ] }, { id: 58215347, title: "\u0627\u0644\u0625\u0646\u0627\u0631\u0629 \u0627\u0644\u062f\u064a\u0643\u0648\u0631\u064a\u0629", url: "\/collections\/\u0627\u0644\u0625\u0646\u0627\u0631\u0629-\u0627\u0644\u062f\u064a\u0643\u0648\u0631\u064a\u0629", target: "", levels: 1, product0: { id: ("0235e3c5-c1c0-4275-9819-eb414ba5435a") }, children: [ { title: "\u0641\u0627\u0646\u0648\u0633", url: "\/collections\/\u0641\u0627\u0646\u0648\u0633", target: "", levels: 0, children: [ ] }, { title: "\u0644\u0645\u0628\u0627\u062a \u0632\u064a\u0646\u0647", url: "\/collections\/\u0644\u0645\u0628\u0627\u062a-\u0632\u064a\u0646\u0647", target: "", levels: 0, children: [ ] }, { title: "\u0644\u0645\u0628\u0627\u062a \u0633\u0642\u0641 \u062f\u064a\u0643\u0648\u0631", url: "\/collections\/\u0644\u0645\u0628\u0627\u062a-\u0633\u0642\u0641-\u062f\u064a\u0643\u0648\u0631", target: "", levels: 0, children: [ ] }, { title: "\u0644\u0645\u0628\u0627\u062a \u062c\u062f\u0627\u0631\u064a\u0629", url: "\/collections\/\u0644\u0645\u0628\u0627\u062a-\u062c\u062f\u0627\u0631\u064a\u0629", target: "", levels: 0, children: [ ] }, { title: "\u0627\u0636\u0627\u0621\u0629 \u0633\u0642\u0641", url: "\/collections\/\u0627\u0636\u0627\u0621\u0629-\u0633\u0642\u0641", target: "", levels: 0, children: [ ] }, { title: "\u0644\u0645\u0628\u0629 \u0633\u0642\u0641", url: "\/collections\/\u0644\u0645\u0628\u0629-\u0633\u0642\u0641", target: "", levels: 0, children: [ ] }, ] }, { id: 58215361, title: "\u0644\u0645\u0628\u0627\u062a", url: "\/collections\/\u0644\u0645\u0628\u0627\u062a", target: "", levels: 1, product0: { id: ("1079d159-00a1-4b99-afac-8efde5ec8660") }, children: [ { title: "\u0644\u0645\u0628\u0627\u062a \u0644\u064a\u062f", url: "\/collections\/\u0644\u0645\u0628\u0627\u062a-\u0644\u064a\u062f", target: "", levels: 0, children: [ ] }, { title: "\u0644\u0645\u0628\u0627\u062a \u0633\u0642\u0641", url: "\/collections\/\u0644\u0645\u0628\u0627\u062a-\u0633\u0642\u0641", target: "", levels: 0, children: [ ] }, { title: "\u0644\u0645\u0628\u0627\u062a \u0632\u064a\u0646\u0647", url: "\/collections\/\u0644\u0645\u0628\u0627\u062a-\u0632\u064a\u0646\u0647", target: "", levels: 0, children: [ ] }, ] }, { id: 58215369, title: "\u0627\u062f\u0648\u0627\u062a \u0643\u0647\u0631\u0628\u0627\u0626\u064a\u0629", url: "\/collections\/\u0627\u062f\u0648\u0627\u062a-\u0643\u0647\u0631\u0628\u0627\u0626\u064a\u0629", target: "", levels: 1, product0: { id: ("0235e3c5-c1c0-4275-9819-eb414ba5435a") }, children: [ { title: "\u0643\u0634\u0627\u0641", url: "\/collections\/\u0643\u0634\u0627\u0641", target: "", levels: 0, children: [ ] }, { title: "\u0643\u0634\u0627\u0641 \u0637\u0627\u0642\u0629 \u0634\u0645\u0633\u064a\u0629", url: "\/collections\/\u0643\u0634\u0627\u0641-\u0637\u0627\u0642\u0629-\u0634\u0645\u0633\u064a\u0629", target: "", levels: 0, children: [ ] }, ] }, ].slice(offset); linkList = formatLinks(linkList); const hasChild = linkList.some(link => !!(link.children && link.children.length || link.product0.id)); return `
${link.title}
${link.tag.label}
${second_link.title}
${second_link.tag.label}
${third_links.title}
${third_links.tag.label}
${link.title}
${link.tag.label}
` })()}
الصفحة الرئيسية
جميع المنتجات
اضاءة
اضاء
انارة
اضاءات
حفظ
﷼89.97
حفظ
﷼89.97
فتاة صغيرة غلاية الضوء
﷼134.90
﷼224.87
إنارة داخلية
لمبة
اضاءة جدارية
مصباح الليل
سبوت لايت
حفظ
﷼224.90
حفظ
﷼224.90
مصباح حائط زجاجي إبداعي شخصي
﷼262.35
﷼487.25
انارة خارجية
لمبات طاقة شمسية
لمبات زينه
حفظ
﷼41.23
حفظ
﷼41.23
مصباح لطوب الثلج الشمسي الكبير
﷼71.18
﷼112.41
الإنارة الديكورية
فانوس
لمبات زينه
لمبات سقف ديكور
لمبات جدارية
اضاءة سقف
لمبة سقف
حفظ
﷼104.96
حفظ
﷼104.96
ضوء شمسي خارجي حديقة ضوء أرنب صغير أبيض
﷼116.16
﷼221.12
لمبات
لمبات ليد
لمبات سقف
لمبات زينه
حفظ
﷼59.97
حفظ
﷼59.97
أضواء حديقة شمسية مدببة
﷼86.18
﷼146.15
ادوات كهربائية
كشاف
كشاف طاقة شمسية
حفظ
﷼104.96
حفظ
﷼104.96
ضوء شمسي خارجي حديقة ضوء أرنب صغير أبيض
﷼116.16
﷼221.12
المزيد من الروابط
${(function(){ const formatLinks = (links) => { return links.map(link => { link.tag = tags[link.title.toUpperCase()] || {}; link.target_attr = link.target == '_blank' ? 'target="_blank"' : ''; link.href_attr = link.url ? `href="${link.url}"` : ''; if(link.children && link.children.length){ link.children = formatLinks(link.children); } return link; }) }; const tags = "{}"; let linkList = [ { id: 58215319, title: "\u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629", url: "\/", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 58215321, title: "\u062c\u0645\u064a\u0639 \u0627\u0644\u0645\u0646\u062a\u062c\u0627\u062a", url: "\/collections\/\u062c\u0645\u064a\u0639-\u0627\u0644\u0645\u0646\u062a\u062c\u0627\u062a", target: "", levels: 1, product0: { id: ("54854a40-3c9d-4a9c-b6a0-0a7a72d1ad24") }, children: [ { title: "\u0627\u0636\u0627\u0621\u0629", url: "\/collections\/\u0627\u0636\u0627\u0621\u0629", target: "", levels: 0, children: [ ] }, { title: "\u0627\u0636\u0627\u0621", url: "\/collections\/\u0627\u0636\u0627\u0621", target: "", levels: 0, children: [ ] }, { title: "\u0627\u0646\u0627\u0631\u0629", url: "\/collections\/\u0627\u0646\u0627\u0631\u0629", target: "", levels: 0, children: [ ] }, { title: "\u0627\u0636\u0627\u0621\u0627\u062a", url: "\/collections\/\u0627\u0636\u0627\u0621\u0627\u062a", target: "", levels: 0, children: [ ] }, ] }, { id: 58215331, title: "\u0625\u0646\u0627\u0631\u0629 \u062f\u0627\u062e\u0644\u064a\u0629 ", url: "\/collections\/\u0625\u0646\u0627\u0631\u0629-\u062f\u0627\u062e\u0644\u064a\u0629", target: "", levels: 1, product0: { id: ("53fe12db-5796-4bc2-b98f-5ba2195f1e72") }, children: [ { title: "\u0644\u0645\u0628\u0629", url: "\/collections\/\u0644\u0645\u0628\u0629", target: "", levels: 0, children: [ ] }, { title: "\u0627\u0636\u0627\u0621\u0629 \u062c\u062f\u0627\u0631\u064a\u0629", url: "\/collections\/\u0627\u0636\u0627\u0621\u0629-\u062c\u062f\u0627\u0631\u064a\u0629", target: "", levels: 0, children: [ ] }, { title: "\u0645\u0635\u0628\u0627\u062d \u0627\u0644\u0644\u064a\u0644", url: "\/collections\/\u0645\u0635\u0628\u0627\u062d-\u0627\u0644\u0644\u064a\u0644", target: "", levels: 0, children: [ ] }, { title: "\u0633\u0628\u0648\u062a \u0644\u0627\u064a\u062a", url: "\/collections\/\u0633\u0628\u0648\u062a-\u0644\u0627\u064a\u062a", target: "", levels: 0, children: [ ] }, ] }, { id: 58215341, title: "\u0627\u0646\u0627\u0631\u0629 \u062e\u0627\u0631\u062c\u064a\u0629", url: "\/collections\/\u0627\u0646\u0627\u0631\u0629-\u062e\u0627\u0631\u062c\u064a\u0629", target: "", levels: 1, product0: { id: ("3ca1ebbe-7288-4d13-b484-41e5b4b98592") }, children: [ { title: "\u0644\u0645\u0628\u0627\u062a \u0637\u0627\u0642\u0629 \u0634\u0645\u0633\u064a\u0629", url: "\/collections\/\u0644\u0645\u0628\u0627\u062a-\u0637\u0627\u0642\u0629-\u0634\u0645\u0633\u064a\u0629", target: "", levels: 0, children: [ ] }, { title: "\u0644\u0645\u0628\u0627\u062a \u0632\u064a\u0646\u0647", url: "\/collections\/\u0644\u0645\u0628\u0627\u062a-\u0632\u064a\u0646\u0647", target: "", levels: 0, children: [ ] }, ] }, { id: 58215347, title: "\u0627\u0644\u0625\u0646\u0627\u0631\u0629 \u0627\u0644\u062f\u064a\u0643\u0648\u0631\u064a\u0629", url: "\/collections\/\u0627\u0644\u0625\u0646\u0627\u0631\u0629-\u0627\u0644\u062f\u064a\u0643\u0648\u0631\u064a\u0629", target: "", levels: 1, product0: { id: ("0235e3c5-c1c0-4275-9819-eb414ba5435a") }, children: [ { title: "\u0641\u0627\u0646\u0648\u0633", url: "\/collections\/\u0641\u0627\u0646\u0648\u0633", target: "", levels: 0, children: [ ] }, { title: "\u0644\u0645\u0628\u0627\u062a \u0632\u064a\u0646\u0647", url: "\/collections\/\u0644\u0645\u0628\u0627\u062a-\u0632\u064a\u0646\u0647", target: "", levels: 0, children: [ ] }, { title: "\u0644\u0645\u0628\u0627\u062a \u0633\u0642\u0641 \u062f\u064a\u0643\u0648\u0631", url: "\/collections\/\u0644\u0645\u0628\u0627\u062a-\u0633\u0642\u0641-\u062f\u064a\u0643\u0648\u0631", target: "", levels: 0, children: [ ] }, { title: "\u0644\u0645\u0628\u0627\u062a \u062c\u062f\u0627\u0631\u064a\u0629", url: "\/collections\/\u0644\u0645\u0628\u0627\u062a-\u062c\u062f\u0627\u0631\u064a\u0629", target: "", levels: 0, children: [ ] }, { title: "\u0627\u0636\u0627\u0621\u0629 \u0633\u0642\u0641", url: "\/collections\/\u0627\u0636\u0627\u0621\u0629-\u0633\u0642\u0641", target: "", levels: 0, children: [ ] }, { title: "\u0644\u0645\u0628\u0629 \u0633\u0642\u0641", url: "\/collections\/\u0644\u0645\u0628\u0629-\u0633\u0642\u0641", target: "", levels: 0, children: [ ] }, ] }, { id: 58215361, title: "\u0644\u0645\u0628\u0627\u062a", url: "\/collections\/\u0644\u0645\u0628\u0627\u062a", target: "", levels: 1, product0: { id: ("1079d159-00a1-4b99-afac-8efde5ec8660") }, children: [ { title: "\u0644\u0645\u0628\u0627\u062a \u0644\u064a\u062f", url: "\/collections\/\u0644\u0645\u0628\u0627\u062a-\u0644\u064a\u062f", target: "", levels: 0, children: [ ] }, { title: "\u0644\u0645\u0628\u0627\u062a \u0633\u0642\u0641", url: "\/collections\/\u0644\u0645\u0628\u0627\u062a-\u0633\u0642\u0641", target: "", levels: 0, children: [ ] }, { title: "\u0644\u0645\u0628\u0627\u062a \u0632\u064a\u0646\u0647", url: "\/collections\/\u0644\u0645\u0628\u0627\u062a-\u0632\u064a\u0646\u0647", target: "", levels: 0, children: [ ] }, ] }, { id: 58215369, title: "\u0627\u062f\u0648\u0627\u062a \u0643\u0647\u0631\u0628\u0627\u0626\u064a\u0629", url: "\/collections\/\u0627\u062f\u0648\u0627\u062a-\u0643\u0647\u0631\u0628\u0627\u0626\u064a\u0629", target: "", levels: 1, product0: { id: ("0235e3c5-c1c0-4275-9819-eb414ba5435a") }, children: [ { title: "\u0643\u0634\u0627\u0641", url: "\/collections\/\u0643\u0634\u0627\u0641", target: "", levels: 0, children: [ ] }, { title: "\u0643\u0634\u0627\u0641 \u0637\u0627\u0642\u0629 \u0634\u0645\u0633\u064a\u0629", url: "\/collections\/\u0643\u0634\u0627\u0641-\u0637\u0627\u0642\u0629-\u0634\u0645\u0633\u064a\u0629", target: "", levels: 0, children: [ ] }, ] }, ].slice(offset); linkList = formatLinks(linkList); const hasChild = linkList.some(link => !!(link.children && link.children.length || link.product0.id)); return `
${link.title}
${link.tag.label}
${second_link.title}
${second_link.tag.label}
${third_links.title}
${third_links.tag.label}
${link.title}
${link.tag.label}
` })()}
يسجل دخول
إنشاء حساب
${data.data && data.data.count}
${(function(){ if (data === undefined || typeof data !== 'string' || data == '') return '
'; const keyword = encodeURIComponent(data); return `
عرض المزيد
بحثك عن '${data}' لم تسفر عن أي نتائج.
` })()}
الصفحة الرئيسية
جميع المنتجات
جميع المنتجات
اضاءة
اضاء
انارة
اضاءات
إنارة داخلية
إنارة داخلية
لمبة
اضاءة جدارية
مصباح الليل
سبوت لايت
انارة خارجية
انارة خارجية
لمبات طاقة شمسية
لمبات زينه
الإنارة الديكورية
الإنارة الديكورية
فانوس
لمبات زينه
لمبات سقف ديكور
لمبات جدارية
اضاءة سقف
لمبة سقف
لمبات
لمبات
لمبات ليد
لمبات سقف
لمبات زينه
ادوات كهربائية
ادوات كهربائية
كشاف
كشاف طاقة شمسية
يسجل دخول
(function(){ let w = window.innerWidth; function setHeaderCssVar() { const headerEle = document.getElementById('shoplaza-section-header'); if(!headerEle){ return }; document.body.style.setProperty('--window-height', `${window.innerHeight}px`); document.body.style.setProperty('--header-height', `${headerEle.clientHeight}px`); const mdScorllHideEle = headerEle.querySelector('.header__mobile .header__scroll_hide'); if (mdScorllHideEle) { document.body.style.setProperty('--header-scroll-hide-height-md', `${mdScorllHideEle.clientHeight}px`); } const pcScorllHideEle = headerEle.querySelector('.header__desktop .header__scroll_hide'); if (pcScorllHideEle) { document.body.style.setProperty('--header-scroll-hide-height-pc', `${pcScorllHideEle.clientHeight}px`); } } function handlResize() { if(w == window.innerWidth){return}; w = window.innerWidth; setHeaderCssVar(); }; function init(){ setHeaderCssVar(); window.removeEventListener('resize', window._theme_header_listener) window._theme_header_listener = handlResize; window.addEventListener('resize', window._theme_header_listener); } init(); })();
تسجيل الدخول
يرجى إدخال البريد الإلكتروني وكلمة المرور:
${data.errors && data.errors[0]}
بريد الالكتروني
البريد الالكتروني مطلوب
يرجى إدخال البريد الإلكتروني الصحيح.
كلمة المرور
كلمة المرور مطلوبة.
يجب أن تكون كلمة المرور بين 6-16 حرفا.
هل نسيت كلمة السر؟
هل نسيت كلمة السر؟
تسجيل الدخول
${ Object.keys((data && data.login_setting) || {}) .map(type => `
`) .join("") }
عرض العربة
${function(){ const productData = data.product; let product_change_event = '', mouse_over_event = ' '; mouse_out_event = ''; const product_options = productData.options.filter(Boolean) || []; for (let opt of product_options) { product_change_event = product_change_event + `quick-shop-selected-variant-${opt.name}.rerender(data=event.selectedValues.${opt.name});`; mouse_out_event = mouse_out_event + `quick-shop-selected-variant-${opt.name}.rerender(data=event.selectData.${opt.name});`; mouse_over_event = mouse_over_event + `@${opt.name}Mouseover="quick-shop-selected-variant-${opt.name}.rerender(data=event);"`; } const selectedVariant = productData.variants.find(v => v.available) || productData.variants[0]; const statusLan = ((selectedVariant && !selectedVariant.available) || (!selectedVariant && !productData.available)) ? "\u0646\u0641\u0630" : "\u0623\u0636\u0641 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629"; return `
${statusLan}
` }()}
${function(){ const currentSelectVariant = data.variant; const defaultVariant = (data.product && data.product.variants && data.product.variants[0]); const variantData = currentSelectVariant || defaultVariant || data; const retail_price = variantData.retail_price || 0; return `
بيع بالتجزئة
` }()}
${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 = null; 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 ? `
` : '
'; } }()}
${function() { let variantImageShowed = false; const currentProduct = data.product; return (currentProduct.options || []).map((option, index) => { const optionName = option.name || ''; const position = `option${index + 1}`; let isThumbImage = false; if (currentProduct.need_variant_image && !variantImageShowed) { const variantNames = ["color"] || []; for (let i = 0, len = variantNames.length; i < len; i++) { const name = variantNames[i].toLowerCase(); if (name === optionName.toLowerCase()) { isThumbImage = true; variantImageShowed = true; } } } const variantType = "button"; const thumbStyle = "image_with_text"; return `
${optionName}:
${option.values.map((value, idx) => { const selected = data.selectedValues[optionName] == value ? 'checked' : ''; let thumbImage = null; if (isThumbImage) { const variants = currentProduct.variants; for (let i = 0, len = variants.length; i < len; i++) { const variant = variants[i]; if (variant[position] == value && thumbImage == null) { thumbImage = variant.image; break; } } } return `
${value}
` }).join('')}
${optionName}
${option.values.map(value => { const selected = data.selectedValues[optionName] == value ? 'selected' : ''; return `
${value}
` }).join('')}
` }).join(''); }()}
${data.originData && data.originData.value || data.value}