$product = {"id":7937931149411,"title":"iPhone 12 \/ 12 Pro Mod NX 進擊的巨人 Attack on Titan 進擊的巨人 vs 鎧之巨人","handle":"iphone-12-pro-mod-nx-xu18","description":null,"published_at":"2025-12-12T10:30:04+08:00","created_at":"2025-12-11T16:00:54+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-attack-on-titan","device-iPhone 12 Pro","merge","reseller-attack-on-titan"],"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":43884451987555,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01185C1-XU18","requires_shipping":true,"taxable":true,"featured_image":{"id":34933135835235,"product_id":7937931149411,"position":5,"created_at":"2025-12-11T16:01:00+08:00","updated_at":"2025-12-11T16:01:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9983c9947f60c66ef35dc0a5152ecc4887ddba0.webp?v=1765440062","variant_ids":[43884451987555]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX 進擊的巨人 Attack on Titan 進擊的巨人 vs 鎧之巨人 - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01185C1-XU18","featured_media":{"alt":null,"id":26495507595363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9983c9947f60c66ef35dc0a5152ecc4887ddba0.webp?v=1765440062"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884455395427,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"NPB0118569-XU18","requires_shipping":true,"taxable":true,"featured_image":{"id":34933135212643,"product_id":7937931149411,"position":1,"created_at":"2025-12-11T16:00:58+08:00","updated_at":"2025-12-11T16:01:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff78a0b10f8df26d9ba8a46c9eef557bfee24959.webp?v=1765440060","variant_ids":[43884455395427]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX 進擊的巨人 Attack on Titan 進擊的巨人 vs 鎧之巨人 - Graphite","public_title":"Graphite","options":["Graphite"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118569-XU18","featured_media":{"alt":null,"id":26495506972771,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff78a0b10f8df26d9ba8a46c9eef557bfee24959.webp?v=1765440060"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884455559267,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118524-XU18","requires_shipping":true,"taxable":true,"featured_image":{"id":34933136425059,"product_id":7937931149411,"position":9,"created_at":"2025-12-11T16:01:03+08:00","updated_at":"2025-12-11T16:01:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5de01b09effcc84cf4514f2eedc5bc9d26b96ded.webp?v=1765440065","variant_ids":[43884455559267]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX 進擊的巨人 Attack on Titan 進擊的巨人 vs 鎧之巨人 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118524-XU18","featured_media":{"alt":null,"id":26495508283491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5de01b09effcc84cf4514f2eedc5bc9d26b96ded.webp?v=1765440065"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884455624803,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0118504-XU18","requires_shipping":true,"taxable":true,"featured_image":{"id":34933136326755,"product_id":7937931149411,"position":8,"created_at":"2025-12-11T16:01:02+08:00","updated_at":"2025-12-11T16:01:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b88560c10dffe84b0453b35cec7c0fef76991782.webp?v=1765440064","variant_ids":[43884455624803]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX 進擊的巨人 Attack on Titan 進擊的巨人 vs 鎧之巨人 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118504-XU18","featured_media":{"alt":null,"id":26495508086883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b88560c10dffe84b0453b35cec7c0fef76991782.webp?v=1765440064"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884455657571,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01185J5-XU18","requires_shipping":true,"taxable":true,"featured_image":{"id":34933135474787,"product_id":7937931149411,"position":3,"created_at":"2025-12-11T16:00:59+08:00","updated_at":"2025-12-11T16:01:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959323ad5adb7efb86170ab3f86e8770cdbb141b.webp?v=1765440061","variant_ids":[43884455657571]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX 進擊的巨人 Attack on Titan 進擊的巨人 vs 鎧之巨人 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01185J5-XU18","featured_media":{"alt":null,"id":26495507234915,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959323ad5adb7efb86170ab3f86e8770cdbb141b.webp?v=1765440061"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff78a0b10f8df26d9ba8a46c9eef557bfee24959.webp?v=1765440060","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/460b8b40f9d00bce2324e0236dffe5fa19d4e0ce.webp?v=1765440061","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959323ad5adb7efb86170ab3f86e8770cdbb141b.webp?v=1765440061","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59de5af83878ad23206db36e25c8c11134b31077.webp?v=1765440062","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9983c9947f60c66ef35dc0a5152ecc4887ddba0.webp?v=1765440062","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58ae16e5314770f0c30a8440f32b88443ca678b5.webp?v=1765440063","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65182bfd7ccee5ddf61ea5655ae92dc8dcc6423f.webp?v=1765440063","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b88560c10dffe84b0453b35cec7c0fef76991782.webp?v=1765440064","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5de01b09effcc84cf4514f2eedc5bc9d26b96ded.webp?v=1765440065","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5b204cf8befda18dd8d40a33cb9f64767368f1.webp?v=1765440065","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ed3751202786f8aeda6a504d397856761a3a08f.webp?v=1765440066"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff78a0b10f8df26d9ba8a46c9eef557bfee24959.webp?v=1765440060","options":["color"],"media":[{"alt":null,"id":26495506972771,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff78a0b10f8df26d9ba8a46c9eef557bfee24959.webp?v=1765440060"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff78a0b10f8df26d9ba8a46c9eef557bfee24959.webp?v=1765440060","width":2000},{"alt":null,"id":26495507071075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/460b8b40f9d00bce2324e0236dffe5fa19d4e0ce.webp?v=1765440061"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/460b8b40f9d00bce2324e0236dffe5fa19d4e0ce.webp?v=1765440061","width":2000},{"alt":null,"id":26495507234915,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959323ad5adb7efb86170ab3f86e8770cdbb141b.webp?v=1765440061"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959323ad5adb7efb86170ab3f86e8770cdbb141b.webp?v=1765440061","width":2000},{"alt":null,"id":26495507431523,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59de5af83878ad23206db36e25c8c11134b31077.webp?v=1765440062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59de5af83878ad23206db36e25c8c11134b31077.webp?v=1765440062","width":2000},{"alt":null,"id":26495507595363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9983c9947f60c66ef35dc0a5152ecc4887ddba0.webp?v=1765440062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9983c9947f60c66ef35dc0a5152ecc4887ddba0.webp?v=1765440062","width":2000},{"alt":null,"id":26495507824739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58ae16e5314770f0c30a8440f32b88443ca678b5.webp?v=1765440063"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58ae16e5314770f0c30a8440f32b88443ca678b5.webp?v=1765440063","width":2000},{"alt":null,"id":26495507988579,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65182bfd7ccee5ddf61ea5655ae92dc8dcc6423f.webp?v=1765440063"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65182bfd7ccee5ddf61ea5655ae92dc8dcc6423f.webp?v=1765440063","width":2000},{"alt":null,"id":26495508086883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b88560c10dffe84b0453b35cec7c0fef76991782.webp?v=1765440064"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b88560c10dffe84b0453b35cec7c0fef76991782.webp?v=1765440064","width":2000},{"alt":null,"id":26495508283491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5de01b09effcc84cf4514f2eedc5bc9d26b96ded.webp?v=1765440065"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5de01b09effcc84cf4514f2eedc5bc9d26b96ded.webp?v=1765440065","width":2000},{"alt":null,"id":26495508381795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5b204cf8befda18dd8d40a33cb9f64767368f1.webp?v=1765440065"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5b204cf8befda18dd8d40a33cb9f64767368f1.webp?v=1765440065","width":2000},{"alt":null,"id":26495508578403,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ed3751202786f8aeda6a504d397856761a3a08f.webp?v=1765440066"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ed3751202786f8aeda6a504d397856761a3a08f.webp?v=1765440066","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43884451987555,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01185C1-XU18","requires_shipping":true,"taxable":true,"featured_image":{"id":34933135835235,"product_id":7937931149411,"position":5,"created_at":"2025-12-11T16:01:00+08:00","updated_at":"2025-12-11T16:01:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9983c9947f60c66ef35dc0a5152ecc4887ddba0.webp?v=1765440062","variant_ids":[43884451987555]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX 進擊的巨人 Attack on Titan 進擊的巨人 vs 鎧之巨人 - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01185C1-XU18","featured_media":{"alt":null,"id":26495507595363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9983c9947f60c66ef35dc0a5152ecc4887ddba0.webp?v=1765440062"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884455395427,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"NPB0118569-XU18","requires_shipping":true,"taxable":true,"featured_image":{"id":34933135212643,"product_id":7937931149411,"position":1,"created_at":"2025-12-11T16:00:58+08:00","updated_at":"2025-12-11T16:01:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff78a0b10f8df26d9ba8a46c9eef557bfee24959.webp?v=1765440060","variant_ids":[43884455395427]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX 進擊的巨人 Attack on Titan 進擊的巨人 vs 鎧之巨人 - Graphite","public_title":"Graphite","options":["Graphite"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118569-XU18","featured_media":{"alt":null,"id":26495506972771,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff78a0b10f8df26d9ba8a46c9eef557bfee24959.webp?v=1765440060"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884455559267,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118524-XU18","requires_shipping":true,"taxable":true,"featured_image":{"id":34933136425059,"product_id":7937931149411,"position":9,"created_at":"2025-12-11T16:01:03+08:00","updated_at":"2025-12-11T16:01:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5de01b09effcc84cf4514f2eedc5bc9d26b96ded.webp?v=1765440065","variant_ids":[43884455559267]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX 進擊的巨人 Attack on Titan 進擊的巨人 vs 鎧之巨人 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118524-XU18","featured_media":{"alt":null,"id":26495508283491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5de01b09effcc84cf4514f2eedc5bc9d26b96ded.webp?v=1765440065"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884455624803,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0118504-XU18","requires_shipping":true,"taxable":true,"featured_image":{"id":34933136326755,"product_id":7937931149411,"position":8,"created_at":"2025-12-11T16:01:02+08:00","updated_at":"2025-12-11T16:01:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b88560c10dffe84b0453b35cec7c0fef76991782.webp?v=1765440064","variant_ids":[43884455624803]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX 進擊的巨人 Attack on Titan 進擊的巨人 vs 鎧之巨人 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118504-XU18","featured_media":{"alt":null,"id":26495508086883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b88560c10dffe84b0453b35cec7c0fef76991782.webp?v=1765440064"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884455657571,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01185J5-XU18","requires_shipping":true,"taxable":true,"featured_image":{"id":34933135474787,"product_id":7937931149411,"position":3,"created_at":"2025-12-11T16:00:59+08:00","updated_at":"2025-12-11T16:01:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959323ad5adb7efb86170ab3f86e8770cdbb141b.webp?v=1765440061","variant_ids":[43884455657571]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX 進擊的巨人 Attack on Titan 進擊的巨人 vs 鎧之巨人 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01185J5-XU18","featured_media":{"alt":null,"id":26495507234915,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959323ad5adb7efb86170ab3f86e8770cdbb141b.webp?v=1765440061"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43884451987555,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01185C1-XU18","requires_shipping":true,"taxable":true,"featured_image":{"id":34933135835235,"product_id":7937931149411,"position":5,"created_at":"2025-12-11T16:01:00+08:00","updated_at":"2025-12-11T16:01:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9983c9947f60c66ef35dc0a5152ecc4887ddba0.webp?v=1765440062","variant_ids":[43884451987555]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX 進擊的巨人 Attack on Titan 進擊的巨人 vs 鎧之巨人 - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01185C1-XU18","featured_media":{"alt":null,"id":26495507595363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9983c9947f60c66ef35dc0a5152ecc4887ddba0.webp?v=1765440062"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }