$product = {"id":7937701445731,"title":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 毛茸茸貓咪圖書館","handle":"iphone-12-pro-mod-nx-magsafe-cjy11","description":null,"published_at":"2025-12-12T09:24:14+08:00","created_at":"2025-12-11T10:25:17+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jychoioioi","device-iPhone 12 Pro","merge","reseller-jychoioioi"],"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":43883517509731,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-CJY11","requires_shipping":true,"taxable":true,"featured_image":{"id":34931767115875,"product_id":7937701445731,"position":6,"created_at":"2025-12-11T10:25:23+08:00","updated_at":"2025-12-11T10:25:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbb22abec9cef655a9a01546b8541e3c90b1006d.webp?v=1765419925","variant_ids":[43883517509731]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 毛茸茸貓咪圖書館 - 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-CJY11","featured_media":{"alt":null,"id":26494141366371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbb22abec9cef655a9a01546b8541e3c90b1006d.webp?v=1765419925"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883520786531,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-CJY11","requires_shipping":true,"taxable":true,"featured_image":{"id":34931766853731,"product_id":7937701445731,"position":5,"created_at":"2025-12-11T10:25:23+08:00","updated_at":"2025-12-11T10:25:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/046f48e7fb60654ef2464a9b08a813aa89cae23d.webp?v=1765419925","variant_ids":[43883520786531]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 毛茸茸貓咪圖書館 - 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-CJY11","featured_media":{"alt":null,"id":26494141071459,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/046f48e7fb60654ef2464a9b08a813aa89cae23d.webp?v=1765419925"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883520819299,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-CJY11","requires_shipping":true,"taxable":true,"featured_image":{"id":34931765510243,"product_id":7937701445731,"position":1,"created_at":"2025-12-11T10:25:21+08:00","updated_at":"2025-12-11T10:25:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a0893f7040a5c160f2ad419500562c3c466cd7.webp?v=1765419923","variant_ids":[43883520819299]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 毛茸茸貓咪圖書館 - 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-CJY11","featured_media":{"alt":null,"id":26494139695203,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a0893f7040a5c160f2ad419500562c3c466cd7.webp?v=1765419923"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883520950371,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-CJY11","requires_shipping":true,"taxable":true,"featured_image":{"id":34931768918115,"product_id":7937701445731,"position":11,"created_at":"2025-12-11T10:25:26+08:00","updated_at":"2025-12-11T10:25:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efffdc194cfa84c16ec0d4c581533fbe93feac1a.webp?v=1765419928","variant_ids":[43883520950371]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 毛茸茸貓咪圖書館 - 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-CJY11","featured_media":{"alt":null,"id":26494143135843,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efffdc194cfa84c16ec0d4c581533fbe93feac1a.webp?v=1765419928"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883520983139,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-CJY11","requires_shipping":true,"taxable":true,"featured_image":{"id":34931766460515,"product_id":7937701445731,"position":4,"created_at":"2025-12-11T10:25:22+08:00","updated_at":"2025-12-11T10:25:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39e6c49b34dda7b69e9387eeb0bc6f2e608615b8.webp?v=1765419924","variant_ids":[43883520983139]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 毛茸茸貓咪圖書館 - 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-CJY11","featured_media":{"alt":null,"id":26494140645475,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39e6c49b34dda7b69e9387eeb0bc6f2e608615b8.webp?v=1765419924"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a0893f7040a5c160f2ad419500562c3c466cd7.webp?v=1765419923","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c815055bb26556bb3a51873a6d0bd237355c865c.webp?v=1765419923","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb28beea8a18836d65afb4319c6284bfa0f74b6.webp?v=1765419924","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39e6c49b34dda7b69e9387eeb0bc6f2e608615b8.webp?v=1765419924","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/046f48e7fb60654ef2464a9b08a813aa89cae23d.webp?v=1765419925","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbb22abec9cef655a9a01546b8541e3c90b1006d.webp?v=1765419925","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0370da05e095f5eb9e2144d26fc7b4bbc8f49766.webp?v=1765419926","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8049cdaf0e0ca8d6b12faf757ec1fbfb581ccfa2.webp?v=1765419926","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f8862b3e284a057dfea3be33531201486ce2306.webp?v=1765419927","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91ad3737f52b5870db977854bdd7d7ede1b41202.webp?v=1765419927","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efffdc194cfa84c16ec0d4c581533fbe93feac1a.webp?v=1765419928"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a0893f7040a5c160f2ad419500562c3c466cd7.webp?v=1765419923","options":["color"],"media":[{"alt":null,"id":26494139695203,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a0893f7040a5c160f2ad419500562c3c466cd7.webp?v=1765419923"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a0893f7040a5c160f2ad419500562c3c466cd7.webp?v=1765419923","width":2000},{"alt":null,"id":26494139957347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c815055bb26556bb3a51873a6d0bd237355c865c.webp?v=1765419923"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c815055bb26556bb3a51873a6d0bd237355c865c.webp?v=1765419923","width":2000},{"alt":null,"id":26494140383331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb28beea8a18836d65afb4319c6284bfa0f74b6.webp?v=1765419924"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb28beea8a18836d65afb4319c6284bfa0f74b6.webp?v=1765419924","width":2000},{"alt":null,"id":26494140645475,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39e6c49b34dda7b69e9387eeb0bc6f2e608615b8.webp?v=1765419924"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39e6c49b34dda7b69e9387eeb0bc6f2e608615b8.webp?v=1765419924","width":2000},{"alt":null,"id":26494141071459,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/046f48e7fb60654ef2464a9b08a813aa89cae23d.webp?v=1765419925"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/046f48e7fb60654ef2464a9b08a813aa89cae23d.webp?v=1765419925","width":2000},{"alt":null,"id":26494141366371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbb22abec9cef655a9a01546b8541e3c90b1006d.webp?v=1765419925"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbb22abec9cef655a9a01546b8541e3c90b1006d.webp?v=1765419925","width":2000},{"alt":null,"id":26494141562979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0370da05e095f5eb9e2144d26fc7b4bbc8f49766.webp?v=1765419926"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0370da05e095f5eb9e2144d26fc7b4bbc8f49766.webp?v=1765419926","width":2000},{"alt":null,"id":26494141956195,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8049cdaf0e0ca8d6b12faf757ec1fbfb581ccfa2.webp?v=1765419926"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8049cdaf0e0ca8d6b12faf757ec1fbfb581ccfa2.webp?v=1765419926","width":2000},{"alt":null,"id":26494142283875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f8862b3e284a057dfea3be33531201486ce2306.webp?v=1765419927"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f8862b3e284a057dfea3be33531201486ce2306.webp?v=1765419927","width":2000},{"alt":null,"id":26494142578787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91ad3737f52b5870db977854bdd7d7ede1b41202.webp?v=1765419927"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91ad3737f52b5870db977854bdd7d7ede1b41202.webp?v=1765419927","width":2000},{"alt":null,"id":26494143135843,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efffdc194cfa84c16ec0d4c581533fbe93feac1a.webp?v=1765419928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efffdc194cfa84c16ec0d4c581533fbe93feac1a.webp?v=1765419928","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43883517509731,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-CJY11","requires_shipping":true,"taxable":true,"featured_image":{"id":34931767115875,"product_id":7937701445731,"position":6,"created_at":"2025-12-11T10:25:23+08:00","updated_at":"2025-12-11T10:25:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbb22abec9cef655a9a01546b8541e3c90b1006d.webp?v=1765419925","variant_ids":[43883517509731]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 毛茸茸貓咪圖書館 - 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-CJY11","featured_media":{"alt":null,"id":26494141366371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbb22abec9cef655a9a01546b8541e3c90b1006d.webp?v=1765419925"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883520786531,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-CJY11","requires_shipping":true,"taxable":true,"featured_image":{"id":34931766853731,"product_id":7937701445731,"position":5,"created_at":"2025-12-11T10:25:23+08:00","updated_at":"2025-12-11T10:25:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/046f48e7fb60654ef2464a9b08a813aa89cae23d.webp?v=1765419925","variant_ids":[43883520786531]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 毛茸茸貓咪圖書館 - 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-CJY11","featured_media":{"alt":null,"id":26494141071459,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/046f48e7fb60654ef2464a9b08a813aa89cae23d.webp?v=1765419925"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883520819299,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-CJY11","requires_shipping":true,"taxable":true,"featured_image":{"id":34931765510243,"product_id":7937701445731,"position":1,"created_at":"2025-12-11T10:25:21+08:00","updated_at":"2025-12-11T10:25:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a0893f7040a5c160f2ad419500562c3c466cd7.webp?v=1765419923","variant_ids":[43883520819299]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 毛茸茸貓咪圖書館 - 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-CJY11","featured_media":{"alt":null,"id":26494139695203,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a0893f7040a5c160f2ad419500562c3c466cd7.webp?v=1765419923"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883520950371,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-CJY11","requires_shipping":true,"taxable":true,"featured_image":{"id":34931768918115,"product_id":7937701445731,"position":11,"created_at":"2025-12-11T10:25:26+08:00","updated_at":"2025-12-11T10:25:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efffdc194cfa84c16ec0d4c581533fbe93feac1a.webp?v=1765419928","variant_ids":[43883520950371]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 毛茸茸貓咪圖書館 - 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-CJY11","featured_media":{"alt":null,"id":26494143135843,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efffdc194cfa84c16ec0d4c581533fbe93feac1a.webp?v=1765419928"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883520983139,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-CJY11","requires_shipping":true,"taxable":true,"featured_image":{"id":34931766460515,"product_id":7937701445731,"position":4,"created_at":"2025-12-11T10:25:22+08:00","updated_at":"2025-12-11T10:25:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39e6c49b34dda7b69e9387eeb0bc6f2e608615b8.webp?v=1765419924","variant_ids":[43883520983139]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 毛茸茸貓咪圖書館 - 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-CJY11","featured_media":{"alt":null,"id":26494140645475,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39e6c49b34dda7b69e9387eeb0bc6f2e608615b8.webp?v=1765419924"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43883517509731,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-CJY11","requires_shipping":true,"taxable":true,"featured_image":{"id":34931767115875,"product_id":7937701445731,"position":6,"created_at":"2025-12-11T10:25:23+08:00","updated_at":"2025-12-11T10:25:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbb22abec9cef655a9a01546b8541e3c90b1006d.webp?v=1765419925","variant_ids":[43883517509731]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Jin Young Choi 毛茸茸貓咪圖書館 - 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-CJY11","featured_media":{"alt":null,"id":26494141366371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbb22abec9cef655a9a01546b8541e3c90b1006d.webp?v=1765419925"}},"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: "停產"
}