$product = {"id":7988592377955,"title":"iPhone 15 Pro Max Clear 梵谷博物館 頭","handle":"iphone-15-pro-max-jellytint-vr06","description":null,"published_at":"2026-04-02T15:02:07+08:00","created_at":"2026-03-31T14:29:21+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-vangoghmuseum","device-iPhone 15 Pro Max","merge","reseller-vangoghmuseum"],"price":108000,"price_min":108000,"price_max":108000,"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":44092198912099,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012980J-VR06","requires_shipping":true,"taxable":true,"featured_image":{"id":35580574793827,"product_id":7988592377955,"position":11,"created_at":"2026-04-02T11:22:05+08:00","updated_at":"2026-04-02T11:22:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa0c21de12766fb005173ed12730cf75897d825_32b4488d-0840-404f-a6d6-73dd47b745a5.webp?v=1775100127","variant_ids":[44092198912099]},"available":true,"name":"iPhone 15 Pro Max Clear 梵谷博物館 頭 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980J-VR06","featured_media":{"alt":null,"id":27113196388451,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa0c21de12766fb005173ed12730cf75897d825_32b4488d-0840-404f-a6d6-73dd47b745a5.webp?v=1775100127"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44092199927907,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012980G-VR06","requires_shipping":true,"taxable":true,"featured_image":{"id":35580574564451,"product_id":7988592377955,"position":10,"created_at":"2026-04-02T11:22:04+08:00","updated_at":"2026-04-02T11:22:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fac6e63c3579ae17ac73d4d5f3b7ac412ede2f0_fee4830d-c933-4b98-a704-868c39c0adbe.webp?v=1775100126","variant_ids":[44092199927907]},"available":true,"name":"iPhone 15 Pro Max Clear 梵谷博物館 頭 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980G-VR06","featured_media":{"alt":null,"id":27113196159075,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fac6e63c3579ae17ac73d4d5f3b7ac412ede2f0_fee4830d-c933-4b98-a704-868c39c0adbe.webp?v=1775100126"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44092199960675,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012980H-VR06","requires_shipping":true,"taxable":true,"featured_image":{"id":35580574335075,"product_id":7988592377955,"position":9,"created_at":"2026-04-02T11:22:04+08:00","updated_at":"2026-04-02T11:22:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f419025662c581fc93cd839fa515c900cf3186af_87066d5b-f338-4aa1-b44d-510fc33eb1ec.webp?v=1775100126","variant_ids":[44092199960675]},"available":true,"name":"iPhone 15 Pro Max Clear 梵谷博物館 頭 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980H-VR06","featured_media":{"alt":null,"id":27113195929699,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f419025662c581fc93cd839fa515c900cf3186af_87066d5b-f338-4aa1-b44d-510fc33eb1ec.webp?v=1775100126"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44092199993443,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012980I-VR06","requires_shipping":true,"taxable":true,"featured_image":{"id":35580575088739,"product_id":7988592377955,"position":12,"created_at":"2026-04-02T11:22:05+08:00","updated_at":"2026-04-02T11:22:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6fc24556218cba3896eee73f77e9ebb97be5e8_69cfef3f-c0a1-4893-9233-dea2412b6e55.webp?v=1775100127","variant_ids":[44092199993443]},"available":true,"name":"iPhone 15 Pro Max Clear 梵谷博物館 頭 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980I-VR06","featured_media":{"alt":null,"id":27113196683363,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6fc24556218cba3896eee73f77e9ebb97be5e8_69cfef3f-c0a1-4893-9233-dea2412b6e55.webp?v=1775100127"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f419025662c581fc93cd839fa515c900cf3186af.webp?v=1774938568","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fac6e63c3579ae17ac73d4d5f3b7ac412ede2f0.webp?v=1774938568","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6fc24556218cba3896eee73f77e9ebb97be5e8.webp?v=1774938569","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa0c21de12766fb005173ed12730cf75897d825.webp?v=1774938570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa0c21de12766fb005173ed12730cf75897d825_2312c700-f6dd-4a40-a393-b794af5efe3e.webp?v=1775017705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6fc24556218cba3896eee73f77e9ebb97be5e8_4e492bfb-a68f-425d-9f31-a260a9904e55.webp?v=1775017706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fac6e63c3579ae17ac73d4d5f3b7ac412ede2f0_dd9ef940-0238-4e0e-9371-b0d923a491ac.webp?v=1775017706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f419025662c581fc93cd839fa515c900cf3186af_cd838ce9-0434-4df9-ad1b-c55ecfc030bc.webp?v=1775017707","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f419025662c581fc93cd839fa515c900cf3186af_87066d5b-f338-4aa1-b44d-510fc33eb1ec.webp?v=1775100126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fac6e63c3579ae17ac73d4d5f3b7ac412ede2f0_fee4830d-c933-4b98-a704-868c39c0adbe.webp?v=1775100126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa0c21de12766fb005173ed12730cf75897d825_32b4488d-0840-404f-a6d6-73dd47b745a5.webp?v=1775100127","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6fc24556218cba3896eee73f77e9ebb97be5e8_69cfef3f-c0a1-4893-9233-dea2412b6e55.webp?v=1775100127"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f419025662c581fc93cd839fa515c900cf3186af.webp?v=1774938568","options":["color"],"media":[{"alt":null,"id":27102052745315,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f419025662c581fc93cd839fa515c900cf3186af.webp?v=1774938568"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f419025662c581fc93cd839fa515c900cf3186af.webp?v=1774938568","width":2000},{"alt":null,"id":27102052941923,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fac6e63c3579ae17ac73d4d5f3b7ac412ede2f0.webp?v=1774938568"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fac6e63c3579ae17ac73d4d5f3b7ac412ede2f0.webp?v=1774938568","width":2000},{"alt":null,"id":27102053236835,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6fc24556218cba3896eee73f77e9ebb97be5e8.webp?v=1774938569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6fc24556218cba3896eee73f77e9ebb97be5e8.webp?v=1774938569","width":2000},{"alt":null,"id":27102053335139,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa0c21de12766fb005173ed12730cf75897d825.webp?v=1774938570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa0c21de12766fb005173ed12730cf75897d825.webp?v=1774938570","width":2000},{"alt":null,"id":27106944450659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa0c21de12766fb005173ed12730cf75897d825_2312c700-f6dd-4a40-a393-b794af5efe3e.webp?v=1775017705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa0c21de12766fb005173ed12730cf75897d825_2312c700-f6dd-4a40-a393-b794af5efe3e.webp?v=1775017705","width":2000},{"alt":null,"id":27106944680035,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6fc24556218cba3896eee73f77e9ebb97be5e8_4e492bfb-a68f-425d-9f31-a260a9904e55.webp?v=1775017706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6fc24556218cba3896eee73f77e9ebb97be5e8_4e492bfb-a68f-425d-9f31-a260a9904e55.webp?v=1775017706","width":2000},{"alt":null,"id":27106944843875,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fac6e63c3579ae17ac73d4d5f3b7ac412ede2f0_dd9ef940-0238-4e0e-9371-b0d923a491ac.webp?v=1775017706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fac6e63c3579ae17ac73d4d5f3b7ac412ede2f0_dd9ef940-0238-4e0e-9371-b0d923a491ac.webp?v=1775017706","width":2000},{"alt":null,"id":27106945630307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f419025662c581fc93cd839fa515c900cf3186af_cd838ce9-0434-4df9-ad1b-c55ecfc030bc.webp?v=1775017707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f419025662c581fc93cd839fa515c900cf3186af_cd838ce9-0434-4df9-ad1b-c55ecfc030bc.webp?v=1775017707","width":2000},{"alt":null,"id":27113195929699,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f419025662c581fc93cd839fa515c900cf3186af_87066d5b-f338-4aa1-b44d-510fc33eb1ec.webp?v=1775100126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f419025662c581fc93cd839fa515c900cf3186af_87066d5b-f338-4aa1-b44d-510fc33eb1ec.webp?v=1775100126","width":2000},{"alt":null,"id":27113196159075,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fac6e63c3579ae17ac73d4d5f3b7ac412ede2f0_fee4830d-c933-4b98-a704-868c39c0adbe.webp?v=1775100126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fac6e63c3579ae17ac73d4d5f3b7ac412ede2f0_fee4830d-c933-4b98-a704-868c39c0adbe.webp?v=1775100126","width":2000},{"alt":null,"id":27113196388451,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa0c21de12766fb005173ed12730cf75897d825_32b4488d-0840-404f-a6d6-73dd47b745a5.webp?v=1775100127"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa0c21de12766fb005173ed12730cf75897d825_32b4488d-0840-404f-a6d6-73dd47b745a5.webp?v=1775100127","width":2000},{"alt":null,"id":27113196683363,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6fc24556218cba3896eee73f77e9ebb97be5e8_69cfef3f-c0a1-4893-9233-dea2412b6e55.webp?v=1775100127"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6fc24556218cba3896eee73f77e9ebb97be5e8_69cfef3f-c0a1-4893-9233-dea2412b6e55.webp?v=1775100127","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":44092198912099,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012980J-VR06","requires_shipping":true,"taxable":true,"featured_image":{"id":35580574793827,"product_id":7988592377955,"position":11,"created_at":"2026-04-02T11:22:05+08:00","updated_at":"2026-04-02T11:22:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa0c21de12766fb005173ed12730cf75897d825_32b4488d-0840-404f-a6d6-73dd47b745a5.webp?v=1775100127","variant_ids":[44092198912099]},"available":true,"name":"iPhone 15 Pro Max Clear 梵谷博物館 頭 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980J-VR06","featured_media":{"alt":null,"id":27113196388451,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa0c21de12766fb005173ed12730cf75897d825_32b4488d-0840-404f-a6d6-73dd47b745a5.webp?v=1775100127"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44092199927907,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012980G-VR06","requires_shipping":true,"taxable":true,"featured_image":{"id":35580574564451,"product_id":7988592377955,"position":10,"created_at":"2026-04-02T11:22:04+08:00","updated_at":"2026-04-02T11:22:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fac6e63c3579ae17ac73d4d5f3b7ac412ede2f0_fee4830d-c933-4b98-a704-868c39c0adbe.webp?v=1775100126","variant_ids":[44092199927907]},"available":true,"name":"iPhone 15 Pro Max Clear 梵谷博物館 頭 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980G-VR06","featured_media":{"alt":null,"id":27113196159075,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fac6e63c3579ae17ac73d4d5f3b7ac412ede2f0_fee4830d-c933-4b98-a704-868c39c0adbe.webp?v=1775100126"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44092199960675,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012980H-VR06","requires_shipping":true,"taxable":true,"featured_image":{"id":35580574335075,"product_id":7988592377955,"position":9,"created_at":"2026-04-02T11:22:04+08:00","updated_at":"2026-04-02T11:22:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f419025662c581fc93cd839fa515c900cf3186af_87066d5b-f338-4aa1-b44d-510fc33eb1ec.webp?v=1775100126","variant_ids":[44092199960675]},"available":true,"name":"iPhone 15 Pro Max Clear 梵谷博物館 頭 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980H-VR06","featured_media":{"alt":null,"id":27113195929699,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f419025662c581fc93cd839fa515c900cf3186af_87066d5b-f338-4aa1-b44d-510fc33eb1ec.webp?v=1775100126"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44092199993443,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012980I-VR06","requires_shipping":true,"taxable":true,"featured_image":{"id":35580575088739,"product_id":7988592377955,"position":12,"created_at":"2026-04-02T11:22:05+08:00","updated_at":"2026-04-02T11:22:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6fc24556218cba3896eee73f77e9ebb97be5e8_69cfef3f-c0a1-4893-9233-dea2412b6e55.webp?v=1775100127","variant_ids":[44092199993443]},"available":true,"name":"iPhone 15 Pro Max Clear 梵谷博物館 頭 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980I-VR06","featured_media":{"alt":null,"id":27113196683363,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6fc24556218cba3896eee73f77e9ebb97be5e8_69cfef3f-c0a1-4893-9233-dea2412b6e55.webp?v=1775100127"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":44092198912099,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012980J-VR06","requires_shipping":true,"taxable":true,"featured_image":{"id":35580574793827,"product_id":7988592377955,"position":11,"created_at":"2026-04-02T11:22:05+08:00","updated_at":"2026-04-02T11:22:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa0c21de12766fb005173ed12730cf75897d825_32b4488d-0840-404f-a6d6-73dd47b745a5.webp?v=1775100127","variant_ids":[44092198912099]},"available":true,"name":"iPhone 15 Pro Max Clear 梵谷博物館 頭 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980J-VR06","featured_media":{"alt":null,"id":27113196388451,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa0c21de12766fb005173ed12730cf75897d825_32b4488d-0840-404f-a6d6-73dd47b745a5.webp?v=1775100127"}},"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: "停產" }