$product = {"id":7921140924515,"title":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的力量泉源","handle":"iphone-12-pro-mod-nx-magsafe-hd68","description":null,"published_at":"2025-11-13T09:48:13+08:00","created_at":"2025-11-11T09:47:31+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-incrediville","device-iPhone 12 Pro","merge","reseller-incrediville"],"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":43830923755619,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-HD68","requires_shipping":true,"taxable":true,"featured_image":{"id":34786206711907,"product_id":7921140924515,"position":1,"created_at":"2025-11-11T09:47:36+08:00","updated_at":"2025-11-11T09:47:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e78fa197ab970c33ae1c57031aa67412f4805aa.webp?v=1762825658","variant_ids":[43830923755619]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的力量泉源 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-HD68","featured_media":{"alt":null,"id":26351663710307,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e78fa197ab970c33ae1c57031aa67412f4805aa.webp?v=1762825658"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830925885539,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-HD68","requires_shipping":true,"taxable":true,"featured_image":{"id":34786207858787,"product_id":7921140924515,"position":6,"created_at":"2025-11-11T09:47:39+08:00","updated_at":"2025-11-11T09:47:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2961da3c7d30e260c21373c96c00fd9c68bad7a0.webp?v=1762825661","variant_ids":[43830925885539]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的力量泉源 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118524-HD68","featured_media":{"alt":null,"id":26351664857187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2961da3c7d30e260c21373c96c00fd9c68bad7a0.webp?v=1762825661"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830925918307,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-HD68","requires_shipping":true,"taxable":true,"featured_image":{"id":34786208874595,"product_id":7921140924515,"position":10,"created_at":"2025-11-11T09:47:42+08:00","updated_at":"2025-11-11T09:47:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e492ad5187478a9aa1df6eb157bfde22a829b8.webp?v=1762825664","variant_ids":[43830925918307]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的力量泉源 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118569-HD68","featured_media":{"alt":null,"id":26351665971299,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e492ad5187478a9aa1df6eb157bfde22a829b8.webp?v=1762825664"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830926016611,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-HD68","requires_shipping":true,"taxable":true,"featured_image":{"id":34786208120931,"product_id":7921140924515,"position":7,"created_at":"2025-11-11T09:47:40+08:00","updated_at":"2025-11-11T09:47:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e82058d2f93575567e05e48ca0eef9622a58e0.webp?v=1762825662","variant_ids":[43830926016611]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的力量泉源 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118504-HD68","featured_media":{"alt":null,"id":26351665119331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e82058d2f93575567e05e48ca0eef9622a58e0.webp?v=1762825662"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830926180451,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-HD68","requires_shipping":true,"taxable":true,"featured_image":{"id":34786207268963,"product_id":7921140924515,"position":4,"created_at":"2025-11-11T09:47:38+08:00","updated_at":"2025-11-11T09:47:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cec949fe6c44144e1ea7e12c7a8068a0eae33e7b.webp?v=1762825660","variant_ids":[43830926180451]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的力量泉源 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185J5-HD68","featured_media":{"alt":null,"id":26351664267363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cec949fe6c44144e1ea7e12c7a8068a0eae33e7b.webp?v=1762825660"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e78fa197ab970c33ae1c57031aa67412f4805aa.webp?v=1762825658","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85b5dbd79c800cbcdb8448c352cc54c7f39240f8.webp?v=1762825659","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3721b6aeed34aabee6a7d66d7aea6ea21192078b.webp?v=1762825659","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cec949fe6c44144e1ea7e12c7a8068a0eae33e7b.webp?v=1762825660","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44c12cf8fe44565e3ec100dba4241456d57e86da.webp?v=1762825661","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2961da3c7d30e260c21373c96c00fd9c68bad7a0.webp?v=1762825661","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e82058d2f93575567e05e48ca0eef9622a58e0.webp?v=1762825662","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17951d6a519630451ecf3e8e73af05b0d7170779.webp?v=1762825663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d5452e1f9b2848a710a41cc70a3d6b67f98728.webp?v=1762825664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e492ad5187478a9aa1df6eb157bfde22a829b8.webp?v=1762825664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b746bb78c3cf2e14fd6014ba9e6b532d1c5de53e.webp?v=1762825664"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e78fa197ab970c33ae1c57031aa67412f4805aa.webp?v=1762825658","options":["color"],"media":[{"alt":null,"id":26351663710307,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e78fa197ab970c33ae1c57031aa67412f4805aa.webp?v=1762825658"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e78fa197ab970c33ae1c57031aa67412f4805aa.webp?v=1762825658","width":2000},{"alt":null,"id":26351663906915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85b5dbd79c800cbcdb8448c352cc54c7f39240f8.webp?v=1762825659"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85b5dbd79c800cbcdb8448c352cc54c7f39240f8.webp?v=1762825659","width":2000},{"alt":null,"id":26351664070755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3721b6aeed34aabee6a7d66d7aea6ea21192078b.webp?v=1762825659"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3721b6aeed34aabee6a7d66d7aea6ea21192078b.webp?v=1762825659","width":2000},{"alt":null,"id":26351664267363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cec949fe6c44144e1ea7e12c7a8068a0eae33e7b.webp?v=1762825660"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cec949fe6c44144e1ea7e12c7a8068a0eae33e7b.webp?v=1762825660","width":2000},{"alt":null,"id":26351664595043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44c12cf8fe44565e3ec100dba4241456d57e86da.webp?v=1762825661"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44c12cf8fe44565e3ec100dba4241456d57e86da.webp?v=1762825661","width":2000},{"alt":null,"id":26351664857187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2961da3c7d30e260c21373c96c00fd9c68bad7a0.webp?v=1762825661"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2961da3c7d30e260c21373c96c00fd9c68bad7a0.webp?v=1762825661","width":2000},{"alt":null,"id":26351665119331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e82058d2f93575567e05e48ca0eef9622a58e0.webp?v=1762825662"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e82058d2f93575567e05e48ca0eef9622a58e0.webp?v=1762825662","width":2000},{"alt":null,"id":26351665512547,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17951d6a519630451ecf3e8e73af05b0d7170779.webp?v=1762825663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17951d6a519630451ecf3e8e73af05b0d7170779.webp?v=1762825663","width":2000},{"alt":null,"id":26351665774691,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d5452e1f9b2848a710a41cc70a3d6b67f98728.webp?v=1762825664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d5452e1f9b2848a710a41cc70a3d6b67f98728.webp?v=1762825664","width":2000},{"alt":null,"id":26351665971299,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e492ad5187478a9aa1df6eb157bfde22a829b8.webp?v=1762825664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e492ad5187478a9aa1df6eb157bfde22a829b8.webp?v=1762825664","width":2000},{"alt":null,"id":26351666200675,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b746bb78c3cf2e14fd6014ba9e6b532d1c5de53e.webp?v=1762825664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b746bb78c3cf2e14fd6014ba9e6b532d1c5de53e.webp?v=1762825664","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43830923755619,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-HD68","requires_shipping":true,"taxable":true,"featured_image":{"id":34786206711907,"product_id":7921140924515,"position":1,"created_at":"2025-11-11T09:47:36+08:00","updated_at":"2025-11-11T09:47:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e78fa197ab970c33ae1c57031aa67412f4805aa.webp?v=1762825658","variant_ids":[43830923755619]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的力量泉源 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-HD68","featured_media":{"alt":null,"id":26351663710307,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e78fa197ab970c33ae1c57031aa67412f4805aa.webp?v=1762825658"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830925885539,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-HD68","requires_shipping":true,"taxable":true,"featured_image":{"id":34786207858787,"product_id":7921140924515,"position":6,"created_at":"2025-11-11T09:47:39+08:00","updated_at":"2025-11-11T09:47:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2961da3c7d30e260c21373c96c00fd9c68bad7a0.webp?v=1762825661","variant_ids":[43830925885539]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的力量泉源 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118524-HD68","featured_media":{"alt":null,"id":26351664857187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2961da3c7d30e260c21373c96c00fd9c68bad7a0.webp?v=1762825661"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830925918307,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-HD68","requires_shipping":true,"taxable":true,"featured_image":{"id":34786208874595,"product_id":7921140924515,"position":10,"created_at":"2025-11-11T09:47:42+08:00","updated_at":"2025-11-11T09:47:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e492ad5187478a9aa1df6eb157bfde22a829b8.webp?v=1762825664","variant_ids":[43830925918307]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的力量泉源 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118569-HD68","featured_media":{"alt":null,"id":26351665971299,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e492ad5187478a9aa1df6eb157bfde22a829b8.webp?v=1762825664"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830926016611,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-HD68","requires_shipping":true,"taxable":true,"featured_image":{"id":34786208120931,"product_id":7921140924515,"position":7,"created_at":"2025-11-11T09:47:40+08:00","updated_at":"2025-11-11T09:47:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e82058d2f93575567e05e48ca0eef9622a58e0.webp?v=1762825662","variant_ids":[43830926016611]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的力量泉源 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118504-HD68","featured_media":{"alt":null,"id":26351665119331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e82058d2f93575567e05e48ca0eef9622a58e0.webp?v=1762825662"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830926180451,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-HD68","requires_shipping":true,"taxable":true,"featured_image":{"id":34786207268963,"product_id":7921140924515,"position":4,"created_at":"2025-11-11T09:47:38+08:00","updated_at":"2025-11-11T09:47:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cec949fe6c44144e1ea7e12c7a8068a0eae33e7b.webp?v=1762825660","variant_ids":[43830926180451]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的力量泉源 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185J5-HD68","featured_media":{"alt":null,"id":26351664267363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cec949fe6c44144e1ea7e12c7a8068a0eae33e7b.webp?v=1762825660"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43830923755619,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-HD68","requires_shipping":true,"taxable":true,"featured_image":{"id":34786206711907,"product_id":7921140924515,"position":1,"created_at":"2025-11-11T09:47:36+08:00","updated_at":"2025-11-11T09:47:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e78fa197ab970c33ae1c57031aa67412f4805aa.webp?v=1762825658","variant_ids":[43830923755619]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的力量泉源 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-HD68","featured_media":{"alt":null,"id":26351663710307,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e78fa197ab970c33ae1c57031aa67412f4805aa.webp?v=1762825658"}},"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: "停產" }