$product = {"id":7155866861667,"title":"iPhone 14 Pro Max Clear 1G yaya款","handle":"iphone-14-pro-max-jellytint-iv09","description":null,"published_at":"2024-02-02T09:59:12+08:00","created_at":"2024-01-23T16:57:47+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint專區-1G","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-1chun","device-iPhone 14 Pro Max","merge","reseller-1chun"],"price":128000,"price_min":128000,"price_max":128000,"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":41197013467235,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012630G-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":36322761441379,"product_id":7155866861667,"position":13,"created_at":"2026-07-20T18:17:09+08:00","updated_at":"2026-07-20T18:17:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acea0358ff41216261ec6306f80bb9a0a287d149_d00d9125-a742-476b-ac07-2a693806b7a4.webp?v=1784542631","variant_ids":[41197013467235]},"available":true,"name":"iPhone 14 Pro Max Clear 1G yaya款 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630G-IV09","featured_media":{"alt":null,"id":27826669289571,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acea0358ff41216261ec6306f80bb9a0a287d149_d00d9125-a742-476b-ac07-2a693806b7a4.webp?v=1784542631"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197013532771,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012630H-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":36322761867363,"product_id":7155866861667,"position":14,"created_at":"2026-07-20T18:17:10+08:00","updated_at":"2026-07-20T18:17:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9f5a0ea542e76b16a622aaddd4a5fc101ae91c_d3ae4ca2-68fc-457c-abe5-1c60989b93be.webp?v=1784542632","variant_ids":[41197013532771]},"available":true,"name":"iPhone 14 Pro Max Clear 1G yaya款 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630H-IV09","featured_media":{"alt":null,"id":27826669715555,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9f5a0ea542e76b16a622aaddd4a5fc101ae91c_d3ae4ca2-68fc-457c-abe5-1c60989b93be.webp?v=1784542632"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197013631075,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012630J-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":36322762424419,"product_id":7155866861667,"position":15,"created_at":"2026-07-20T18:17:11+08:00","updated_at":"2026-07-20T18:17:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9f97ec14ca52817b55b32aadbd68e954e3ad895_ffa63e2c-4894-4531-8bcc-b158d9246bfc.webp?v=1784542633","variant_ids":[41197013631075]},"available":true,"name":"iPhone 14 Pro Max Clear 1G yaya款 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630J-IV09","featured_media":{"alt":null,"id":27826670272611,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9f97ec14ca52817b55b32aadbd68e954e3ad895_ffa63e2c-4894-4531-8bcc-b158d9246bfc.webp?v=1784542633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2132a16ef038be7d5fe8f481af299a96af7fcac2_22fe3c7b-ce70-431e-ad4b-abfb3dc12cfc.webp?v=1706000270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ecc651de0292cf49dfa28fe869190db11af48e1_69bb88c9-15c7-4e42-b65c-884aec6f9b56.webp?v=1706000273","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fbcb7785349caac118c2dc655569c29b898676_fd9b09d4-ab6d-4974-a7ca-de73c1c7725d.webp?v=1706000275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03125a1f38a7bd3b3ef029e947fd835f5704c170_b353e63e-17e7-4e6d-bbe6-61555398b89a.webp?v=1706000277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60fa483825699a173be70ac78d56e03ff8696e6a_e29d5065-fa7f-4af6-9b4f-9facba69a03f.webp?v=1706000280","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a199977761d903fa8b45bb3ae50434cefb1f41f_a80f8bab-ba74-444d-879a-b803b0b7447e.webp?v=1706000283","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7ccdc0bb188809f31f5d34e66e3046557b8f3f_ac1f5ee9-4eb5-4f69-99de-3657cec007a2.webp?v=1706000285","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08b164dda77b309ac128150c1574fcb670a5edf5_3f2b5693-8da1-4a9b-9af5-451b7990c081.webp?v=1706000287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9b56d84c6adc3e5b8a6c173c7d7328c904d9196_81e02de5-4f72-4033-a772-aa2f206cc80e.webp?v=1706263127","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acea0358ff41216261ec6306f80bb9a0a287d149.webp?v=1782881792","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9f97ec14ca52817b55b32aadbd68e954e3ad895.webp?v=1782881792","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9f5a0ea542e76b16a622aaddd4a5fc101ae91c.webp?v=1782881793","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acea0358ff41216261ec6306f80bb9a0a287d149_d00d9125-a742-476b-ac07-2a693806b7a4.webp?v=1784542631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9f5a0ea542e76b16a622aaddd4a5fc101ae91c_d3ae4ca2-68fc-457c-abe5-1c60989b93be.webp?v=1784542632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9f97ec14ca52817b55b32aadbd68e954e3ad895_ffa63e2c-4894-4531-8bcc-b158d9246bfc.webp?v=1784542633"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2132a16ef038be7d5fe8f481af299a96af7fcac2_22fe3c7b-ce70-431e-ad4b-abfb3dc12cfc.webp?v=1706000270","options":["color"],"media":[{"alt":null,"id":23201833353315,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2132a16ef038be7d5fe8f481af299a96af7fcac2_22fe3c7b-ce70-431e-ad4b-abfb3dc12cfc.webp?v=1706000270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2132a16ef038be7d5fe8f481af299a96af7fcac2_22fe3c7b-ce70-431e-ad4b-abfb3dc12cfc.webp?v=1706000270","width":2000},{"alt":null,"id":23201833812067,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ecc651de0292cf49dfa28fe869190db11af48e1_69bb88c9-15c7-4e42-b65c-884aec6f9b56.webp?v=1706000273"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ecc651de0292cf49dfa28fe869190db11af48e1_69bb88c9-15c7-4e42-b65c-884aec6f9b56.webp?v=1706000273","width":2000},{"alt":null,"id":23201834434659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fbcb7785349caac118c2dc655569c29b898676_fd9b09d4-ab6d-4974-a7ca-de73c1c7725d.webp?v=1706000275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fbcb7785349caac118c2dc655569c29b898676_fd9b09d4-ab6d-4974-a7ca-de73c1c7725d.webp?v=1706000275","width":2000},{"alt":null,"id":23201834991715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03125a1f38a7bd3b3ef029e947fd835f5704c170_b353e63e-17e7-4e6d-bbe6-61555398b89a.webp?v=1706000277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03125a1f38a7bd3b3ef029e947fd835f5704c170_b353e63e-17e7-4e6d-bbe6-61555398b89a.webp?v=1706000277","width":2000},{"alt":null,"id":23201835810915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60fa483825699a173be70ac78d56e03ff8696e6a_e29d5065-fa7f-4af6-9b4f-9facba69a03f.webp?v=1706000280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60fa483825699a173be70ac78d56e03ff8696e6a_e29d5065-fa7f-4af6-9b4f-9facba69a03f.webp?v=1706000280","width":2000},{"alt":null,"id":23201836597347,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a199977761d903fa8b45bb3ae50434cefb1f41f_a80f8bab-ba74-444d-879a-b803b0b7447e.webp?v=1706000283"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a199977761d903fa8b45bb3ae50434cefb1f41f_a80f8bab-ba74-444d-879a-b803b0b7447e.webp?v=1706000283","width":2000},{"alt":null,"id":23201837252707,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7ccdc0bb188809f31f5d34e66e3046557b8f3f_ac1f5ee9-4eb5-4f69-99de-3657cec007a2.webp?v=1706000285"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7ccdc0bb188809f31f5d34e66e3046557b8f3f_ac1f5ee9-4eb5-4f69-99de-3657cec007a2.webp?v=1706000285","width":2000},{"alt":null,"id":23201837842531,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08b164dda77b309ac128150c1574fcb670a5edf5_3f2b5693-8da1-4a9b-9af5-451b7990c081.webp?v=1706000287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08b164dda77b309ac128150c1574fcb670a5edf5_3f2b5693-8da1-4a9b-9af5-451b7990c081.webp?v=1706000287","width":2000},{"alt":null,"id":23219572998243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9b56d84c6adc3e5b8a6c173c7d7328c904d9196_81e02de5-4f72-4033-a772-aa2f206cc80e.webp?v=1706263127"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9b56d84c6adc3e5b8a6c173c7d7328c904d9196_81e02de5-4f72-4033-a772-aa2f206cc80e.webp?v=1706263127","width":2000},{"alt":null,"id":27647311839331,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acea0358ff41216261ec6306f80bb9a0a287d149.webp?v=1782881792"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acea0358ff41216261ec6306f80bb9a0a287d149.webp?v=1782881792","width":2000},{"alt":null,"id":27647312691299,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9f97ec14ca52817b55b32aadbd68e954e3ad895.webp?v=1782881792"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9f97ec14ca52817b55b32aadbd68e954e3ad895.webp?v=1782881792","width":2000},{"alt":null,"id":27647313379427,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9f5a0ea542e76b16a622aaddd4a5fc101ae91c.webp?v=1782881793"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9f5a0ea542e76b16a622aaddd4a5fc101ae91c.webp?v=1782881793","width":2000},{"alt":null,"id":27826669289571,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acea0358ff41216261ec6306f80bb9a0a287d149_d00d9125-a742-476b-ac07-2a693806b7a4.webp?v=1784542631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acea0358ff41216261ec6306f80bb9a0a287d149_d00d9125-a742-476b-ac07-2a693806b7a4.webp?v=1784542631","width":2000},{"alt":null,"id":27826669715555,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9f5a0ea542e76b16a622aaddd4a5fc101ae91c_d3ae4ca2-68fc-457c-abe5-1c60989b93be.webp?v=1784542632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9f5a0ea542e76b16a622aaddd4a5fc101ae91c_d3ae4ca2-68fc-457c-abe5-1c60989b93be.webp?v=1784542632","width":2000},{"alt":null,"id":27826670272611,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9f97ec14ca52817b55b32aadbd68e954e3ad895_ffa63e2c-4894-4531-8bcc-b158d9246bfc.webp?v=1784542633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9f97ec14ca52817b55b32aadbd68e954e3ad895_ffa63e2c-4894-4531-8bcc-b158d9246bfc.webp?v=1784542633","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41197013467235,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012630G-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":36322761441379,"product_id":7155866861667,"position":13,"created_at":"2026-07-20T18:17:09+08:00","updated_at":"2026-07-20T18:17:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acea0358ff41216261ec6306f80bb9a0a287d149_d00d9125-a742-476b-ac07-2a693806b7a4.webp?v=1784542631","variant_ids":[41197013467235]},"available":true,"name":"iPhone 14 Pro Max Clear 1G yaya款 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630G-IV09","featured_media":{"alt":null,"id":27826669289571,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acea0358ff41216261ec6306f80bb9a0a287d149_d00d9125-a742-476b-ac07-2a693806b7a4.webp?v=1784542631"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197013532771,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012630H-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":36322761867363,"product_id":7155866861667,"position":14,"created_at":"2026-07-20T18:17:10+08:00","updated_at":"2026-07-20T18:17:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9f5a0ea542e76b16a622aaddd4a5fc101ae91c_d3ae4ca2-68fc-457c-abe5-1c60989b93be.webp?v=1784542632","variant_ids":[41197013532771]},"available":true,"name":"iPhone 14 Pro Max Clear 1G yaya款 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630H-IV09","featured_media":{"alt":null,"id":27826669715555,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9f5a0ea542e76b16a622aaddd4a5fc101ae91c_d3ae4ca2-68fc-457c-abe5-1c60989b93be.webp?v=1784542632"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197013631075,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012630J-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":36322762424419,"product_id":7155866861667,"position":15,"created_at":"2026-07-20T18:17:11+08:00","updated_at":"2026-07-20T18:17:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9f97ec14ca52817b55b32aadbd68e954e3ad895_ffa63e2c-4894-4531-8bcc-b158d9246bfc.webp?v=1784542633","variant_ids":[41197013631075]},"available":true,"name":"iPhone 14 Pro Max Clear 1G yaya款 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630J-IV09","featured_media":{"alt":null,"id":27826670272611,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9f97ec14ca52817b55b32aadbd68e954e3ad895_ffa63e2c-4894-4531-8bcc-b158d9246bfc.webp?v=1784542633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41197013467235,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012630G-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":36322761441379,"product_id":7155866861667,"position":13,"created_at":"2026-07-20T18:17:09+08:00","updated_at":"2026-07-20T18:17:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acea0358ff41216261ec6306f80bb9a0a287d149_d00d9125-a742-476b-ac07-2a693806b7a4.webp?v=1784542631","variant_ids":[41197013467235]},"available":true,"name":"iPhone 14 Pro Max Clear 1G yaya款 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630G-IV09","featured_media":{"alt":null,"id":27826669289571,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acea0358ff41216261ec6306f80bb9a0a287d149_d00d9125-a742-476b-ac07-2a693806b7a4.webp?v=1784542631"}},"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: "停產" }