$product = {"id":7893809496163,"title":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Chubbynida 綠野花海","handle":"iphone-12-pro-mod-nx-magsafe-printable-chu03","description":null,"published_at":"2025-10-09T09:33:33+08:00","created_at":"2025-10-07T10:16:38+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-chubbynida","device-iPhone 12 Pro","merge","reseller-chubbynida"],"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":43763347980387,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553081888867,"product_id":7893809496163,"position":10,"created_at":"2025-10-07T10:16:49+08:00","updated_at":"2025-10-07T10:16:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9899aa6eee622b8288c554d0b12e3e02bf34f65e.webp?v=1759803412","variant_ids":[43763347980387]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Chubbynida 綠野花海 - 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-CHU03","featured_media":{"alt":null,"id":26122729586787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9899aa6eee622b8288c554d0b12e3e02bf34f65e.webp?v=1759803412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763351519331,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553081299043,"product_id":7893809496163,"position":7,"created_at":"2025-10-07T10:16:47+08:00","updated_at":"2025-10-07T10:16:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d661af2dbda3a3abd7111e3a8d9ca8efd7c7849d.webp?v=1759803409","variant_ids":[43763351519331]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Chubbynida 綠野花海 - 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-CHU03","featured_media":{"alt":null,"id":26122728996963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d661af2dbda3a3abd7111e3a8d9ca8efd7c7849d.webp?v=1759803409"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763351584867,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553081004131,"product_id":7893809496163,"position":5,"created_at":"2025-10-07T10:16:46+08:00","updated_at":"2025-10-07T10:16:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f4b674b0f1cd4bb8ea80ea3eb1e8af0c70c7654.webp?v=1759803408","variant_ids":[43763351584867]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Chubbynida 綠野花海 - 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-CHU03","featured_media":{"alt":null,"id":26122728702051,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f4b674b0f1cd4bb8ea80ea3eb1e8af0c70c7654.webp?v=1759803408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763351650403,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553080447075,"product_id":7893809496163,"position":1,"created_at":"2025-10-07T10:16:43+08:00","updated_at":"2025-10-07T10:16:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a63e97e7d5b5bd6a81b0e1b230517f759f35bdb6.webp?v=1759803405","variant_ids":[43763351650403]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Chubbynida 綠野花海 - 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-CHU03","featured_media":{"alt":null,"id":26122728144995,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a63e97e7d5b5bd6a81b0e1b230517f759f35bdb6.webp?v=1759803405"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763351683171,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553080610915,"product_id":7893809496163,"position":2,"created_at":"2025-10-07T10:16:44+08:00","updated_at":"2025-10-07T10:16:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c244461865049373d84943da38a83ab69cb14c1a.webp?v=1759803406","variant_ids":[43763351683171]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Chubbynida 綠野花海 - 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-CHU03","featured_media":{"alt":null,"id":26122728308835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c244461865049373d84943da38a83ab69cb14c1a.webp?v=1759803406"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a63e97e7d5b5bd6a81b0e1b230517f759f35bdb6.webp?v=1759803405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c244461865049373d84943da38a83ab69cb14c1a.webp?v=1759803406","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a011f8ec2c54110da542780501686ef89f45b19.webp?v=1759803406","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83ee6b4446c974ba0f2cb4e772598d95b0a974a0.webp?v=1759803407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f4b674b0f1cd4bb8ea80ea3eb1e8af0c70c7654.webp?v=1759803408","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad23a32f90d92d604ccdf3b5c0a51afb1899362c.webp?v=1759803408","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d661af2dbda3a3abd7111e3a8d9ca8efd7c7849d.webp?v=1759803409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c32f5c1b47c3e8eb7c06d3956a7f5de9a559cd3.webp?v=1759803410","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f0c8190f4f5e010427d74f3214e761d5ea29c79.webp?v=1759803411","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9899aa6eee622b8288c554d0b12e3e02bf34f65e.webp?v=1759803412","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddd7c8d87a021b67c0f1567671eb3851c596a568.webp?v=1759803412"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a63e97e7d5b5bd6a81b0e1b230517f759f35bdb6.webp?v=1759803405","options":["color"],"media":[{"alt":null,"id":26122728144995,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a63e97e7d5b5bd6a81b0e1b230517f759f35bdb6.webp?v=1759803405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a63e97e7d5b5bd6a81b0e1b230517f759f35bdb6.webp?v=1759803405","width":2000},{"alt":null,"id":26122728308835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c244461865049373d84943da38a83ab69cb14c1a.webp?v=1759803406"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c244461865049373d84943da38a83ab69cb14c1a.webp?v=1759803406","width":2000},{"alt":null,"id":26122728505443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a011f8ec2c54110da542780501686ef89f45b19.webp?v=1759803406"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a011f8ec2c54110da542780501686ef89f45b19.webp?v=1759803406","width":2000},{"alt":null,"id":26122728603747,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83ee6b4446c974ba0f2cb4e772598d95b0a974a0.webp?v=1759803407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83ee6b4446c974ba0f2cb4e772598d95b0a974a0.webp?v=1759803407","width":2000},{"alt":null,"id":26122728702051,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f4b674b0f1cd4bb8ea80ea3eb1e8af0c70c7654.webp?v=1759803408"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f4b674b0f1cd4bb8ea80ea3eb1e8af0c70c7654.webp?v=1759803408","width":2000},{"alt":null,"id":26122728865891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad23a32f90d92d604ccdf3b5c0a51afb1899362c.webp?v=1759803408"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad23a32f90d92d604ccdf3b5c0a51afb1899362c.webp?v=1759803408","width":2000},{"alt":null,"id":26122728996963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d661af2dbda3a3abd7111e3a8d9ca8efd7c7849d.webp?v=1759803409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d661af2dbda3a3abd7111e3a8d9ca8efd7c7849d.webp?v=1759803409","width":2000},{"alt":null,"id":26122729226339,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c32f5c1b47c3e8eb7c06d3956a7f5de9a559cd3.webp?v=1759803410"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c32f5c1b47c3e8eb7c06d3956a7f5de9a559cd3.webp?v=1759803410","width":2000},{"alt":null,"id":26122729390179,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f0c8190f4f5e010427d74f3214e761d5ea29c79.webp?v=1759803411"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f0c8190f4f5e010427d74f3214e761d5ea29c79.webp?v=1759803411","width":2000},{"alt":null,"id":26122729586787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9899aa6eee622b8288c554d0b12e3e02bf34f65e.webp?v=1759803412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9899aa6eee622b8288c554d0b12e3e02bf34f65e.webp?v=1759803412","width":2000},{"alt":null,"id":26122729685091,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddd7c8d87a021b67c0f1567671eb3851c596a568.webp?v=1759803412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddd7c8d87a021b67c0f1567671eb3851c596a568.webp?v=1759803412","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43763347980387,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553081888867,"product_id":7893809496163,"position":10,"created_at":"2025-10-07T10:16:49+08:00","updated_at":"2025-10-07T10:16:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9899aa6eee622b8288c554d0b12e3e02bf34f65e.webp?v=1759803412","variant_ids":[43763347980387]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Chubbynida 綠野花海 - 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-CHU03","featured_media":{"alt":null,"id":26122729586787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9899aa6eee622b8288c554d0b12e3e02bf34f65e.webp?v=1759803412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763351519331,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553081299043,"product_id":7893809496163,"position":7,"created_at":"2025-10-07T10:16:47+08:00","updated_at":"2025-10-07T10:16:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d661af2dbda3a3abd7111e3a8d9ca8efd7c7849d.webp?v=1759803409","variant_ids":[43763351519331]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Chubbynida 綠野花海 - 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-CHU03","featured_media":{"alt":null,"id":26122728996963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d661af2dbda3a3abd7111e3a8d9ca8efd7c7849d.webp?v=1759803409"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763351584867,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553081004131,"product_id":7893809496163,"position":5,"created_at":"2025-10-07T10:16:46+08:00","updated_at":"2025-10-07T10:16:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f4b674b0f1cd4bb8ea80ea3eb1e8af0c70c7654.webp?v=1759803408","variant_ids":[43763351584867]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Chubbynida 綠野花海 - 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-CHU03","featured_media":{"alt":null,"id":26122728702051,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f4b674b0f1cd4bb8ea80ea3eb1e8af0c70c7654.webp?v=1759803408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763351650403,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553080447075,"product_id":7893809496163,"position":1,"created_at":"2025-10-07T10:16:43+08:00","updated_at":"2025-10-07T10:16:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a63e97e7d5b5bd6a81b0e1b230517f759f35bdb6.webp?v=1759803405","variant_ids":[43763351650403]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Chubbynida 綠野花海 - 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-CHU03","featured_media":{"alt":null,"id":26122728144995,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a63e97e7d5b5bd6a81b0e1b230517f759f35bdb6.webp?v=1759803405"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43763351683171,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553080610915,"product_id":7893809496163,"position":2,"created_at":"2025-10-07T10:16:44+08:00","updated_at":"2025-10-07T10:16:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c244461865049373d84943da38a83ab69cb14c1a.webp?v=1759803406","variant_ids":[43763351683171]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Chubbynida 綠野花海 - 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-CHU03","featured_media":{"alt":null,"id":26122728308835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c244461865049373d84943da38a83ab69cb14c1a.webp?v=1759803406"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43763347980387,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553081888867,"product_id":7893809496163,"position":10,"created_at":"2025-10-07T10:16:49+08:00","updated_at":"2025-10-07T10:16:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9899aa6eee622b8288c554d0b12e3e02bf34f65e.webp?v=1759803412","variant_ids":[43763347980387]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Chubbynida 綠野花海 - 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-CHU03","featured_media":{"alt":null,"id":26122729586787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9899aa6eee622b8288c554d0b12e3e02bf34f65e.webp?v=1759803412"}},"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: "停產" }