$product = {"id":7972523147363,"title":"iPhone 17 Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) Taku Bannai 坂內拓 Blue shadow|藍影滑板少年","handle":"iphone-17-mod-nx-magsafe-with-capture-button-ban14","description":null,"published_at":"2026-03-04T11:16:56+08:00","created_at":"2026-03-03T10:07:55+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-bannaitaku","device-iPhone 17","merge","reseller-bannaitaku"],"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":44035101458531,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MXB0135004-BAN14","requires_shipping":true,"taxable":true,"featured_image":{"id":35378780438627,"product_id":7972523147363,"position":5,"created_at":"2026-03-03T10:08:25+08:00","updated_at":"2026-03-03T10:08:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf1f5e38b51f2df0ae8427c7ec0a10abe91ed8b.webp?v=1772503707","variant_ids":[44035101458531]},"available":true,"name":"iPhone 17 Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) Taku Bannai 坂內拓 Blue shadow|藍影滑板少年 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MXB0135004-BAN14","featured_media":{"alt":null,"id":26922210918499,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf1f5e38b51f2df0ae8427c7ec0a10abe91ed8b.webp?v=1772503707"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44035116728419,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MXB01350C1-BAN14","requires_shipping":true,"taxable":true,"featured_image":{"id":35378775162979,"product_id":7972523147363,"position":2,"created_at":"2026-03-03T10:08:22+08:00","updated_at":"2026-03-03T10:08:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c1526d94ff17b08b8b3cbe90909c17f2818a5b5.webp?v=1772503705","variant_ids":[44035116728419]},"available":true,"name":"iPhone 17 Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) Taku Bannai 坂內拓 Blue shadow|藍影滑板少年 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MXB01350C1-BAN14","featured_media":{"alt":null,"id":26922205970531,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c1526d94ff17b08b8b3cbe90909c17f2818a5b5.webp?v=1772503705"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44035117482083,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MXB01350J5-BAN14","requires_shipping":true,"taxable":true,"featured_image":{"id":35378778832995,"product_id":7972523147363,"position":4,"created_at":"2026-03-03T10:08:24+08:00","updated_at":"2026-03-03T10:08:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8800074c715df1b6a12c1c3539a7f0623bc260a7.webp?v=1772503706","variant_ids":[44035117482083]},"available":true,"name":"iPhone 17 Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) Taku Bannai 坂內拓 Blue shadow|藍影滑板少年 - 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":"MXB01350J5-BAN14","featured_media":{"alt":null,"id":26922209345635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8800074c715df1b6a12c1c3539a7f0623bc260a7.webp?v=1772503706"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44035118432355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MXB0135024-BAN14","requires_shipping":true,"taxable":true,"featured_image":{"id":35378777489507,"product_id":7972523147363,"position":3,"created_at":"2026-03-03T10:08:23+08:00","updated_at":"2026-03-03T10:08:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13e0e375603b0c14ee2a7adb318907df2add4951.webp?v=1772503705","variant_ids":[44035118432355]},"available":true,"name":"iPhone 17 Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) Taku Bannai 坂內拓 Blue shadow|藍影滑板少年 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MXB0135024-BAN14","featured_media":{"alt":null,"id":26922208002147,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13e0e375603b0c14ee2a7adb318907df2add4951.webp?v=1772503705"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44035119087715,"title":"Camo Green","option1":"Camo Green","option2":null,"option3":null,"sku":"MXB0135015-BAN14","requires_shipping":true,"taxable":true,"featured_image":{"id":35378772344931,"product_id":7972523147363,"position":1,"created_at":"2026-03-03T10:08:21+08:00","updated_at":"2026-03-03T10:08:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77752f3089ac4e51881e57c1c3ebf0ca09be1e59.webp?v=1772503703","variant_ids":[44035119087715]},"available":true,"name":"iPhone 17 Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) Taku Bannai 坂內拓 Blue shadow|藍影滑板少年 - Camo Green","public_title":"Camo Green","options":["Camo Green"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MXB0135015-BAN14","featured_media":{"alt":null,"id":26922202857571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77752f3089ac4e51881e57c1c3ebf0ca09be1e59.webp?v=1772503703"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44035119743075,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MXB0135069-BAN14","requires_shipping":true,"taxable":true,"featured_image":{"id":35378782568547,"product_id":7972523147363,"position":6,"created_at":"2026-03-03T10:08:26+08:00","updated_at":"2026-03-03T10:08:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d7b6da920f29f573b3ffc3b47e52310be6b734.webp?v=1772503708","variant_ids":[44035119743075]},"available":true,"name":"iPhone 17 Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) Taku Bannai 坂內拓 Blue shadow|藍影滑板少年 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MXB0135069-BAN14","featured_media":{"alt":null,"id":26922213310563,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d7b6da920f29f573b3ffc3b47e52310be6b734.webp?v=1772503708"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77752f3089ac4e51881e57c1c3ebf0ca09be1e59.webp?v=1772503703","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c1526d94ff17b08b8b3cbe90909c17f2818a5b5.webp?v=1772503705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13e0e375603b0c14ee2a7adb318907df2add4951.webp?v=1772503705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8800074c715df1b6a12c1c3539a7f0623bc260a7.webp?v=1772503706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf1f5e38b51f2df0ae8427c7ec0a10abe91ed8b.webp?v=1772503707","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d7b6da920f29f573b3ffc3b47e52310be6b734.webp?v=1772503708"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77752f3089ac4e51881e57c1c3ebf0ca09be1e59.webp?v=1772503703","options":["color"],"media":[{"alt":null,"id":26922202857571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77752f3089ac4e51881e57c1c3ebf0ca09be1e59.webp?v=1772503703"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77752f3089ac4e51881e57c1c3ebf0ca09be1e59.webp?v=1772503703","width":2000},{"alt":null,"id":26922205970531,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c1526d94ff17b08b8b3cbe90909c17f2818a5b5.webp?v=1772503705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c1526d94ff17b08b8b3cbe90909c17f2818a5b5.webp?v=1772503705","width":2000},{"alt":null,"id":26922208002147,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13e0e375603b0c14ee2a7adb318907df2add4951.webp?v=1772503705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13e0e375603b0c14ee2a7adb318907df2add4951.webp?v=1772503705","width":2000},{"alt":null,"id":26922209345635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8800074c715df1b6a12c1c3539a7f0623bc260a7.webp?v=1772503706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8800074c715df1b6a12c1c3539a7f0623bc260a7.webp?v=1772503706","width":2000},{"alt":null,"id":26922210918499,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf1f5e38b51f2df0ae8427c7ec0a10abe91ed8b.webp?v=1772503707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf1f5e38b51f2df0ae8427c7ec0a10abe91ed8b.webp?v=1772503707","width":2000},{"alt":null,"id":26922213310563,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d7b6da920f29f573b3ffc3b47e52310be6b734.webp?v=1772503708"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d7b6da920f29f573b3ffc3b47e52310be6b734.webp?v=1772503708","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":44035101458531,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MXB0135004-BAN14","requires_shipping":true,"taxable":true,"featured_image":{"id":35378780438627,"product_id":7972523147363,"position":5,"created_at":"2026-03-03T10:08:25+08:00","updated_at":"2026-03-03T10:08:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf1f5e38b51f2df0ae8427c7ec0a10abe91ed8b.webp?v=1772503707","variant_ids":[44035101458531]},"available":true,"name":"iPhone 17 Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) Taku Bannai 坂內拓 Blue shadow|藍影滑板少年 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MXB0135004-BAN14","featured_media":{"alt":null,"id":26922210918499,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf1f5e38b51f2df0ae8427c7ec0a10abe91ed8b.webp?v=1772503707"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44035116728419,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MXB01350C1-BAN14","requires_shipping":true,"taxable":true,"featured_image":{"id":35378775162979,"product_id":7972523147363,"position":2,"created_at":"2026-03-03T10:08:22+08:00","updated_at":"2026-03-03T10:08:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c1526d94ff17b08b8b3cbe90909c17f2818a5b5.webp?v=1772503705","variant_ids":[44035116728419]},"available":true,"name":"iPhone 17 Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) Taku Bannai 坂內拓 Blue shadow|藍影滑板少年 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MXB01350C1-BAN14","featured_media":{"alt":null,"id":26922205970531,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c1526d94ff17b08b8b3cbe90909c17f2818a5b5.webp?v=1772503705"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44035117482083,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MXB01350J5-BAN14","requires_shipping":true,"taxable":true,"featured_image":{"id":35378778832995,"product_id":7972523147363,"position":4,"created_at":"2026-03-03T10:08:24+08:00","updated_at":"2026-03-03T10:08:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8800074c715df1b6a12c1c3539a7f0623bc260a7.webp?v=1772503706","variant_ids":[44035117482083]},"available":true,"name":"iPhone 17 Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) Taku Bannai 坂內拓 Blue shadow|藍影滑板少年 - 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":"MXB01350J5-BAN14","featured_media":{"alt":null,"id":26922209345635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8800074c715df1b6a12c1c3539a7f0623bc260a7.webp?v=1772503706"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44035118432355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MXB0135024-BAN14","requires_shipping":true,"taxable":true,"featured_image":{"id":35378777489507,"product_id":7972523147363,"position":3,"created_at":"2026-03-03T10:08:23+08:00","updated_at":"2026-03-03T10:08:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13e0e375603b0c14ee2a7adb318907df2add4951.webp?v=1772503705","variant_ids":[44035118432355]},"available":true,"name":"iPhone 17 Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) Taku Bannai 坂內拓 Blue shadow|藍影滑板少年 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MXB0135024-BAN14","featured_media":{"alt":null,"id":26922208002147,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13e0e375603b0c14ee2a7adb318907df2add4951.webp?v=1772503705"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44035119087715,"title":"Camo Green","option1":"Camo Green","option2":null,"option3":null,"sku":"MXB0135015-BAN14","requires_shipping":true,"taxable":true,"featured_image":{"id":35378772344931,"product_id":7972523147363,"position":1,"created_at":"2026-03-03T10:08:21+08:00","updated_at":"2026-03-03T10:08:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77752f3089ac4e51881e57c1c3ebf0ca09be1e59.webp?v=1772503703","variant_ids":[44035119087715]},"available":true,"name":"iPhone 17 Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) Taku Bannai 坂內拓 Blue shadow|藍影滑板少年 - Camo Green","public_title":"Camo Green","options":["Camo Green"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MXB0135015-BAN14","featured_media":{"alt":null,"id":26922202857571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77752f3089ac4e51881e57c1c3ebf0ca09be1e59.webp?v=1772503703"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44035119743075,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MXB0135069-BAN14","requires_shipping":true,"taxable":true,"featured_image":{"id":35378782568547,"product_id":7972523147363,"position":6,"created_at":"2026-03-03T10:08:26+08:00","updated_at":"2026-03-03T10:08:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d7b6da920f29f573b3ffc3b47e52310be6b734.webp?v=1772503708","variant_ids":[44035119743075]},"available":true,"name":"iPhone 17 Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) Taku Bannai 坂內拓 Blue shadow|藍影滑板少年 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MXB0135069-BAN14","featured_media":{"alt":null,"id":26922213310563,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d7b6da920f29f573b3ffc3b47e52310be6b734.webp?v=1772503708"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":44035101458531,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MXB0135004-BAN14","requires_shipping":true,"taxable":true,"featured_image":{"id":35378780438627,"product_id":7972523147363,"position":5,"created_at":"2026-03-03T10:08:25+08:00","updated_at":"2026-03-03T10:08:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf1f5e38b51f2df0ae8427c7ec0a10abe91ed8b.webp?v=1772503707","variant_ids":[44035101458531]},"available":true,"name":"iPhone 17 Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) Taku Bannai 坂內拓 Blue shadow|藍影滑板少年 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MXB0135004-BAN14","featured_media":{"alt":null,"id":26922210918499,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf1f5e38b51f2df0ae8427c7ec0a10abe91ed8b.webp?v=1772503707"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } }); }; var sellingStatusData window.fetchSellingStatus().then(data => { try { sellingStatusData = data; } catch (error) { sellingStatusData = null console.error('Unable to parse selling status', error) } $(document).ready(function() { handleSellingStatus($defaultVariant.sku); }); }) function handleSellingStatus(currentSku) { if (!sellingStatusData) { console.error('No selling status available!') return } const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const flattenedSellingStatus = [...sellingStatusData.pending, ...sellingStatusData.preorder] const matchSellingStatusProduct = flattenedSellingStatus.filter(product => currentProductSku === product.sku) if (matchSellingStatusProduct.length > 0) { const isProductPending = matchSellingStatusProduct[0].status === 'pending' const matchDate = matchSellingStatusProduct[0].date sellingStatus = isProductPending ? "缺貨中" : "預購完成出貨日:" + matchDate sellingStatusElement.textContent = sellingStatus if (sellingStatus.includes("缺貨中")){ addToCartButton.disabled ='true'; addToCartButton.textContent = "缺貨中無法加入購物車" } else { addToCartButton.textContent = "加到購物車" } } else { sellingStatusElement.textContent = '' addToCartButton.textContent = "加到購物車" }; }; }; document.addEventListener('DOMContentLoaded', function () { var currentVariantSelect = document.getElementById('SingleOptionSelector-0') currentVariantSelect.addEventListener('change', function() { var currentSku = $('#current_sku').text() var skuElement = document.getElementById('current-sku') skuElement.textContent = currentSku handleSellingStatus(currentSku) }); });
// Override default values of shop.strings for each template. // Alternate product templates can change values of // add to cart button, sold out, and unavailable states here. theme.productStrings = { addToCart: "加到購物車", soldOut: "售完", unavailable: "停產" }