$product = {"id":7928173920355,"title":"iPhone 14 Plus SolidSuit (MagSafe 兼容) Doraemon 哆啦A夢 兜風趣","handle":"iphone-14-plus-solidsuit-classic-magsafe-yr32","description":null,"published_at":"2025-11-26T09:29:31+08:00","created_at":"2025-11-25T11:23:43+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-doraemon","device-iPhone 14 Plus","merge","reseller-doraemon"],"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":43853376651363,"title":"Neon Orange","option1":"Neon Orange","option2":null,"option3":null,"sku":"MST012610F-YR32","requires_shipping":true,"taxable":true,"featured_image":{"id":34838413377635,"product_id":7928173920355,"position":5,"created_at":"2025-11-25T11:23:49+08:00","updated_at":"2025-11-25T11:23:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c28410e46ae92e7e9ab28f731b49cfdab7debf94.webp?v=1764041031","variant_ids":[43853376651363]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) Doraemon 哆啦A夢 兜風趣 - Neon Orange","public_title":"Neon Orange","options":["Neon Orange"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012610F-YR32","featured_media":{"alt":null,"id":26403125952611,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c28410e46ae92e7e9ab28f731b49cfdab7debf94.webp?v=1764041031"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43853379666019,"title":"Classic Blue","option1":"Classic Blue","option2":null,"option3":null,"sku":"MST012610C-YR32","requires_shipping":true,"taxable":true,"featured_image":{"id":34838412820579,"product_id":7928173920355,"position":1,"created_at":"2025-11-25T11:23:47+08:00","updated_at":"2025-11-25T11:23:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a1b22a02395719def6a0594f248316ef4a9d47.webp?v=1764041029","variant_ids":[43853379666019]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) Doraemon 哆啦A夢 兜風趣 - Classic Blue","public_title":"Classic Blue","options":["Classic Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012610C-YR32","featured_media":{"alt":null,"id":26403125395555,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a1b22a02395719def6a0594f248316ef4a9d47.webp?v=1764041029"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43853379698787,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"MST0126157-YR32","requires_shipping":true,"taxable":true,"featured_image":{"id":34838413475939,"product_id":7928173920355,"position":6,"created_at":"2025-11-25T11:23:49+08:00","updated_at":"2025-11-25T11:23:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a16ef291df52faf88013a7539518383722ce9c3.webp?v=1764041031","variant_ids":[43853379698787]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) Doraemon 哆啦A夢 兜風趣 - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0126157-YR32","featured_media":{"alt":null,"id":26403126181987,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a16ef291df52faf88013a7539518383722ce9c3.webp?v=1764041031"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43853379731555,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST012610D-YR32","requires_shipping":true,"taxable":true,"featured_image":{"id":34838413213795,"product_id":7928173920355,"position":4,"created_at":"2025-11-25T11:23:48+08:00","updated_at":"2025-11-25T11:23:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43102d160f94ecf38b59d149940804d66838d543.webp?v=1764041030","variant_ids":[43853379731555]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) Doraemon 哆啦A夢 兜風趣 - Bordeaux Red","public_title":"Bordeaux Red","options":["Bordeaux Red"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012610D-YR32","featured_media":{"alt":null,"id":26403125821539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43102d160f94ecf38b59d149940804d66838d543.webp?v=1764041030"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43853379764323,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"MST01261O9-YR32","requires_shipping":true,"taxable":true,"featured_image":{"id":34838412984419,"product_id":7928173920355,"position":2,"created_at":"2025-11-25T11:23:47+08:00","updated_at":"2025-11-25T11:23:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0bfd84a0ea55ab4ce94799e5334c25404d1da99.webp?v=1764041029","variant_ids":[43853379764323]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) Doraemon 哆啦A夢 兜風趣 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01261O9-YR32","featured_media":{"alt":null,"id":26403125592163,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0bfd84a0ea55ab4ce94799e5334c25404d1da99.webp?v=1764041029"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43853379797091,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0126152-YR32","requires_shipping":true,"taxable":true,"featured_image":{"id":34838413115491,"product_id":7928173920355,"position":3,"created_at":"2025-11-25T11:23:48+08:00","updated_at":"2025-11-25T11:23:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cda00177a1d3f5c00374fc1bd7af2d1bc34e783.webp?v=1764041030","variant_ids":[43853379797091]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) Doraemon 哆啦A夢 兜風趣 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0126152-YR32","featured_media":{"alt":null,"id":26403125723235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cda00177a1d3f5c00374fc1bd7af2d1bc34e783.webp?v=1764041030"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a1b22a02395719def6a0594f248316ef4a9d47.webp?v=1764041029","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0bfd84a0ea55ab4ce94799e5334c25404d1da99.webp?v=1764041029","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cda00177a1d3f5c00374fc1bd7af2d1bc34e783.webp?v=1764041030","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43102d160f94ecf38b59d149940804d66838d543.webp?v=1764041030","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c28410e46ae92e7e9ab28f731b49cfdab7debf94.webp?v=1764041031","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a16ef291df52faf88013a7539518383722ce9c3.webp?v=1764041031","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97c3de8fbbd786fd3633472a84ba3da583da7ea4.webp?v=1764041032"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a1b22a02395719def6a0594f248316ef4a9d47.webp?v=1764041029","options":["color"],"media":[{"alt":null,"id":26403125395555,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a1b22a02395719def6a0594f248316ef4a9d47.webp?v=1764041029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a1b22a02395719def6a0594f248316ef4a9d47.webp?v=1764041029","width":2000},{"alt":null,"id":26403125592163,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0bfd84a0ea55ab4ce94799e5334c25404d1da99.webp?v=1764041029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0bfd84a0ea55ab4ce94799e5334c25404d1da99.webp?v=1764041029","width":2000},{"alt":null,"id":26403125723235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cda00177a1d3f5c00374fc1bd7af2d1bc34e783.webp?v=1764041030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cda00177a1d3f5c00374fc1bd7af2d1bc34e783.webp?v=1764041030","width":2000},{"alt":null,"id":26403125821539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43102d160f94ecf38b59d149940804d66838d543.webp?v=1764041030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43102d160f94ecf38b59d149940804d66838d543.webp?v=1764041030","width":2000},{"alt":null,"id":26403125952611,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c28410e46ae92e7e9ab28f731b49cfdab7debf94.webp?v=1764041031"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c28410e46ae92e7e9ab28f731b49cfdab7debf94.webp?v=1764041031","width":2000},{"alt":null,"id":26403126181987,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a16ef291df52faf88013a7539518383722ce9c3.webp?v=1764041031"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a16ef291df52faf88013a7539518383722ce9c3.webp?v=1764041031","width":2000},{"alt":null,"id":26403126313059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97c3de8fbbd786fd3633472a84ba3da583da7ea4.webp?v=1764041032"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97c3de8fbbd786fd3633472a84ba3da583da7ea4.webp?v=1764041032","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43853376651363,"title":"Neon Orange","option1":"Neon Orange","option2":null,"option3":null,"sku":"MST012610F-YR32","requires_shipping":true,"taxable":true,"featured_image":{"id":34838413377635,"product_id":7928173920355,"position":5,"created_at":"2025-11-25T11:23:49+08:00","updated_at":"2025-11-25T11:23:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c28410e46ae92e7e9ab28f731b49cfdab7debf94.webp?v=1764041031","variant_ids":[43853376651363]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) Doraemon 哆啦A夢 兜風趣 - Neon Orange","public_title":"Neon Orange","options":["Neon Orange"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012610F-YR32","featured_media":{"alt":null,"id":26403125952611,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c28410e46ae92e7e9ab28f731b49cfdab7debf94.webp?v=1764041031"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43853379666019,"title":"Classic Blue","option1":"Classic Blue","option2":null,"option3":null,"sku":"MST012610C-YR32","requires_shipping":true,"taxable":true,"featured_image":{"id":34838412820579,"product_id":7928173920355,"position":1,"created_at":"2025-11-25T11:23:47+08:00","updated_at":"2025-11-25T11:23:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a1b22a02395719def6a0594f248316ef4a9d47.webp?v=1764041029","variant_ids":[43853379666019]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) Doraemon 哆啦A夢 兜風趣 - Classic Blue","public_title":"Classic Blue","options":["Classic Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012610C-YR32","featured_media":{"alt":null,"id":26403125395555,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a1b22a02395719def6a0594f248316ef4a9d47.webp?v=1764041029"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43853379698787,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"MST0126157-YR32","requires_shipping":true,"taxable":true,"featured_image":{"id":34838413475939,"product_id":7928173920355,"position":6,"created_at":"2025-11-25T11:23:49+08:00","updated_at":"2025-11-25T11:23:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a16ef291df52faf88013a7539518383722ce9c3.webp?v=1764041031","variant_ids":[43853379698787]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) Doraemon 哆啦A夢 兜風趣 - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0126157-YR32","featured_media":{"alt":null,"id":26403126181987,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a16ef291df52faf88013a7539518383722ce9c3.webp?v=1764041031"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43853379731555,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST012610D-YR32","requires_shipping":true,"taxable":true,"featured_image":{"id":34838413213795,"product_id":7928173920355,"position":4,"created_at":"2025-11-25T11:23:48+08:00","updated_at":"2025-11-25T11:23:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43102d160f94ecf38b59d149940804d66838d543.webp?v=1764041030","variant_ids":[43853379731555]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) Doraemon 哆啦A夢 兜風趣 - Bordeaux Red","public_title":"Bordeaux Red","options":["Bordeaux Red"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012610D-YR32","featured_media":{"alt":null,"id":26403125821539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43102d160f94ecf38b59d149940804d66838d543.webp?v=1764041030"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43853379764323,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"MST01261O9-YR32","requires_shipping":true,"taxable":true,"featured_image":{"id":34838412984419,"product_id":7928173920355,"position":2,"created_at":"2025-11-25T11:23:47+08:00","updated_at":"2025-11-25T11:23:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0bfd84a0ea55ab4ce94799e5334c25404d1da99.webp?v=1764041029","variant_ids":[43853379764323]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) Doraemon 哆啦A夢 兜風趣 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01261O9-YR32","featured_media":{"alt":null,"id":26403125592163,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0bfd84a0ea55ab4ce94799e5334c25404d1da99.webp?v=1764041029"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43853379797091,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0126152-YR32","requires_shipping":true,"taxable":true,"featured_image":{"id":34838413115491,"product_id":7928173920355,"position":3,"created_at":"2025-11-25T11:23:48+08:00","updated_at":"2025-11-25T11:23:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cda00177a1d3f5c00374fc1bd7af2d1bc34e783.webp?v=1764041030","variant_ids":[43853379797091]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) Doraemon 哆啦A夢 兜風趣 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0126152-YR32","featured_media":{"alt":null,"id":26403125723235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cda00177a1d3f5c00374fc1bd7af2d1bc34e783.webp?v=1764041030"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43853376651363,"title":"Neon Orange","option1":"Neon Orange","option2":null,"option3":null,"sku":"MST012610F-YR32","requires_shipping":true,"taxable":true,"featured_image":{"id":34838413377635,"product_id":7928173920355,"position":5,"created_at":"2025-11-25T11:23:49+08:00","updated_at":"2025-11-25T11:23:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c28410e46ae92e7e9ab28f731b49cfdab7debf94.webp?v=1764041031","variant_ids":[43853376651363]},"available":true,"name":"iPhone 14 Plus SolidSuit (MagSafe 兼容) Doraemon 哆啦A夢 兜風趣 - Neon Orange","public_title":"Neon Orange","options":["Neon Orange"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012610F-YR32","featured_media":{"alt":null,"id":26403125952611,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c28410e46ae92e7e9ab28f731b49cfdab7debf94.webp?v=1764041031"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }