$product = {"id":7998333583459,"title":"iPhone 12 mini SolidSuit (MagSafe 兼容) 太空 The Two-faced Whirlpool Galaxy","handle":"iphone-12-mini-solidsuit-classic-magsafe-xk53","description":null,"published_at":"2026-04-20T12:11:15+08:00","created_at":"2026-04-20T09:44:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nasa","device-iPhone 12 Mini","merge","reseller-nasa"],"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":44126041636963,"title":"Parakeet Green","option1":"Parakeet Green","option2":null,"option3":null,"sku":"MST011840E-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":35673350733923,"product_id":7998333583459,"position":5,"created_at":"2026-04-20T09:44:57+08:00","updated_at":"2026-04-20T09:44:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cc99ec6092a4c688f1e5dfe0db0c3515ab3de06.webp?v=1776649499","variant_ids":[44126041636963]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 太空 The Two-faced Whirlpool Galaxy - Parakeet Green","public_title":"Parakeet Green","options":["Parakeet Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840E-XK53","featured_media":{"alt":null,"id":27200621903971,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cc99ec6092a4c688f1e5dfe0db0c3515ab3de06.webp?v=1776649499"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126042128483,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST011840D-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":35673348636771,"product_id":7998333583459,"position":1,"created_at":"2026-04-20T09:44:54+08:00","updated_at":"2026-04-20T09:44:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b951a6d8003101e6f03912bf552a1c2b2813954.webp?v=1776649496","variant_ids":[44126042128483]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 太空 The Two-faced Whirlpool Galaxy - 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":"MST011840D-XK53","featured_media":{"alt":null,"id":27200619806819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b951a6d8003101e6f03912bf552a1c2b2813954.webp?v=1776649496"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126042718307,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MST011840A-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":35673351290979,"product_id":7998333583459,"position":6,"created_at":"2026-04-20T09:44:58+08:00","updated_at":"2026-04-20T09:45:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/121b3a2e2b4a5ba81e91f132a35e36db95644b15.webp?v=1776649500","variant_ids":[44126042718307]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 太空 The Two-faced Whirlpool Galaxy - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840A-XK53","featured_media":{"alt":null,"id":27200622493795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/121b3a2e2b4a5ba81e91f132a35e36db95644b15.webp?v=1776649500"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126043209827,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01184Z9-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":35673350176867,"product_id":7998333583459,"position":4,"created_at":"2026-04-20T09:44:56+08:00","updated_at":"2026-04-20T09:44:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b430881d1ce1528735765ad97c023aab7de0cbb6.webp?v=1776649498","variant_ids":[44126043209827]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 太空 The Two-faced Whirlpool Galaxy - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z9-XK53","featured_media":{"alt":null,"id":27200621346915,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b430881d1ce1528735765ad97c023aab7de0cbb6.webp?v=1776649498"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126043930723,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01184Z8-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":35673349652579,"product_id":7998333583459,"position":3,"created_at":"2026-04-20T09:44:56+08:00","updated_at":"2026-04-20T09:44:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9e42354aa6bce7177f99c8f4fb3938f378bc9e7.webp?v=1776649498","variant_ids":[44126043930723]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 太空 The Two-faced Whirlpool Galaxy - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z8-XK53","featured_media":{"alt":null,"id":27200620789859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9e42354aa6bce7177f99c8f4fb3938f378bc9e7.webp?v=1776649498"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126044487779,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118452-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":35673351913571,"product_id":7998333583459,"position":7,"created_at":"2026-04-20T09:45:00+08:00","updated_at":"2026-04-20T09:45:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4ac191b90f91172524fc0a59bfc9d0df4f0a64.webp?v=1776649502","variant_ids":[44126044487779]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 太空 The Two-faced Whirlpool Galaxy - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118452-XK53","featured_media":{"alt":null,"id":27200623018083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4ac191b90f91172524fc0a59bfc9d0df4f0a64.webp?v=1776649502"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b951a6d8003101e6f03912bf552a1c2b2813954.webp?v=1776649496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9661826c6907ad08963d324fb103c24ea0d078f.webp?v=1776649497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9e42354aa6bce7177f99c8f4fb3938f378bc9e7.webp?v=1776649498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b430881d1ce1528735765ad97c023aab7de0cbb6.webp?v=1776649498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cc99ec6092a4c688f1e5dfe0db0c3515ab3de06.webp?v=1776649499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/121b3a2e2b4a5ba81e91f132a35e36db95644b15.webp?v=1776649500","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4ac191b90f91172524fc0a59bfc9d0df4f0a64.webp?v=1776649502"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b951a6d8003101e6f03912bf552a1c2b2813954.webp?v=1776649496","options":["color"],"media":[{"alt":null,"id":27200619806819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b951a6d8003101e6f03912bf552a1c2b2813954.webp?v=1776649496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b951a6d8003101e6f03912bf552a1c2b2813954.webp?v=1776649496","width":2000},{"alt":null,"id":27200620396643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9661826c6907ad08963d324fb103c24ea0d078f.webp?v=1776649497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9661826c6907ad08963d324fb103c24ea0d078f.webp?v=1776649497","width":2000},{"alt":null,"id":27200620789859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9e42354aa6bce7177f99c8f4fb3938f378bc9e7.webp?v=1776649498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9e42354aa6bce7177f99c8f4fb3938f378bc9e7.webp?v=1776649498","width":2000},{"alt":null,"id":27200621346915,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b430881d1ce1528735765ad97c023aab7de0cbb6.webp?v=1776649498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b430881d1ce1528735765ad97c023aab7de0cbb6.webp?v=1776649498","width":2000},{"alt":null,"id":27200621903971,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cc99ec6092a4c688f1e5dfe0db0c3515ab3de06.webp?v=1776649499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cc99ec6092a4c688f1e5dfe0db0c3515ab3de06.webp?v=1776649499","width":2000},{"alt":null,"id":27200622493795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/121b3a2e2b4a5ba81e91f132a35e36db95644b15.webp?v=1776649500"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/121b3a2e2b4a5ba81e91f132a35e36db95644b15.webp?v=1776649500","width":2000},{"alt":null,"id":27200623018083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4ac191b90f91172524fc0a59bfc9d0df4f0a64.webp?v=1776649502"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4ac191b90f91172524fc0a59bfc9d0df4f0a64.webp?v=1776649502","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":44126041636963,"title":"Parakeet Green","option1":"Parakeet Green","option2":null,"option3":null,"sku":"MST011840E-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":35673350733923,"product_id":7998333583459,"position":5,"created_at":"2026-04-20T09:44:57+08:00","updated_at":"2026-04-20T09:44:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cc99ec6092a4c688f1e5dfe0db0c3515ab3de06.webp?v=1776649499","variant_ids":[44126041636963]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 太空 The Two-faced Whirlpool Galaxy - Parakeet Green","public_title":"Parakeet Green","options":["Parakeet Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840E-XK53","featured_media":{"alt":null,"id":27200621903971,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cc99ec6092a4c688f1e5dfe0db0c3515ab3de06.webp?v=1776649499"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126042128483,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST011840D-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":35673348636771,"product_id":7998333583459,"position":1,"created_at":"2026-04-20T09:44:54+08:00","updated_at":"2026-04-20T09:44:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b951a6d8003101e6f03912bf552a1c2b2813954.webp?v=1776649496","variant_ids":[44126042128483]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 太空 The Two-faced Whirlpool Galaxy - 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":"MST011840D-XK53","featured_media":{"alt":null,"id":27200619806819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b951a6d8003101e6f03912bf552a1c2b2813954.webp?v=1776649496"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126042718307,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MST011840A-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":35673351290979,"product_id":7998333583459,"position":6,"created_at":"2026-04-20T09:44:58+08:00","updated_at":"2026-04-20T09:45:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/121b3a2e2b4a5ba81e91f132a35e36db95644b15.webp?v=1776649500","variant_ids":[44126042718307]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 太空 The Two-faced Whirlpool Galaxy - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840A-XK53","featured_media":{"alt":null,"id":27200622493795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/121b3a2e2b4a5ba81e91f132a35e36db95644b15.webp?v=1776649500"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126043209827,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01184Z9-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":35673350176867,"product_id":7998333583459,"position":4,"created_at":"2026-04-20T09:44:56+08:00","updated_at":"2026-04-20T09:44:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b430881d1ce1528735765ad97c023aab7de0cbb6.webp?v=1776649498","variant_ids":[44126043209827]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 太空 The Two-faced Whirlpool Galaxy - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z9-XK53","featured_media":{"alt":null,"id":27200621346915,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b430881d1ce1528735765ad97c023aab7de0cbb6.webp?v=1776649498"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126043930723,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01184Z8-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":35673349652579,"product_id":7998333583459,"position":3,"created_at":"2026-04-20T09:44:56+08:00","updated_at":"2026-04-20T09:44:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9e42354aa6bce7177f99c8f4fb3938f378bc9e7.webp?v=1776649498","variant_ids":[44126043930723]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 太空 The Two-faced Whirlpool Galaxy - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z8-XK53","featured_media":{"alt":null,"id":27200620789859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9e42354aa6bce7177f99c8f4fb3938f378bc9e7.webp?v=1776649498"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126044487779,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118452-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":35673351913571,"product_id":7998333583459,"position":7,"created_at":"2026-04-20T09:45:00+08:00","updated_at":"2026-04-20T09:45:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4ac191b90f91172524fc0a59bfc9d0df4f0a64.webp?v=1776649502","variant_ids":[44126044487779]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 太空 The Two-faced Whirlpool Galaxy - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118452-XK53","featured_media":{"alt":null,"id":27200623018083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4ac191b90f91172524fc0a59bfc9d0df4f0a64.webp?v=1776649502"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":44126041636963,"title":"Parakeet Green","option1":"Parakeet Green","option2":null,"option3":null,"sku":"MST011840E-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":35673350733923,"product_id":7998333583459,"position":5,"created_at":"2026-04-20T09:44:57+08:00","updated_at":"2026-04-20T09:44:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cc99ec6092a4c688f1e5dfe0db0c3515ab3de06.webp?v=1776649499","variant_ids":[44126041636963]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 太空 The Two-faced Whirlpool Galaxy - Parakeet Green","public_title":"Parakeet Green","options":["Parakeet Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840E-XK53","featured_media":{"alt":null,"id":27200621903971,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cc99ec6092a4c688f1e5dfe0db0c3515ab3de06.webp?v=1776649499"}},"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: "停產"
}