$product = {"id":7903422120035,"title":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 普遍吉","handle":"iphone-12-pro-mod-nx-magsafe-printable-it32","description":null,"published_at":"2025-10-20T09:44:20+08:00","created_at":"2025-10-20T09:26:01+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-godgwawa","device-iPhone 12 Pro","merge","reseller-godgwawa"],"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":43786589208675,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672901652579,"product_id":7903422120035,"position":7,"created_at":"2025-10-20T09:26:19+08:00","updated_at":"2025-10-20T09:26:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac334fc7988a439318654f9eedb8e3c9fdeb90d3.webp?v=1760923581","variant_ids":[43786589208675]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 普遍吉 - 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-IT32","featured_media":{"alt":null,"id":26242160590947,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac334fc7988a439318654f9eedb8e3c9fdeb90d3.webp?v=1760923581"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786596253795,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672902406243,"product_id":7903422120035,"position":10,"created_at":"2025-10-20T09:26:21+08:00","updated_at":"2025-10-20T09:26:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/186a61305c7eafbb71a273fa6f75f84cd77f86ec.webp?v=1760923583","variant_ids":[43786596253795]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 普遍吉 - 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-IT32","featured_media":{"alt":null,"id":26242161344611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/186a61305c7eafbb71a273fa6f75f84cd77f86ec.webp?v=1760923583"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786596483171,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672901226595,"product_id":7903422120035,"position":5,"created_at":"2025-10-20T09:26:18+08:00","updated_at":"2025-10-20T09:26:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116728d04669ad090747680ff95936797df47c99.webp?v=1760923580","variant_ids":[43786596483171]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 普遍吉 - 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-IT32","featured_media":{"alt":null,"id":26242160164963,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116728d04669ad090747680ff95936797df47c99.webp?v=1760923580"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786596515939,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672900243555,"product_id":7903422120035,"position":1,"created_at":"2025-10-20T09:26:15+08:00","updated_at":"2025-10-20T09:26:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9996557b0cc096ec3f7c22fdb887a3b413ef4cad.webp?v=1760923577","variant_ids":[43786596515939]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 普遍吉 - 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-IT32","featured_media":{"alt":null,"id":26242159181923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9996557b0cc096ec3f7c22fdb887a3b413ef4cad.webp?v=1760923577"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786596548707,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672901914723,"product_id":7903422120035,"position":8,"created_at":"2025-10-20T09:26:20+08:00","updated_at":"2025-10-20T09:26:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93895d1b5ab1a2400aae60f7f4dfbd91d731a68d.webp?v=1760923582","variant_ids":[43786596548707]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 普遍吉 - 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-IT32","featured_media":{"alt":null,"id":26242160853091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93895d1b5ab1a2400aae60f7f4dfbd91d731a68d.webp?v=1760923582"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9996557b0cc096ec3f7c22fdb887a3b413ef4cad.webp?v=1760923577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fcdbaa6ba8b86b9d4e22df75d4e77015c7e8e44.webp?v=1760923578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac7f287ef7d9d1a6368ef3205bff45baf416d0f.webp?v=1760923579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2914c24d406bc097685a4fdf37195644591325b7.webp?v=1760923579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116728d04669ad090747680ff95936797df47c99.webp?v=1760923580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8591bde31ed3bb03f9853aad644b0bcdeafb963.webp?v=1760923581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac334fc7988a439318654f9eedb8e3c9fdeb90d3.webp?v=1760923581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93895d1b5ab1a2400aae60f7f4dfbd91d731a68d.webp?v=1760923582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbb14dd60f2c9a768fdb27c28a50e4092160211d.webp?v=1760923583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/186a61305c7eafbb71a273fa6f75f84cd77f86ec.webp?v=1760923583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a1640fb6fe86cb29086a9752d14d8489fc1ff66.webp?v=1760923584"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9996557b0cc096ec3f7c22fdb887a3b413ef4cad.webp?v=1760923577","options":["color"],"media":[{"alt":null,"id":26242159181923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9996557b0cc096ec3f7c22fdb887a3b413ef4cad.webp?v=1760923577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9996557b0cc096ec3f7c22fdb887a3b413ef4cad.webp?v=1760923577","width":2000},{"alt":null,"id":26242159476835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fcdbaa6ba8b86b9d4e22df75d4e77015c7e8e44.webp?v=1760923578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fcdbaa6ba8b86b9d4e22df75d4e77015c7e8e44.webp?v=1760923578","width":2000},{"alt":null,"id":26242159771747,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac7f287ef7d9d1a6368ef3205bff45baf416d0f.webp?v=1760923579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac7f287ef7d9d1a6368ef3205bff45baf416d0f.webp?v=1760923579","width":2000},{"alt":null,"id":26242160001123,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2914c24d406bc097685a4fdf37195644591325b7.webp?v=1760923579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2914c24d406bc097685a4fdf37195644591325b7.webp?v=1760923579","width":2000},{"alt":null,"id":26242160164963,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116728d04669ad090747680ff95936797df47c99.webp?v=1760923580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116728d04669ad090747680ff95936797df47c99.webp?v=1760923580","width":2000},{"alt":null,"id":26242160361571,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8591bde31ed3bb03f9853aad644b0bcdeafb963.webp?v=1760923581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8591bde31ed3bb03f9853aad644b0bcdeafb963.webp?v=1760923581","width":2000},{"alt":null,"id":26242160590947,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac334fc7988a439318654f9eedb8e3c9fdeb90d3.webp?v=1760923581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac334fc7988a439318654f9eedb8e3c9fdeb90d3.webp?v=1760923581","width":2000},{"alt":null,"id":26242160853091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93895d1b5ab1a2400aae60f7f4dfbd91d731a68d.webp?v=1760923582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93895d1b5ab1a2400aae60f7f4dfbd91d731a68d.webp?v=1760923582","width":2000},{"alt":null,"id":26242161115235,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbb14dd60f2c9a768fdb27c28a50e4092160211d.webp?v=1760923583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbb14dd60f2c9a768fdb27c28a50e4092160211d.webp?v=1760923583","width":2000},{"alt":null,"id":26242161344611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/186a61305c7eafbb71a273fa6f75f84cd77f86ec.webp?v=1760923583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/186a61305c7eafbb71a273fa6f75f84cd77f86ec.webp?v=1760923583","width":2000},{"alt":null,"id":26242161541219,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a1640fb6fe86cb29086a9752d14d8489fc1ff66.webp?v=1760923584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a1640fb6fe86cb29086a9752d14d8489fc1ff66.webp?v=1760923584","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43786589208675,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672901652579,"product_id":7903422120035,"position":7,"created_at":"2025-10-20T09:26:19+08:00","updated_at":"2025-10-20T09:26:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac334fc7988a439318654f9eedb8e3c9fdeb90d3.webp?v=1760923581","variant_ids":[43786589208675]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 普遍吉 - 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-IT32","featured_media":{"alt":null,"id":26242160590947,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac334fc7988a439318654f9eedb8e3c9fdeb90d3.webp?v=1760923581"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786596253795,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672902406243,"product_id":7903422120035,"position":10,"created_at":"2025-10-20T09:26:21+08:00","updated_at":"2025-10-20T09:26:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/186a61305c7eafbb71a273fa6f75f84cd77f86ec.webp?v=1760923583","variant_ids":[43786596253795]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 普遍吉 - 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-IT32","featured_media":{"alt":null,"id":26242161344611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/186a61305c7eafbb71a273fa6f75f84cd77f86ec.webp?v=1760923583"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786596483171,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672901226595,"product_id":7903422120035,"position":5,"created_at":"2025-10-20T09:26:18+08:00","updated_at":"2025-10-20T09:26:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116728d04669ad090747680ff95936797df47c99.webp?v=1760923580","variant_ids":[43786596483171]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 普遍吉 - 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-IT32","featured_media":{"alt":null,"id":26242160164963,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116728d04669ad090747680ff95936797df47c99.webp?v=1760923580"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786596515939,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672900243555,"product_id":7903422120035,"position":1,"created_at":"2025-10-20T09:26:15+08:00","updated_at":"2025-10-20T09:26:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9996557b0cc096ec3f7c22fdb887a3b413ef4cad.webp?v=1760923577","variant_ids":[43786596515939]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 普遍吉 - 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-IT32","featured_media":{"alt":null,"id":26242159181923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9996557b0cc096ec3f7c22fdb887a3b413ef4cad.webp?v=1760923577"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786596548707,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672901914723,"product_id":7903422120035,"position":8,"created_at":"2025-10-20T09:26:20+08:00","updated_at":"2025-10-20T09:26:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93895d1b5ab1a2400aae60f7f4dfbd91d731a68d.webp?v=1760923582","variant_ids":[43786596548707]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 普遍吉 - 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-IT32","featured_media":{"alt":null,"id":26242160853091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93895d1b5ab1a2400aae60f7f4dfbd91d731a68d.webp?v=1760923582"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43786589208675,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672901652579,"product_id":7903422120035,"position":7,"created_at":"2025-10-20T09:26:19+08:00","updated_at":"2025-10-20T09:26:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac334fc7988a439318654f9eedb8e3c9fdeb90d3.webp?v=1760923581","variant_ids":[43786589208675]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 普遍吉 - 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-IT32","featured_media":{"alt":null,"id":26242160590947,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac334fc7988a439318654f9eedb8e3c9fdeb90d3.webp?v=1760923581"}},"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: "停產" }