$product = {"id":7937820426339,"title":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎","handle":"iphone-12-pro-mod-nx-magsafe-xu06","description":null,"published_at":"2025-12-12T10:54:02+08:00","created_at":"2025-12-11T15:34:36+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-attack-on-titan","device-iPhone 12 Pro","merge","reseller-attack-on-titan"],"price":110000,"price_min":110000,"price_max":110000,"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":43884019187811,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-XU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34932668203107,"product_id":7937820426339,"position":3,"created_at":"2025-12-11T15:34:42+08:00","updated_at":"2025-12-11T15:34:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc2d5e8248f010a55a0089a1d8fdcd4639056f44.webp?v=1765438483","variant_ids":[43884019187811]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-XU06","featured_media":{"alt":null,"id":26495040356451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc2d5e8248f010a55a0089a1d8fdcd4639056f44.webp?v=1765438483"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884023021667,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-XU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34932669022307,"product_id":7937820426339,"position":5,"created_at":"2025-12-11T15:34:43+08:00","updated_at":"2025-12-11T15:34:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f19122fae91c558170bd260fc62ec20c8a7ddd6.webp?v=1765438484","variant_ids":[43884023021667]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118569-XU06","featured_media":{"alt":null,"id":26495040782435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f19122fae91c558170bd260fc62ec20c8a7ddd6.webp?v=1765438484"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884023185507,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-XU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34932669349987,"product_id":7937820426339,"position":7,"created_at":"2025-12-11T15:34:44+08:00","updated_at":"2025-12-11T15:34:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fea8fed8ba72764d7656c5ed08398379a39f386c.webp?v=1765438485","variant_ids":[43884023185507]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118524-XU06","featured_media":{"alt":null,"id":26495041142883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fea8fed8ba72764d7656c5ed08398379a39f386c.webp?v=1765438485"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884023251043,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-XU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34932669546595,"product_id":7937820426339,"position":8,"created_at":"2025-12-11T15:34:44+08:00","updated_at":"2025-12-11T15:34:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e96c6f4adfee7adb21780c3861e24b676d98c04f.webp?v=1765438486","variant_ids":[43884023251043]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118504-XU06","featured_media":{"alt":null,"id":26495041339491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e96c6f4adfee7adb21780c3861e24b676d98c04f.webp?v=1765438486"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884023283811,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-XU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34932667678819,"product_id":7937820426339,"position":1,"created_at":"2025-12-11T15:34:40+08:00","updated_at":"2025-12-11T15:34:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c1f8d768f1ecd928fce3bec5b4b8aecefa3a798.webp?v=1765438482","variant_ids":[43884023283811]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185J5-XU06","featured_media":{"alt":null,"id":26495039438947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c1f8d768f1ecd928fce3bec5b4b8aecefa3a798.webp?v=1765438482"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c1f8d768f1ecd928fce3bec5b4b8aecefa3a798.webp?v=1765438482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65988938c6b0ebdb3134a9c9bc78d5b5b5bbc966.webp?v=1765438483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc2d5e8248f010a55a0089a1d8fdcd4639056f44.webp?v=1765438483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e441a2806539454dcb8d813c3bc7f83418a54a0.webp?v=1765438484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f19122fae91c558170bd260fc62ec20c8a7ddd6.webp?v=1765438484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d38050af6e70f12298c33c49fdbd6d14838a8735.webp?v=1765438485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fea8fed8ba72764d7656c5ed08398379a39f386c.webp?v=1765438485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e96c6f4adfee7adb21780c3861e24b676d98c04f.webp?v=1765438486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/308d9afd34141e050e98b486a9fbdd8c864bf308.webp?v=1765438487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/274bb6f2725092a2d864a1d7a3e4676816680f62.webp?v=1765438487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3317b30846e899984e41338af17490da1e49067.webp?v=1765438488"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c1f8d768f1ecd928fce3bec5b4b8aecefa3a798.webp?v=1765438482","options":["color"],"media":[{"alt":null,"id":26495039438947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c1f8d768f1ecd928fce3bec5b4b8aecefa3a798.webp?v=1765438482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c1f8d768f1ecd928fce3bec5b4b8aecefa3a798.webp?v=1765438482","width":2000},{"alt":null,"id":26495039996003,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65988938c6b0ebdb3134a9c9bc78d5b5b5bbc966.webp?v=1765438483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65988938c6b0ebdb3134a9c9bc78d5b5b5bbc966.webp?v=1765438483","width":2000},{"alt":null,"id":26495040356451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc2d5e8248f010a55a0089a1d8fdcd4639056f44.webp?v=1765438483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc2d5e8248f010a55a0089a1d8fdcd4639056f44.webp?v=1765438483","width":2000},{"alt":null,"id":26495040618595,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e441a2806539454dcb8d813c3bc7f83418a54a0.webp?v=1765438484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e441a2806539454dcb8d813c3bc7f83418a54a0.webp?v=1765438484","width":2000},{"alt":null,"id":26495040782435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f19122fae91c558170bd260fc62ec20c8a7ddd6.webp?v=1765438484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f19122fae91c558170bd260fc62ec20c8a7ddd6.webp?v=1765438484","width":2000},{"alt":null,"id":26495040979043,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d38050af6e70f12298c33c49fdbd6d14838a8735.webp?v=1765438485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d38050af6e70f12298c33c49fdbd6d14838a8735.webp?v=1765438485","width":2000},{"alt":null,"id":26495041142883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fea8fed8ba72764d7656c5ed08398379a39f386c.webp?v=1765438485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fea8fed8ba72764d7656c5ed08398379a39f386c.webp?v=1765438485","width":2000},{"alt":null,"id":26495041339491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e96c6f4adfee7adb21780c3861e24b676d98c04f.webp?v=1765438486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e96c6f4adfee7adb21780c3861e24b676d98c04f.webp?v=1765438486","width":2000},{"alt":null,"id":26495041405027,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/308d9afd34141e050e98b486a9fbdd8c864bf308.webp?v=1765438487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/308d9afd34141e050e98b486a9fbdd8c864bf308.webp?v=1765438487","width":2000},{"alt":null,"id":26495041634403,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/274bb6f2725092a2d864a1d7a3e4676816680f62.webp?v=1765438487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/274bb6f2725092a2d864a1d7a3e4676816680f62.webp?v=1765438487","width":2000},{"alt":null,"id":26495041831011,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3317b30846e899984e41338af17490da1e49067.webp?v=1765438488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3317b30846e899984e41338af17490da1e49067.webp?v=1765438488","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43884019187811,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-XU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34932668203107,"product_id":7937820426339,"position":3,"created_at":"2025-12-11T15:34:42+08:00","updated_at":"2025-12-11T15:34:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc2d5e8248f010a55a0089a1d8fdcd4639056f44.webp?v=1765438483","variant_ids":[43884019187811]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-XU06","featured_media":{"alt":null,"id":26495040356451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc2d5e8248f010a55a0089a1d8fdcd4639056f44.webp?v=1765438483"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884023021667,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-XU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34932669022307,"product_id":7937820426339,"position":5,"created_at":"2025-12-11T15:34:43+08:00","updated_at":"2025-12-11T15:34:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f19122fae91c558170bd260fc62ec20c8a7ddd6.webp?v=1765438484","variant_ids":[43884023021667]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118569-XU06","featured_media":{"alt":null,"id":26495040782435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f19122fae91c558170bd260fc62ec20c8a7ddd6.webp?v=1765438484"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884023185507,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-XU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34932669349987,"product_id":7937820426339,"position":7,"created_at":"2025-12-11T15:34:44+08:00","updated_at":"2025-12-11T15:34:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fea8fed8ba72764d7656c5ed08398379a39f386c.webp?v=1765438485","variant_ids":[43884023185507]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118524-XU06","featured_media":{"alt":null,"id":26495041142883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fea8fed8ba72764d7656c5ed08398379a39f386c.webp?v=1765438485"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884023251043,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-XU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34932669546595,"product_id":7937820426339,"position":8,"created_at":"2025-12-11T15:34:44+08:00","updated_at":"2025-12-11T15:34:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e96c6f4adfee7adb21780c3861e24b676d98c04f.webp?v=1765438486","variant_ids":[43884023251043]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118504-XU06","featured_media":{"alt":null,"id":26495041339491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e96c6f4adfee7adb21780c3861e24b676d98c04f.webp?v=1765438486"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884023283811,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-XU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34932667678819,"product_id":7937820426339,"position":1,"created_at":"2025-12-11T15:34:40+08:00","updated_at":"2025-12-11T15:34:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c1f8d768f1ecd928fce3bec5b4b8aecefa3a798.webp?v=1765438482","variant_ids":[43884023283811]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185J5-XU06","featured_media":{"alt":null,"id":26495039438947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c1f8d768f1ecd928fce3bec5b4b8aecefa3a798.webp?v=1765438482"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43884019187811,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-XU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34932668203107,"product_id":7937820426339,"position":3,"created_at":"2025-12-11T15:34:42+08:00","updated_at":"2025-12-11T15:34:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc2d5e8248f010a55a0089a1d8fdcd4639056f44.webp?v=1765438483","variant_ids":[43884019187811]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-XU06","featured_media":{"alt":null,"id":26495040356451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc2d5e8248f010a55a0089a1d8fdcd4639056f44.webp?v=1765438483"}},"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: "停產"
}