$product = {"id":7960575311971,"title":"iPhone 17 Pro AirX Knock Knock A2Z Wonderful World","handle":"iphone-17-pro-airx-magsafe-en08","description":null,"published_at":"2026-02-09T11:04:40+08:00","created_at":"2026-02-09T09:51:32+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-knockknockatoz","device-iPhone 17 Pro","merge","reseller-knockknockatoz"],"price":195000,"price_min":195000,"price_max":195000,"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":43991729504355,"title":"Vero Black","option1":"Vero Black","option2":null,"option3":null,"sku":"MAR013524E-EN08","requires_shipping":true,"taxable":true,"featured_image":{"id":36201198125155,"product_id":7960575311971,"position":4,"created_at":"2026-07-07T18:51:49+08:00","updated_at":"2026-07-07T18:51:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79f3ee5508dea5b2188b0cce7a27a845ab717b59_5ecb97ef-8d68-4dd4-971e-6ead6047c959.webp?v=1783421511","variant_ids":[43991729504355]},"available":true,"name":"iPhone 17 Pro AirX Knock Knock A2Z Wonderful World - Vero Black","public_title":"Vero Black","options":["Vero Black"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013524E-EN08","featured_media":{"alt":null,"id":27706002604131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79f3ee5508dea5b2188b0cce7a27a845ab717b59_5ecb97ef-8d68-4dd4-971e-6ead6047c959.webp?v=1783421511"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43991731929187,"title":"Flux Gray","option1":"Flux Gray","option2":null,"option3":null,"sku":"MAR013524F-EN08","requires_shipping":true,"taxable":true,"featured_image":{"id":36201197895779,"product_id":7960575311971,"position":3,"created_at":"2026-07-07T18:51:48+08:00","updated_at":"2026-07-07T18:51:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f88eb3fc645096fce92baf323a2a0faec38192c_f0316e1c-ff5d-46d4-a0fa-5e5448ae2c6f.webp?v=1783421510","variant_ids":[43991731929187]},"available":true,"name":"iPhone 17 Pro AirX Knock Knock A2Z Wonderful World - Flux Gray","public_title":"Flux Gray","options":["Flux Gray"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013524F-EN08","featured_media":{"alt":null,"id":27706002374755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f88eb3fc645096fce92baf323a2a0faec38192c_f0316e1c-ff5d-46d4-a0fa-5e5448ae2c6f.webp?v=1783421510"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44440557191267,"title":"Ashen Violet","option1":"Ashen Violet","option2":null,"option3":null,"sku":"MAR013526C-EN08","requires_shipping":true,"taxable":true,"featured_image":{"id":36485448466531,"product_id":7960575311971,"position":7,"created_at":"2026-08-05T10:18:24+08:00","updated_at":"2026-08-05T10:18:26+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3444a31efeecd2bc0ac14a8194294d5560ebbba5.webp?v=1785896306","variant_ids":[44440557191267]},"available":true,"name":"iPhone 17 Pro AirX Knock Knock A2Z Wonderful World - Ashen Violet","public_title":"Ashen Violet","options":["Ashen Violet"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013526C-EN08","featured_media":{"alt":null,"id":27988761608291,"position":7,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3444a31efeecd2bc0ac14a8194294d5560ebbba5.webp?v=1785896306"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44448791298147,"title":"Ridgeline Gray","option1":"Ridgeline Gray","option2":null,"option3":null,"sku":"MAR013526D-EN08","requires_shipping":true,"taxable":true,"featured_image":{"id":36494786297955,"product_id":7960575311971,"position":9,"created_at":"2026-08-06T11:06:58+08:00","updated_at":"2026-08-06T11:07:00+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135a851422b637f4a47ada0ef2855f7c7ac17fc4_e2260800-693f-42c9-92db-c16b676642b2.webp?v=1785985620","variant_ids":[44448791298147]},"available":true,"name":"iPhone 17 Pro AirX Knock Knock A2Z Wonderful World - Ridgeline Gray","public_title":"Ridgeline Gray","options":["Ridgeline Gray"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013526D-EN08","featured_media":{"alt":null,"id":27998082826339,"position":9,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135a851422b637f4a47ada0ef2855f7c7ac17fc4_e2260800-693f-42c9-92db-c16b676642b2.webp?v=1785985620"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44448792019043,"title":"Trailhead Green","option1":"Trailhead Green","option2":null,"option3":null,"sku":"MAR013526E-EN08","requires_shipping":true,"taxable":true,"featured_image":{"id":36494785642595,"product_id":7960575311971,"position":8,"created_at":"2026-08-06T11:06:57+08:00","updated_at":"2026-08-06T11:06:59+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba292238219a8dbdf07a3685af6f742cf44f8166_9bd68d88-0eed-4228-95e1-f6b877b42f2f.webp?v=1785985619","variant_ids":[44448792019043]},"available":true,"name":"iPhone 17 Pro AirX Knock Knock A2Z Wonderful World - Trailhead Green","public_title":"Trailhead Green","options":["Trailhead Green"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013526E-EN08","featured_media":{"alt":null,"id":27998082203747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba292238219a8dbdf07a3685af6f742cf44f8166_9bd68d88-0eed-4228-95e1-f6b877b42f2f.webp?v=1785985619"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f88eb3fc645096fce92baf323a2a0faec38192c.webp?v=1770601903","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79f3ee5508dea5b2188b0cce7a27a845ab717b59.webp?v=1770601903","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f88eb3fc645096fce92baf323a2a0faec38192c_f0316e1c-ff5d-46d4-a0fa-5e5448ae2c6f.webp?v=1783421510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79f3ee5508dea5b2188b0cce7a27a845ab717b59_5ecb97ef-8d68-4dd4-971e-6ead6047c959.webp?v=1783421511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba292238219a8dbdf07a3685af6f742cf44f8166.webp?v=1785896303","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135a851422b637f4a47ada0ef2855f7c7ac17fc4.webp?v=1785896305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3444a31efeecd2bc0ac14a8194294d5560ebbba5.webp?v=1785896306","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba292238219a8dbdf07a3685af6f742cf44f8166_9bd68d88-0eed-4228-95e1-f6b877b42f2f.webp?v=1785985619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135a851422b637f4a47ada0ef2855f7c7ac17fc4_e2260800-693f-42c9-92db-c16b676642b2.webp?v=1785985620"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f88eb3fc645096fce92baf323a2a0faec38192c.webp?v=1770601903","options":["color"],"media":[{"alt":null,"id":26766187954275,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f88eb3fc645096fce92baf323a2a0faec38192c.webp?v=1770601903"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f88eb3fc645096fce92baf323a2a0faec38192c.webp?v=1770601903","width":2000},{"alt":null,"id":26766188216419,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79f3ee5508dea5b2188b0cce7a27a845ab717b59.webp?v=1770601903"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79f3ee5508dea5b2188b0cce7a27a845ab717b59.webp?v=1770601903","width":2000},{"alt":null,"id":27706002374755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f88eb3fc645096fce92baf323a2a0faec38192c_f0316e1c-ff5d-46d4-a0fa-5e5448ae2c6f.webp?v=1783421510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f88eb3fc645096fce92baf323a2a0faec38192c_f0316e1c-ff5d-46d4-a0fa-5e5448ae2c6f.webp?v=1783421510","width":2000},{"alt":null,"id":27706002604131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79f3ee5508dea5b2188b0cce7a27a845ab717b59_5ecb97ef-8d68-4dd4-971e-6ead6047c959.webp?v=1783421511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79f3ee5508dea5b2188b0cce7a27a845ab717b59_5ecb97ef-8d68-4dd4-971e-6ead6047c959.webp?v=1783421511","width":2000},{"alt":null,"id":27988761051235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba292238219a8dbdf07a3685af6f742cf44f8166.webp?v=1785896303"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba292238219a8dbdf07a3685af6f742cf44f8166.webp?v=1785896303","width":550},{"alt":null,"id":27988761280611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135a851422b637f4a47ada0ef2855f7c7ac17fc4.webp?v=1785896305"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135a851422b637f4a47ada0ef2855f7c7ac17fc4.webp?v=1785896305","width":550},{"alt":null,"id":27988761608291,"position":7,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3444a31efeecd2bc0ac14a8194294d5560ebbba5.webp?v=1785896306"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3444a31efeecd2bc0ac14a8194294d5560ebbba5.webp?v=1785896306","width":550},{"alt":null,"id":27998082203747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba292238219a8dbdf07a3685af6f742cf44f8166_9bd68d88-0eed-4228-95e1-f6b877b42f2f.webp?v=1785985619"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba292238219a8dbdf07a3685af6f742cf44f8166_9bd68d88-0eed-4228-95e1-f6b877b42f2f.webp?v=1785985619","width":550},{"alt":null,"id":27998082826339,"position":9,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135a851422b637f4a47ada0ef2855f7c7ac17fc4_e2260800-693f-42c9-92db-c16b676642b2.webp?v=1785985620"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135a851422b637f4a47ada0ef2855f7c7ac17fc4_e2260800-693f-42c9-92db-c16b676642b2.webp?v=1785985620","width":550}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43991729504355,"title":"Vero Black","option1":"Vero Black","option2":null,"option3":null,"sku":"MAR013524E-EN08","requires_shipping":true,"taxable":true,"featured_image":{"id":36201198125155,"product_id":7960575311971,"position":4,"created_at":"2026-07-07T18:51:49+08:00","updated_at":"2026-07-07T18:51:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79f3ee5508dea5b2188b0cce7a27a845ab717b59_5ecb97ef-8d68-4dd4-971e-6ead6047c959.webp?v=1783421511","variant_ids":[43991729504355]},"available":true,"name":"iPhone 17 Pro AirX Knock Knock A2Z Wonderful World - Vero Black","public_title":"Vero Black","options":["Vero Black"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013524E-EN08","featured_media":{"alt":null,"id":27706002604131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79f3ee5508dea5b2188b0cce7a27a845ab717b59_5ecb97ef-8d68-4dd4-971e-6ead6047c959.webp?v=1783421511"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43991731929187,"title":"Flux Gray","option1":"Flux Gray","option2":null,"option3":null,"sku":"MAR013524F-EN08","requires_shipping":true,"taxable":true,"featured_image":{"id":36201197895779,"product_id":7960575311971,"position":3,"created_at":"2026-07-07T18:51:48+08:00","updated_at":"2026-07-07T18:51:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f88eb3fc645096fce92baf323a2a0faec38192c_f0316e1c-ff5d-46d4-a0fa-5e5448ae2c6f.webp?v=1783421510","variant_ids":[43991731929187]},"available":true,"name":"iPhone 17 Pro AirX Knock Knock A2Z Wonderful World - Flux Gray","public_title":"Flux Gray","options":["Flux Gray"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013524F-EN08","featured_media":{"alt":null,"id":27706002374755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f88eb3fc645096fce92baf323a2a0faec38192c_f0316e1c-ff5d-46d4-a0fa-5e5448ae2c6f.webp?v=1783421510"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44440557191267,"title":"Ashen Violet","option1":"Ashen Violet","option2":null,"option3":null,"sku":"MAR013526C-EN08","requires_shipping":true,"taxable":true,"featured_image":{"id":36485448466531,"product_id":7960575311971,"position":7,"created_at":"2026-08-05T10:18:24+08:00","updated_at":"2026-08-05T10:18:26+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3444a31efeecd2bc0ac14a8194294d5560ebbba5.webp?v=1785896306","variant_ids":[44440557191267]},"available":true,"name":"iPhone 17 Pro AirX Knock Knock A2Z Wonderful World - Ashen Violet","public_title":"Ashen Violet","options":["Ashen Violet"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013526C-EN08","featured_media":{"alt":null,"id":27988761608291,"position":7,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3444a31efeecd2bc0ac14a8194294d5560ebbba5.webp?v=1785896306"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44448791298147,"title":"Ridgeline Gray","option1":"Ridgeline Gray","option2":null,"option3":null,"sku":"MAR013526D-EN08","requires_shipping":true,"taxable":true,"featured_image":{"id":36494786297955,"product_id":7960575311971,"position":9,"created_at":"2026-08-06T11:06:58+08:00","updated_at":"2026-08-06T11:07:00+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135a851422b637f4a47ada0ef2855f7c7ac17fc4_e2260800-693f-42c9-92db-c16b676642b2.webp?v=1785985620","variant_ids":[44448791298147]},"available":true,"name":"iPhone 17 Pro AirX Knock Knock A2Z Wonderful World - Ridgeline Gray","public_title":"Ridgeline Gray","options":["Ridgeline Gray"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013526D-EN08","featured_media":{"alt":null,"id":27998082826339,"position":9,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135a851422b637f4a47ada0ef2855f7c7ac17fc4_e2260800-693f-42c9-92db-c16b676642b2.webp?v=1785985620"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44448792019043,"title":"Trailhead Green","option1":"Trailhead Green","option2":null,"option3":null,"sku":"MAR013526E-EN08","requires_shipping":true,"taxable":true,"featured_image":{"id":36494785642595,"product_id":7960575311971,"position":8,"created_at":"2026-08-06T11:06:57+08:00","updated_at":"2026-08-06T11:06:59+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba292238219a8dbdf07a3685af6f742cf44f8166_9bd68d88-0eed-4228-95e1-f6b877b42f2f.webp?v=1785985619","variant_ids":[44448792019043]},"available":true,"name":"iPhone 17 Pro AirX Knock Knock A2Z Wonderful World - Trailhead Green","public_title":"Trailhead Green","options":["Trailhead Green"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013526E-EN08","featured_media":{"alt":null,"id":27998082203747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba292238219a8dbdf07a3685af6f742cf44f8166_9bd68d88-0eed-4228-95e1-f6b877b42f2f.webp?v=1785985619"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43991729504355,"title":"Vero Black","option1":"Vero Black","option2":null,"option3":null,"sku":"MAR013524E-EN08","requires_shipping":true,"taxable":true,"featured_image":{"id":36201198125155,"product_id":7960575311971,"position":4,"created_at":"2026-07-07T18:51:49+08:00","updated_at":"2026-07-07T18:51:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79f3ee5508dea5b2188b0cce7a27a845ab717b59_5ecb97ef-8d68-4dd4-971e-6ead6047c959.webp?v=1783421511","variant_ids":[43991729504355]},"available":true,"name":"iPhone 17 Pro AirX Knock Knock A2Z Wonderful World - Vero Black","public_title":"Vero Black","options":["Vero Black"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013524E-EN08","featured_media":{"alt":null,"id":27706002604131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79f3ee5508dea5b2188b0cce7a27a845ab717b59_5ecb97ef-8d68-4dd4-971e-6ead6047c959.webp?v=1783421511"}},"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: "停產" }