$product = {"id":7876185948259,"title":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點","handle":"iphone-12-pro-mod-nx-magsafe-printable-em48","description":null,"published_at":"2025-09-04T09:08:00+08:00","created_at":"2025-09-03T12:24:09+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-xiaolaofu","device-iPhone 12 Pro","merge","reseller-xiaolaofu"],"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":43675760328803,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416732897379,"product_id":7876185948259,"position":6,"created_at":"2025-09-03T12:24:17+08:00","updated_at":"2025-09-03T12:24:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0bc06feb85149c212551b8ef5daa728f2a590b4.webp?v=1756873459","variant_ids":[43675760328803]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點 - 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-EM48","featured_media":{"alt":null,"id":25989007638627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0bc06feb85149c212551b8ef5daa728f2a590b4.webp?v=1756873459"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675763343459,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416732733539,"product_id":7876185948259,"position":5,"created_at":"2025-09-03T12:24:17+08:00","updated_at":"2025-09-03T12:24:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d8b605705e951bde151d87ee4d289e03e586c5.webp?v=1756873459","variant_ids":[43675763343459]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點 - 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-EM48","featured_media":{"alt":null,"id":25989007474787,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d8b605705e951bde151d87ee4d289e03e586c5.webp?v=1756873459"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675763408995,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416733192291,"product_id":7876185948259,"position":8,"created_at":"2025-09-03T12:24:19+08:00","updated_at":"2025-09-03T12:24:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d318daf5d81e82951c8bcc0f6315f0dc6a28e6a4.webp?v=1756873461","variant_ids":[43675763408995]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點 - 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-EM48","featured_media":{"alt":null,"id":25989007933539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d318daf5d81e82951c8bcc0f6315f0dc6a28e6a4.webp?v=1756873461"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675763507299,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416732995683,"product_id":7876185948259,"position":7,"created_at":"2025-09-03T12:24:18+08:00","updated_at":"2025-09-03T12:24:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ad26406eff4e44b9929625d49ebcfe2cb8ada56.webp?v=1756873460","variant_ids":[43675763507299]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點 - 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-EM48","featured_media":{"alt":null,"id":25989007736931,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ad26406eff4e44b9929625d49ebcfe2cb8ada56.webp?v=1756873460"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675763605603,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416732045411,"product_id":7876185948259,"position":1,"created_at":"2025-09-03T12:24:13+08:00","updated_at":"2025-09-03T12:24:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02de0ab8b8d9e6087ea88add4e0e425ac3dcb7fe.webp?v=1756873455","variant_ids":[43675763605603]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點 - 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-EM48","featured_media":{"alt":null,"id":25989006786659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02de0ab8b8d9e6087ea88add4e0e425ac3dcb7fe.webp?v=1756873455"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02de0ab8b8d9e6087ea88add4e0e425ac3dcb7fe.webp?v=1756873455","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9daaff5f4c7f6d5ec91243adc72fdc3fe311444a.webp?v=1756873456","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afed32d7ba756a89e4c03298d1ca023ef61c57b5.webp?v=1756873457","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31651872e42d3296861b878a20bc7bd7ce2577ff.webp?v=1756873458","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d8b605705e951bde151d87ee4d289e03e586c5.webp?v=1756873459","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0bc06feb85149c212551b8ef5daa728f2a590b4.webp?v=1756873459","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ad26406eff4e44b9929625d49ebcfe2cb8ada56.webp?v=1756873460","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d318daf5d81e82951c8bcc0f6315f0dc6a28e6a4.webp?v=1756873461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b961cabb9a88fe865ce0c6a9a821f32d69c2f6f2.webp?v=1756873461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a44b10e8f69b91bf69015f332498eaa4dbc82e78.webp?v=1756873462","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0121200ebe4cf107b15ed08350b77140da8e5a6d.webp?v=1756873463"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02de0ab8b8d9e6087ea88add4e0e425ac3dcb7fe.webp?v=1756873455","options":["color"],"media":[{"alt":null,"id":25989006786659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02de0ab8b8d9e6087ea88add4e0e425ac3dcb7fe.webp?v=1756873455"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02de0ab8b8d9e6087ea88add4e0e425ac3dcb7fe.webp?v=1756873455","width":2000},{"alt":null,"id":25989006917731,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9daaff5f4c7f6d5ec91243adc72fdc3fe311444a.webp?v=1756873456"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9daaff5f4c7f6d5ec91243adc72fdc3fe311444a.webp?v=1756873456","width":2000},{"alt":null,"id":25989007016035,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afed32d7ba756a89e4c03298d1ca023ef61c57b5.webp?v=1756873457"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afed32d7ba756a89e4c03298d1ca023ef61c57b5.webp?v=1756873457","width":2000},{"alt":null,"id":25989007343715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31651872e42d3296861b878a20bc7bd7ce2577ff.webp?v=1756873458"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31651872e42d3296861b878a20bc7bd7ce2577ff.webp?v=1756873458","width":2000},{"alt":null,"id":25989007474787,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d8b605705e951bde151d87ee4d289e03e586c5.webp?v=1756873459"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d8b605705e951bde151d87ee4d289e03e586c5.webp?v=1756873459","width":2000},{"alt":null,"id":25989007638627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0bc06feb85149c212551b8ef5daa728f2a590b4.webp?v=1756873459"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0bc06feb85149c212551b8ef5daa728f2a590b4.webp?v=1756873459","width":2000},{"alt":null,"id":25989007736931,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ad26406eff4e44b9929625d49ebcfe2cb8ada56.webp?v=1756873460"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ad26406eff4e44b9929625d49ebcfe2cb8ada56.webp?v=1756873460","width":2000},{"alt":null,"id":25989007933539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d318daf5d81e82951c8bcc0f6315f0dc6a28e6a4.webp?v=1756873461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d318daf5d81e82951c8bcc0f6315f0dc6a28e6a4.webp?v=1756873461","width":2000},{"alt":null,"id":25989008162915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b961cabb9a88fe865ce0c6a9a821f32d69c2f6f2.webp?v=1756873461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b961cabb9a88fe865ce0c6a9a821f32d69c2f6f2.webp?v=1756873461","width":2000},{"alt":null,"id":25989008457827,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a44b10e8f69b91bf69015f332498eaa4dbc82e78.webp?v=1756873462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a44b10e8f69b91bf69015f332498eaa4dbc82e78.webp?v=1756873462","width":2000},{"alt":null,"id":25989008719971,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0121200ebe4cf107b15ed08350b77140da8e5a6d.webp?v=1756873463"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0121200ebe4cf107b15ed08350b77140da8e5a6d.webp?v=1756873463","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43675760328803,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416732897379,"product_id":7876185948259,"position":6,"created_at":"2025-09-03T12:24:17+08:00","updated_at":"2025-09-03T12:24:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0bc06feb85149c212551b8ef5daa728f2a590b4.webp?v=1756873459","variant_ids":[43675760328803]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點 - 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-EM48","featured_media":{"alt":null,"id":25989007638627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0bc06feb85149c212551b8ef5daa728f2a590b4.webp?v=1756873459"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675763343459,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416732733539,"product_id":7876185948259,"position":5,"created_at":"2025-09-03T12:24:17+08:00","updated_at":"2025-09-03T12:24:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d8b605705e951bde151d87ee4d289e03e586c5.webp?v=1756873459","variant_ids":[43675763343459]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點 - 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-EM48","featured_media":{"alt":null,"id":25989007474787,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d8b605705e951bde151d87ee4d289e03e586c5.webp?v=1756873459"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675763408995,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416733192291,"product_id":7876185948259,"position":8,"created_at":"2025-09-03T12:24:19+08:00","updated_at":"2025-09-03T12:24:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d318daf5d81e82951c8bcc0f6315f0dc6a28e6a4.webp?v=1756873461","variant_ids":[43675763408995]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點 - 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-EM48","featured_media":{"alt":null,"id":25989007933539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d318daf5d81e82951c8bcc0f6315f0dc6a28e6a4.webp?v=1756873461"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675763507299,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416732995683,"product_id":7876185948259,"position":7,"created_at":"2025-09-03T12:24:18+08:00","updated_at":"2025-09-03T12:24:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ad26406eff4e44b9929625d49ebcfe2cb8ada56.webp?v=1756873460","variant_ids":[43675763507299]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點 - 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-EM48","featured_media":{"alt":null,"id":25989007736931,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ad26406eff4e44b9929625d49ebcfe2cb8ada56.webp?v=1756873460"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675763605603,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416732045411,"product_id":7876185948259,"position":1,"created_at":"2025-09-03T12:24:13+08:00","updated_at":"2025-09-03T12:24:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02de0ab8b8d9e6087ea88add4e0e425ac3dcb7fe.webp?v=1756873455","variant_ids":[43675763605603]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點 - 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-EM48","featured_media":{"alt":null,"id":25989006786659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02de0ab8b8d9e6087ea88add4e0e425ac3dcb7fe.webp?v=1756873455"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43675760328803,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416732897379,"product_id":7876185948259,"position":6,"created_at":"2025-09-03T12:24:17+08:00","updated_at":"2025-09-03T12:24:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0bc06feb85149c212551b8ef5daa728f2a590b4.webp?v=1756873459","variant_ids":[43675760328803]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點 - 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-EM48","featured_media":{"alt":null,"id":25989007638627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0bc06feb85149c212551b8ef5daa728f2a590b4.webp?v=1756873459"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$brand_handle = null;
$type = "";
var sellingStatus
// 只有設計款(SKU 含 '-')才需要合圖
if ($isMerge && $defaultVariant.sku.includes('-')) {
$(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: "停產"
}