$product = {"id":7921931092067,"title":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 阿媽家的吻","handle":"iphone-12-pro-mod-nx-magsafe-hd74","description":null,"published_at":"2025-11-13T09:45:37+08:00","created_at":"2025-11-13T09:27:37+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":43834580598883,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793918988387,"product_id":7921931092067,"position":2,"created_at":"2025-11-13T09:27:41+08:00","updated_at":"2025-11-13T09:27:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/659ed6a3e1ecc2f523fb244283c1a1225f17aa32.webp?v=1762997263","variant_ids":[43834580598883]},"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-HD74","featured_media":{"alt":null,"id":26359339319395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/659ed6a3e1ecc2f523fb244283c1a1225f17aa32.webp?v=1762997263"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834582040675,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793918791779,"product_id":7921931092067,"position":1,"created_at":"2025-11-13T09:27:41+08:00","updated_at":"2025-11-13T09:27:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0733a7eadcadc10b1ecd6ff1403683d7e2b1eec2.webp?v=1762997263","variant_ids":[43834582040675]},"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-HD74","featured_media":{"alt":null,"id":26359339057251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0733a7eadcadc10b1ecd6ff1403683d7e2b1eec2.webp?v=1762997263"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834582138979,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793919643747,"product_id":7921931092067,"position":5,"created_at":"2025-11-13T09:27:43+08:00","updated_at":"2025-11-13T09:27:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81d016de154a53117d3639b7874463435dc1d15e.webp?v=1762997265","variant_ids":[43834582138979]},"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-HD74","featured_media":{"alt":null,"id":26359339941987,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81d016de154a53117d3639b7874463435dc1d15e.webp?v=1762997265"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834582171747,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793919840355,"product_id":7921931092067,"position":6,"created_at":"2025-11-13T09:27:44+08:00","updated_at":"2025-11-13T09:27:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c265e6bde1f4bfae9d11aec460f2b1f5c4296707.webp?v=1762997266","variant_ids":[43834582171747]},"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-HD74","featured_media":{"alt":null,"id":26359340138595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c265e6bde1f4bfae9d11aec460f2b1f5c4296707.webp?v=1762997266"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834582270051,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793920790627,"product_id":7921931092067,"position":10,"created_at":"2025-11-13T09:27:47+08:00","updated_at":"2025-11-13T09:27:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/777e3ce60824dd087f7606125ea6b0498728ebde.webp?v=1762997269","variant_ids":[43834582270051]},"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-HD74","featured_media":{"alt":null,"id":26359341088867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/777e3ce60824dd087f7606125ea6b0498728ebde.webp?v=1762997269"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0733a7eadcadc10b1ecd6ff1403683d7e2b1eec2.webp?v=1762997263","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/659ed6a3e1ecc2f523fb244283c1a1225f17aa32.webp?v=1762997263","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79b66edc60f5a3f2c01fe70c26ab6e49c20c4632.webp?v=1762997264","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e1da7cf0b0a37c492e4801c94e806b186ad3b2c.webp?v=1762997265","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81d016de154a53117d3639b7874463435dc1d15e.webp?v=1762997265","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c265e6bde1f4bfae9d11aec460f2b1f5c4296707.webp?v=1762997266","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc6338deadad4df7c346f9fa01d5d3d82d1e515d.webp?v=1762997266","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07bca765e97bff028be529d544b0253dddb492e3.webp?v=1762997267","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86f9000178d1e4bf1a43bea04062da87e47c75a4.webp?v=1762997268","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/777e3ce60824dd087f7606125ea6b0498728ebde.webp?v=1762997269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42376a372933126bd17e97b94089f40c583d0fe9.webp?v=1762997269"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0733a7eadcadc10b1ecd6ff1403683d7e2b1eec2.webp?v=1762997263","options":["color"],"media":[{"alt":null,"id":26359339057251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0733a7eadcadc10b1ecd6ff1403683d7e2b1eec2.webp?v=1762997263"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0733a7eadcadc10b1ecd6ff1403683d7e2b1eec2.webp?v=1762997263","width":2000},{"alt":null,"id":26359339319395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/659ed6a3e1ecc2f523fb244283c1a1225f17aa32.webp?v=1762997263"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/659ed6a3e1ecc2f523fb244283c1a1225f17aa32.webp?v=1762997263","width":2000},{"alt":null,"id":26359339516003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79b66edc60f5a3f2c01fe70c26ab6e49c20c4632.webp?v=1762997264"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79b66edc60f5a3f2c01fe70c26ab6e49c20c4632.webp?v=1762997264","width":2000},{"alt":null,"id":26359339745379,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e1da7cf0b0a37c492e4801c94e806b186ad3b2c.webp?v=1762997265"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e1da7cf0b0a37c492e4801c94e806b186ad3b2c.webp?v=1762997265","width":2000},{"alt":null,"id":26359339941987,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81d016de154a53117d3639b7874463435dc1d15e.webp?v=1762997265"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81d016de154a53117d3639b7874463435dc1d15e.webp?v=1762997265","width":2000},{"alt":null,"id":26359340138595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c265e6bde1f4bfae9d11aec460f2b1f5c4296707.webp?v=1762997266"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c265e6bde1f4bfae9d11aec460f2b1f5c4296707.webp?v=1762997266","width":2000},{"alt":null,"id":26359340367971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc6338deadad4df7c346f9fa01d5d3d82d1e515d.webp?v=1762997266"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc6338deadad4df7c346f9fa01d5d3d82d1e515d.webp?v=1762997266","width":2000},{"alt":null,"id":26359340597347,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07bca765e97bff028be529d544b0253dddb492e3.webp?v=1762997267"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07bca765e97bff028be529d544b0253dddb492e3.webp?v=1762997267","width":2000},{"alt":null,"id":26359340859491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86f9000178d1e4bf1a43bea04062da87e47c75a4.webp?v=1762997268"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86f9000178d1e4bf1a43bea04062da87e47c75a4.webp?v=1762997268","width":2000},{"alt":null,"id":26359341088867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/777e3ce60824dd087f7606125ea6b0498728ebde.webp?v=1762997269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/777e3ce60824dd087f7606125ea6b0498728ebde.webp?v=1762997269","width":2000},{"alt":null,"id":26359341351011,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42376a372933126bd17e97b94089f40c583d0fe9.webp?v=1762997269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42376a372933126bd17e97b94089f40c583d0fe9.webp?v=1762997269","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43834580598883,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793918988387,"product_id":7921931092067,"position":2,"created_at":"2025-11-13T09:27:41+08:00","updated_at":"2025-11-13T09:27:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/659ed6a3e1ecc2f523fb244283c1a1225f17aa32.webp?v=1762997263","variant_ids":[43834580598883]},"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-HD74","featured_media":{"alt":null,"id":26359339319395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/659ed6a3e1ecc2f523fb244283c1a1225f17aa32.webp?v=1762997263"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834582040675,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793918791779,"product_id":7921931092067,"position":1,"created_at":"2025-11-13T09:27:41+08:00","updated_at":"2025-11-13T09:27:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0733a7eadcadc10b1ecd6ff1403683d7e2b1eec2.webp?v=1762997263","variant_ids":[43834582040675]},"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-HD74","featured_media":{"alt":null,"id":26359339057251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0733a7eadcadc10b1ecd6ff1403683d7e2b1eec2.webp?v=1762997263"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834582138979,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793919643747,"product_id":7921931092067,"position":5,"created_at":"2025-11-13T09:27:43+08:00","updated_at":"2025-11-13T09:27:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81d016de154a53117d3639b7874463435dc1d15e.webp?v=1762997265","variant_ids":[43834582138979]},"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-HD74","featured_media":{"alt":null,"id":26359339941987,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81d016de154a53117d3639b7874463435dc1d15e.webp?v=1762997265"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834582171747,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793919840355,"product_id":7921931092067,"position":6,"created_at":"2025-11-13T09:27:44+08:00","updated_at":"2025-11-13T09:27:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c265e6bde1f4bfae9d11aec460f2b1f5c4296707.webp?v=1762997266","variant_ids":[43834582171747]},"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-HD74","featured_media":{"alt":null,"id":26359340138595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c265e6bde1f4bfae9d11aec460f2b1f5c4296707.webp?v=1762997266"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834582270051,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793920790627,"product_id":7921931092067,"position":10,"created_at":"2025-11-13T09:27:47+08:00","updated_at":"2025-11-13T09:27:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/777e3ce60824dd087f7606125ea6b0498728ebde.webp?v=1762997269","variant_ids":[43834582270051]},"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-HD74","featured_media":{"alt":null,"id":26359341088867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/777e3ce60824dd087f7606125ea6b0498728ebde.webp?v=1762997269"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43834580598883,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793918988387,"product_id":7921931092067,"position":2,"created_at":"2025-11-13T09:27:41+08:00","updated_at":"2025-11-13T09:27:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/659ed6a3e1ecc2f523fb244283c1a1225f17aa32.webp?v=1762997263","variant_ids":[43834580598883]},"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-HD74","featured_media":{"alt":null,"id":26359339319395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/659ed6a3e1ecc2f523fb244283c1a1225f17aa32.webp?v=1762997263"}},"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: "停產" }