Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple Cadeaux de Noël

Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple Cadeaux de Noël

SKU : ZF0P004X03
-48%
partager pour obtenir un coupon
  • Ce miroir prénom personnalisé super élégant avec éclairage LED est une édition parfaite et unique pour n'importe quelle chambre de jeune, ils adoreront éclairer le miroir personnalisé et voir leur propre nom dans les lumières. Le miroir personnalisé accrocheur constitue le cadeau parfait pour 2023 et il sera chéri et aimé pendant de nombreuses années par le destinataire. Comprend une télécommande pour l'éclairage LED et des supports de montage muraux chromés.
  • Livraison mondiale
  • Fabriqué de manière durable
  • Veuillez noter : vous pouvez changer les couleurs sur le produit via la télécommande fournie, vous ne sélectionnez pas les couleurs lors de la commande. Le miroir nominatif est fabriqué dans un souci de sécurité, nous utilisons un miroir de sécurité en acrylique léger et incassable.
  • Qu'y a-t-il dans la boîte ?
  • Miroir avec n'importe quel nom gravé
  • Éclairage LED
  • Le miroir de sécurité en acrylique est léger et incassable
  • Télécommande
  • Supports de montage mural
  • Combien de temps faudra-t-il pour réaliser ?(Durée de production).
  • STOP ! LISEZ S'IL VOUS PLAÎT ? C'est notre période la plus chargée de l'année et nous estimons actuellement notre temps de production entre 3 et 5 jours ouvrables en raison de la forte demande, mais nos adorables clients vous diront qu'ils valent la peine d'attendre.
  • Options de livraison :Service entièrement suivi (2-3 jours ouvrables à compter de l'expédition)
  • Tailles du produit : 150 mm x 300 mm/400 mm x 200 mm/500 mm x 250 mm TAILLE DU CÂBLE USB de 1,5 mètres de long.
  • Matériaux : Acrylique officiel de haute qualité Le miroir de sécurité en acrylique est léger et incassable.
  • Nous proposons également d'autres cadeaux personnalisés, tels que Miroir lumineux personnaliséVeilleuses PersonnaliséesAmpoules vintage personnaliséesLampe de Lune PhotoPlaque de  Code SpotifyLampe Rose,et  Puzzle de noms en bois.
Miroir lumineux personnalisé
Voir tous

Vidéo

Details

- FIN -
\n
\n\n
\n
\n
\nTRANSLATE with \n
\n
\n
COPY THE URL BELOW
\n
\n \n
\n\n \n
\n
\n
\nEMBED THE SNIPPET BELOW IN YOUR SITE \n
\n
\n
Enable collaborative features and customize widget: Bing Webmaster Portal
\n\n
\n\n\n
\n
\n
\n
此页面的语言为法语
\n
\n
\n
\n
\n
\n
\n
翻译为英语
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
    \n
  • 中文(简体)
  • \n
  • 中文(繁体)
  • \n
  • 丹麦语
  • \n
  • 乌克兰语
  • \n
  • 乌尔都语
  • \n
  • 亚美尼亚语
  • \n
  • 俄语
  • \n
  • 保加利亚语
  • \n
  • 克罗地亚语
  • \n
  • 冰岛语
  • \n
  • 加泰罗尼亚语
  • \n
  • 匈牙利语
  • \n
  • 卡纳达语
  • \n
  • 印地语
  • \n
  • 印尼语
  • \n
  • 古吉拉特语
  • \n
  • 哈萨克语
  • \n
  • 土耳其语
  • \n
  • 威尔士语
  • \n
  • 孟加拉语
  • \n
  • 尼泊尔语
  • \n
  • 布尔语(南非荷兰语)
  • \n
  • 希伯来语
  • \n
  • 希腊语
  • \n
  • 库尔德语
  • \n
  • 德语
  • \n
  • 意大利语
  • \n
  • 拉脱维亚语
  • \n
  • 挪威语
  • \n
  • 捷克语
  • \n
  • 斯洛伐克语
  • \n
  • 斯洛文尼亚语
  • \n
  • 旁遮普语
  • \n
  • 日语
  • \n
  • 普什图语
  • \n
  • 毛利语
  • \n
  • 法语
  • \n
  • 波兰语
  • \n
  • 波斯语
  • \n
  • 泰卢固语
  • \n
  • 泰米尔语
  • \n
  • 泰语
  • \n
  • 海地克里奥尔语
  • \n
  • 爱沙尼亚语
  • \n
  • 瑞典语
  • \n
  • 立陶宛语
  • \n
  • 缅甸语
  • \n
  • 罗马尼亚语
  • \n
  • 老挝语
  • \n
  • 芬兰语
  • \n
  • 英语
  • \n
  • 荷兰语
  • \n
  • 萨摩亚语
  • \n
  • 葡萄牙语
  • \n
  • 西班牙语
  • \n
  • 越南语
  • \n
  • 阿塞拜疆语
  • \n
  • 阿姆哈拉语
  • \n
  • 阿尔巴尼亚语
  • \n
  • 阿拉伯语
  • \n
  • 韩语
  • \n
  • 马尔加什语
  • \n
  • 马拉地语
  • \n
  • 马拉雅拉姆语
  • \n
  • 马来语
  • \n
  • 马耳他语
  • \n
  • 高棉语
  • \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

\n
\n
","featured_image":{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212630","media_type":"image","position":1,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-3.jpg?w=1000&h=1000","variants":[],"width":1000},"featured_media":{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212630","media_type":"image","position":1,"preview_image":{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212630","media_type":"image","position":1,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-3.jpg?w=1000&h=1000","variants":[],"width":1000},"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-3.jpg?w=1000&h=1000","variants":[],"width":1000},"first_available_variant":{"available":true,"barcode":null,"compare_at_price":5000,"featured_image":null,"featured_media":null,"id":"18068609051438581529722015","image":null,"option1":"150 mm x 300 mm","option2":"Non merci!","option3":null,"option4":null,"option5":null,"options":["150 mm x 300 mm","Non merci!"],"price":2595,"requires_selling_plan":false,"requires_shipping":true,"selected":false,"selling_plan_allocations":[],"sku":"ZF0P004X03","taxable":false,"title":"150 mm x 300 mm/Non merci!","url":"/products/nom-personnalise-miroir-lumiere-infini-amour-cadeau-pour-couple-cadeaux-de-noel?sku=18068609051438581529722015","weight_in_unit":"250","weight_unit":"g","inventory_management":true,"inventory_policy":"deny","inventory_quantity":10000,"quantity_rule":{"increment":1,"min":1,"max":null}},"handle":"nom-personnalise-miroir-lumiere-infini-amour-cadeau-pour-couple-cadeaux-de-noel","has_only_default_variant":false,"images":[{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212630","media_type":"image","position":1,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-3.jpg?w=1000&h=1000","variants":[],"width":1000},{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212631","media_type":"image","position":2,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01.jpg?w=1000&h=1000","variants":[],"width":1000},{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212632","media_type":"image","position":3,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-1.jpg?w=1000&h=1000","variants":[],"width":1000},{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212633","media_type":"image","position":4,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-2.jpg?w=1000&h=1000","variants":[],"width":1000}],"media":[{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212630","media_type":"image","position":1,"preview_image":{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212630","media_type":"image","position":1,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-3.jpg?w=1000&h=1000","variants":[],"width":1000},"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-3.jpg?w=1000&h=1000","variants":[],"width":1000},{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212631","media_type":"image","position":2,"preview_image":{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212631","media_type":"image","position":1,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01.jpg?w=1000&h=1000","variants":[],"width":1000},"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01.jpg?w=1000&h=1000","variants":[],"width":1000},{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212632","media_type":"image","position":3,"preview_image":{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212632","media_type":"image","position":1,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-1.jpg?w=1000&h=1000","variants":[],"width":1000},"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-1.jpg?w=1000&h=1000","variants":[],"width":1000},{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212633","media_type":"image","position":4,"preview_image":{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212633","media_type":"image","position":1,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-2.jpg?w=1000&h=1000","variants":[],"width":1000},"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-2.jpg?w=1000&h=1000","variants":[],"width":1000}],"options":["Taille","Avez-vous besoin dune télécommande ?"],"options_by_name":{"Avez-vous besoin dune télécommande ?":{"name":"Avez-vous besoin dune télécommande ?","selected_value":null,"values":["Non merci!","Oui bien sûr !(+3,99€)"],"position":1,"values_images":[{"value":"Non merci!","image":null},{"value":"Oui bien sûr !(+3,99€)","image":null}],"option_values":[{"id":"16268609051438581529782015","value":"Non merci!","image":null},{"id":"16268609051438581529842015","value":"Oui bien sûr !(+3,99€)","image":null}]},"Taille":{"name":"Taille","selected_value":null,"values":["150 mm x 300 mm","400 mm x 200 mm","500 mm x 250 mm"],"position":0,"values_images":[{"value":"150 mm x 300 mm","image":null},{"value":"400 mm x 200 mm","image":null},{"value":"500 mm x 250 mm","image":null}],"option_values":[{"id":"16268609051438581529752015","value":"150 mm x 300 mm","image":null},{"id":"16268609051438581529892015","value":"400 mm x 200 mm","image":null},{"id":"16268609051438581530002015","value":"500 mm x 250 mm","image":null}]}},"options_with_values":[{"name":"Taille","position":0,"selected_value":null,"values":["150 mm x 300 mm","400 mm x 200 mm","500 mm x 250 mm"],"values_images":[{"value":"150 mm x 300 mm","image":null},{"value":"400 mm x 200 mm","image":null},{"value":"500 mm x 250 mm","image":null}],"option_values":[{"id":"16268609051438581529752015","value":"150 mm x 300 mm","image":null},{"id":"16268609051438581529892015","value":"400 mm x 200 mm","image":null},{"id":"16268609051438581530002015","value":"500 mm x 250 mm","image":null}],"specName":"Taille","specPosition":1,"specIndex":"0","hideVariant":false},{"name":"Avez-vous besoin dune télécommande ?","position":1,"selected_value":null,"values":["Non merci!","Oui bien sûr !(+3,99€)"],"values_images":[{"value":"Non merci!","image":null},{"value":"Oui bien sûr !(+3,99€)","image":null}],"option_values":[{"id":"16268609051438581529782015","value":"Non merci!","image":null},{"id":"16268609051438581529842015","value":"Oui bien sûr !(+3,99€)","image":null}],"specName":"Avez-vous besoin dune télécommande ?","specPosition":2,"specIndex":"1","hideVariant":false}],"price":2595,"price_max":5294,"price_min":2595,"price_varies":false,"requires_selling_plan":false,"selected_variant":null,"selected_or_first_available_variant":{"available":true,"barcode":null,"compare_at_price":5000,"featured_image":null,"featured_media":null,"id":"18068609051438581529722015","image":null,"option1":"150 mm x 300 mm","option2":"Non merci!","option3":null,"option4":null,"option5":null,"options":["150 mm x 300 mm","Non merci!"],"price":2595,"requires_selling_plan":false,"requires_shipping":true,"selected":false,"selling_plan_allocations":[],"sku":"ZF0P004X03","taxable":false,"title":"150 mm x 300 mm/Non merci!","url":"/products/nom-personnalise-miroir-lumiere-infini-amour-cadeau-pour-couple-cadeaux-de-noel?sku=18068609051438581529722015","weight_in_unit":"250","weight_unit":"g","inventory_management":true,"inventory_policy":"deny","inventory_quantity":10000,"quantity_rule":{"increment":1,"min":1,"max":null}},"tags":["custom-sunzi-chase-tag11424","custom-mademine-tag","custom-mirror-light","googlepla4test","insurance","isCustom","video-cusom-mirror-light"],"variants":[{"available":true,"barcode":null,"compare_at_price":5000,"featured_image":null,"featured_media":null,"id":"18068609051438581529722015","image":null,"option1":"150 mm x 300 mm","option2":"Non merci!","option3":null,"option4":null,"option5":null,"options":["150 mm x 300 mm","Non merci!"],"price":2595,"requires_selling_plan":false,"requires_shipping":true,"selected":false,"selling_plan_allocations":[],"sku":"ZF0P004X03","taxable":false,"title":"150 mm x 300 mm/Non merci!","url":"/products/nom-personnalise-miroir-lumiere-infini-amour-cadeau-pour-couple-cadeaux-de-noel?sku=18068609051438581529722015","weight_in_unit":"250","weight_unit":"g","inventory_management":true,"inventory_policy":"deny","inventory_quantity":10000,"quantity_rule":{"increment":1,"min":1,"max":null}},{"available":true,"barcode":null,"compare_at_price":6000,"featured_image":null,"featured_media":null,"id":"18068609051438581529812015","image":null,"option1":"150 mm x 300 mm","option2":"Oui bien sûr !(+3,99€)","option3":null,"option4":null,"option5":null,"options":["150 mm x 300 mm","Oui bien sûr !(+3,99€)"],"price":2994,"requires_selling_plan":false,"requires_shipping":true,"selected":false,"selling_plan_allocations":[],"sku":"ZF0P004X04","taxable":false,"title":"150 mm x 300 mm/Oui bien sûr !(+3,99€)","url":"/products/nom-personnalise-miroir-lumiere-infini-amour-cadeau-pour-couple-cadeaux-de-noel?sku=18068609051438581529812015","weight_in_unit":"250","weight_unit":"g","inventory_management":true,"inventory_policy":"deny","inventory_quantity":10000,"quantity_rule":{"increment":1,"min":1,"max":null}},{"available":true,"barcode":null,"compare_at_price":7000,"featured_image":null,"featured_media":null,"id":"18068609051438581529872015","image":null,"option1":"400 mm x 200 mm","option2":"Non merci!","option3":null,"option4":null,"option5":null,"options":["400 mm x 200 mm","Non merci!"],"price":3895,"requires_selling_plan":false,"requires_shipping":true,"selected":false,"selling_plan_allocations":[],"sku":"ZF0P004X01","taxable":false,"title":"400 mm x 200 mm/Non merci!","url":"/products/nom-personnalise-miroir-lumiere-infini-amour-cadeau-pour-couple-cadeaux-de-noel?sku=18068609051438581529872015","weight_in_unit":"320","weight_unit":"g","inventory_management":true,"inventory_policy":"deny","inventory_quantity":10000,"quantity_rule":{"increment":1,"min":1,"max":null}},{"available":true,"barcode":null,"compare_at_price":8000,"featured_image":null,"featured_media":null,"id":"18068609051438581529932015","image":null,"option1":"400 mm x 200 mm","option2":"Oui bien sûr !(+3,99€)","option3":null,"option4":null,"option5":null,"options":["400 mm x 200 mm","Oui bien sûr !(+3,99€)"],"price":4294,"requires_selling_plan":false,"requires_shipping":true,"selected":false,"selling_plan_allocations":[],"sku":"ZF0P004X02","taxable":false,"title":"400 mm x 200 mm/Oui bien sûr !(+3,99€)","url":"/products/nom-personnalise-miroir-lumiere-infini-amour-cadeau-pour-couple-cadeaux-de-noel?sku=18068609051438581529932015","weight_in_unit":"320","weight_unit":"g","inventory_management":true,"inventory_policy":"deny","inventory_quantity":10000,"quantity_rule":{"increment":1,"min":1,"max":null}},{"available":true,"barcode":null,"compare_at_price":8000,"featured_image":null,"featured_media":null,"id":"18068609051438581529982015","image":null,"option1":"500 mm x 250 mm","option2":"Non merci!","option3":null,"option4":null,"option5":null,"options":["500 mm x 250 mm","Non merci!"],"price":4895,"requires_selling_plan":false,"requires_shipping":true,"selected":false,"selling_plan_allocations":[],"sku":"ZF0P004X05","taxable":false,"title":"500 mm x 250 mm/Non merci!","url":"/products/nom-personnalise-miroir-lumiere-infini-amour-cadeau-pour-couple-cadeaux-de-noel?sku=18068609051438581529982015","weight_in_unit":"430","weight_unit":"g","inventory_management":true,"inventory_policy":"deny","inventory_quantity":10000,"quantity_rule":{"increment":1,"min":1,"max":null}},{"available":true,"barcode":null,"compare_at_price":9000,"featured_image":null,"featured_media":null,"id":"18068609051438581530042015","image":null,"option1":"500 mm x 250 mm","option2":"Oui bien sûr !(+3,99€)","option3":null,"option4":null,"option5":null,"options":["500 mm x 250 mm","Oui bien sûr !(+3,99€)"],"price":5294,"requires_selling_plan":false,"requires_shipping":true,"selected":false,"selling_plan_allocations":[],"sku":"ZF0P004X06","taxable":false,"title":"500 mm x 250 mm/Oui bien sûr !(+3,99€)","url":"/products/nom-personnalise-miroir-lumiere-infini-amour-cadeau-pour-couple-cadeaux-de-noel?sku=18068609051438581530042015","weight_in_unit":"430","weight_unit":"g","inventory_management":true,"inventory_policy":"deny","inventory_quantity":10000,"quantity_rule":{"increment":1,"min":1,"max":null}}],"quantity_price_breaks_configured":false}; var $variant = getQueryVariable('sku') || product.variants[0].id; var _sunzi_dom_loaded_promise = new Promise((resolve) => { window.addEventListener('DOMContentLoaded', resolve); }); // 监听dom加载完成 function _domLoaded() { return _sunzi_dom_loaded_promise; } function _sunzi_get_variant_id() { $variant = getQueryVariable('sku') || product.variants[0].id; return $variant; } /** sunzi 寻找所有变体元素 **/ function _sunzi_find_variants(formClass = _sunzi_global_data.domLabel.form, selectClass = _sunzi_global_data.domLabel.select) { var formClassText = formClass || formClassLabel; return $(formClassText).find(selectClass); } // 多产品加车 data是数组 function _sunzi_add_to_cart_multi(data) { if (data.length === 0) return; addCommonProdcut(data) data.forEach((item) => addCommonProperties(item)) return new Promise((resolve, reject) => { $.ajax({ type: "POST", url: "/api/carts/ajax-cart/add.js", data: JSON.stringify({ items: data }), contentType: 'application/json', dataType: 'json', context: this, success: async (response) => { // refresh cart data Cart.refresh(); // show success drawer var quantityHtml=`
${addCartProImage()}
${$(".title.shopline-element-title").text()} ${$("#ProductPriceproduct-page-price").text()}  x${$("#Quantity-main-product-info").val()}
`; $(".trade-cart-sku-item-info-title.body2").html(quantityHtml); $("#cart-select").addClass("top-drawer--open").show(); $('.top-drawer__mask').bind("click",function(e){ if($(e.target).closest("#cart-select").length == 1){ $("#cart-select").removeClass("top-drawer--open").hide(); } }) $(".trade-cart-banner--close").on("click",function(){ $("#cart-select").removeClass("top-drawer--open").hide(); }) resolve(response); }, error: (request, status) => { reject(request, status); } }) }) } // 添加通用Properties function addCommonProperties(mainProduct) { const host = window.location.host // soufeel补充language参数 if (host.includes("r39x33kmubdcsvja9i") || host.includes("soufeel")) { const language = mainProduct.properties.find(item => item.name === "language") if (language) return; mainProduct.properties = [ ...mainProduct.properties, { type: 'text', name: 'language', value: _sunzi_global_data["shop-v1"].language, } ] } } // 寻找主产品 function findMainProduct(data) { let mainProduct = undefined; let mainProductId = undefined; if (data.length === 1) { mainProduct = data[0]; const bindId = mainProduct.properties.find(item => item.name === "_bind") if (bindId) mainProductId = bindId.value; else { mainProductId = _create_uuid(); mainProduct.properties = [ ...mainProduct.properties, { type: 'text', name: '_bind', value: mainProductId, } ] } } else { data.some((productItem) => { const bindId = productItem.properties.find(item => item.name === "_bind") if (bindId) { mainProduct = productItem; mainProductId = bindId.value; return true; } else return false; }) } return {mainProduct, mainProductId} } // 添加通用加购 function addCommonProdcut(data) { // 新版追销参数 // 数量控制 var chaseBindQuantity = { "allow": 101, "not_allow": 102, "follow": 103 } // 删除控制 var chaseBindAloneDelete = { "allow": 201, "not_allow": 202 } // 寻找主产品 const { mainProduct, mainProductId } = findMainProduct(data) if (mainProduct && mainProductId) { const isChecked = $('#insuranceBox').prop('checked'); let queue=[] if (isChecked) { const value = $('#insuranceBox').val(); // let _sunzi_related_productsItem= data[0].properties.find(item=>{ // return item.name==='_sunzi_related_products' // }) // if(_sunzi_related_productsItem){ // let _value=JSON.parse(data[0].properties['_sunzi_related_products'].value) // data[0].properties['_sunzi_related_products']={ // ...data[0].properties['_sunzi_related_products'], // value:JSON.stringify(_value.push(uuid)) // } // } // else{ // data[0].properties.push({ // type: "text", // name: "_sunzi_related_products", // value: JSON.stringify([uuid]) // }) // } queue.unshift({ "id":value, properties:[{ type: 'text', name: '_bindTo', value: mainProductId, }, { type: 'text', name: '_bindQuantity', value: chaseBindQuantity.not_allow, }, { type: 'text', name: '_bindAloneDelete', value: chaseBindAloneDelete.allow, }], "quantity": 1, }); } data.push(...queue) } } // 获取地址栏参数 function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i
\n\n\n
\n\n
\nTRANSLATE with \n
\n
\n
COPY THE URL BELOW
\n
\n \n
\n\n \n
\n
\n
\nEMBED THE SNIPPET BELOW IN YOUR SITE \n
\n
\n
Enable collaborative features and customize widget: Bing Webmaster Portal
\n\n
\n\n\n
\n
\n
\n
此页面的语言为法语
\n
\n
\n
\n
\n
\n
\n
翻译为英语
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
    \n
  • 中文(简体)
  • \n
  • 中文(繁体)
  • \n
  • 丹麦语
  • \n
  • 乌克兰语
  • \n
  • 乌尔都语
  • \n
  • 亚美尼亚语
  • \n
  • 俄语
  • \n
  • 保加利亚语
  • \n
  • 克罗地亚语
  • \n
  • 冰岛语
  • \n
  • 加泰罗尼亚语
  • \n
  • 匈牙利语
  • \n
  • 卡纳达语
  • \n
  • 印地语
  • \n
  • 印尼语
  • \n
  • 古吉拉特语
  • \n
  • 哈萨克语
  • \n
  • 土耳其语
  • \n
  • 威尔士语
  • \n
  • 孟加拉语
  • \n
  • 尼泊尔语
  • \n
  • 布尔语(南非荷兰语)
  • \n
  • 希伯来语
  • \n
  • 希腊语
  • \n
  • 库尔德语
  • \n
  • 德语
  • \n
  • 意大利语
  • \n
  • 拉脱维亚语
  • \n
  • 挪威语
  • \n
  • 捷克语
  • \n
  • 斯洛伐克语
  • \n
  • 斯洛文尼亚语
  • \n
  • 旁遮普语
  • \n
  • 日语
  • \n
  • 普什图语
  • \n
  • 毛利语
  • \n
  • 法语
  • \n
  • 波兰语
  • \n
  • 波斯语
  • \n
  • 泰卢固语
  • \n
  • 泰米尔语
  • \n
  • 泰语
  • \n
  • 海地克里奥尔语
  • \n
  • 爱沙尼亚语
  • \n
  • 瑞典语
  • \n
  • 立陶宛语
  • \n
  • 缅甸语
  • \n
  • 罗马尼亚语
  • \n
  • 老挝语
  • \n
  • 芬兰语
  • \n
  • 英语
  • \n
  • 荷兰语
  • \n
  • 萨摩亚语
  • \n
  • 葡萄牙语
  • \n
  • 西班牙语
  • \n
  • 越南语
  • \n
  • 阿塞拜疆语
  • \n
  • 阿姆哈拉语
  • \n
  • 阿尔巴尼亚语
  • \n
  • 阿拉伯语
  • \n
  • 韩语
  • \n
  • 马尔加什语
  • \n
  • 马拉地语
  • \n
  • 马拉雅拉姆语
  • \n
  • 马来语
  • \n
  • 马耳他语
  • \n
  • 高棉语
  • \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

\n
\n
","featured_image":{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212630","media_type":"image","position":1,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-3.jpg?w=1000&h=1000","variants":[],"width":1000},"featured_media":{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212630","media_type":"image","position":1,"preview_image":{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212630","media_type":"image","position":1,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-3.jpg?w=1000&h=1000","variants":[],"width":1000},"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-3.jpg?w=1000&h=1000","variants":[],"width":1000},"first_available_variant":{"available":true,"barcode":null,"compare_at_price":5000,"featured_image":null,"featured_media":null,"id":"18068609051438581529722015","image":null,"option1":"150 mm x 300 mm","option2":"Non merci!","option3":null,"option4":null,"option5":null,"options":["150 mm x 300 mm","Non merci!"],"price":2595,"requires_selling_plan":false,"requires_shipping":true,"selected":false,"selling_plan_allocations":[],"sku":"ZF0P004X03","taxable":false,"title":"150 mm x 300 mm/Non merci!","url":"/products/nom-personnalise-miroir-lumiere-infini-amour-cadeau-pour-couple-cadeaux-de-noel?sku=18068609051438581529722015","weight_in_unit":"250","weight_unit":"g","inventory_management":true,"inventory_policy":"deny","inventory_quantity":10000,"quantity_rule":{"increment":1,"min":1,"max":null}},"handle":"nom-personnalise-miroir-lumiere-infini-amour-cadeau-pour-couple-cadeaux-de-noel","has_only_default_variant":false,"images":[{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212630","media_type":"image","position":1,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-3.jpg?w=1000&h=1000","variants":[],"width":1000},{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212631","media_type":"image","position":2,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01.jpg?w=1000&h=1000","variants":[],"width":1000},{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212632","media_type":"image","position":3,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-1.jpg?w=1000&h=1000","variants":[],"width":1000},{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212633","media_type":"image","position":4,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-2.jpg?w=1000&h=1000","variants":[],"width":1000}],"media":[{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212630","media_type":"image","position":1,"preview_image":{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212630","media_type":"image","position":1,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-3.jpg?w=1000&h=1000","variants":[],"width":1000},"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-3.jpg?w=1000&h=1000","variants":[],"width":1000},{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212631","media_type":"image","position":2,"preview_image":{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212631","media_type":"image","position":1,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01.jpg?w=1000&h=1000","variants":[],"width":1000},"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01.jpg?w=1000&h=1000","variants":[],"width":1000},{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212632","media_type":"image","position":3,"preview_image":{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212632","media_type":"image","position":1,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-1.jpg?w=1000&h=1000","variants":[],"width":1000},"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-1.jpg?w=1000&h=1000","variants":[],"width":1000},{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212633","media_type":"image","position":4,"preview_image":{"alt":"Nom Personnalisé Miroir Lumière Infini Amour Cadeau Pour Couple - GiftLabfr","id":"6930002297268212633","media_type":"image","position":1,"preview_image":null,"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-2.jpg?w=1000&h=1000","variants":[],"width":1000},"aspect_ratio":"1.0000","attached_to_variant":false,"height":1000,"product_id":"16068609051434219453462015","src":"https://img-va.myshopline.com/image/store/1739158451681/ZF0P004X01-2.jpg?w=1000&h=1000","variants":[],"width":1000}],"options":["Taille","Avez-vous besoin dune télécommande ?"],"options_by_name":{"Avez-vous besoin dune télécommande ?":{"name":"Avez-vous besoin dune télécommande ?","selected_value":null,"values":["Non merci!","Oui bien sûr !(+3,99€)"],"position":1,"values_images":[{"value":"Non merci!","image":null},{"value":"Oui bien sûr !(+3,99€)","image":null}],"option_values":[{"id":"16268609051438581529782015","value":"Non merci!","image":null},{"id":"16268609051438581529842015","value":"Oui bien sûr !(+3,99€)","image":null}]},"Taille":{"name":"Taille","selected_value":null,"values":["150 mm x 300 mm","400 mm x 200 mm","500 mm x 250 mm"],"position":0,"values_images":[{"value":"150 mm x 300 mm","image":null},{"value":"400 mm x 200 mm","image":null},{"value":"500 mm x 250 mm","image":null}],"option_values":[{"id":"16268609051438581529752015","value":"150 mm x 300 mm","image":null},{"id":"16268609051438581529892015","value":"400 mm x 200 mm","image":null},{"id":"16268609051438581530002015","value":"500 mm x 250 mm","image":null}]}},"options_with_values":[{"name":"Taille","position":0,"selected_value":null,"values":["150 mm x 300 mm","400 mm x 200 mm","500 mm x 250 mm"],"values_images":[{"value":"150 mm x 300 mm","image":null},{"value":"400 mm x 200 mm","image":null},{"value":"500 mm x 250 mm","image":null}],"option_values":[{"id":"16268609051438581529752015","value":"150 mm x 300 mm","image":null},{"id":"16268609051438581529892015","value":"400 mm x 200 mm","image":null},{"id":"16268609051438581530002015","value":"500 mm x 250 mm","image":null}],"specName":"Taille","specPosition":1,"specIndex":"0","hideVariant":false},{"name":"Avez-vous besoin dune télécommande ?","position":1,"selected_value":null,"values":["Non merci!","Oui bien sûr !(+3,99€)"],"values_images":[{"value":"Non merci!","image":null},{"value":"Oui bien sûr !(+3,99€)","image":null}],"option_values":[{"id":"16268609051438581529782015","value":"Non merci!","image":null},{"id":"16268609051438581529842015","value":"Oui bien sûr !(+3,99€)","image":null}],"specName":"Avez-vous besoin dune télécommande ?","specPosition":2,"specIndex":"1","hideVariant":false}],"price":2595,"price_max":5294,"price_min":2595,"price_varies":false,"requires_selling_plan":false,"selected_variant":null,"selected_or_first_available_variant":{"available":true,"barcode":null,"compare_at_price":5000,"featured_image":null,"featured_media":null,"id":"18068609051438581529722015","image":null,"option1":"150 mm x 300 mm","option2":"Non merci!","option3":null,"option4":null,"option5":null,"options":["150 mm x 300 mm","Non merci!"],"price":2595,"requires_selling_plan":false,"requires_shipping":true,"selected":false,"selling_plan_allocations":[],"sku":"ZF0P004X03","taxable":false,"title":"150 mm x 300 mm/Non merci!","url":"/products/nom-personnalise-miroir-lumiere-infini-amour-cadeau-pour-couple-cadeaux-de-noel?sku=18068609051438581529722015","weight_in_unit":"250","weight_unit":"g","inventory_management":true,"inventory_policy":"deny","inventory_quantity":10000,"quantity_rule":{"increment":1,"min":1,"max":null}},"tags":["custom-sunzi-chase-tag11424","custom-mademine-tag","custom-mirror-light","googlepla4test","insurance","isCustom","video-cusom-mirror-light"],"variants":[{"available":true,"barcode":null,"compare_at_price":5000,"featured_image":null,"featured_media":null,"id":"18068609051438581529722015","image":null,"option1":"150 mm x 300 mm","option2":"Non merci!","option3":null,"option4":null,"option5":null,"options":["150 mm x 300 mm","Non merci!"],"price":2595,"requires_selling_plan":false,"requires_shipping":true,"selected":false,"selling_plan_allocations":[],"sku":"ZF0P004X03","taxable":false,"title":"150 mm x 300 mm/Non merci!","url":"/products/nom-personnalise-miroir-lumiere-infini-amour-cadeau-pour-couple-cadeaux-de-noel?sku=18068609051438581529722015","weight_in_unit":"250","weight_unit":"g","inventory_management":true,"inventory_policy":"deny","inventory_quantity":10000,"quantity_rule":{"increment":1,"min":1,"max":null}},{"available":true,"barcode":null,"compare_at_price":6000,"featured_image":null,"featured_media":null,"id":"18068609051438581529812015","image":null,"option1":"150 mm x 300 mm","option2":"Oui bien sûr !(+3,99€)","option3":null,"option4":null,"option5":null,"options":["150 mm x 300 mm","Oui bien sûr !(+3,99€)"],"price":2994,"requires_selling_plan":false,"requires_shipping":true,"selected":false,"selling_plan_allocations":[],"sku":"ZF0P004X04","taxable":false,"title":"150 mm x 300 mm/Oui bien sûr !(+3,99€)","url":"/products/nom-personnalise-miroir-lumiere-infini-amour-cadeau-pour-couple-cadeaux-de-noel?sku=18068609051438581529812015","weight_in_unit":"250","weight_unit":"g","inventory_management":true,"inventory_policy":"deny","inventory_quantity":10000,"quantity_rule":{"increment":1,"min":1,"max":null}},{"available":true,"barcode":null,"compare_at_price":7000,"featured_image":null,"featured_media":null,"id":"18068609051438581529872015","image":null,"option1":"400 mm x 200 mm","option2":"Non merci!","option3":null,"option4":null,"option5":null,"options":["400 mm x 200 mm","Non merci!"],"price":3895,"requires_selling_plan":false,"requires_shipping":true,"selected":false,"selling_plan_allocations":[],"sku":"ZF0P004X01","taxable":false,"title":"400 mm x 200 mm/Non merci!","url":"/products/nom-personnalise-miroir-lumiere-infini-amour-cadeau-pour-couple-cadeaux-de-noel?sku=18068609051438581529872015","weight_in_unit":"320","weight_unit":"g","inventory_management":true,"inventory_policy":"deny","inventory_quantity":10000,"quantity_rule":{"increment":1,"min":1,"max":null}},{"available":true,"barcode":null,"compare_at_price":8000,"featured_image":null,"featured_media":null,"id":"18068609051438581529932015","image":null,"option1":"400 mm x 200 mm","option2":"Oui bien sûr !(+3,99€)","option3":null,"option4":null,"option5":null,"options":["400 mm x 200 mm","Oui bien sûr !(+3,99€)"],"price":4294,"requires_selling_plan":false,"requires_shipping":true,"selected":false,"selling_plan_allocations":[],"sku":"ZF0P004X02","taxable":false,"title":"400 mm x 200 mm/Oui bien sûr !(+3,99€)","url":"/products/nom-personnalise-miroir-lumiere-infini-amour-cadeau-pour-couple-cadeaux-de-noel?sku=18068609051438581529932015","weight_in_unit":"320","weight_unit":"g","inventory_management":true,"inventory_policy":"deny","inventory_quantity":10000,"quantity_rule":{"increment":1,"min":1,"max":null}},{"available":true,"barcode":null,"compare_at_price":8000,"featured_image":null,"featured_media":null,"id":"18068609051438581529982015","image":null,"option1":"500 mm x 250 mm","option2":"Non merci!","option3":null,"option4":null,"option5":null,"options":["500 mm x 250 mm","Non merci!"],"price":4895,"requires_selling_plan":false,"requires_shipping":true,"selected":false,"selling_plan_allocations":[],"sku":"ZF0P004X05","taxable":false,"title":"500 mm x 250 mm/Non merci!","url":"/products/nom-personnalise-miroir-lumiere-infini-amour-cadeau-pour-couple-cadeaux-de-noel?sku=18068609051438581529982015","weight_in_unit":"430","weight_unit":"g","inventory_management":true,"inventory_policy":"deny","inventory_quantity":10000,"quantity_rule":{"increment":1,"min":1,"max":null}},{"available":true,"barcode":null,"compare_at_price":9000,"featured_image":null,"featured_media":null,"id":"18068609051438581530042015","image":null,"option1":"500 mm x 250 mm","option2":"Oui bien sûr !(+3,99€)","option3":null,"option4":null,"option5":null,"options":["500 mm x 250 mm","Oui bien sûr !(+3,99€)"],"price":5294,"requires_selling_plan":false,"requires_shipping":true,"selected":false,"selling_plan_allocations":[],"sku":"ZF0P004X06","taxable":false,"title":"500 mm x 250 mm/Oui bien sûr !(+3,99€)","url":"/products/nom-personnalise-miroir-lumiere-infini-amour-cadeau-pour-couple-cadeaux-de-noel?sku=18068609051438581530042015","weight_in_unit":"430","weight_unit":"g","inventory_management":true,"inventory_policy":"deny","inventory_quantity":10000,"quantity_rule":{"increment":1,"min":1,"max":null}}],"quantity_price_breaks_configured":false}; // 兼容shop元字段在2.0和2.1模板的获取 const shopRaw = {"name":"sl-礼物站Giftlabfr","currency":"EUR","language":"fr_FR","theme":{"r":227,"g":22,"b":115,"a":1}}; let shop; try{ shop = JSON.parse(shopRaw) }catch(err){ shop = shopRaw } // 根据标签获取定制参数 let prevAccordSku; let AccordChaseTagCache = {}; let designer = null; const _jsonGetByVariantId = (variantId = _sunzi_get_variant_id()) => { // 符合要求的【变体】 const accordVariant = product.variants.find(item => `${item.id}` === variantId) // 如果accordVariant不存在或者sku不存在 if (!(accordVariant && accordVariant.sku)) { prevAccordTag = undefined; return Promise.resolve(undefined); } // 如果切换的SKU跟之前的sku是一致的 if (prevAccordSku === accordVariant.sku) { return Promise.resolve(undefined); } // 符合要求的【追销tags】 const accordChaseTags = product.tags .map(item => item.match(`^custom-sunzi-chase-tag(\\d*)[-]?(${accordVariant.sku.toUpperCase()})?$`)) .filter(Boolean) .sort(a => a[2] ? -1 : 1) || []; // 优先获取精准sku匹配的 return Promise.all([ // 请求JSON数据 fetch(`https://sunzi-cool.customeow.io/product/tag2/json/${accordVariant.sku}/${shop.language}.json`) .then((resp) => { if (resp.status >= 400){ throw new Error(); } else showSunzi() return resp; }) .then(resp => resp.json()) .then(data => { // 构建参数 const availableVariant = product.variants.find(item => item.id.toString() === variantId); // 激活的变体 const activeVariants = product.options.map((item, index) => ({ id: index, name: item, value: { id: product.options.length + index, name: availableVariant.options[index] } })); const variantConnects = data.variantConnects.map(item => Object.assign(item, { featuredImage: availableVariant.featured_image ? availableVariant.featured_image.src : product.featured_image.src, available: availableVariant.available, sku: availableVariant.sku, shopAvailable: availableVariant.available, })) return Object.assign(data, { activeVariants, variantConnects }); }) .finally(() => { prevAccordTag = accordVariant.sku; }), Promise.all(accordChaseTags.map(item => { // 如果有缓存 if (AccordChaseTagCache[item[1]]) return Promise.resolve(AccordChaseTagCache[item[1]]); return fetch(`https://sunzi-cool.customeow.io/product/chase/tag/json/${item[1]}.json`) .then((resp) => { if (resp.status >= 400) throw Error('chase tag network error'); return resp; }) .then(resp => resp.json()) .then(resp => { AccordChaseTagCache[item[1]] = resp; return resp; }) })) ]).then(([ data, chases ]) => { if(variantId !== $variant) throw new Error("InvalidVariantError"); // 构建关联产品 const relatedProduct = chases[0]; // 判断加购了类型是否都一致 一致的话 进行整合 const chaseTypes = chases.map(item => item.type); if (relatedProduct && new Set(chaseTypes).size === chaseTypes.length) relatedProduct.children = chases.map(item => item.children).reduce((a, b) => a.concat(b)); else chases.length > 1 && console.warn('sunzi-designer: There are different types of addChases, only get the first one'); return Object.assign(data, { variantConnects: data.variantConnects.map(item => Object.assign(item, { relatedProductId: relatedProduct && relatedProduct.id, })), relatedProducts: relatedProduct ? [ relatedProduct ] : [] }); }) } Promise.all([ _domLoaded(), _jsonGetByVariantId() ]) .then(designerInit) .catch(e => { console.log(e) }) // 监听变体改变 const handleChangeVariants = (sku) => { let timer = null; // 触发loading if(designer) { timer = setTimeout(() => { designer.setLoading(true); showSunzi() }, 500); } else showSunzi() // 结束逻辑 const finallyFun = () => { if (!designer) return; clearTimeout(timer); designer.forceRender(); } // 加载数据 _jsonGetByVariantId(sku) .then((data) => { if(designer) designer.onVariantChange(data) else designerInit([undefined, data]); finallyFun(); if(designer) designer.setLoading(false); }).catch(() => { finallyFun(); if(designer) designer.setLoading(true); console.error("Error. Please check your network and the synchronization status of data"); }) } if (platform === "shopline") { if(window.Shopline && window.Shopline.event) { window.Shopline.event.on('Product::SkuChanged', function (payload) { const { data: { skuSeq } } = payload; $variant = skuSeq; handleChangeVariants(skuSeq); }) } else if ($(_sunzi_global_data.domLabel.form).length !== 0) { $(_sunzi_global_data.domLabel.form).on('change', function() { if (typeof this.onVariantChange === "function") this.onVariantChange(); handleChangeVariants() }) } else if ($(_sunzi_global_data.domLabel.backupForm).length !== 0) { $(_sunzi_global_data.domLabel.backupForm).on('change', function() { if (typeof this.onVariantChange === "function") this.onVariantChange(); handleChangeVariants() }) } } else { _sunzi_find_variants().on('change', () => handleChangeVariants()) } function designerInit([_, data]) { // 渲染 designer = Designer.render(Designer.default, { env: 'prod', shop, productId: product.id, async onConfirm(ouput, effects, { sku, uniqid, relatedProducts, addedCharges }) { // 创建主产品 properties 给主产品增加一个绑定标识 const mainProductProperties = [ { type: 'text', name: "customInfo", value: JSON.stringify(ouput), }, { type: 'text', name: "_from", value: "sunzi-designer2-tag", }, { type: 'text', name: '_bind', value: uniqid }, { type: 'text', name: "_sunzi_cart", value: JSON.stringify({ image: effects }), } ]; // 加车队列 var _queue = []; // 处理关联产品逻辑 if (relatedProducts.length > 0) { const _relatedProducts = relatedProducts.forEach(item => { if (item.type === SUNZI_RelatedProductItemType.product) { // 普通产品 item.products.forEach(product => { const params = handleRelatedProducts(product, item, uniqid, { properties: [{ type: 'text', name: "_sunzi_chase_from", value: sku, }] }); _queue.push(params); }); } else if (item.type === SUNZI_RelatedProductItemType.virtualProduct) { // 虚拟产品 console.log(item) item.products.forEach(product => { // 给主产品注入依赖参数 mainProductProperties.push({ type: 'text', name: `${item.serviceType}`, value: item.serviceTypeValue }); const params = handleRelatedProducts(product, item, uniqid, { properties: [{ type: 'text', name: "_sunzi_chase_from", value: sku, }] }); _queue.push(params); }); } else if (item.type === SUNZI_RelatedProductItemType.customProduct) { // 定制产品 item.products.forEach(product => { const params = handleRelatedProducts(product, item, uniqid, { properties: [{ type: 'text', name: "_sunzi_chase_from", value: sku, }] }); _queue.push(params); }); } }); } // 处理加价产品逻辑 if (addedCharges) { addedCharges.forEach(item => { const params = handleRelatedProducts(item, { bind: true, bindQuantity: 103, // 数量跟随主产品 bindAloneDelete: 202 // 不可以单独删除 }, uniqid, { quantity: item.quantity, properties: [{ type: 'text', name: "_sunzi_chase_from", value: sku, }] }); _queue.push(params); }); } // 加车主产品 _queue.push({ id: getQueryVariable('sku') || $("input[name='id']").val() || product.variants[0].id, properties: mainProductProperties, }); console.log('_queue', _queue); // 关联加车事件触发 debugger // 加车事件触发 await _sunzi_add_to_cart_multi(_queue.map(item => Object.assign(item, { quantity: 1 }))); $('#sunzi-loading').hide(); } }, document.getElementById('sunzi-node'),{ enabledSentry: false }).current; designer.onVariantChange(data); designer.setLoading(false); } /** 其他自定义函数 start **/ // 显示定制区 function showSunzi() { } // 表单补充input function replenishFormInput(data) { const input = document.createElement('input'); Object.keys(data).map(key => { input[key] = data[key]; }); input.type = 'hidden'; input.id = 'sunzi-replenish'; $('.sunzi-form').append(input); } // 清空表单 function clearReplenishFormInpput() { $('input[id="sunzi-replenish"]').remove(); } // 处理关联产品逻辑 function handleRelatedProducts(product, related, uniqid, options = {}) { const data = Object.assign({ id: product.variantId, quantity: 1, }, options); // 如果产品与主产品进行绑定的话 if (related.bind) { data.properties.push( { type: 'text', name: '_bindTo', value: uniqid, }, { type: 'text', name: '_bindQuantity', value: related.bindQuantity, }, { type: 'text', name: '_bindAloneDelete', value: related.bindAloneDelete, } ); // 与主产品绑定的key, 当该关联产品产品删除时, 要清掉对应主产品的关联参数 if (related.serviceType) { data.properties.push({ type: 'text', name: '_bindKey', value: related.serviceType, }) }; } // 处理定制追销逻辑 if (related.type === SUNZI_RelatedProductItemType.customProduct) { data.properties.push( { type: 'text', name: '_from', value: "sunzi-designer2-tag", }, { type: 'text', name: 'customInfo', value: JSON.stringify(related.customInfo), }, { type: 'text', name: '_sunzi_cart', value: JSON.stringify({ image: related.effects }), } ); } // 处理实体加购 定制模块逻辑 if (related.type === SUNZI_RelatedProductItemType.product && related.customInfo) { data.properties.push( { type: 'text', name: '_from', value: "sunzi-designer2-tag", }, { type: 'text', name: 'customInfo', value: JSON.stringify(Object.assign({ featured_image: product.featuredImage }, related.customInfo)), } ); } return data; } // 悬浮按钮出现消失逻辑 $( document ).ready(function() { createObserver(); }); function createObserver() { /* .sunzi-form #sunzi-node .__custom_button_wrapper > div { padding-bottom: max(constant(safe-area-inset-bottom), 10px); padding-bottom: max(env(safe-area-inset-bottom), 10px); transition: padding 0.3s; } */ const target = document.getElementsByClassName("sunzi-form")[0]; function callback(entries, observer) { entries.forEach((entry) => { if(entry.boundingClientRect.top < 0 || entry.intersectionRatio > 0){ // 出现 $(target).addClass("show") } else { // 消失 $(target).removeClass("show") } }); } const options = { root: null, rootMargin: "0px", threshold: 0, }; const observer = new IntersectionObserver(callback, options); observer.observe(target); } /** 其他自定义函数 end **/

Parrainer un ami

Obtenez 💰15% de réduction sur tous les produits chaque fois que vous recommandez un ami !

Recommander Maintenant

Parrainer un ami

Obtenez 💰15% de réduction sur tous les produits chaque fois que vous recommandez un ami !

Saisissez l'adresse électronique à laquelle vous souhaitez recevoir vos récompenses.

Partagez avec chacun de vos amis l'offre fabuleuse de 10 % de réduction sur tous les produits lors de leur première commande.

Vous bénéficiez d'un code de réduction de 15 % sur tous les produits.

Wow, It's great, We will send the coupon code to your email.