Home
›
iPhone XR Mod NX ilovedoodle Mindful Cat - 冷靜
$product = {"id":7769538723939,"title":"iPhone XR Mod NX ilovedoodle Mindful Cat - 冷靜","handle":"iphone-xr-mod-nx-printable-xf46","description":null,"published_at":"2025-07-16T17:25:43+08:00","created_at":"2025-04-15T17:29:40+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone XR","merge","reseller-ilovedoodle"],"price":90000,"price_min":90000,"price_max":90000,"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":43302822150243,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108524-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197580349539,"product_id":7769538723939,"position":2,"created_at":"2025-07-16T15:09:34+08:00","updated_at":"2025-07-16T15:09:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a86b0c446d58bb9c9dd57964c62ef7eb0e93a48d_6eee2d82-7c27-41b3-8e76-0d05ce5be1d6.webp?v=1752649776","variant_ids":[43302822150243]},"available":true,"name":"iPhone XR Mod NX ilovedoodle Mindful Cat - 冷靜 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108524-XF46","featured_media":{"alt":null,"id":25829974736995,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a86b0c446d58bb9c9dd57964c62ef7eb0e93a48d_6eee2d82-7c27-41b3-8e76-0d05ce5be1d6.webp?v=1752649776"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302829719651,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0108504-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197580447843,"product_id":7769538723939,"position":3,"created_at":"2025-07-16T15:09:35+08:00","updated_at":"2025-07-16T15:09:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b736b951444d43234133bc1025675d9e488cbd36_dfd350d0-fd86-4c7b-bc90-ad6f7ca0fd6a.webp?v=1752649777","variant_ids":[43302829719651]},"available":true,"name":"iPhone XR Mod NX ilovedoodle Mindful Cat - 冷靜 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108504-XF46","featured_media":{"alt":null,"id":25829974999139,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b736b951444d43234133bc1025675d9e488cbd36_dfd350d0-fd86-4c7b-bc90-ad6f7ca0fd6a.webp?v=1752649777"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302829817955,"title":"Camo Green","option1":"Camo Green","option2":null,"option3":null,"sku":"NPB0108515-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197581561955,"product_id":7769538723939,"position":6,"created_at":"2025-07-16T15:09:36+08:00","updated_at":"2025-07-16T15:09:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e2ee9fbad0da953efdd57db50c83570b758fc1_b6bf98f0-7f71-49d1-8521-d04cffafb115.webp?v=1752649778","variant_ids":[43302829817955]},"available":true,"name":"iPhone XR Mod NX ilovedoodle Mindful Cat - 冷靜 - Camo Green","public_title":"Camo Green","options":["Camo Green"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108515-XF46","featured_media":{"alt":null,"id":25829975588963,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e2ee9fbad0da953efdd57db50c83570b758fc1_b6bf98f0-7f71-49d1-8521-d04cffafb115.webp?v=1752649778"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302829850723,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01085C1-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197583167587,"product_id":7769538723939,"position":11,"created_at":"2025-07-16T15:09:39+08:00","updated_at":"2025-07-16T15:09:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e62c878aae1dc58a133338e302be027691885a5_88d1a3e0-01ca-46e8-a320-1fefe73d16a1.webp?v=1752649781","variant_ids":[43302829850723]},"available":true,"name":"iPhone XR Mod NX ilovedoodle Mindful Cat - 冷靜 - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01085C1-XF46","featured_media":{"alt":null,"id":25829976440931,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e62c878aae1dc58a133338e302be027691885a5_88d1a3e0-01ca-46e8-a320-1fefe73d16a1.webp?v=1752649781"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe48625c1f260ea0db98f7dee5260d2ba073ab1.webp?v=1744709389","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a86b0c446d58bb9c9dd57964c62ef7eb0e93a48d_6eee2d82-7c27-41b3-8e76-0d05ce5be1d6.webp?v=1752649776","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b736b951444d43234133bc1025675d9e488cbd36_dfd350d0-fd86-4c7b-bc90-ad6f7ca0fd6a.webp?v=1752649777","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b6aadc0c17c7c7e51ef90cb267e53df988ba2d0_f2539ecc-a7c5-4df6-b3ee-ec9fa57bc117.webp?v=1752649777","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18d4d3cfc2bf2121786efcb1ab056a3cc2e2edb9_96a441cb-e34c-458e-996a-eefdd1944d4a.webp?v=1752649778","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e2ee9fbad0da953efdd57db50c83570b758fc1_b6bf98f0-7f71-49d1-8521-d04cffafb115.webp?v=1752649778","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b442117ede7664a01644345cb38048ba7bda6ec2_66dc134c-8699-45e2-93d4-498a864d047d.webp?v=1752649779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1af5caed1da619fc26b34f47913f1560e836b9f9_20e4b7a2-2c3b-42f0-8629-400e5f3446e0.webp?v=1752649780","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edcce711912d4b640672c8dbb0e3035591571c2d_9ea0dac6-5524-463f-b27b-9d9bf4067df2.webp?v=1752649780","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad780aa20847534c20be5e140245a434fc79244c_71a51a93-b2c4-498c-8abb-cbd55b111a9b.webp?v=1752649781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e62c878aae1dc58a133338e302be027691885a5_88d1a3e0-01ca-46e8-a320-1fefe73d16a1.webp?v=1752649781"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe48625c1f260ea0db98f7dee5260d2ba073ab1.webp?v=1744709389","options":["color"],"media":[{"alt":null,"id":25495743660131,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe48625c1f260ea0db98f7dee5260d2ba073ab1.webp?v=1744709389"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe48625c1f260ea0db98f7dee5260d2ba073ab1.webp?v=1744709389","width":2000},{"alt":null,"id":25829974736995,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a86b0c446d58bb9c9dd57964c62ef7eb0e93a48d_6eee2d82-7c27-41b3-8e76-0d05ce5be1d6.webp?v=1752649776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a86b0c446d58bb9c9dd57964c62ef7eb0e93a48d_6eee2d82-7c27-41b3-8e76-0d05ce5be1d6.webp?v=1752649776","width":2000},{"alt":null,"id":25829974999139,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b736b951444d43234133bc1025675d9e488cbd36_dfd350d0-fd86-4c7b-bc90-ad6f7ca0fd6a.webp?v=1752649777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b736b951444d43234133bc1025675d9e488cbd36_dfd350d0-fd86-4c7b-bc90-ad6f7ca0fd6a.webp?v=1752649777","width":2000},{"alt":null,"id":25829975195747,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b6aadc0c17c7c7e51ef90cb267e53df988ba2d0_f2539ecc-a7c5-4df6-b3ee-ec9fa57bc117.webp?v=1752649777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b6aadc0c17c7c7e51ef90cb267e53df988ba2d0_f2539ecc-a7c5-4df6-b3ee-ec9fa57bc117.webp?v=1752649777","width":2000},{"alt":null,"id":25829975392355,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18d4d3cfc2bf2121786efcb1ab056a3cc2e2edb9_96a441cb-e34c-458e-996a-eefdd1944d4a.webp?v=1752649778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18d4d3cfc2bf2121786efcb1ab056a3cc2e2edb9_96a441cb-e34c-458e-996a-eefdd1944d4a.webp?v=1752649778","width":2000},{"alt":null,"id":25829975588963,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e2ee9fbad0da953efdd57db50c83570b758fc1_b6bf98f0-7f71-49d1-8521-d04cffafb115.webp?v=1752649778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e2ee9fbad0da953efdd57db50c83570b758fc1_b6bf98f0-7f71-49d1-8521-d04cffafb115.webp?v=1752649778","width":2000},{"alt":null,"id":25829975720035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b442117ede7664a01644345cb38048ba7bda6ec2_66dc134c-8699-45e2-93d4-498a864d047d.webp?v=1752649779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b442117ede7664a01644345cb38048ba7bda6ec2_66dc134c-8699-45e2-93d4-498a864d047d.webp?v=1752649779","width":2000},{"alt":null,"id":25829975916643,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1af5caed1da619fc26b34f47913f1560e836b9f9_20e4b7a2-2c3b-42f0-8629-400e5f3446e0.webp?v=1752649780"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1af5caed1da619fc26b34f47913f1560e836b9f9_20e4b7a2-2c3b-42f0-8629-400e5f3446e0.webp?v=1752649780","width":2000},{"alt":null,"id":25829976080483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edcce711912d4b640672c8dbb0e3035591571c2d_9ea0dac6-5524-463f-b27b-9d9bf4067df2.webp?v=1752649780"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edcce711912d4b640672c8dbb0e3035591571c2d_9ea0dac6-5524-463f-b27b-9d9bf4067df2.webp?v=1752649780","width":2000},{"alt":null,"id":25829976309859,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad780aa20847534c20be5e140245a434fc79244c_71a51a93-b2c4-498c-8abb-cbd55b111a9b.webp?v=1752649781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad780aa20847534c20be5e140245a434fc79244c_71a51a93-b2c4-498c-8abb-cbd55b111a9b.webp?v=1752649781","width":2000},{"alt":null,"id":25829976440931,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e62c878aae1dc58a133338e302be027691885a5_88d1a3e0-01ca-46e8-a320-1fefe73d16a1.webp?v=1752649781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e62c878aae1dc58a133338e302be027691885a5_88d1a3e0-01ca-46e8-a320-1fefe73d16a1.webp?v=1752649781","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43302822150243,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108524-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197580349539,"product_id":7769538723939,"position":2,"created_at":"2025-07-16T15:09:34+08:00","updated_at":"2025-07-16T15:09:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a86b0c446d58bb9c9dd57964c62ef7eb0e93a48d_6eee2d82-7c27-41b3-8e76-0d05ce5be1d6.webp?v=1752649776","variant_ids":[43302822150243]},"available":true,"name":"iPhone XR Mod NX ilovedoodle Mindful Cat - 冷靜 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108524-XF46","featured_media":{"alt":null,"id":25829974736995,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a86b0c446d58bb9c9dd57964c62ef7eb0e93a48d_6eee2d82-7c27-41b3-8e76-0d05ce5be1d6.webp?v=1752649776"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302829719651,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0108504-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197580447843,"product_id":7769538723939,"position":3,"created_at":"2025-07-16T15:09:35+08:00","updated_at":"2025-07-16T15:09:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b736b951444d43234133bc1025675d9e488cbd36_dfd350d0-fd86-4c7b-bc90-ad6f7ca0fd6a.webp?v=1752649777","variant_ids":[43302829719651]},"available":true,"name":"iPhone XR Mod NX ilovedoodle Mindful Cat - 冷靜 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108504-XF46","featured_media":{"alt":null,"id":25829974999139,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b736b951444d43234133bc1025675d9e488cbd36_dfd350d0-fd86-4c7b-bc90-ad6f7ca0fd6a.webp?v=1752649777"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302829817955,"title":"Camo Green","option1":"Camo Green","option2":null,"option3":null,"sku":"NPB0108515-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197581561955,"product_id":7769538723939,"position":6,"created_at":"2025-07-16T15:09:36+08:00","updated_at":"2025-07-16T15:09:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e2ee9fbad0da953efdd57db50c83570b758fc1_b6bf98f0-7f71-49d1-8521-d04cffafb115.webp?v=1752649778","variant_ids":[43302829817955]},"available":true,"name":"iPhone XR Mod NX ilovedoodle Mindful Cat - 冷靜 - Camo Green","public_title":"Camo Green","options":["Camo Green"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108515-XF46","featured_media":{"alt":null,"id":25829975588963,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e2ee9fbad0da953efdd57db50c83570b758fc1_b6bf98f0-7f71-49d1-8521-d04cffafb115.webp?v=1752649778"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302829850723,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01085C1-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197583167587,"product_id":7769538723939,"position":11,"created_at":"2025-07-16T15:09:39+08:00","updated_at":"2025-07-16T15:09:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e62c878aae1dc58a133338e302be027691885a5_88d1a3e0-01ca-46e8-a320-1fefe73d16a1.webp?v=1752649781","variant_ids":[43302829850723]},"available":true,"name":"iPhone XR Mod NX ilovedoodle Mindful Cat - 冷靜 - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01085C1-XF46","featured_media":{"alt":null,"id":25829976440931,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e62c878aae1dc58a133338e302be027691885a5_88d1a3e0-01ca-46e8-a320-1fefe73d16a1.webp?v=1752649781"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43302822150243,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108524-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197580349539,"product_id":7769538723939,"position":2,"created_at":"2025-07-16T15:09:34+08:00","updated_at":"2025-07-16T15:09:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a86b0c446d58bb9c9dd57964c62ef7eb0e93a48d_6eee2d82-7c27-41b3-8e76-0d05ce5be1d6.webp?v=1752649776","variant_ids":[43302822150243]},"available":true,"name":"iPhone XR Mod NX ilovedoodle Mindful Cat - 冷靜 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108524-XF46","featured_media":{"alt":null,"id":25829974736995,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a86b0c446d58bb9c9dd57964c62ef7eb0e93a48d_6eee2d82-7c27-41b3-8e76-0d05ce5be1d6.webp?v=1752649776"}},"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: "停產"
}