$product = {"id":7937802010723,"title":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 元素拼貼","handle":"iphone-12-pro-mod-nx-magsafe-xu07","description":null,"published_at":"2025-12-12T10:57:58+08:00","created_at":"2025-12-11T15:29:54+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-attack-on-titan","device-iPhone 12 Pro","merge","reseller-attack-on-titan"],"price":110000,"price_min":110000,"price_max":110000,"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":43883948736611,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-XU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34932590739555,"product_id":7937802010723,"position":5,"created_at":"2025-12-11T15:30:00+08:00","updated_at":"2025-12-11T15:30:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fff7af652b35df81c3ef4b6e357af4b62c93b162.webp?v=1765438202","variant_ids":[43883948736611]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 元素拼貼 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-XU07","featured_media":{"alt":null,"id":26494962565219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fff7af652b35df81c3ef4b6e357af4b62c93b162.webp?v=1765438202"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883952832611,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-XU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34932591263843,"product_id":7937802010723,"position":10,"created_at":"2025-12-11T15:30:03+08:00","updated_at":"2025-12-11T15:30:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75cf45e5080b18bb9c4586a118a3416d97bc770a.webp?v=1765438205","variant_ids":[43883952832611]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 元素拼貼 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118569-XU07","featured_media":{"alt":null,"id":26494963089507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75cf45e5080b18bb9c4586a118a3416d97bc770a.webp?v=1765438205"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883952996451,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-XU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34932591198307,"product_id":7937802010723,"position":9,"created_at":"2025-12-11T15:30:02+08:00","updated_at":"2025-12-11T15:30:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5b215ec0000320afcc25da9631bf49b2a8351cd.webp?v=1765438204","variant_ids":[43883952996451]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 元素拼貼 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118524-XU07","featured_media":{"alt":null,"id":26494963023971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5b215ec0000320afcc25da9631bf49b2a8351cd.webp?v=1765438204"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883953061987,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-XU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34932589985891,"product_id":7937802010723,"position":2,"created_at":"2025-12-11T15:29:59+08:00","updated_at":"2025-12-11T15:30:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c75a94fccdc49d32e1906ec0075c67a81b71a83.webp?v=1765438201","variant_ids":[43883953061987]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 元素拼貼 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118504-XU07","featured_media":{"alt":null,"id":26494961811555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c75a94fccdc49d32e1906ec0075c67a81b71a83.webp?v=1765438201"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883953094755,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-XU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34932591329379,"product_id":7937802010723,"position":11,"created_at":"2025-12-11T15:30:03+08:00","updated_at":"2025-12-11T15:30:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df5ede020ef9011c8239cc38db10500bfdbf2f96.webp?v=1765438205","variant_ids":[43883953094755]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 元素拼貼 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185J5-XU07","featured_media":{"alt":null,"id":26494963286115,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df5ede020ef9011c8239cc38db10500bfdbf2f96.webp?v=1765438205"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cca588fa7fd1340a8e52fee5bf1933538a626fa.webp?v=1765438201","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c75a94fccdc49d32e1906ec0075c67a81b71a83.webp?v=1765438201","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c15390fea407ef1220e069a2e7b66734af930ed5.webp?v=1765438201","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/790bd98e42e71d55ee8ed8c4793df13e981b39f0.webp?v=1765438202","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fff7af652b35df81c3ef4b6e357af4b62c93b162.webp?v=1765438202","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11e472e1b8af5b9f19b230d31ae7ecc314c42b39.webp?v=1765438203","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4bfc6bba34eae047ae4b414b6be4e5ba50e7588.webp?v=1765438203","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f914255ca6d1cb46b9f630a0a16b14234e3e54d2.webp?v=1765438204","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5b215ec0000320afcc25da9631bf49b2a8351cd.webp?v=1765438204","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75cf45e5080b18bb9c4586a118a3416d97bc770a.webp?v=1765438205","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df5ede020ef9011c8239cc38db10500bfdbf2f96.webp?v=1765438205"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cca588fa7fd1340a8e52fee5bf1933538a626fa.webp?v=1765438201","options":["color"],"media":[{"alt":null,"id":26494961516643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cca588fa7fd1340a8e52fee5bf1933538a626fa.webp?v=1765438201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cca588fa7fd1340a8e52fee5bf1933538a626fa.webp?v=1765438201","width":2000},{"alt":null,"id":26494961811555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c75a94fccdc49d32e1906ec0075c67a81b71a83.webp?v=1765438201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c75a94fccdc49d32e1906ec0075c67a81b71a83.webp?v=1765438201","width":2000},{"alt":null,"id":26494962073699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c15390fea407ef1220e069a2e7b66734af930ed5.webp?v=1765438201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c15390fea407ef1220e069a2e7b66734af930ed5.webp?v=1765438201","width":2000},{"alt":null,"id":26494962303075,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/790bd98e42e71d55ee8ed8c4793df13e981b39f0.webp?v=1765438202"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/790bd98e42e71d55ee8ed8c4793df13e981b39f0.webp?v=1765438202","width":2000},{"alt":null,"id":26494962565219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fff7af652b35df81c3ef4b6e357af4b62c93b162.webp?v=1765438202"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fff7af652b35df81c3ef4b6e357af4b62c93b162.webp?v=1765438202","width":2000},{"alt":null,"id":26494962761827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11e472e1b8af5b9f19b230d31ae7ecc314c42b39.webp?v=1765438203"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11e472e1b8af5b9f19b230d31ae7ecc314c42b39.webp?v=1765438203","width":2000},{"alt":null,"id":26494962925667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4bfc6bba34eae047ae4b414b6be4e5ba50e7588.webp?v=1765438203"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4bfc6bba34eae047ae4b414b6be4e5ba50e7588.webp?v=1765438203","width":2000},{"alt":null,"id":26494962958435,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f914255ca6d1cb46b9f630a0a16b14234e3e54d2.webp?v=1765438204"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f914255ca6d1cb46b9f630a0a16b14234e3e54d2.webp?v=1765438204","width":2000},{"alt":null,"id":26494963023971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5b215ec0000320afcc25da9631bf49b2a8351cd.webp?v=1765438204"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5b215ec0000320afcc25da9631bf49b2a8351cd.webp?v=1765438204","width":2000},{"alt":null,"id":26494963089507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75cf45e5080b18bb9c4586a118a3416d97bc770a.webp?v=1765438205"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75cf45e5080b18bb9c4586a118a3416d97bc770a.webp?v=1765438205","width":2000},{"alt":null,"id":26494963286115,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df5ede020ef9011c8239cc38db10500bfdbf2f96.webp?v=1765438205"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df5ede020ef9011c8239cc38db10500bfdbf2f96.webp?v=1765438205","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43883948736611,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-XU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34932590739555,"product_id":7937802010723,"position":5,"created_at":"2025-12-11T15:30:00+08:00","updated_at":"2025-12-11T15:30:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fff7af652b35df81c3ef4b6e357af4b62c93b162.webp?v=1765438202","variant_ids":[43883948736611]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 元素拼貼 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-XU07","featured_media":{"alt":null,"id":26494962565219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fff7af652b35df81c3ef4b6e357af4b62c93b162.webp?v=1765438202"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883952832611,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-XU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34932591263843,"product_id":7937802010723,"position":10,"created_at":"2025-12-11T15:30:03+08:00","updated_at":"2025-12-11T15:30:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75cf45e5080b18bb9c4586a118a3416d97bc770a.webp?v=1765438205","variant_ids":[43883952832611]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 元素拼貼 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118569-XU07","featured_media":{"alt":null,"id":26494963089507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75cf45e5080b18bb9c4586a118a3416d97bc770a.webp?v=1765438205"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883952996451,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-XU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34932591198307,"product_id":7937802010723,"position":9,"created_at":"2025-12-11T15:30:02+08:00","updated_at":"2025-12-11T15:30:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5b215ec0000320afcc25da9631bf49b2a8351cd.webp?v=1765438204","variant_ids":[43883952996451]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 元素拼貼 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118524-XU07","featured_media":{"alt":null,"id":26494963023971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5b215ec0000320afcc25da9631bf49b2a8351cd.webp?v=1765438204"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883953061987,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-XU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34932589985891,"product_id":7937802010723,"position":2,"created_at":"2025-12-11T15:29:59+08:00","updated_at":"2025-12-11T15:30:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c75a94fccdc49d32e1906ec0075c67a81b71a83.webp?v=1765438201","variant_ids":[43883953061987]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 元素拼貼 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118504-XU07","featured_media":{"alt":null,"id":26494961811555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c75a94fccdc49d32e1906ec0075c67a81b71a83.webp?v=1765438201"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883953094755,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-XU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34932591329379,"product_id":7937802010723,"position":11,"created_at":"2025-12-11T15:30:03+08:00","updated_at":"2025-12-11T15:30:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df5ede020ef9011c8239cc38db10500bfdbf2f96.webp?v=1765438205","variant_ids":[43883953094755]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 元素拼貼 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185J5-XU07","featured_media":{"alt":null,"id":26494963286115,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df5ede020ef9011c8239cc38db10500bfdbf2f96.webp?v=1765438205"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43883948736611,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-XU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34932590739555,"product_id":7937802010723,"position":5,"created_at":"2025-12-11T15:30:00+08:00","updated_at":"2025-12-11T15:30:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fff7af652b35df81c3ef4b6e357af4b62c93b162.webp?v=1765438202","variant_ids":[43883948736611]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 元素拼貼 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-XU07","featured_media":{"alt":null,"id":26494962565219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fff7af652b35df81c3ef4b6e357af4b62c93b162.webp?v=1765438202"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }