$product = {"id":7921107271779,"title":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的讀自快樂","handle":"iphone-12-pro-mod-nx-magsafe-hd69","description":null,"published_at":"2025-11-13T09:53:00+08:00","created_at":"2025-11-11T09:30:53+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-incrediville","device-iPhone 12 Pro","merge","reseller-incrediville"],"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":43830782918755,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34785852981347,"product_id":7921107271779,"position":8,"created_at":"2025-11-11T09:31:02+08:00","updated_at":"2025-11-11T09:31:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154dff3ede1e85bad67019c008f3e543d4720da6.webp?v=1762824664","variant_ids":[43830782918755]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的讀自快樂 - 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-HD69","featured_media":{"alt":null,"id":26351310209123,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154dff3ede1e85bad67019c008f3e543d4720da6.webp?v=1762824664"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830783737955,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34785852031075,"product_id":7921107271779,"position":4,"created_at":"2025-11-11T09:31:00+08:00","updated_at":"2025-11-11T09:31:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1da7dd712d86aff08eb75248f0d347df71b52c60.webp?v=1762824662","variant_ids":[43830783737955]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的讀自快樂 - 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-HD69","featured_media":{"alt":null,"id":26351309258851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1da7dd712d86aff08eb75248f0d347df71b52c60.webp?v=1762824662"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830783770723,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34785853767779,"product_id":7921107271779,"position":11,"created_at":"2025-11-11T09:31:04+08:00","updated_at":"2025-11-11T09:31:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7174d510dd3961a27f6295dd89365c8b1bbf8c52.webp?v=1762824666","variant_ids":[43830783770723]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的讀自快樂 - 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-HD69","featured_media":{"alt":null,"id":26351311093859,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7174d510dd3961a27f6295dd89365c8b1bbf8c52.webp?v=1762824666"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830783869027,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34785852686435,"product_id":7921107271779,"position":7,"created_at":"2025-11-11T09:31:02+08:00","updated_at":"2025-11-11T09:31:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16c371d78e5bdb9ecc40c7fc1ab25c01f734d7e5.webp?v=1762824664","variant_ids":[43830783869027]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的讀自快樂 - 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-HD69","featured_media":{"alt":null,"id":26351310012515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16c371d78e5bdb9ecc40c7fc1ab25c01f734d7e5.webp?v=1762824664"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830784032867,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34785853440099,"product_id":7921107271779,"position":10,"created_at":"2025-11-11T09:31:04+08:00","updated_at":"2025-11-11T09:31:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1c9f5a82601b6ea7bddc05b9f36646284f4b09.webp?v=1762824666","variant_ids":[43830784032867]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的讀自快樂 - 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-HD69","featured_media":{"alt":null,"id":26351310667875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1c9f5a82601b6ea7bddc05b9f36646284f4b09.webp?v=1762824666"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36a48422a8fae3f9c26c5f332c9db66cf59dc54e.webp?v=1762824659","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd59a90cf131e031d8112de2a0fc061f13f8afd5.webp?v=1762824661","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5695cc93b91d73117dc8ec07537039d8b7f24a8.webp?v=1762824662","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1da7dd712d86aff08eb75248f0d347df71b52c60.webp?v=1762824662","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7f1e9dbaa089035f2ebf59ec736698ec8a9dbd.webp?v=1762824662","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35eae36f37caa70e9d99732bcd6a32a691c70b90.webp?v=1762824663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16c371d78e5bdb9ecc40c7fc1ab25c01f734d7e5.webp?v=1762824664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154dff3ede1e85bad67019c008f3e543d4720da6.webp?v=1762824664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb065ca960f69f61c7c564753b02c48fe9ba7fd1.webp?v=1762824665","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1c9f5a82601b6ea7bddc05b9f36646284f4b09.webp?v=1762824666","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7174d510dd3961a27f6295dd89365c8b1bbf8c52.webp?v=1762824666"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36a48422a8fae3f9c26c5f332c9db66cf59dc54e.webp?v=1762824659","options":["color"],"media":[{"alt":null,"id":26351308734563,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36a48422a8fae3f9c26c5f332c9db66cf59dc54e.webp?v=1762824659"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36a48422a8fae3f9c26c5f332c9db66cf59dc54e.webp?v=1762824659","width":2000},{"alt":null,"id":26351308996707,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd59a90cf131e031d8112de2a0fc061f13f8afd5.webp?v=1762824661"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd59a90cf131e031d8112de2a0fc061f13f8afd5.webp?v=1762824661","width":2000},{"alt":null,"id":26351309095011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5695cc93b91d73117dc8ec07537039d8b7f24a8.webp?v=1762824662"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5695cc93b91d73117dc8ec07537039d8b7f24a8.webp?v=1762824662","width":2000},{"alt":null,"id":26351309258851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1da7dd712d86aff08eb75248f0d347df71b52c60.webp?v=1762824662"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1da7dd712d86aff08eb75248f0d347df71b52c60.webp?v=1762824662","width":2000},{"alt":null,"id":26351309455459,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7f1e9dbaa089035f2ebf59ec736698ec8a9dbd.webp?v=1762824662"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7f1e9dbaa089035f2ebf59ec736698ec8a9dbd.webp?v=1762824662","width":2000},{"alt":null,"id":26351309783139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35eae36f37caa70e9d99732bcd6a32a691c70b90.webp?v=1762824663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35eae36f37caa70e9d99732bcd6a32a691c70b90.webp?v=1762824663","width":2000},{"alt":null,"id":26351310012515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16c371d78e5bdb9ecc40c7fc1ab25c01f734d7e5.webp?v=1762824664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16c371d78e5bdb9ecc40c7fc1ab25c01f734d7e5.webp?v=1762824664","width":2000},{"alt":null,"id":26351310209123,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154dff3ede1e85bad67019c008f3e543d4720da6.webp?v=1762824664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154dff3ede1e85bad67019c008f3e543d4720da6.webp?v=1762824664","width":2000},{"alt":null,"id":26351310471267,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb065ca960f69f61c7c564753b02c48fe9ba7fd1.webp?v=1762824665"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb065ca960f69f61c7c564753b02c48fe9ba7fd1.webp?v=1762824665","width":2000},{"alt":null,"id":26351310667875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1c9f5a82601b6ea7bddc05b9f36646284f4b09.webp?v=1762824666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1c9f5a82601b6ea7bddc05b9f36646284f4b09.webp?v=1762824666","width":2000},{"alt":null,"id":26351311093859,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7174d510dd3961a27f6295dd89365c8b1bbf8c52.webp?v=1762824666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7174d510dd3961a27f6295dd89365c8b1bbf8c52.webp?v=1762824666","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43830782918755,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34785852981347,"product_id":7921107271779,"position":8,"created_at":"2025-11-11T09:31:02+08:00","updated_at":"2025-11-11T09:31:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154dff3ede1e85bad67019c008f3e543d4720da6.webp?v=1762824664","variant_ids":[43830782918755]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的讀自快樂 - 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-HD69","featured_media":{"alt":null,"id":26351310209123,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154dff3ede1e85bad67019c008f3e543d4720da6.webp?v=1762824664"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830783737955,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34785852031075,"product_id":7921107271779,"position":4,"created_at":"2025-11-11T09:31:00+08:00","updated_at":"2025-11-11T09:31:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1da7dd712d86aff08eb75248f0d347df71b52c60.webp?v=1762824662","variant_ids":[43830783737955]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的讀自快樂 - 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-HD69","featured_media":{"alt":null,"id":26351309258851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1da7dd712d86aff08eb75248f0d347df71b52c60.webp?v=1762824662"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830783770723,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34785853767779,"product_id":7921107271779,"position":11,"created_at":"2025-11-11T09:31:04+08:00","updated_at":"2025-11-11T09:31:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7174d510dd3961a27f6295dd89365c8b1bbf8c52.webp?v=1762824666","variant_ids":[43830783770723]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的讀自快樂 - 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-HD69","featured_media":{"alt":null,"id":26351311093859,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7174d510dd3961a27f6295dd89365c8b1bbf8c52.webp?v=1762824666"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830783869027,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34785852686435,"product_id":7921107271779,"position":7,"created_at":"2025-11-11T09:31:02+08:00","updated_at":"2025-11-11T09:31:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16c371d78e5bdb9ecc40c7fc1ab25c01f734d7e5.webp?v=1762824664","variant_ids":[43830783869027]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的讀自快樂 - 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-HD69","featured_media":{"alt":null,"id":26351310012515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16c371d78e5bdb9ecc40c7fc1ab25c01f734d7e5.webp?v=1762824664"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830784032867,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34785853440099,"product_id":7921107271779,"position":10,"created_at":"2025-11-11T09:31:04+08:00","updated_at":"2025-11-11T09:31:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1c9f5a82601b6ea7bddc05b9f36646284f4b09.webp?v=1762824666","variant_ids":[43830784032867]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的讀自快樂 - 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-HD69","featured_media":{"alt":null,"id":26351310667875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1c9f5a82601b6ea7bddc05b9f36646284f4b09.webp?v=1762824666"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43830782918755,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34785852981347,"product_id":7921107271779,"position":8,"created_at":"2025-11-11T09:31:02+08:00","updated_at":"2025-11-11T09:31:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154dff3ede1e85bad67019c008f3e543d4720da6.webp?v=1762824664","variant_ids":[43830782918755]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 所長的讀自快樂 - 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-HD69","featured_media":{"alt":null,"id":26351310209123,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154dff3ede1e85bad67019c008f3e543d4720da6.webp?v=1762824664"}},"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: "停產" }