$product = {"id":7922032640099,"title":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 糰子貓","handle":"iphone-12-pro-mod-nx-magsafe-toc08","description":null,"published_at":"2025-11-14T08:09:43+08:00","created_at":"2025-11-13T10:35:34+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-tocorocomugi","device-iPhone 12 Pro","merge","reseller-tocorocomugi"],"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":43834977419363,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-TOC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34794409590883,"product_id":7922032640099,"position":9,"created_at":"2025-11-13T10:35:41+08:00","updated_at":"2025-11-13T10:35:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f14bda9538d4fc5873afe85296e92d7afba2ae.webp?v=1763001343","variant_ids":[43834977419363]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 糰子貓 - 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-TOC08","featured_media":{"alt":null,"id":26359828381795,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f14bda9538d4fc5873afe85296e92d7afba2ae.webp?v=1763001343"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834980237411,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-TOC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34794410049635,"product_id":7922032640099,"position":11,"created_at":"2025-11-13T10:35:42+08:00","updated_at":"2025-11-13T10:35:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b52f92e9fbdea328d0ab5c3332a96a7007706ed.webp?v=1763001344","variant_ids":[43834980237411]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 糰子貓 - 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-TOC08","featured_media":{"alt":null,"id":26359828840547,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b52f92e9fbdea328d0ab5c3332a96a7007706ed.webp?v=1763001344"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834980270179,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-TOC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34794409361507,"product_id":7922032640099,"position":8,"created_at":"2025-11-13T10:35:40+08:00","updated_at":"2025-11-13T10:35:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17ac4b72a5d71d39cd7e0782dd9aaba5e6b64638.webp?v=1763001342","variant_ids":[43834980270179]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 糰子貓 - 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-TOC08","featured_media":{"alt":null,"id":26359828152419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17ac4b72a5d71d39cd7e0782dd9aaba5e6b64638.webp?v=1763001342"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834980368483,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-TOC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34794409885795,"product_id":7922032640099,"position":10,"created_at":"2025-11-13T10:35:41+08:00","updated_at":"2025-11-13T10:35:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6cf942b7ea57e917c2a2c724d1145633c30c8dc.webp?v=1763001343","variant_ids":[43834980368483]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 糰子貓 - 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-TOC08","featured_media":{"alt":null,"id":26359828676707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6cf942b7ea57e917c2a2c724d1145633c30c8dc.webp?v=1763001343"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834980401251,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-TOC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34794407854179,"product_id":7922032640099,"position":3,"created_at":"2025-11-13T10:35:37+08:00","updated_at":"2025-11-13T10:35:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cc06356aaff92f68c7037b5fb44dd565c0cd08c.webp?v=1763001339","variant_ids":[43834980401251]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 糰子貓 - 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-TOC08","featured_media":{"alt":null,"id":26359826645091,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cc06356aaff92f68c7037b5fb44dd565c0cd08c.webp?v=1763001339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35f540c54c316c27059be5e18a39fbb89006fad2.webp?v=1763001337","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e42bcb439520f01600e6578c4f485e61abf691f3.webp?v=1763001338","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cc06356aaff92f68c7037b5fb44dd565c0cd08c.webp?v=1763001339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c2af5a53ac609986ca9c2592cbb69e9beaeb14.webp?v=1763001339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94ddb5dbec43896a0f692089d5a8e775d3fe5ae1.webp?v=1763001340","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ab923e34e04d5e289f9c8edcbf7f7be21c2057c.webp?v=1763001341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16c9ca4badca6471ac771e3b71420e5a481d0b12.webp?v=1763001341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17ac4b72a5d71d39cd7e0782dd9aaba5e6b64638.webp?v=1763001342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f14bda9538d4fc5873afe85296e92d7afba2ae.webp?v=1763001343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6cf942b7ea57e917c2a2c724d1145633c30c8dc.webp?v=1763001343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b52f92e9fbdea328d0ab5c3332a96a7007706ed.webp?v=1763001344"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35f540c54c316c27059be5e18a39fbb89006fad2.webp?v=1763001337","options":["color"],"media":[{"alt":null,"id":26359826186339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35f540c54c316c27059be5e18a39fbb89006fad2.webp?v=1763001337"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35f540c54c316c27059be5e18a39fbb89006fad2.webp?v=1763001337","width":2000},{"alt":null,"id":26359826415715,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e42bcb439520f01600e6578c4f485e61abf691f3.webp?v=1763001338"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e42bcb439520f01600e6578c4f485e61abf691f3.webp?v=1763001338","width":2000},{"alt":null,"id":26359826645091,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cc06356aaff92f68c7037b5fb44dd565c0cd08c.webp?v=1763001339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cc06356aaff92f68c7037b5fb44dd565c0cd08c.webp?v=1763001339","width":2000},{"alt":null,"id":26359826907235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c2af5a53ac609986ca9c2592cbb69e9beaeb14.webp?v=1763001339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c2af5a53ac609986ca9c2592cbb69e9beaeb14.webp?v=1763001339","width":2000},{"alt":null,"id":26359827267683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94ddb5dbec43896a0f692089d5a8e775d3fe5ae1.webp?v=1763001340"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94ddb5dbec43896a0f692089d5a8e775d3fe5ae1.webp?v=1763001340","width":2000},{"alt":null,"id":26359827628131,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ab923e34e04d5e289f9c8edcbf7f7be21c2057c.webp?v=1763001341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ab923e34e04d5e289f9c8edcbf7f7be21c2057c.webp?v=1763001341","width":2000},{"alt":null,"id":26359827857507,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16c9ca4badca6471ac771e3b71420e5a481d0b12.webp?v=1763001341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16c9ca4badca6471ac771e3b71420e5a481d0b12.webp?v=1763001341","width":2000},{"alt":null,"id":26359828152419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17ac4b72a5d71d39cd7e0782dd9aaba5e6b64638.webp?v=1763001342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17ac4b72a5d71d39cd7e0782dd9aaba5e6b64638.webp?v=1763001342","width":2000},{"alt":null,"id":26359828381795,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f14bda9538d4fc5873afe85296e92d7afba2ae.webp?v=1763001343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f14bda9538d4fc5873afe85296e92d7afba2ae.webp?v=1763001343","width":2000},{"alt":null,"id":26359828676707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6cf942b7ea57e917c2a2c724d1145633c30c8dc.webp?v=1763001343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6cf942b7ea57e917c2a2c724d1145633c30c8dc.webp?v=1763001343","width":2000},{"alt":null,"id":26359828840547,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b52f92e9fbdea328d0ab5c3332a96a7007706ed.webp?v=1763001344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b52f92e9fbdea328d0ab5c3332a96a7007706ed.webp?v=1763001344","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43834977419363,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-TOC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34794409590883,"product_id":7922032640099,"position":9,"created_at":"2025-11-13T10:35:41+08:00","updated_at":"2025-11-13T10:35:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f14bda9538d4fc5873afe85296e92d7afba2ae.webp?v=1763001343","variant_ids":[43834977419363]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 糰子貓 - 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-TOC08","featured_media":{"alt":null,"id":26359828381795,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f14bda9538d4fc5873afe85296e92d7afba2ae.webp?v=1763001343"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834980237411,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-TOC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34794410049635,"product_id":7922032640099,"position":11,"created_at":"2025-11-13T10:35:42+08:00","updated_at":"2025-11-13T10:35:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b52f92e9fbdea328d0ab5c3332a96a7007706ed.webp?v=1763001344","variant_ids":[43834980237411]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 糰子貓 - 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-TOC08","featured_media":{"alt":null,"id":26359828840547,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b52f92e9fbdea328d0ab5c3332a96a7007706ed.webp?v=1763001344"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834980270179,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-TOC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34794409361507,"product_id":7922032640099,"position":8,"created_at":"2025-11-13T10:35:40+08:00","updated_at":"2025-11-13T10:35:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17ac4b72a5d71d39cd7e0782dd9aaba5e6b64638.webp?v=1763001342","variant_ids":[43834980270179]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 糰子貓 - 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-TOC08","featured_media":{"alt":null,"id":26359828152419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17ac4b72a5d71d39cd7e0782dd9aaba5e6b64638.webp?v=1763001342"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834980368483,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-TOC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34794409885795,"product_id":7922032640099,"position":10,"created_at":"2025-11-13T10:35:41+08:00","updated_at":"2025-11-13T10:35:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6cf942b7ea57e917c2a2c724d1145633c30c8dc.webp?v=1763001343","variant_ids":[43834980368483]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 糰子貓 - 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-TOC08","featured_media":{"alt":null,"id":26359828676707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6cf942b7ea57e917c2a2c724d1145633c30c8dc.webp?v=1763001343"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834980401251,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-TOC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34794407854179,"product_id":7922032640099,"position":3,"created_at":"2025-11-13T10:35:37+08:00","updated_at":"2025-11-13T10:35:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cc06356aaff92f68c7037b5fb44dd565c0cd08c.webp?v=1763001339","variant_ids":[43834980401251]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 糰子貓 - 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-TOC08","featured_media":{"alt":null,"id":26359826645091,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cc06356aaff92f68c7037b5fb44dd565c0cd08c.webp?v=1763001339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43834977419363,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-TOC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34794409590883,"product_id":7922032640099,"position":9,"created_at":"2025-11-13T10:35:41+08:00","updated_at":"2025-11-13T10:35:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f14bda9538d4fc5873afe85296e92d7afba2ae.webp?v=1763001343","variant_ids":[43834977419363]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 糰子貓 - 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-TOC08","featured_media":{"alt":null,"id":26359828381795,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f14bda9538d4fc5873afe85296e92d7afba2ae.webp?v=1763001343"}},"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: "停產"
}