$product = {"id":7987563921507,"title":"iPhone 15 Plus SolidX 麵包超人Anpanman 甜蜜的小事物","handle":"iphone-15-plus-solidx-anp14","description":null,"published_at":"2026-03-31T11:06:11+08:00","created_at":"2026-03-30T11:07:22+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-anpanman","device-iPhone 15 Plus","merge","reseller-anpanman"],"price":125000,"price_min":125000,"price_max":125000,"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":44088427184227,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-ANP14","requires_shipping":true,"taxable":true,"featured_image":{"id":35561499721827,"product_id":7987563921507,"position":10,"created_at":"2026-03-30T11:56:48+08:00","updated_at":"2026-03-30T11:56:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635651d472c6261e33229cad93be938cdce697f6_c8375ba7-5df2-4e2c-ac8a-b76d3141a617.webp?v=1774843010","variant_ids":[44088427184227]},"available":true,"name":"iPhone 15 Plus SolidX 麵包超人Anpanman 甜蜜的小事物 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-ANP14","featured_media":{"alt":null,"id":27095064019043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635651d472c6261e33229cad93be938cdce697f6_c8375ba7-5df2-4e2c-ac8a-b76d3141a617.webp?v=1774843010"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44088429707363,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-ANP14","requires_shipping":true,"taxable":true,"featured_image":{"id":35561500573795,"product_id":7987563921507,"position":16,"created_at":"2026-03-30T11:56:51+08:00","updated_at":"2026-03-30T11:56:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f96b37af4039ceecf0420270128d1ab474a22d_b0877b3d-0060-42ec-8cb8-22c6d38a327c.webp?v=1774843013","variant_ids":[44088429707363]},"available":true,"name":"iPhone 15 Plus SolidX 麵包超人Anpanman 甜蜜的小事物 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-ANP14","featured_media":{"alt":null,"id":27095064871011,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f96b37af4039ceecf0420270128d1ab474a22d_b0877b3d-0060-42ec-8cb8-22c6d38a327c.webp?v=1774843013"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44088429838435,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01296O8-ANP14","requires_shipping":true,"taxable":true,"featured_image":{"id":35561500016739,"product_id":7987563921507,"position":12,"created_at":"2026-03-30T11:56:49+08:00","updated_at":"2026-03-30T11:56:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b0a06f14e832e7e4fba48725e967aea5a3db71d_93d7fb4e-5513-4a70-96bd-e31a4c0368cb.webp?v=1774843011","variant_ids":[44088429838435]},"available":true,"name":"iPhone 15 Plus SolidX 麵包超人Anpanman 甜蜜的小事物 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01296O8-ANP14","featured_media":{"alt":null,"id":27095064313955,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b0a06f14e832e7e4fba48725e967aea5a3db71d_93d7fb4e-5513-4a70-96bd-e31a4c0368cb.webp?v=1774843011"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cf1e218223286b2e303ce46a8d6eb9a6e754b1f.webp?v=1774840050","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2a4ac2d751668b312818bb63e63c90102ba8f94.webp?v=1774840050","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8105d6bc71ba3f1eac28673b9b01d4c265ca9965.webp?v=1774840051","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b0a06f14e832e7e4fba48725e967aea5a3db71d.webp?v=1774840051","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635651d472c6261e33229cad93be938cdce697f6.webp?v=1774840052","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f96b37af4039ceecf0420270128d1ab474a22d.webp?v=1774840053","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0171fdf818997740ba97010b8f5080e3aedb9607.webp?v=1774840053","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1812931497d51c8a4dfca70239c99ed6b2948cd.webp?v=1774840054","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2a4ac2d751668b312818bb63e63c90102ba8f94_63001f6d-2495-4420-8ca9-02dd31020b40.webp?v=1774843009","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635651d472c6261e33229cad93be938cdce697f6_c8375ba7-5df2-4e2c-ac8a-b76d3141a617.webp?v=1774843010","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1812931497d51c8a4dfca70239c99ed6b2948cd_fe78c9e8-7f3f-4ce0-b069-b2fde361bb70.webp?v=1774843010","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b0a06f14e832e7e4fba48725e967aea5a3db71d_93d7fb4e-5513-4a70-96bd-e31a4c0368cb.webp?v=1774843011","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0171fdf818997740ba97010b8f5080e3aedb9607_0e075f4c-702c-42d5-baa0-02861cbcc198.webp?v=1774843011","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cf1e218223286b2e303ce46a8d6eb9a6e754b1f_1eba55e2-7069-4161-a049-2be1ab28518d.webp?v=1774843012","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8105d6bc71ba3f1eac28673b9b01d4c265ca9965_798cc153-e637-4818-aacc-bebb1c1f75e6.webp?v=1774843013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f96b37af4039ceecf0420270128d1ab474a22d_b0877b3d-0060-42ec-8cb8-22c6d38a327c.webp?v=1774843013"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cf1e218223286b2e303ce46a8d6eb9a6e754b1f.webp?v=1774840050","options":["color"],"media":[{"alt":null,"id":27094416359523,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cf1e218223286b2e303ce46a8d6eb9a6e754b1f.webp?v=1774840050"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cf1e218223286b2e303ce46a8d6eb9a6e754b1f.webp?v=1774840050","width":2000},{"alt":null,"id":27094416949347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2a4ac2d751668b312818bb63e63c90102ba8f94.webp?v=1774840050"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2a4ac2d751668b312818bb63e63c90102ba8f94.webp?v=1774840050","width":2000},{"alt":null,"id":27094417506403,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8105d6bc71ba3f1eac28673b9b01d4c265ca9965.webp?v=1774840051"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8105d6bc71ba3f1eac28673b9b01d4c265ca9965.webp?v=1774840051","width":2000},{"alt":null,"id":27094417932387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b0a06f14e832e7e4fba48725e967aea5a3db71d.webp?v=1774840051"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b0a06f14e832e7e4fba48725e967aea5a3db71d.webp?v=1774840051","width":2000},{"alt":null,"id":27094418554979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635651d472c6261e33229cad93be938cdce697f6.webp?v=1774840052"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635651d472c6261e33229cad93be938cdce697f6.webp?v=1774840052","width":2000},{"alt":null,"id":27094418948195,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f96b37af4039ceecf0420270128d1ab474a22d.webp?v=1774840053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f96b37af4039ceecf0420270128d1ab474a22d.webp?v=1774840053","width":2000},{"alt":null,"id":27094419603555,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0171fdf818997740ba97010b8f5080e3aedb9607.webp?v=1774840053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0171fdf818997740ba97010b8f5080e3aedb9607.webp?v=1774840053","width":2000},{"alt":null,"id":27094420127843,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1812931497d51c8a4dfca70239c99ed6b2948cd.webp?v=1774840054"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1812931497d51c8a4dfca70239c99ed6b2948cd.webp?v=1774840054","width":2000},{"alt":null,"id":27095063756899,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2a4ac2d751668b312818bb63e63c90102ba8f94_63001f6d-2495-4420-8ca9-02dd31020b40.webp?v=1774843009"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2a4ac2d751668b312818bb63e63c90102ba8f94_63001f6d-2495-4420-8ca9-02dd31020b40.webp?v=1774843009","width":2000},{"alt":null,"id":27095064019043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635651d472c6261e33229cad93be938cdce697f6_c8375ba7-5df2-4e2c-ac8a-b76d3141a617.webp?v=1774843010"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635651d472c6261e33229cad93be938cdce697f6_c8375ba7-5df2-4e2c-ac8a-b76d3141a617.webp?v=1774843010","width":2000},{"alt":null,"id":27095064215651,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1812931497d51c8a4dfca70239c99ed6b2948cd_fe78c9e8-7f3f-4ce0-b069-b2fde361bb70.webp?v=1774843010"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1812931497d51c8a4dfca70239c99ed6b2948cd_fe78c9e8-7f3f-4ce0-b069-b2fde361bb70.webp?v=1774843010","width":2000},{"alt":null,"id":27095064313955,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b0a06f14e832e7e4fba48725e967aea5a3db71d_93d7fb4e-5513-4a70-96bd-e31a4c0368cb.webp?v=1774843011"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b0a06f14e832e7e4fba48725e967aea5a3db71d_93d7fb4e-5513-4a70-96bd-e31a4c0368cb.webp?v=1774843011","width":2000},{"alt":null,"id":27095064445027,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0171fdf818997740ba97010b8f5080e3aedb9607_0e075f4c-702c-42d5-baa0-02861cbcc198.webp?v=1774843011"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0171fdf818997740ba97010b8f5080e3aedb9607_0e075f4c-702c-42d5-baa0-02861cbcc198.webp?v=1774843011","width":2000},{"alt":null,"id":27095064576099,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cf1e218223286b2e303ce46a8d6eb9a6e754b1f_1eba55e2-7069-4161-a049-2be1ab28518d.webp?v=1774843012"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cf1e218223286b2e303ce46a8d6eb9a6e754b1f_1eba55e2-7069-4161-a049-2be1ab28518d.webp?v=1774843012","width":2000},{"alt":null,"id":27095064707171,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8105d6bc71ba3f1eac28673b9b01d4c265ca9965_798cc153-e637-4818-aacc-bebb1c1f75e6.webp?v=1774843013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8105d6bc71ba3f1eac28673b9b01d4c265ca9965_798cc153-e637-4818-aacc-bebb1c1f75e6.webp?v=1774843013","width":2000},{"alt":null,"id":27095064871011,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f96b37af4039ceecf0420270128d1ab474a22d_b0877b3d-0060-42ec-8cb8-22c6d38a327c.webp?v=1774843013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f96b37af4039ceecf0420270128d1ab474a22d_b0877b3d-0060-42ec-8cb8-22c6d38a327c.webp?v=1774843013","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":44088427184227,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-ANP14","requires_shipping":true,"taxable":true,"featured_image":{"id":35561499721827,"product_id":7987563921507,"position":10,"created_at":"2026-03-30T11:56:48+08:00","updated_at":"2026-03-30T11:56:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635651d472c6261e33229cad93be938cdce697f6_c8375ba7-5df2-4e2c-ac8a-b76d3141a617.webp?v=1774843010","variant_ids":[44088427184227]},"available":true,"name":"iPhone 15 Plus SolidX 麵包超人Anpanman 甜蜜的小事物 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-ANP14","featured_media":{"alt":null,"id":27095064019043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635651d472c6261e33229cad93be938cdce697f6_c8375ba7-5df2-4e2c-ac8a-b76d3141a617.webp?v=1774843010"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44088429707363,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-ANP14","requires_shipping":true,"taxable":true,"featured_image":{"id":35561500573795,"product_id":7987563921507,"position":16,"created_at":"2026-03-30T11:56:51+08:00","updated_at":"2026-03-30T11:56:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f96b37af4039ceecf0420270128d1ab474a22d_b0877b3d-0060-42ec-8cb8-22c6d38a327c.webp?v=1774843013","variant_ids":[44088429707363]},"available":true,"name":"iPhone 15 Plus SolidX 麵包超人Anpanman 甜蜜的小事物 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-ANP14","featured_media":{"alt":null,"id":27095064871011,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4f96b37af4039ceecf0420270128d1ab474a22d_b0877b3d-0060-42ec-8cb8-22c6d38a327c.webp?v=1774843013"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44088429838435,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01296O8-ANP14","requires_shipping":true,"taxable":true,"featured_image":{"id":35561500016739,"product_id":7987563921507,"position":12,"created_at":"2026-03-30T11:56:49+08:00","updated_at":"2026-03-30T11:56:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b0a06f14e832e7e4fba48725e967aea5a3db71d_93d7fb4e-5513-4a70-96bd-e31a4c0368cb.webp?v=1774843011","variant_ids":[44088429838435]},"available":true,"name":"iPhone 15 Plus SolidX 麵包超人Anpanman 甜蜜的小事物 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01296O8-ANP14","featured_media":{"alt":null,"id":27095064313955,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b0a06f14e832e7e4fba48725e967aea5a3db71d_93d7fb4e-5513-4a70-96bd-e31a4c0368cb.webp?v=1774843011"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":44088427184227,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-ANP14","requires_shipping":true,"taxable":true,"featured_image":{"id":35561499721827,"product_id":7987563921507,"position":10,"created_at":"2026-03-30T11:56:48+08:00","updated_at":"2026-03-30T11:56:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635651d472c6261e33229cad93be938cdce697f6_c8375ba7-5df2-4e2c-ac8a-b76d3141a617.webp?v=1774843010","variant_ids":[44088427184227]},"available":true,"name":"iPhone 15 Plus SolidX 麵包超人Anpanman 甜蜜的小事物 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-ANP14","featured_media":{"alt":null,"id":27095064019043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635651d472c6261e33229cad93be938cdce697f6_c8375ba7-5df2-4e2c-ac8a-b76d3141a617.webp?v=1774843010"}},"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: "停產" }