$product = {"id":7956241514595,"title":"iPhone 15 Plus SolidX (MagSafe 兼容) Emerald Studio 5月 鳶尾花","handle":"iphone-15-plus-solidx-magsafe-eme05","description":null,"published_at":"2026-01-28T09:37:09+08:00","created_at":"2026-01-26T14:50:27+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-emerald","device-iPhone 15 Plus","merge","reseller-emerald"],"price":145000,"price_min":145000,"price_max":145000,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":43967161892963,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MNS012960A-EME05","requires_shipping":true,"taxable":true,"featured_image":{"id":36359551123555,"product_id":7956241514595,"position":9,"created_at":"2026-07-23T14:55:43+08:00","updated_at":"2026-07-23T14:55:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e92e7aae74c4383388627d569d2fd1169cc9a96_e1ce89cd-6324-42e5-8e6e-f4652c0008d1.webp?v=1784789745","variant_ids":[43967161892963]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) Emerald Studio 5月 鳶尾花 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS012960A-EME05","featured_media":{"alt":null,"id":27863329603683,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e92e7aae74c4383388627d569d2fd1169cc9a96_e1ce89cd-6324-42e5-8e6e-f4652c0008d1.webp?v=1784789745"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43967200329827,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"MNS01296Z7-EME05","requires_shipping":true,"taxable":true,"featured_image":{"id":36359552598115,"product_id":7956241514595,"position":11,"created_at":"2026-07-23T14:55:45+08:00","updated_at":"2026-07-23T14:55:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a02ee2a5156efa92b840ff25cee86d94ef5408d9_d6917972-9de7-466e-9536-1522dde2008b.webp?v=1784789747","variant_ids":[43967200329827]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) Emerald Studio 5月 鳶尾花 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01296Z7-EME05","featured_media":{"alt":null,"id":27863331438691,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a02ee2a5156efa92b840ff25cee86d94ef5408d9_d6917972-9de7-466e-9536-1522dde2008b.webp?v=1784789747"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43967202492515,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MNS0129652-EME05","requires_shipping":true,"taxable":true,"featured_image":{"id":36359553581155,"product_id":7956241514595,"position":12,"created_at":"2026-07-23T14:55:46+08:00","updated_at":"2026-07-23T14:55:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc17dbef2a9fbf33b9d434bd2d3f8a3e76d52ed9_ca3ec79d-d4a6-44c9-9a8f-4c63a327a5cc.webp?v=1784789748","variant_ids":[43967202492515]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) Emerald Studio 5月 鳶尾花 - Black","public_title":"Black","options":["Black"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS0129652-EME05","featured_media":{"alt":null,"id":27863331962979,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc17dbef2a9fbf33b9d434bd2d3f8a3e76d52ed9_ca3ec79d-d4a6-44c9-9a8f-4c63a327a5cc.webp?v=1784789748"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43967203410019,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"MNS01296O8-EME05","requires_shipping":true,"taxable":true,"featured_image":{"id":36359551909987,"product_id":7956241514595,"position":10,"created_at":"2026-07-23T14:55:44+08:00","updated_at":"2026-07-23T14:55:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7de6dd3fe577b1fc7e31e7fdd59d709a2662fe39_8c4e24ed-586b-466a-9704-85bd557e98ad.webp?v=1784789746","variant_ids":[43967203410019]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) Emerald Studio 5月 鳶尾花 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01296O8-EME05","featured_media":{"alt":null,"id":27863330783331,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7de6dd3fe577b1fc7e31e7fdd59d709a2662fe39_8c4e24ed-586b-466a-9704-85bd557e98ad.webp?v=1784789746"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc17dbef2a9fbf33b9d434bd2d3f8a3e76d52ed9.webp?v=1769410262","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b2eab139bab478cefb467fc4bc97ea490066edd.webp?v=1769410262","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a02ee2a5156efa92b840ff25cee86d94ef5408d9.webp?v=1769410263","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f2437465dc6d6369f38e88a95c01eebd425b07.webp?v=1769410264","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb81d5478aec27303485501a4fbafe39428ae5b0.webp?v=1769410264","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e92e7aae74c4383388627d569d2fd1169cc9a96.webp?v=1769410265","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7de6dd3fe577b1fc7e31e7fdd59d709a2662fe39.webp?v=1769410265","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eab9e72f1f3b0135747194432974a975be9741af.webp?v=1769410267","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e92e7aae74c4383388627d569d2fd1169cc9a96_e1ce89cd-6324-42e5-8e6e-f4652c0008d1.webp?v=1784789745","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7de6dd3fe577b1fc7e31e7fdd59d709a2662fe39_8c4e24ed-586b-466a-9704-85bd557e98ad.webp?v=1784789746","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a02ee2a5156efa92b840ff25cee86d94ef5408d9_d6917972-9de7-466e-9536-1522dde2008b.webp?v=1784789747","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc17dbef2a9fbf33b9d434bd2d3f8a3e76d52ed9_ca3ec79d-d4a6-44c9-9a8f-4c63a327a5cc.webp?v=1784789748"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc17dbef2a9fbf33b9d434bd2d3f8a3e76d52ed9.webp?v=1769410262","options":["color"],"media":[{"alt":null,"id":26703632892003,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc17dbef2a9fbf33b9d434bd2d3f8a3e76d52ed9.webp?v=1769410262"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc17dbef2a9fbf33b9d434bd2d3f8a3e76d52ed9.webp?v=1769410262","width":2000},{"alt":null,"id":26703633907811,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b2eab139bab478cefb467fc4bc97ea490066edd.webp?v=1769410262"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b2eab139bab478cefb467fc4bc97ea490066edd.webp?v=1769410262","width":2000},{"alt":null,"id":26703634464867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a02ee2a5156efa92b840ff25cee86d94ef5408d9.webp?v=1769410263"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a02ee2a5156efa92b840ff25cee86d94ef5408d9.webp?v=1769410263","width":2000},{"alt":null,"id":26703634890851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f2437465dc6d6369f38e88a95c01eebd425b07.webp?v=1769410264"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f2437465dc6d6369f38e88a95c01eebd425b07.webp?v=1769410264","width":2000},{"alt":null,"id":26703635447907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb81d5478aec27303485501a4fbafe39428ae5b0.webp?v=1769410264"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb81d5478aec27303485501a4fbafe39428ae5b0.webp?v=1769410264","width":2000},{"alt":null,"id":26703636136035,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e92e7aae74c4383388627d569d2fd1169cc9a96.webp?v=1769410265"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e92e7aae74c4383388627d569d2fd1169cc9a96.webp?v=1769410265","width":2000},{"alt":null,"id":26703636693091,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7de6dd3fe577b1fc7e31e7fdd59d709a2662fe39.webp?v=1769410265"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7de6dd3fe577b1fc7e31e7fdd59d709a2662fe39.webp?v=1769410265","width":2000},{"alt":null,"id":26703637184611,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eab9e72f1f3b0135747194432974a975be9741af.webp?v=1769410267"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eab9e72f1f3b0135747194432974a975be9741af.webp?v=1769410267","width":2000},{"alt":null,"id":27863329603683,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e92e7aae74c4383388627d569d2fd1169cc9a96_e1ce89cd-6324-42e5-8e6e-f4652c0008d1.webp?v=1784789745"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e92e7aae74c4383388627d569d2fd1169cc9a96_e1ce89cd-6324-42e5-8e6e-f4652c0008d1.webp?v=1784789745","width":2000},{"alt":null,"id":27863330783331,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7de6dd3fe577b1fc7e31e7fdd59d709a2662fe39_8c4e24ed-586b-466a-9704-85bd557e98ad.webp?v=1784789746"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7de6dd3fe577b1fc7e31e7fdd59d709a2662fe39_8c4e24ed-586b-466a-9704-85bd557e98ad.webp?v=1784789746","width":2000},{"alt":null,"id":27863331438691,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a02ee2a5156efa92b840ff25cee86d94ef5408d9_d6917972-9de7-466e-9536-1522dde2008b.webp?v=1784789747"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a02ee2a5156efa92b840ff25cee86d94ef5408d9_d6917972-9de7-466e-9536-1522dde2008b.webp?v=1784789747","width":2000},{"alt":null,"id":27863331962979,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc17dbef2a9fbf33b9d434bd2d3f8a3e76d52ed9_ca3ec79d-d4a6-44c9-9a8f-4c63a327a5cc.webp?v=1784789748"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc17dbef2a9fbf33b9d434bd2d3f8a3e76d52ed9_ca3ec79d-d4a6-44c9-9a8f-4c63a327a5cc.webp?v=1784789748","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43967161892963,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MNS012960A-EME05","requires_shipping":true,"taxable":true,"featured_image":{"id":36359551123555,"product_id":7956241514595,"position":9,"created_at":"2026-07-23T14:55:43+08:00","updated_at":"2026-07-23T14:55:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e92e7aae74c4383388627d569d2fd1169cc9a96_e1ce89cd-6324-42e5-8e6e-f4652c0008d1.webp?v=1784789745","variant_ids":[43967161892963]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) Emerald Studio 5月 鳶尾花 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS012960A-EME05","featured_media":{"alt":null,"id":27863329603683,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e92e7aae74c4383388627d569d2fd1169cc9a96_e1ce89cd-6324-42e5-8e6e-f4652c0008d1.webp?v=1784789745"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43967200329827,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"MNS01296Z7-EME05","requires_shipping":true,"taxable":true,"featured_image":{"id":36359552598115,"product_id":7956241514595,"position":11,"created_at":"2026-07-23T14:55:45+08:00","updated_at":"2026-07-23T14:55:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a02ee2a5156efa92b840ff25cee86d94ef5408d9_d6917972-9de7-466e-9536-1522dde2008b.webp?v=1784789747","variant_ids":[43967200329827]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) Emerald Studio 5月 鳶尾花 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01296Z7-EME05","featured_media":{"alt":null,"id":27863331438691,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a02ee2a5156efa92b840ff25cee86d94ef5408d9_d6917972-9de7-466e-9536-1522dde2008b.webp?v=1784789747"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43967202492515,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MNS0129652-EME05","requires_shipping":true,"taxable":true,"featured_image":{"id":36359553581155,"product_id":7956241514595,"position":12,"created_at":"2026-07-23T14:55:46+08:00","updated_at":"2026-07-23T14:55:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc17dbef2a9fbf33b9d434bd2d3f8a3e76d52ed9_ca3ec79d-d4a6-44c9-9a8f-4c63a327a5cc.webp?v=1784789748","variant_ids":[43967202492515]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) Emerald Studio 5月 鳶尾花 - Black","public_title":"Black","options":["Black"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS0129652-EME05","featured_media":{"alt":null,"id":27863331962979,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc17dbef2a9fbf33b9d434bd2d3f8a3e76d52ed9_ca3ec79d-d4a6-44c9-9a8f-4c63a327a5cc.webp?v=1784789748"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43967203410019,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"MNS01296O8-EME05","requires_shipping":true,"taxable":true,"featured_image":{"id":36359551909987,"product_id":7956241514595,"position":10,"created_at":"2026-07-23T14:55:44+08:00","updated_at":"2026-07-23T14:55:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7de6dd3fe577b1fc7e31e7fdd59d709a2662fe39_8c4e24ed-586b-466a-9704-85bd557e98ad.webp?v=1784789746","variant_ids":[43967203410019]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) Emerald Studio 5月 鳶尾花 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01296O8-EME05","featured_media":{"alt":null,"id":27863330783331,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7de6dd3fe577b1fc7e31e7fdd59d709a2662fe39_8c4e24ed-586b-466a-9704-85bd557e98ad.webp?v=1784789746"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43967161892963,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MNS012960A-EME05","requires_shipping":true,"taxable":true,"featured_image":{"id":36359551123555,"product_id":7956241514595,"position":9,"created_at":"2026-07-23T14:55:43+08:00","updated_at":"2026-07-23T14:55:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e92e7aae74c4383388627d569d2fd1169cc9a96_e1ce89cd-6324-42e5-8e6e-f4652c0008d1.webp?v=1784789745","variant_ids":[43967161892963]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) Emerald Studio 5月 鳶尾花 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS012960A-EME05","featured_media":{"alt":null,"id":27863329603683,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e92e7aae74c4383388627d569d2fd1169cc9a96_e1ce89cd-6324-42e5-8e6e-f4652c0008d1.webp?v=1784789745"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (mergedImg) { $('.merged-img').attr('src', mergedImg); }); }); }; var sellingStatusData window.fetchSellingStatus().then(data => { try { sellingStatusData = data; } catch (error) { sellingStatusData = null console.error('Unable to parse selling status', error) } $(document).ready(function() { handleSellingStatus($defaultVariant.sku); }); }) function handleSellingStatus(currentSku) { if (!sellingStatusData) { console.error('No selling status available!') return } const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const flattenedSellingStatus = [...sellingStatusData.pending, ...sellingStatusData.preorder] const matchSellingStatusProduct = flattenedSellingStatus.filter(product => currentProductSku === product.sku) if (matchSellingStatusProduct.length > 0) { const isProductPending = matchSellingStatusProduct[0].status === 'pending' const matchDate = matchSellingStatusProduct[0].date sellingStatus = isProductPending ? "缺貨中" : "預購完成出貨日:" + matchDate sellingStatusElement.textContent = sellingStatus if (sellingStatus.includes("缺貨中")){ addToCartButton.disabled ='true'; addToCartButton.textContent = "缺貨中無法加入購物車" } else { addToCartButton.textContent = "加到購物車" } } else { sellingStatusElement.textContent = '' addToCartButton.textContent = "加到購物車" }; }; }; document.addEventListener('DOMContentLoaded', function () { var currentVariantSelect = document.getElementById('SingleOptionSelector-0') currentVariantSelect.addEventListener('change', function() { var currentSku = $('#current_sku').text() var skuElement = document.getElementById('current-sku') skuElement.textContent = currentSku handleSellingStatus(currentSku) }); });
// Override default values of shop.strings for each template. // Alternate product templates can change values of // add to cart button, sold out, and unavailable states here. theme.productStrings = { addToCart: "加到購物車", soldOut: "售完", unavailable: "停產" }