$product = {"id":7942264881251,"title":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Seungyoun Kim 紅衣小狗 Pingurusky","handle":"iphone-12-pro-mod-nx-magsafe-seu02","description":null,"published_at":"2025-12-23T09:33:51+08:00","created_at":"2025-12-22T17:42:32+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-seungyounkim","device-iPhone 12 Pro","merge","reseller-seungyounkim"],"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":43904420479075,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-SEU02","requires_shipping":true,"taxable":true,"featured_image":{"id":34987596939363,"product_id":7942264881251,"position":10,"created_at":"2025-12-22T17:43:17+08:00","updated_at":"2025-12-22T17:43:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de2d4ffcde57f577613f16751d0242d3c63e8e46.webp?v=1766396599","variant_ids":[43904420479075]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Seungyoun Kim 紅衣小狗 Pingurusky - 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-SEU02","featured_media":{"alt":null,"id":26548613742691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de2d4ffcde57f577613f16751d0242d3c63e8e46.webp?v=1766396599"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43904420773987,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-SEU02","requires_shipping":true,"taxable":true,"featured_image":{"id":34987597299811,"product_id":7942264881251,"position":11,"created_at":"2025-12-22T17:43:17+08:00","updated_at":"2025-12-22T17:43:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51d26925723afe3f5a6bc04c66335fa2904c7468.webp?v=1766396599","variant_ids":[43904420773987]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Seungyoun Kim 紅衣小狗 Pingurusky - 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-SEU02","featured_media":{"alt":null,"id":26548614103139,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51d26925723afe3f5a6bc04c66335fa2904c7468.webp?v=1766396599"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43904421199971,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-SEU02","requires_shipping":true,"taxable":true,"featured_image":{"id":34987596578915,"product_id":7942264881251,"position":9,"created_at":"2025-12-22T17:43:16+08:00","updated_at":"2025-12-22T17:43:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233fab5704d45a4d73395334b6344c61955068c0.webp?v=1766396598","variant_ids":[43904421199971]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Seungyoun Kim 紅衣小狗 Pingurusky - 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-SEU02","featured_media":{"alt":null,"id":26548613382243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233fab5704d45a4d73395334b6344c61955068c0.webp?v=1766396598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43904421625955,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-SEU02","requires_shipping":true,"taxable":true,"featured_image":{"id":34987594219619,"product_id":7942264881251,"position":2,"created_at":"2025-12-22T17:43:13+08:00","updated_at":"2025-12-22T17:43:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8324a6d3e7b695eaff807bbd547a53aaa87dfae4.webp?v=1766396595","variant_ids":[43904421625955]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Seungyoun Kim 紅衣小狗 Pingurusky - 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-SEU02","featured_media":{"alt":null,"id":26548611088483,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8324a6d3e7b695eaff807bbd547a53aaa87dfae4.webp?v=1766396595"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43904423100515,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-SEU02","requires_shipping":true,"taxable":true,"featured_image":{"id":34987594481763,"product_id":7942264881251,"position":3,"created_at":"2025-12-22T17:43:14+08:00","updated_at":"2025-12-22T17:43:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f103f72b22cec764a1b14944fac44a5c6efa5be.webp?v=1766396596","variant_ids":[43904423100515]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Seungyoun Kim 紅衣小狗 Pingurusky - 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-SEU02","featured_media":{"alt":null,"id":26548611350627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f103f72b22cec764a1b14944fac44a5c6efa5be.webp?v=1766396596"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/508db0505ffe188270ca29f6ed459df940c515e3.webp?v=1766396595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8324a6d3e7b695eaff807bbd547a53aaa87dfae4.webp?v=1766396595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f103f72b22cec764a1b14944fac44a5c6efa5be.webp?v=1766396596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f7e61bdbc07fc9f211b01c03b61e44ae19fba84.webp?v=1766396596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96097efb5ce47fdab72018941a97d5e5251ff4e7.webp?v=1766396597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd93e36f213791b2c70ee4c47189dc2061540a04.webp?v=1766396597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f7f08294139a00e809e42e64b0cd2bf671db7e1.webp?v=1766396597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd844d90caa4ab81ba3b9c47ac26b7f0859f3978.webp?v=1766396598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233fab5704d45a4d73395334b6344c61955068c0.webp?v=1766396598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de2d4ffcde57f577613f16751d0242d3c63e8e46.webp?v=1766396599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51d26925723afe3f5a6bc04c66335fa2904c7468.webp?v=1766396599"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/508db0505ffe188270ca29f6ed459df940c515e3.webp?v=1766396595","options":["color"],"media":[{"alt":null,"id":26548610498659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/508db0505ffe188270ca29f6ed459df940c515e3.webp?v=1766396595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/508db0505ffe188270ca29f6ed459df940c515e3.webp?v=1766396595","width":2000},{"alt":null,"id":26548611088483,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8324a6d3e7b695eaff807bbd547a53aaa87dfae4.webp?v=1766396595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8324a6d3e7b695eaff807bbd547a53aaa87dfae4.webp?v=1766396595","width":2000},{"alt":null,"id":26548611350627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f103f72b22cec764a1b14944fac44a5c6efa5be.webp?v=1766396596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f103f72b22cec764a1b14944fac44a5c6efa5be.webp?v=1766396596","width":2000},{"alt":null,"id":26548611580003,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f7e61bdbc07fc9f211b01c03b61e44ae19fba84.webp?v=1766396596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f7e61bdbc07fc9f211b01c03b61e44ae19fba84.webp?v=1766396596","width":2000},{"alt":null,"id":26548611776611,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96097efb5ce47fdab72018941a97d5e5251ff4e7.webp?v=1766396597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96097efb5ce47fdab72018941a97d5e5251ff4e7.webp?v=1766396597","width":2000},{"alt":null,"id":26548611973219,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd93e36f213791b2c70ee4c47189dc2061540a04.webp?v=1766396597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd93e36f213791b2c70ee4c47189dc2061540a04.webp?v=1766396597","width":2000},{"alt":null,"id":26548612333667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f7f08294139a00e809e42e64b0cd2bf671db7e1.webp?v=1766396597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f7f08294139a00e809e42e64b0cd2bf671db7e1.webp?v=1766396597","width":2000},{"alt":null,"id":26548612792419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd844d90caa4ab81ba3b9c47ac26b7f0859f3978.webp?v=1766396598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd844d90caa4ab81ba3b9c47ac26b7f0859f3978.webp?v=1766396598","width":2000},{"alt":null,"id":26548613382243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233fab5704d45a4d73395334b6344c61955068c0.webp?v=1766396598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233fab5704d45a4d73395334b6344c61955068c0.webp?v=1766396598","width":2000},{"alt":null,"id":26548613742691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de2d4ffcde57f577613f16751d0242d3c63e8e46.webp?v=1766396599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de2d4ffcde57f577613f16751d0242d3c63e8e46.webp?v=1766396599","width":2000},{"alt":null,"id":26548614103139,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51d26925723afe3f5a6bc04c66335fa2904c7468.webp?v=1766396599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51d26925723afe3f5a6bc04c66335fa2904c7468.webp?v=1766396599","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43904420479075,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-SEU02","requires_shipping":true,"taxable":true,"featured_image":{"id":34987596939363,"product_id":7942264881251,"position":10,"created_at":"2025-12-22T17:43:17+08:00","updated_at":"2025-12-22T17:43:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de2d4ffcde57f577613f16751d0242d3c63e8e46.webp?v=1766396599","variant_ids":[43904420479075]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Seungyoun Kim 紅衣小狗 Pingurusky - 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-SEU02","featured_media":{"alt":null,"id":26548613742691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de2d4ffcde57f577613f16751d0242d3c63e8e46.webp?v=1766396599"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43904420773987,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-SEU02","requires_shipping":true,"taxable":true,"featured_image":{"id":34987597299811,"product_id":7942264881251,"position":11,"created_at":"2025-12-22T17:43:17+08:00","updated_at":"2025-12-22T17:43:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51d26925723afe3f5a6bc04c66335fa2904c7468.webp?v=1766396599","variant_ids":[43904420773987]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Seungyoun Kim 紅衣小狗 Pingurusky - 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-SEU02","featured_media":{"alt":null,"id":26548614103139,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51d26925723afe3f5a6bc04c66335fa2904c7468.webp?v=1766396599"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43904421199971,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-SEU02","requires_shipping":true,"taxable":true,"featured_image":{"id":34987596578915,"product_id":7942264881251,"position":9,"created_at":"2025-12-22T17:43:16+08:00","updated_at":"2025-12-22T17:43:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233fab5704d45a4d73395334b6344c61955068c0.webp?v=1766396598","variant_ids":[43904421199971]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Seungyoun Kim 紅衣小狗 Pingurusky - 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-SEU02","featured_media":{"alt":null,"id":26548613382243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233fab5704d45a4d73395334b6344c61955068c0.webp?v=1766396598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43904421625955,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-SEU02","requires_shipping":true,"taxable":true,"featured_image":{"id":34987594219619,"product_id":7942264881251,"position":2,"created_at":"2025-12-22T17:43:13+08:00","updated_at":"2025-12-22T17:43:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8324a6d3e7b695eaff807bbd547a53aaa87dfae4.webp?v=1766396595","variant_ids":[43904421625955]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Seungyoun Kim 紅衣小狗 Pingurusky - 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-SEU02","featured_media":{"alt":null,"id":26548611088483,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8324a6d3e7b695eaff807bbd547a53aaa87dfae4.webp?v=1766396595"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43904423100515,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-SEU02","requires_shipping":true,"taxable":true,"featured_image":{"id":34987594481763,"product_id":7942264881251,"position":3,"created_at":"2025-12-22T17:43:14+08:00","updated_at":"2025-12-22T17:43:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f103f72b22cec764a1b14944fac44a5c6efa5be.webp?v=1766396596","variant_ids":[43904423100515]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Seungyoun Kim 紅衣小狗 Pingurusky - 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-SEU02","featured_media":{"alt":null,"id":26548611350627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f103f72b22cec764a1b14944fac44a5c6efa5be.webp?v=1766396596"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43904420479075,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-SEU02","requires_shipping":true,"taxable":true,"featured_image":{"id":34987596939363,"product_id":7942264881251,"position":10,"created_at":"2025-12-22T17:43:17+08:00","updated_at":"2025-12-22T17:43:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de2d4ffcde57f577613f16751d0242d3c63e8e46.webp?v=1766396599","variant_ids":[43904420479075]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Seungyoun Kim 紅衣小狗 Pingurusky - 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-SEU02","featured_media":{"alt":null,"id":26548613742691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de2d4ffcde57f577613f16751d0242d3c63e8e46.webp?v=1766396599"}},"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: "停產"
}