$product = {"id":7836782723171,"title":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) OSAMU GOODS 多彩系列-Betty","handle":"iphone-12-pro-max-solidsuit-magsafe-bumper-back-crossover-design-yn32","description":null,"published_at":"2025-07-14T16:10:29+08:00","created_at":"2025-07-14T09:46:07+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-osamugoods","device-iPhone 12 Pro Max","merge","reseller-osamugoods"],"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":43524884922467,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST011870D-YN32","requires_shipping":true,"taxable":true,"featured_image":{"id":34179665068131,"product_id":7836782723171,"position":8,"created_at":"2025-07-14T14:48:58+08:00","updated_at":"2025-07-14T14:49:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec194dd1a2460c8a5d49321a48f8b12f7489f817_ce4ec24b-9869-4b23-90b6-46565577bb07.webp?v=1752475740","variant_ids":[43524884922467]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) OSAMU GOODS 多彩系列-Betty - 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":"MST011870D-YN32","featured_media":{"alt":null,"id":25816942739555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec194dd1a2460c8a5d49321a48f8b12f7489f817_ce4ec24b-9869-4b23-90b6-46565577bb07.webp?v=1752475740"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43524887511139,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"MST01187O9-YN32","requires_shipping":true,"taxable":true,"featured_image":{"id":34179664805987,"product_id":7836782723171,"position":7,"created_at":"2025-07-14T14:48:58+08:00","updated_at":"2025-07-14T14:48:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47bb8b759e6217f547676a915a279e00c46514ef_86f534af-5a09-4d3a-9e52-5b6c9683f402.webp?v=1752475739","variant_ids":[43524887511139]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) OSAMU GOODS 多彩系列-Betty - 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":"MST01187O9-YN32","featured_media":{"alt":null,"id":25816942280803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47bb8b759e6217f547676a915a279e00c46514ef_86f534af-5a09-4d3a-9e52-5b6c9683f402.webp?v=1752475739"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43524887576675,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MST011870B-YN32","requires_shipping":true,"taxable":true,"featured_image":{"id":34179665985635,"product_id":7836782723171,"position":12,"created_at":"2025-07-14T14:49:00+08:00","updated_at":"2025-07-14T14:49:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463966be6d303a942d0c31d2d4834007a2acfcb8_81fb5116-7d0f-4ab8-b0ff-116140bc8b56.webp?v=1752475742","variant_ids":[43524887576675]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) OSAMU GOODS 多彩系列-Betty - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870B-YN32","featured_media":{"alt":null,"id":25816943198307,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463966be6d303a942d0c31d2d4834007a2acfcb8_81fb5116-7d0f-4ab8-b0ff-116140bc8b56.webp?v=1752475742"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43524887609443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118752-YN32","requires_shipping":true,"taxable":true,"featured_image":{"id":34179665723491,"product_id":7836782723171,"position":11,"created_at":"2025-07-14T14:49:00+08:00","updated_at":"2025-07-14T14:49:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/510b03b65dc9a6c15a5852c79b8be6b668c4f379_f0fe796b-b876-4f0d-b1b1-88d472c127b9.webp?v=1752475742","variant_ids":[43524887609443]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) OSAMU GOODS 多彩系列-Betty - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118752-YN32","featured_media":{"alt":null,"id":25816943165539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/510b03b65dc9a6c15a5852c79b8be6b668c4f379_f0fe796b-b876-4f0d-b1b1-88d472c127b9.webp?v=1752475742"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/510b03b65dc9a6c15a5852c79b8be6b668c4f379.webp?v=1752457574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463966be6d303a942d0c31d2d4834007a2acfcb8.webp?v=1752457575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35fdd2c27a7cdcc14db34acd79eaa3bfbb6b9c04.webp?v=1752457575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47bb8b759e6217f547676a915a279e00c46514ef.webp?v=1752457576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e12cddd5809b2f88a26c78c31da496c26df870a.webp?v=1752457577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec194dd1a2460c8a5d49321a48f8b12f7489f817.webp?v=1752457577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47bb8b759e6217f547676a915a279e00c46514ef_86f534af-5a09-4d3a-9e52-5b6c9683f402.webp?v=1752475739","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec194dd1a2460c8a5d49321a48f8b12f7489f817_ce4ec24b-9869-4b23-90b6-46565577bb07.webp?v=1752475740","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e12cddd5809b2f88a26c78c31da496c26df870a_1cdf0374-67fd-4b91-a33f-a937af6602e0.webp?v=1752475740","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35fdd2c27a7cdcc14db34acd79eaa3bfbb6b9c04_0ed69811-ea7d-4dca-a9bc-e154a1d75650.webp?v=1752475741","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/510b03b65dc9a6c15a5852c79b8be6b668c4f379_f0fe796b-b876-4f0d-b1b1-88d472c127b9.webp?v=1752475742","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463966be6d303a942d0c31d2d4834007a2acfcb8_81fb5116-7d0f-4ab8-b0ff-116140bc8b56.webp?v=1752475742"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/510b03b65dc9a6c15a5852c79b8be6b668c4f379.webp?v=1752457574","options":["color"],"media":[{"alt":null,"id":25815789011043,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/510b03b65dc9a6c15a5852c79b8be6b668c4f379.webp?v=1752457574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/510b03b65dc9a6c15a5852c79b8be6b668c4f379.webp?v=1752457574","width":2000},{"alt":null,"id":25815789174883,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463966be6d303a942d0c31d2d4834007a2acfcb8.webp?v=1752457575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463966be6d303a942d0c31d2d4834007a2acfcb8.webp?v=1752457575","width":2000},{"alt":null,"id":25815789273187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35fdd2c27a7cdcc14db34acd79eaa3bfbb6b9c04.webp?v=1752457575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35fdd2c27a7cdcc14db34acd79eaa3bfbb6b9c04.webp?v=1752457575","width":2000},{"alt":null,"id":25815789371491,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47bb8b759e6217f547676a915a279e00c46514ef.webp?v=1752457576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47bb8b759e6217f547676a915a279e00c46514ef.webp?v=1752457576","width":2000},{"alt":null,"id":25815789404259,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e12cddd5809b2f88a26c78c31da496c26df870a.webp?v=1752457577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e12cddd5809b2f88a26c78c31da496c26df870a.webp?v=1752457577","width":2000},{"alt":null,"id":25815789502563,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec194dd1a2460c8a5d49321a48f8b12f7489f817.webp?v=1752457577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec194dd1a2460c8a5d49321a48f8b12f7489f817.webp?v=1752457577","width":2000},{"alt":null,"id":25816942280803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47bb8b759e6217f547676a915a279e00c46514ef_86f534af-5a09-4d3a-9e52-5b6c9683f402.webp?v=1752475739"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47bb8b759e6217f547676a915a279e00c46514ef_86f534af-5a09-4d3a-9e52-5b6c9683f402.webp?v=1752475739","width":2000},{"alt":null,"id":25816942739555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec194dd1a2460c8a5d49321a48f8b12f7489f817_ce4ec24b-9869-4b23-90b6-46565577bb07.webp?v=1752475740"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec194dd1a2460c8a5d49321a48f8b12f7489f817_ce4ec24b-9869-4b23-90b6-46565577bb07.webp?v=1752475740","width":2000},{"alt":null,"id":25816942837859,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e12cddd5809b2f88a26c78c31da496c26df870a_1cdf0374-67fd-4b91-a33f-a937af6602e0.webp?v=1752475740"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e12cddd5809b2f88a26c78c31da496c26df870a_1cdf0374-67fd-4b91-a33f-a937af6602e0.webp?v=1752475740","width":2000},{"alt":null,"id":25816943001699,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35fdd2c27a7cdcc14db34acd79eaa3bfbb6b9c04_0ed69811-ea7d-4dca-a9bc-e154a1d75650.webp?v=1752475741"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35fdd2c27a7cdcc14db34acd79eaa3bfbb6b9c04_0ed69811-ea7d-4dca-a9bc-e154a1d75650.webp?v=1752475741","width":2000},{"alt":null,"id":25816943165539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/510b03b65dc9a6c15a5852c79b8be6b668c4f379_f0fe796b-b876-4f0d-b1b1-88d472c127b9.webp?v=1752475742"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/510b03b65dc9a6c15a5852c79b8be6b668c4f379_f0fe796b-b876-4f0d-b1b1-88d472c127b9.webp?v=1752475742","width":2000},{"alt":null,"id":25816943198307,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463966be6d303a942d0c31d2d4834007a2acfcb8_81fb5116-7d0f-4ab8-b0ff-116140bc8b56.webp?v=1752475742"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463966be6d303a942d0c31d2d4834007a2acfcb8_81fb5116-7d0f-4ab8-b0ff-116140bc8b56.webp?v=1752475742","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43524884922467,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST011870D-YN32","requires_shipping":true,"taxable":true,"featured_image":{"id":34179665068131,"product_id":7836782723171,"position":8,"created_at":"2025-07-14T14:48:58+08:00","updated_at":"2025-07-14T14:49:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec194dd1a2460c8a5d49321a48f8b12f7489f817_ce4ec24b-9869-4b23-90b6-46565577bb07.webp?v=1752475740","variant_ids":[43524884922467]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) OSAMU GOODS 多彩系列-Betty - 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":"MST011870D-YN32","featured_media":{"alt":null,"id":25816942739555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec194dd1a2460c8a5d49321a48f8b12f7489f817_ce4ec24b-9869-4b23-90b6-46565577bb07.webp?v=1752475740"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43524887511139,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"MST01187O9-YN32","requires_shipping":true,"taxable":true,"featured_image":{"id":34179664805987,"product_id":7836782723171,"position":7,"created_at":"2025-07-14T14:48:58+08:00","updated_at":"2025-07-14T14:48:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47bb8b759e6217f547676a915a279e00c46514ef_86f534af-5a09-4d3a-9e52-5b6c9683f402.webp?v=1752475739","variant_ids":[43524887511139]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) OSAMU GOODS 多彩系列-Betty - 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":"MST01187O9-YN32","featured_media":{"alt":null,"id":25816942280803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47bb8b759e6217f547676a915a279e00c46514ef_86f534af-5a09-4d3a-9e52-5b6c9683f402.webp?v=1752475739"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43524887576675,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MST011870B-YN32","requires_shipping":true,"taxable":true,"featured_image":{"id":34179665985635,"product_id":7836782723171,"position":12,"created_at":"2025-07-14T14:49:00+08:00","updated_at":"2025-07-14T14:49:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463966be6d303a942d0c31d2d4834007a2acfcb8_81fb5116-7d0f-4ab8-b0ff-116140bc8b56.webp?v=1752475742","variant_ids":[43524887576675]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) OSAMU GOODS 多彩系列-Betty - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870B-YN32","featured_media":{"alt":null,"id":25816943198307,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463966be6d303a942d0c31d2d4834007a2acfcb8_81fb5116-7d0f-4ab8-b0ff-116140bc8b56.webp?v=1752475742"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43524887609443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118752-YN32","requires_shipping":true,"taxable":true,"featured_image":{"id":34179665723491,"product_id":7836782723171,"position":11,"created_at":"2025-07-14T14:49:00+08:00","updated_at":"2025-07-14T14:49:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/510b03b65dc9a6c15a5852c79b8be6b668c4f379_f0fe796b-b876-4f0d-b1b1-88d472c127b9.webp?v=1752475742","variant_ids":[43524887609443]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) OSAMU GOODS 多彩系列-Betty - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118752-YN32","featured_media":{"alt":null,"id":25816943165539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/510b03b65dc9a6c15a5852c79b8be6b668c4f379_f0fe796b-b876-4f0d-b1b1-88d472c127b9.webp?v=1752475742"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43524884922467,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST011870D-YN32","requires_shipping":true,"taxable":true,"featured_image":{"id":34179665068131,"product_id":7836782723171,"position":8,"created_at":"2025-07-14T14:48:58+08:00","updated_at":"2025-07-14T14:49:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec194dd1a2460c8a5d49321a48f8b12f7489f817_ce4ec24b-9869-4b23-90b6-46565577bb07.webp?v=1752475740","variant_ids":[43524884922467]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) OSAMU GOODS 多彩系列-Betty - 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":"MST011870D-YN32","featured_media":{"alt":null,"id":25816942739555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec194dd1a2460c8a5d49321a48f8b12f7489f817_ce4ec24b-9869-4b23-90b6-46565577bb07.webp?v=1752475740"}},"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: "停產"
}