$product = {"id":7815153385571,"title":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱","handle":"iphone-16-solidx-xf55","description":null,"published_at":"2025-07-02T17:41:19+08:00","created_at":"2025-06-10T23:56:38+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 16","merge","reseller-ilovedoodle"],"price":125000,"price_min":125000,"price_max":125000,"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":43441920475235,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0132552-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197137784931,"product_id":7815153385571,"position":16,"created_at":"2025-07-16T14:59:20+08:00","updated_at":"2025-07-16T14:59:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b8ca0589c64a7154c2821bb076179156808a4ff_6985cac2-14ee-4f38-9454-ce7e25b4e2bb.webp?v=1752649162","variant_ids":[43441920475235]},"available":true,"name":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0132552-XF55","featured_media":{"alt":null,"id":25829734973539,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b8ca0589c64a7154c2821bb076179156808a4ff_6985cac2-14ee-4f38-9454-ce7e25b4e2bb.webp?v=1752649162"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43441927454819,"title":"Raspberry Sorbet","option1":"Raspberry Sorbet","option2":null,"option3":null,"sku":"NST013253P-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197137293411,"product_id":7815153385571,"position":15,"created_at":"2025-07-16T14:59:20+08:00","updated_at":"2025-07-16T14:59:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c861006c41bd56b4819bbda385238c8dbe1ad966_8a273e89-5e12-4f18-a940-ffc9306c8e8b.webp?v=1752649162","variant_ids":[43441927454819]},"available":true,"name":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱 - Raspberry Sorbet","public_title":"Raspberry Sorbet","options":["Raspberry Sorbet"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013253P-XF55","featured_media":{"alt":null,"id":25829734744163,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c861006c41bd56b4819bbda385238c8dbe1ad966_8a273e89-5e12-4f18-a940-ffc9306c8e8b.webp?v=1752649162"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43441927487587,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01325O8-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197142536291,"product_id":7815153385571,"position":23,"created_at":"2025-07-16T14:59:25+08:00","updated_at":"2025-07-16T14:59:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/111fe514b2684065f430fca3412bcba417820707_e3491835-895d-4376-aa32-160b74e59c11.webp?v=1752649167","variant_ids":[43441927487587]},"available":true,"name":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01325O8-XF55","featured_media":{"alt":null,"id":25829738119267,"position":23,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/111fe514b2684065f430fca3412bcba417820707_e3491835-895d-4376-aa32-160b74e59c11.webp?v=1752649167"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43441927553123,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"NST013250A-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197139390563,"product_id":7815153385571,"position":18,"created_at":"2025-07-16T14:59:22+08:00","updated_at":"2025-07-16T14:59:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a61a727656adc6b5b0ed355dd99e52d78730eccf_d78782a6-5231-4cb9-95b0-34b0b522ece3.webp?v=1752649163","variant_ids":[43441927553123]},"available":true,"name":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013250A-XF55","featured_media":{"alt":null,"id":25829736054883,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a61a727656adc6b5b0ed355dd99e52d78730eccf_d78782a6-5231-4cb9-95b0-34b0b522ece3.webp?v=1752649163"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43441927585891,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0132553-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197136900195,"product_id":7815153385571,"position":14,"created_at":"2025-07-16T14:59:19+08:00","updated_at":"2025-07-16T14:59:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f89f198514be63d4dad6652a61d408d0dc0e215_2878ccda-9ea2-4561-86c3-75ab608cb52a.webp?v=1752649161","variant_ids":[43441927585891]},"available":true,"name":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱 - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0132553-XF55","featured_media":{"alt":null,"id":25829734580323,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f89f198514be63d4dad6652a61d408d0dc0e215_2878ccda-9ea2-4561-86c3-75ab608cb52a.webp?v=1752649161"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43441927618659,"title":"Ultra Marine","option1":"Ultra Marine","option2":null,"option3":null,"sku":"NST013253O-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197140963427,"product_id":7815153385571,"position":20,"created_at":"2025-07-16T14:59:23+08:00","updated_at":"2025-07-16T14:59:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68b8bae5fe47928621fd821d1364e9141d1d0818_b3668d23-4276-4c55-a0c9-a89c111b7c36.webp?v=1752649165","variant_ids":[43441927618659]},"available":true,"name":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱 - Ultra Marine","public_title":"Ultra Marine","options":["Ultra Marine"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013253O-XF55","featured_media":{"alt":null,"id":25829736743011,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68b8bae5fe47928621fd821d1364e9141d1d0818_b3668d23-4276-4c55-a0c9-a89c111b7c36.webp?v=1752649165"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43441927651427,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01325Z7-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197140013155,"product_id":7815153385571,"position":19,"created_at":"2025-07-16T14:59:22+08:00","updated_at":"2025-07-16T14:59:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4cd5abfcb116956eebc5273e0f31b4db1ce719a_1b0d24d2-cb90-48bf-9097-7fcf9f0779f6.webp?v=1752649164","variant_ids":[43441927651427]},"available":true,"name":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01325Z7-XF55","featured_media":{"alt":null,"id":25829736317027,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4cd5abfcb116956eebc5273e0f31b4db1ce719a_1b0d24d2-cb90-48bf-9097-7fcf9f0779f6.webp?v=1752649164"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43441927684195,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST013250B-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197138669667,"product_id":7815153385571,"position":17,"created_at":"2025-07-16T14:59:21+08:00","updated_at":"2025-07-16T14:59:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/934f9657c2b2795b9ff35c5ff4b39d685abbde83_1a3c8075-bb25-43ff-8d80-b060165deecc.webp?v=1752649163","variant_ids":[43441927684195]},"available":true,"name":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013250B-XF55","featured_media":{"alt":null,"id":25829735694435,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/934f9657c2b2795b9ff35c5ff4b39d685abbde83_1a3c8075-bb25-43ff-8d80-b060165deecc.webp?v=1752649163"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43441927716963,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"NST01325Z8-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197142077539,"product_id":7815153385571,"position":22,"created_at":"2025-07-16T14:59:24+08:00","updated_at":"2025-07-16T14:59:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0780f3b53ae9ef0567ffb11a19de3422d6689e69_fc7404f4-4adb-446d-8b49-ccd416e7e775.webp?v=1752649166","variant_ids":[43441927716963]},"available":true,"name":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01325Z8-XF55","featured_media":{"alt":null,"id":25829737594979,"position":22,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0780f3b53ae9ef0567ffb11a19de3422d6689e69_fc7404f4-4adb-446d-8b49-ccd416e7e775.webp?v=1752649166"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-325-XF55.png?v=1749571002","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-325-XF55_d064013d-bcc6-41d6-97de-05b3ac0667c3.png?v=1749606685","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-325-XF55_3fb5a5a8-4adc-4877-ad5f-8d1417d29e1d.png?v=1749647105","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4cd5abfcb116956eebc5273e0f31b4db1ce719a.webp?v=1752638893","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0780f3b53ae9ef0567ffb11a19de3422d6689e69.webp?v=1752638893","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68b8bae5fe47928621fd821d1364e9141d1d0818.webp?v=1752638894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b8ca0589c64a7154c2821bb076179156808a4ff.webp?v=1752638894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/111fe514b2684065f430fca3412bcba417820707.webp?v=1752638895","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a61a727656adc6b5b0ed355dd99e52d78730eccf.webp?v=1752638895","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c861006c41bd56b4819bbda385238c8dbe1ad966.webp?v=1752638896","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/934f9657c2b2795b9ff35c5ff4b39d685abbde83.webp?v=1752638897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16b2b6e11f6acfc67d70c7991c4cebed7e05fb9.webp?v=1752638897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f89f198514be63d4dad6652a61d408d0dc0e215.webp?v=1752638898","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f89f198514be63d4dad6652a61d408d0dc0e215_2878ccda-9ea2-4561-86c3-75ab608cb52a.webp?v=1752649161","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c861006c41bd56b4819bbda385238c8dbe1ad966_8a273e89-5e12-4f18-a940-ffc9306c8e8b.webp?v=1752649162","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b8ca0589c64a7154c2821bb076179156808a4ff_6985cac2-14ee-4f38-9454-ce7e25b4e2bb.webp?v=1752649162","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/934f9657c2b2795b9ff35c5ff4b39d685abbde83_1a3c8075-bb25-43ff-8d80-b060165deecc.webp?v=1752649163","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a61a727656adc6b5b0ed355dd99e52d78730eccf_d78782a6-5231-4cb9-95b0-34b0b522ece3.webp?v=1752649163","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4cd5abfcb116956eebc5273e0f31b4db1ce719a_1b0d24d2-cb90-48bf-9097-7fcf9f0779f6.webp?v=1752649164","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68b8bae5fe47928621fd821d1364e9141d1d0818_b3668d23-4276-4c55-a0c9-a89c111b7c36.webp?v=1752649165","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16b2b6e11f6acfc67d70c7991c4cebed7e05fb9_51de5d0d-50b8-4150-bad8-e68f58ccde53.webp?v=1752649166","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0780f3b53ae9ef0567ffb11a19de3422d6689e69_fc7404f4-4adb-446d-8b49-ccd416e7e775.webp?v=1752649166","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/111fe514b2684065f430fca3412bcba417820707_e3491835-895d-4376-aa32-160b74e59c11.webp?v=1752649167"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-325-XF55.png?v=1749571002","options":["color"],"media":[{"alt":null,"id":25687363813475,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-325-XF55.png?v=1749571002"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-325-XF55.png?v=1749571002","width":2000},{"alt":null,"id":25688859508835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-325-XF55_d064013d-bcc6-41d6-97de-05b3ac0667c3.png?v=1749606685"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-325-XF55_d064013d-bcc6-41d6-97de-05b3ac0667c3.png?v=1749606685","width":2000},{"alt":null,"id":25690868973667,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-325-XF55_3fb5a5a8-4adc-4877-ad5f-8d1417d29e1d.png?v=1749647105"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-325-XF55_3fb5a5a8-4adc-4877-ad5f-8d1417d29e1d.png?v=1749647105","width":2000},{"alt":null,"id":25828338204771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4cd5abfcb116956eebc5273e0f31b4db1ce719a.webp?v=1752638893"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4cd5abfcb116956eebc5273e0f31b4db1ce719a.webp?v=1752638893","width":2000},{"alt":null,"id":25828338303075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0780f3b53ae9ef0567ffb11a19de3422d6689e69.webp?v=1752638893"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0780f3b53ae9ef0567ffb11a19de3422d6689e69.webp?v=1752638893","width":2000},{"alt":null,"id":25828338434147,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68b8bae5fe47928621fd821d1364e9141d1d0818.webp?v=1752638894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68b8bae5fe47928621fd821d1364e9141d1d0818.webp?v=1752638894","width":2000},{"alt":null,"id":25828338630755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b8ca0589c64a7154c2821bb076179156808a4ff.webp?v=1752638894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b8ca0589c64a7154c2821bb076179156808a4ff.webp?v=1752638894","width":2000},{"alt":null,"id":25828338794595,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/111fe514b2684065f430fca3412bcba417820707.webp?v=1752638895"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/111fe514b2684065f430fca3412bcba417820707.webp?v=1752638895","width":2000},{"alt":null,"id":25828338958435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a61a727656adc6b5b0ed355dd99e52d78730eccf.webp?v=1752638895"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a61a727656adc6b5b0ed355dd99e52d78730eccf.webp?v=1752638895","width":2000},{"alt":null,"id":25828339351651,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c861006c41bd56b4819bbda385238c8dbe1ad966.webp?v=1752638896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c861006c41bd56b4819bbda385238c8dbe1ad966.webp?v=1752638896","width":2000},{"alt":null,"id":25828339744867,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/934f9657c2b2795b9ff35c5ff4b39d685abbde83.webp?v=1752638897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/934f9657c2b2795b9ff35c5ff4b39d685abbde83.webp?v=1752638897","width":2000},{"alt":null,"id":25828340334691,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16b2b6e11f6acfc67d70c7991c4cebed7e05fb9.webp?v=1752638897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16b2b6e11f6acfc67d70c7991c4cebed7e05fb9.webp?v=1752638897","width":2000},{"alt":null,"id":25828340727907,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f89f198514be63d4dad6652a61d408d0dc0e215.webp?v=1752638898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f89f198514be63d4dad6652a61d408d0dc0e215.webp?v=1752638898","width":2000},{"alt":null,"id":25829734580323,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f89f198514be63d4dad6652a61d408d0dc0e215_2878ccda-9ea2-4561-86c3-75ab608cb52a.webp?v=1752649161"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f89f198514be63d4dad6652a61d408d0dc0e215_2878ccda-9ea2-4561-86c3-75ab608cb52a.webp?v=1752649161","width":2000},{"alt":null,"id":25829734744163,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c861006c41bd56b4819bbda385238c8dbe1ad966_8a273e89-5e12-4f18-a940-ffc9306c8e8b.webp?v=1752649162"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c861006c41bd56b4819bbda385238c8dbe1ad966_8a273e89-5e12-4f18-a940-ffc9306c8e8b.webp?v=1752649162","width":2000},{"alt":null,"id":25829734973539,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b8ca0589c64a7154c2821bb076179156808a4ff_6985cac2-14ee-4f38-9454-ce7e25b4e2bb.webp?v=1752649162"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b8ca0589c64a7154c2821bb076179156808a4ff_6985cac2-14ee-4f38-9454-ce7e25b4e2bb.webp?v=1752649162","width":2000},{"alt":null,"id":25829735694435,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/934f9657c2b2795b9ff35c5ff4b39d685abbde83_1a3c8075-bb25-43ff-8d80-b060165deecc.webp?v=1752649163"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/934f9657c2b2795b9ff35c5ff4b39d685abbde83_1a3c8075-bb25-43ff-8d80-b060165deecc.webp?v=1752649163","width":2000},{"alt":null,"id":25829736054883,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a61a727656adc6b5b0ed355dd99e52d78730eccf_d78782a6-5231-4cb9-95b0-34b0b522ece3.webp?v=1752649163"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a61a727656adc6b5b0ed355dd99e52d78730eccf_d78782a6-5231-4cb9-95b0-34b0b522ece3.webp?v=1752649163","width":2000},{"alt":null,"id":25829736317027,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4cd5abfcb116956eebc5273e0f31b4db1ce719a_1b0d24d2-cb90-48bf-9097-7fcf9f0779f6.webp?v=1752649164"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4cd5abfcb116956eebc5273e0f31b4db1ce719a_1b0d24d2-cb90-48bf-9097-7fcf9f0779f6.webp?v=1752649164","width":2000},{"alt":null,"id":25829736743011,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68b8bae5fe47928621fd821d1364e9141d1d0818_b3668d23-4276-4c55-a0c9-a89c111b7c36.webp?v=1752649165"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68b8bae5fe47928621fd821d1364e9141d1d0818_b3668d23-4276-4c55-a0c9-a89c111b7c36.webp?v=1752649165","width":2000},{"alt":null,"id":25829737300067,"position":21,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16b2b6e11f6acfc67d70c7991c4cebed7e05fb9_51de5d0d-50b8-4150-bad8-e68f58ccde53.webp?v=1752649166"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16b2b6e11f6acfc67d70c7991c4cebed7e05fb9_51de5d0d-50b8-4150-bad8-e68f58ccde53.webp?v=1752649166","width":2000},{"alt":null,"id":25829737594979,"position":22,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0780f3b53ae9ef0567ffb11a19de3422d6689e69_fc7404f4-4adb-446d-8b49-ccd416e7e775.webp?v=1752649166"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0780f3b53ae9ef0567ffb11a19de3422d6689e69_fc7404f4-4adb-446d-8b49-ccd416e7e775.webp?v=1752649166","width":2000},{"alt":null,"id":25829738119267,"position":23,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/111fe514b2684065f430fca3412bcba417820707_e3491835-895d-4376-aa32-160b74e59c11.webp?v=1752649167"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/111fe514b2684065f430fca3412bcba417820707_e3491835-895d-4376-aa32-160b74e59c11.webp?v=1752649167","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43441920475235,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0132552-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197137784931,"product_id":7815153385571,"position":16,"created_at":"2025-07-16T14:59:20+08:00","updated_at":"2025-07-16T14:59:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b8ca0589c64a7154c2821bb076179156808a4ff_6985cac2-14ee-4f38-9454-ce7e25b4e2bb.webp?v=1752649162","variant_ids":[43441920475235]},"available":true,"name":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0132552-XF55","featured_media":{"alt":null,"id":25829734973539,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b8ca0589c64a7154c2821bb076179156808a4ff_6985cac2-14ee-4f38-9454-ce7e25b4e2bb.webp?v=1752649162"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43441927454819,"title":"Raspberry Sorbet","option1":"Raspberry Sorbet","option2":null,"option3":null,"sku":"NST013253P-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197137293411,"product_id":7815153385571,"position":15,"created_at":"2025-07-16T14:59:20+08:00","updated_at":"2025-07-16T14:59:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c861006c41bd56b4819bbda385238c8dbe1ad966_8a273e89-5e12-4f18-a940-ffc9306c8e8b.webp?v=1752649162","variant_ids":[43441927454819]},"available":true,"name":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱 - Raspberry Sorbet","public_title":"Raspberry Sorbet","options":["Raspberry Sorbet"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013253P-XF55","featured_media":{"alt":null,"id":25829734744163,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c861006c41bd56b4819bbda385238c8dbe1ad966_8a273e89-5e12-4f18-a940-ffc9306c8e8b.webp?v=1752649162"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43441927487587,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01325O8-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197142536291,"product_id":7815153385571,"position":23,"created_at":"2025-07-16T14:59:25+08:00","updated_at":"2025-07-16T14:59:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/111fe514b2684065f430fca3412bcba417820707_e3491835-895d-4376-aa32-160b74e59c11.webp?v=1752649167","variant_ids":[43441927487587]},"available":true,"name":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01325O8-XF55","featured_media":{"alt":null,"id":25829738119267,"position":23,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/111fe514b2684065f430fca3412bcba417820707_e3491835-895d-4376-aa32-160b74e59c11.webp?v=1752649167"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43441927553123,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"NST013250A-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197139390563,"product_id":7815153385571,"position":18,"created_at":"2025-07-16T14:59:22+08:00","updated_at":"2025-07-16T14:59:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a61a727656adc6b5b0ed355dd99e52d78730eccf_d78782a6-5231-4cb9-95b0-34b0b522ece3.webp?v=1752649163","variant_ids":[43441927553123]},"available":true,"name":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013250A-XF55","featured_media":{"alt":null,"id":25829736054883,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a61a727656adc6b5b0ed355dd99e52d78730eccf_d78782a6-5231-4cb9-95b0-34b0b522ece3.webp?v=1752649163"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43441927585891,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0132553-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197136900195,"product_id":7815153385571,"position":14,"created_at":"2025-07-16T14:59:19+08:00","updated_at":"2025-07-16T14:59:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f89f198514be63d4dad6652a61d408d0dc0e215_2878ccda-9ea2-4561-86c3-75ab608cb52a.webp?v=1752649161","variant_ids":[43441927585891]},"available":true,"name":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱 - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0132553-XF55","featured_media":{"alt":null,"id":25829734580323,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f89f198514be63d4dad6652a61d408d0dc0e215_2878ccda-9ea2-4561-86c3-75ab608cb52a.webp?v=1752649161"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43441927618659,"title":"Ultra Marine","option1":"Ultra Marine","option2":null,"option3":null,"sku":"NST013253O-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197140963427,"product_id":7815153385571,"position":20,"created_at":"2025-07-16T14:59:23+08:00","updated_at":"2025-07-16T14:59:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68b8bae5fe47928621fd821d1364e9141d1d0818_b3668d23-4276-4c55-a0c9-a89c111b7c36.webp?v=1752649165","variant_ids":[43441927618659]},"available":true,"name":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱 - Ultra Marine","public_title":"Ultra Marine","options":["Ultra Marine"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013253O-XF55","featured_media":{"alt":null,"id":25829736743011,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68b8bae5fe47928621fd821d1364e9141d1d0818_b3668d23-4276-4c55-a0c9-a89c111b7c36.webp?v=1752649165"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43441927651427,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01325Z7-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197140013155,"product_id":7815153385571,"position":19,"created_at":"2025-07-16T14:59:22+08:00","updated_at":"2025-07-16T14:59:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4cd5abfcb116956eebc5273e0f31b4db1ce719a_1b0d24d2-cb90-48bf-9097-7fcf9f0779f6.webp?v=1752649164","variant_ids":[43441927651427]},"available":true,"name":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01325Z7-XF55","featured_media":{"alt":null,"id":25829736317027,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4cd5abfcb116956eebc5273e0f31b4db1ce719a_1b0d24d2-cb90-48bf-9097-7fcf9f0779f6.webp?v=1752649164"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43441927684195,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST013250B-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197138669667,"product_id":7815153385571,"position":17,"created_at":"2025-07-16T14:59:21+08:00","updated_at":"2025-07-16T14:59:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/934f9657c2b2795b9ff35c5ff4b39d685abbde83_1a3c8075-bb25-43ff-8d80-b060165deecc.webp?v=1752649163","variant_ids":[43441927684195]},"available":true,"name":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013250B-XF55","featured_media":{"alt":null,"id":25829735694435,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/934f9657c2b2795b9ff35c5ff4b39d685abbde83_1a3c8075-bb25-43ff-8d80-b060165deecc.webp?v=1752649163"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43441927716963,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"NST01325Z8-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197142077539,"product_id":7815153385571,"position":22,"created_at":"2025-07-16T14:59:24+08:00","updated_at":"2025-07-16T14:59:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0780f3b53ae9ef0567ffb11a19de3422d6689e69_fc7404f4-4adb-446d-8b49-ccd416e7e775.webp?v=1752649166","variant_ids":[43441927716963]},"available":true,"name":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01325Z8-XF55","featured_media":{"alt":null,"id":25829737594979,"position":22,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0780f3b53ae9ef0567ffb11a19de3422d6689e69_fc7404f4-4adb-446d-8b49-ccd416e7e775.webp?v=1752649166"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43441920475235,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0132552-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197137784931,"product_id":7815153385571,"position":16,"created_at":"2025-07-16T14:59:20+08:00","updated_at":"2025-07-16T14:59:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b8ca0589c64a7154c2821bb076179156808a4ff_6985cac2-14ee-4f38-9454-ce7e25b4e2bb.webp?v=1752649162","variant_ids":[43441920475235]},"available":true,"name":"iPhone 16 SolidX ilovedoodle Hug One Line - 愛與擁抱 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0132552-XF55","featured_media":{"alt":null,"id":25829734973539,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b8ca0589c64a7154c2821bb076179156808a4ff_6985cac2-14ee-4f38-9454-ce7e25b4e2bb.webp?v=1752649162"}},"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: "停產"
}