$product = {"id":7022942093411,"title":"iPhone 12 mini SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 慵懶系列-午後時光","handle":"iphone-12-mini-solidsuit-classic-magsafe-px01","description":"","published_at":"2023-10-04T10:23:57+08:00","created_at":"2023-09-28T18:21:26+08:00","vendor":"RHINOSHIELD","type":"設計師SolidSuit MagSafe專區-布丁狗&大耳狗","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-pompompurin-cinnamoroll","device-iPhone 12 Mini","merge","reseller-pompompurin-cinnamoroll"],"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":40768788529251,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118452-PX01","requires_shipping":true,"taxable":true,"featured_image":{"id":36059625783395,"product_id":7022942093411,"position":2,"created_at":"2026-06-23T15:26:26+08:00","updated_at":"2026-06-23T15:26:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d57805855007d81249974a69a755a01e895f5936.webp?v=1782199588","variant_ids":[40768788529251]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 慵懶系列-午後時光 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118452-PX01","featured_media":{"alt":null,"id":27572472316003,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d57805855007d81249974a69a755a01e895f5936.webp?v=1782199588"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768788791395,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01184Z8-PX01","requires_shipping":true,"taxable":true,"featured_image":{"id":36059628109923,"product_id":7022942093411,"position":5,"created_at":"2026-06-23T15:26:28+08:00","updated_at":"2026-06-23T15:26:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aebe03bb059de1bebb159fb825603b2b45f33cd3.webp?v=1782199590","variant_ids":[40768788791395]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 慵懶系列-午後時光 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z8-PX01","featured_media":{"alt":null,"id":27572474675299,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aebe03bb059de1bebb159fb825603b2b45f33cd3.webp?v=1782199590"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768788824163,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01184Z9-PX01","requires_shipping":true,"taxable":true,"featured_image":{"id":36059626537059,"product_id":7022942093411,"position":3,"created_at":"2026-06-23T15:26:27+08:00","updated_at":"2026-06-23T15:26:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb9a23a81dcb1448eac80f11863988be9eac510.webp?v=1782199589","variant_ids":[40768788824163]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 慵懶系列-午後時光 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z9-PX01","featured_media":{"alt":null,"id":27572472807523,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb9a23a81dcb1448eac80f11863988be9eac510.webp?v=1782199589"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768788856931,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MST011840A-PX01","requires_shipping":true,"taxable":true,"featured_image":{"id":36059628830819,"product_id":7022942093411,"position":6,"created_at":"2026-06-23T15:26:29+08:00","updated_at":"2026-06-23T15:26:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7059524bb1be8f38e2f85e81e800b4062321c016.webp?v=1782199591","variant_ids":[40768788856931]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 慵懶系列-午後時光 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840A-PX01","featured_media":{"alt":null,"id":27572475363427,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7059524bb1be8f38e2f85e81e800b4062321c016.webp?v=1782199591"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768788922467,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST011840D-PX01","requires_shipping":true,"taxable":true,"featured_image":{"id":36059627356259,"product_id":7022942093411,"position":4,"created_at":"2026-06-23T15:26:28+08:00","updated_at":"2026-06-23T15:26:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1cd819564edea4da99d59abddc49201895ceea.webp?v=1782199590","variant_ids":[40768788922467]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 慵懶系列-午後時光 - Bordeaux Red","public_title":"Bordeaux Red","options":["Bordeaux Red"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840D-PX01","featured_media":{"alt":null,"id":27572473921635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1cd819564edea4da99d59abddc49201895ceea.webp?v=1782199590"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768789020771,"title":"Parakeet Green","option1":"Parakeet Green","option2":null,"option3":null,"sku":"MST011840E-PX01","requires_shipping":true,"taxable":true,"featured_image":{"id":36059629846627,"product_id":7022942093411,"position":7,"created_at":"2026-06-23T15:26:30+08:00","updated_at":"2026-06-23T15:26:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74aa132b231199ffb921f39ff8e12a34b9a8b123.webp?v=1782199592","variant_ids":[40768789020771]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 慵懶系列-午後時光 - Parakeet Green","public_title":"Parakeet Green","options":["Parakeet Green"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840E-PX01","featured_media":{"alt":null,"id":27572476477539,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74aa132b231199ffb921f39ff8e12a34b9a8b123.webp?v=1782199592"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SolidSuitTPE-53-184-PX01_a3924dd7-5a3a-40bd-9010-b6cf60791aa8.png?v=1695896486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d57805855007d81249974a69a755a01e895f5936.webp?v=1782199588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb9a23a81dcb1448eac80f11863988be9eac510.webp?v=1782199589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1cd819564edea4da99d59abddc49201895ceea.webp?v=1782199590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aebe03bb059de1bebb159fb825603b2b45f33cd3.webp?v=1782199590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7059524bb1be8f38e2f85e81e800b4062321c016.webp?v=1782199591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74aa132b231199ffb921f39ff8e12a34b9a8b123.webp?v=1782199592"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SolidSuitTPE-53-184-PX01_a3924dd7-5a3a-40bd-9010-b6cf60791aa8.png?v=1695896486","options":["color"],"media":[{"alt":null,"id":22794913349731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SolidSuitTPE-53-184-PX01_a3924dd7-5a3a-40bd-9010-b6cf60791aa8.png?v=1695896486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SolidSuitTPE-53-184-PX01_a3924dd7-5a3a-40bd-9010-b6cf60791aa8.png?v=1695896486","width":2000},{"alt":null,"id":27572472316003,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d57805855007d81249974a69a755a01e895f5936.webp?v=1782199588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d57805855007d81249974a69a755a01e895f5936.webp?v=1782199588","width":2000},{"alt":null,"id":27572472807523,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb9a23a81dcb1448eac80f11863988be9eac510.webp?v=1782199589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb9a23a81dcb1448eac80f11863988be9eac510.webp?v=1782199589","width":2000},{"alt":null,"id":27572473921635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1cd819564edea4da99d59abddc49201895ceea.webp?v=1782199590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1cd819564edea4da99d59abddc49201895ceea.webp?v=1782199590","width":2000},{"alt":null,"id":27572474675299,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aebe03bb059de1bebb159fb825603b2b45f33cd3.webp?v=1782199590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aebe03bb059de1bebb159fb825603b2b45f33cd3.webp?v=1782199590","width":2000},{"alt":null,"id":27572475363427,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7059524bb1be8f38e2f85e81e800b4062321c016.webp?v=1782199591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7059524bb1be8f38e2f85e81e800b4062321c016.webp?v=1782199591","width":2000},{"alt":null,"id":27572476477539,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74aa132b231199ffb921f39ff8e12a34b9a8b123.webp?v=1782199592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74aa132b231199ffb921f39ff8e12a34b9a8b123.webp?v=1782199592","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""}; $isMerge = null; $variants = [{"id":40768788529251,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118452-PX01","requires_shipping":true,"taxable":true,"featured_image":{"id":36059625783395,"product_id":7022942093411,"position":2,"created_at":"2026-06-23T15:26:26+08:00","updated_at":"2026-06-23T15:26:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d57805855007d81249974a69a755a01e895f5936.webp?v=1782199588","variant_ids":[40768788529251]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 慵懶系列-午後時光 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118452-PX01","featured_media":{"alt":null,"id":27572472316003,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d57805855007d81249974a69a755a01e895f5936.webp?v=1782199588"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768788791395,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01184Z8-PX01","requires_shipping":true,"taxable":true,"featured_image":{"id":36059628109923,"product_id":7022942093411,"position":5,"created_at":"2026-06-23T15:26:28+08:00","updated_at":"2026-06-23T15:26:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aebe03bb059de1bebb159fb825603b2b45f33cd3.webp?v=1782199590","variant_ids":[40768788791395]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 慵懶系列-午後時光 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z8-PX01","featured_media":{"alt":null,"id":27572474675299,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aebe03bb059de1bebb159fb825603b2b45f33cd3.webp?v=1782199590"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768788824163,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01184Z9-PX01","requires_shipping":true,"taxable":true,"featured_image":{"id":36059626537059,"product_id":7022942093411,"position":3,"created_at":"2026-06-23T15:26:27+08:00","updated_at":"2026-06-23T15:26:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb9a23a81dcb1448eac80f11863988be9eac510.webp?v=1782199589","variant_ids":[40768788824163]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 慵懶系列-午後時光 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z9-PX01","featured_media":{"alt":null,"id":27572472807523,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb9a23a81dcb1448eac80f11863988be9eac510.webp?v=1782199589"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768788856931,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MST011840A-PX01","requires_shipping":true,"taxable":true,"featured_image":{"id":36059628830819,"product_id":7022942093411,"position":6,"created_at":"2026-06-23T15:26:29+08:00","updated_at":"2026-06-23T15:26:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7059524bb1be8f38e2f85e81e800b4062321c016.webp?v=1782199591","variant_ids":[40768788856931]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 慵懶系列-午後時光 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840A-PX01","featured_media":{"alt":null,"id":27572475363427,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7059524bb1be8f38e2f85e81e800b4062321c016.webp?v=1782199591"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768788922467,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST011840D-PX01","requires_shipping":true,"taxable":true,"featured_image":{"id":36059627356259,"product_id":7022942093411,"position":4,"created_at":"2026-06-23T15:26:28+08:00","updated_at":"2026-06-23T15:26:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1cd819564edea4da99d59abddc49201895ceea.webp?v=1782199590","variant_ids":[40768788922467]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 慵懶系列-午後時光 - Bordeaux Red","public_title":"Bordeaux Red","options":["Bordeaux Red"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840D-PX01","featured_media":{"alt":null,"id":27572473921635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1cd819564edea4da99d59abddc49201895ceea.webp?v=1782199590"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768789020771,"title":"Parakeet Green","option1":"Parakeet Green","option2":null,"option3":null,"sku":"MST011840E-PX01","requires_shipping":true,"taxable":true,"featured_image":{"id":36059629846627,"product_id":7022942093411,"position":7,"created_at":"2026-06-23T15:26:30+08:00","updated_at":"2026-06-23T15:26:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74aa132b231199ffb921f39ff8e12a34b9a8b123.webp?v=1782199592","variant_ids":[40768789020771]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 慵懶系列-午後時光 - Parakeet Green","public_title":"Parakeet Green","options":["Parakeet Green"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840E-PX01","featured_media":{"alt":null,"id":27572476477539,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74aa132b231199ffb921f39ff8e12a34b9a8b123.webp?v=1782199592"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":40768788529251,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118452-PX01","requires_shipping":true,"taxable":true,"featured_image":{"id":36059625783395,"product_id":7022942093411,"position":2,"created_at":"2026-06-23T15:26:26+08:00","updated_at":"2026-06-23T15:26:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d57805855007d81249974a69a755a01e895f5936.webp?v=1782199588","variant_ids":[40768788529251]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 慵懶系列-午後時光 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118452-PX01","featured_media":{"alt":null,"id":27572472316003,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d57805855007d81249974a69a755a01e895f5936.webp?v=1782199588"}},"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: "停產" }