$product = {"id":7769489997923,"title":"iPhone XR Mod NX ilovedoodle Peek A Paw - 躲貓貓","handle":"iphone-xr-mod-nx-printable-xf48","description":null,"published_at":"2025-07-16T17:30:28+08:00","created_at":"2025-04-15T16:50:17+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone XR","merge","reseller-ilovedoodle"],"price":90000,"price_min":90000,"price_max":90000,"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":43302597656675,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108524-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34197177761891,"product_id":7769489997923,"position":7,"created_at":"2025-07-16T15:00:11+08:00","updated_at":"2025-07-16T15:00:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2296861d4966b5e06cc2b68347282a79ac0764af_4fd93c29-fb67-4e5a-b3f9-fe7846163c91.webp?v=1752649213","variant_ids":[43302597656675]},"available":true,"name":"iPhone XR Mod NX ilovedoodle Peek A Paw - 躲貓貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108524-XF48","featured_media":{"alt":null,"id":25829756960867,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2296861d4966b5e06cc2b68347282a79ac0764af_4fd93c29-fb67-4e5a-b3f9-fe7846163c91.webp?v=1752649213"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302603685987,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0108504-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34197178318947,"product_id":7769489997923,"position":8,"created_at":"2025-07-16T15:00:12+08:00","updated_at":"2025-07-16T15:00:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcdbfc8605a0c5d023ec8cd66cf6ab5725584cc1_6f7bd417-8048-498e-a6f7-e62a0eb980ca.webp?v=1752649214","variant_ids":[43302603685987]},"available":true,"name":"iPhone XR Mod NX ilovedoodle Peek A Paw - 躲貓貓 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108504-XF48","featured_media":{"alt":null,"id":25829757124707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcdbfc8605a0c5d023ec8cd66cf6ab5725584cc1_6f7bd417-8048-498e-a6f7-e62a0eb980ca.webp?v=1752649214"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302603784291,"title":"Camo Green","option1":"Camo Green","option2":null,"option3":null,"sku":"NPB0108515-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34197175959651,"product_id":7769489997923,"position":3,"created_at":"2025-07-16T15:00:09+08:00","updated_at":"2025-07-16T15:00:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b6f6fa9d39b9d87312315fc0f35740edad1a783_b4cccfb0-81f1-4f5e-a3d0-501baca302a6.webp?v=1752649211","variant_ids":[43302603784291]},"available":true,"name":"iPhone XR Mod NX ilovedoodle Peek A Paw - 躲貓貓 - Camo Green","public_title":"Camo Green","options":["Camo Green"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108515-XF48","featured_media":{"alt":null,"id":25829756207203,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b6f6fa9d39b9d87312315fc0f35740edad1a783_b4cccfb0-81f1-4f5e-a3d0-501baca302a6.webp?v=1752649211"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302603817059,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01085C1-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34197176811619,"product_id":7769489997923,"position":5,"created_at":"2025-07-16T15:00:10+08:00","updated_at":"2025-07-16T15:00:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd6f8d3f7f9bccaf4fd95f26f7f5287740a04371_1570b52e-91c9-43d0-9e11-cde8a720ca88.webp?v=1752649212","variant_ids":[43302603817059]},"available":true,"name":"iPhone XR Mod NX ilovedoodle Peek A Paw - 躲貓貓 - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01085C1-XF48","featured_media":{"alt":null,"id":25829756534883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd6f8d3f7f9bccaf4fd95f26f7f5287740a04371_1570b52e-91c9-43d0-9e11-cde8a720ca88.webp?v=1752649212"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3051a5b169c4cebc41af1f76825600d7f1cf4e1c.webp?v=1744707026","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40c019ddbe1d8248b1372d37c3529c904ae6d44d_254fa8a0-f23b-4de5-953b-8e1c58b0ba9a.webp?v=1752649210","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b6f6fa9d39b9d87312315fc0f35740edad1a783_b4cccfb0-81f1-4f5e-a3d0-501baca302a6.webp?v=1752649211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d884373d49f2c38dd21c177ab7699b620a562894_dbfa0a55-fdf3-44c2-a240-31f92c0e3a06.webp?v=1752649211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd6f8d3f7f9bccaf4fd95f26f7f5287740a04371_1570b52e-91c9-43d0-9e11-cde8a720ca88.webp?v=1752649212","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7da6647c20e10c158bd08f24c04cbd2c834693c_b03682c5-d607-4f2d-a25b-5b64a2544e0d.webp?v=1752649212","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2296861d4966b5e06cc2b68347282a79ac0764af_4fd93c29-fb67-4e5a-b3f9-fe7846163c91.webp?v=1752649213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcdbfc8605a0c5d023ec8cd66cf6ab5725584cc1_6f7bd417-8048-498e-a6f7-e62a0eb980ca.webp?v=1752649214","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38156cdbd83109edda1bc2fec980f0bb0765d1d1_a8afcbf1-8198-4f16-837c-48cdaedef82d.webp?v=1752649214","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/854dfad2c4d69f113ff80845ab4e1616c2c34b52_324a87d1-fa62-4025-9e80-0d0533b04952.webp?v=1752649215","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2fd53683935ddf1ce4b106b4a673a709c3fcb99_ea79ccff-b274-41b5-81a4-633dcc427189.webp?v=1752649215"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3051a5b169c4cebc41af1f76825600d7f1cf4e1c.webp?v=1744707026","options":["color"],"media":[{"alt":null,"id":25495589978211,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3051a5b169c4cebc41af1f76825600d7f1cf4e1c.webp?v=1744707026"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3051a5b169c4cebc41af1f76825600d7f1cf4e1c.webp?v=1744707026","width":2000},{"alt":null,"id":25829756010595,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40c019ddbe1d8248b1372d37c3529c904ae6d44d_254fa8a0-f23b-4de5-953b-8e1c58b0ba9a.webp?v=1752649210"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40c019ddbe1d8248b1372d37c3529c904ae6d44d_254fa8a0-f23b-4de5-953b-8e1c58b0ba9a.webp?v=1752649210","width":2000},{"alt":null,"id":25829756207203,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b6f6fa9d39b9d87312315fc0f35740edad1a783_b4cccfb0-81f1-4f5e-a3d0-501baca302a6.webp?v=1752649211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b6f6fa9d39b9d87312315fc0f35740edad1a783_b4cccfb0-81f1-4f5e-a3d0-501baca302a6.webp?v=1752649211","width":2000},{"alt":null,"id":25829756305507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d884373d49f2c38dd21c177ab7699b620a562894_dbfa0a55-fdf3-44c2-a240-31f92c0e3a06.webp?v=1752649211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d884373d49f2c38dd21c177ab7699b620a562894_dbfa0a55-fdf3-44c2-a240-31f92c0e3a06.webp?v=1752649211","width":2000},{"alt":null,"id":25829756534883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd6f8d3f7f9bccaf4fd95f26f7f5287740a04371_1570b52e-91c9-43d0-9e11-cde8a720ca88.webp?v=1752649212"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd6f8d3f7f9bccaf4fd95f26f7f5287740a04371_1570b52e-91c9-43d0-9e11-cde8a720ca88.webp?v=1752649212","width":2000},{"alt":null,"id":25829756633187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7da6647c20e10c158bd08f24c04cbd2c834693c_b03682c5-d607-4f2d-a25b-5b64a2544e0d.webp?v=1752649212"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7da6647c20e10c158bd08f24c04cbd2c834693c_b03682c5-d607-4f2d-a25b-5b64a2544e0d.webp?v=1752649212","width":2000},{"alt":null,"id":25829756960867,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2296861d4966b5e06cc2b68347282a79ac0764af_4fd93c29-fb67-4e5a-b3f9-fe7846163c91.webp?v=1752649213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2296861d4966b5e06cc2b68347282a79ac0764af_4fd93c29-fb67-4e5a-b3f9-fe7846163c91.webp?v=1752649213","width":2000},{"alt":null,"id":25829757124707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcdbfc8605a0c5d023ec8cd66cf6ab5725584cc1_6f7bd417-8048-498e-a6f7-e62a0eb980ca.webp?v=1752649214"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcdbfc8605a0c5d023ec8cd66cf6ab5725584cc1_6f7bd417-8048-498e-a6f7-e62a0eb980ca.webp?v=1752649214","width":2000},{"alt":null,"id":25829757288547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38156cdbd83109edda1bc2fec980f0bb0765d1d1_a8afcbf1-8198-4f16-837c-48cdaedef82d.webp?v=1752649214"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38156cdbd83109edda1bc2fec980f0bb0765d1d1_a8afcbf1-8198-4f16-837c-48cdaedef82d.webp?v=1752649214","width":2000},{"alt":null,"id":25829757485155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/854dfad2c4d69f113ff80845ab4e1616c2c34b52_324a87d1-fa62-4025-9e80-0d0533b04952.webp?v=1752649215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/854dfad2c4d69f113ff80845ab4e1616c2c34b52_324a87d1-fa62-4025-9e80-0d0533b04952.webp?v=1752649215","width":2000},{"alt":null,"id":25829757976675,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2fd53683935ddf1ce4b106b4a673a709c3fcb99_ea79ccff-b274-41b5-81a4-633dcc427189.webp?v=1752649215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2fd53683935ddf1ce4b106b4a673a709c3fcb99_ea79ccff-b274-41b5-81a4-633dcc427189.webp?v=1752649215","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43302597656675,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108524-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34197177761891,"product_id":7769489997923,"position":7,"created_at":"2025-07-16T15:00:11+08:00","updated_at":"2025-07-16T15:00:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2296861d4966b5e06cc2b68347282a79ac0764af_4fd93c29-fb67-4e5a-b3f9-fe7846163c91.webp?v=1752649213","variant_ids":[43302597656675]},"available":true,"name":"iPhone XR Mod NX ilovedoodle Peek A Paw - 躲貓貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108524-XF48","featured_media":{"alt":null,"id":25829756960867,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2296861d4966b5e06cc2b68347282a79ac0764af_4fd93c29-fb67-4e5a-b3f9-fe7846163c91.webp?v=1752649213"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302603685987,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0108504-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34197178318947,"product_id":7769489997923,"position":8,"created_at":"2025-07-16T15:00:12+08:00","updated_at":"2025-07-16T15:00:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcdbfc8605a0c5d023ec8cd66cf6ab5725584cc1_6f7bd417-8048-498e-a6f7-e62a0eb980ca.webp?v=1752649214","variant_ids":[43302603685987]},"available":true,"name":"iPhone XR Mod NX ilovedoodle Peek A Paw - 躲貓貓 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108504-XF48","featured_media":{"alt":null,"id":25829757124707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcdbfc8605a0c5d023ec8cd66cf6ab5725584cc1_6f7bd417-8048-498e-a6f7-e62a0eb980ca.webp?v=1752649214"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302603784291,"title":"Camo Green","option1":"Camo Green","option2":null,"option3":null,"sku":"NPB0108515-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34197175959651,"product_id":7769489997923,"position":3,"created_at":"2025-07-16T15:00:09+08:00","updated_at":"2025-07-16T15:00:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b6f6fa9d39b9d87312315fc0f35740edad1a783_b4cccfb0-81f1-4f5e-a3d0-501baca302a6.webp?v=1752649211","variant_ids":[43302603784291]},"available":true,"name":"iPhone XR Mod NX ilovedoodle Peek A Paw - 躲貓貓 - Camo Green","public_title":"Camo Green","options":["Camo Green"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108515-XF48","featured_media":{"alt":null,"id":25829756207203,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b6f6fa9d39b9d87312315fc0f35740edad1a783_b4cccfb0-81f1-4f5e-a3d0-501baca302a6.webp?v=1752649211"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302603817059,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01085C1-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34197176811619,"product_id":7769489997923,"position":5,"created_at":"2025-07-16T15:00:10+08:00","updated_at":"2025-07-16T15:00:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd6f8d3f7f9bccaf4fd95f26f7f5287740a04371_1570b52e-91c9-43d0-9e11-cde8a720ca88.webp?v=1752649212","variant_ids":[43302603817059]},"available":true,"name":"iPhone XR Mod NX ilovedoodle Peek A Paw - 躲貓貓 - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01085C1-XF48","featured_media":{"alt":null,"id":25829756534883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd6f8d3f7f9bccaf4fd95f26f7f5287740a04371_1570b52e-91c9-43d0-9e11-cde8a720ca88.webp?v=1752649212"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43302597656675,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108524-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34197177761891,"product_id":7769489997923,"position":7,"created_at":"2025-07-16T15:00:11+08:00","updated_at":"2025-07-16T15:00:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2296861d4966b5e06cc2b68347282a79ac0764af_4fd93c29-fb67-4e5a-b3f9-fe7846163c91.webp?v=1752649213","variant_ids":[43302597656675]},"available":true,"name":"iPhone XR Mod NX ilovedoodle Peek A Paw - 躲貓貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108524-XF48","featured_media":{"alt":null,"id":25829756960867,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2296861d4966b5e06cc2b68347282a79ac0764af_4fd93c29-fb67-4e5a-b3f9-fe7846163c91.webp?v=1752649213"}},"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: "停產" }