$product = {"id":7987489603683,"title":"iPhone 15 Plus SolidX 麵包超人Anpanman 麵包超人表情包","handle":"iphone-15-plus-solidx-anp05","description":null,"published_at":"2026-03-31T11:24:23+08:00","created_at":"2026-03-30T10:54:19+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":44088196628579,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-ANP05","requires_shipping":true,"taxable":true,"featured_image":{"id":35561339584611,"product_id":7987489603683,"position":13,"created_at":"2026-03-30T11:47:11+08:00","updated_at":"2026-03-30T11:47:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d8fdd57edbf1d691b9b45d76d4f05914bcab1b2_39d65c4a-dcc9-492d-817f-077cea760d0e.webp?v=1774842433","variant_ids":[44088196628579]},"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-ANP05","featured_media":{"alt":null,"id":27094907945059,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d8fdd57edbf1d691b9b45d76d4f05914bcab1b2_39d65c4a-dcc9-492d-817f-077cea760d0e.webp?v=1774842433"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44088199282787,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-ANP05","requires_shipping":true,"taxable":true,"featured_image":{"id":35561340436579,"product_id":7987489603683,"position":16,"created_at":"2026-03-30T11:47:13+08:00","updated_at":"2026-03-30T11:47:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4685ac897346d23b2dffe717fbe7a5ca1f95b7a_bca1ad21-b6c5-44a0-adc0-ae595345c759.webp?v=1774842435","variant_ids":[44088199282787]},"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-ANP05","featured_media":{"alt":null,"id":27094908797027,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4685ac897346d23b2dffe717fbe7a5ca1f95b7a_bca1ad21-b6c5-44a0-adc0-ae595345c759.webp?v=1774842435"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44088199413859,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01296O8-ANP05","requires_shipping":true,"taxable":true,"featured_image":{"id":35561338994787,"product_id":7987489603683,"position":10,"created_at":"2026-03-30T11:47:09+08:00","updated_at":"2026-03-30T11:47:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2961d4554b439bf0487d28a0cb99ae1add48e535_a39c7585-853b-4fc1-9532-d8d6cea269e3.webp?v=1774842431","variant_ids":[44088199413859]},"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-ANP05","featured_media":{"alt":null,"id":27094907355235,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2961d4554b439bf0487d28a0cb99ae1add48e535_a39c7585-853b-4fc1-9532-d8d6cea269e3.webp?v=1774842431"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c77610de33ea9fe47937cb944fe5dfb890281d.webp?v=1774839265","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9577df551ae3833e7c40f1be51a42e2c8e263cc9.webp?v=1774839266","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4685ac897346d23b2dffe717fbe7a5ca1f95b7a.webp?v=1774839266","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e28949bc924b3c7d86e5d4dd0344e13cbb49eb16.webp?v=1774839267","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2961d4554b439bf0487d28a0cb99ae1add48e535.webp?v=1774839267","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef4e883a32993482aca9c2ed0d7bdb4a45121a0a.webp?v=1774839268","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e778dba95f97723df926e8882e0db4950348d58.webp?v=1774839269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d8fdd57edbf1d691b9b45d76d4f05914bcab1b2.webp?v=1774839269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c77610de33ea9fe47937cb944fe5dfb890281d_5b732165-e536-4e63-8feb-565eb9b853fd.webp?v=1774842431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2961d4554b439bf0487d28a0cb99ae1add48e535_a39c7585-853b-4fc1-9532-d8d6cea269e3.webp?v=1774842431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e28949bc924b3c7d86e5d4dd0344e13cbb49eb16_0a302fc3-e859-4d8f-92be-f39e4c3bf47f.webp?v=1774842432","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9577df551ae3833e7c40f1be51a42e2c8e263cc9_a0cd5828-16f4-46d3-bbe8-7695a13b7e1d.webp?v=1774842432","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d8fdd57edbf1d691b9b45d76d4f05914bcab1b2_39d65c4a-dcc9-492d-817f-077cea760d0e.webp?v=1774842433","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e778dba95f97723df926e8882e0db4950348d58_5b7bd7b4-9383-4e2a-ad1f-a5f2e3731519.webp?v=1774842434","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef4e883a32993482aca9c2ed0d7bdb4a45121a0a_a9f743db-20c4-43b0-8dc1-37aca46a4a75.webp?v=1774842434","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4685ac897346d23b2dffe717fbe7a5ca1f95b7a_bca1ad21-b6c5-44a0-adc0-ae595345c759.webp?v=1774842435"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c77610de33ea9fe47937cb944fe5dfb890281d.webp?v=1774839265","options":["color"],"media":[{"alt":null,"id":27094123380835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c77610de33ea9fe47937cb944fe5dfb890281d.webp?v=1774839265"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c77610de33ea9fe47937cb944fe5dfb890281d.webp?v=1774839265","width":2000},{"alt":null,"id":27094123511907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9577df551ae3833e7c40f1be51a42e2c8e263cc9.webp?v=1774839266"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9577df551ae3833e7c40f1be51a42e2c8e263cc9.webp?v=1774839266","width":2000},{"alt":null,"id":27094123642979,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4685ac897346d23b2dffe717fbe7a5ca1f95b7a.webp?v=1774839266"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4685ac897346d23b2dffe717fbe7a5ca1f95b7a.webp?v=1774839266","width":2000},{"alt":null,"id":27094123774051,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e28949bc924b3c7d86e5d4dd0344e13cbb49eb16.webp?v=1774839267"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e28949bc924b3c7d86e5d4dd0344e13cbb49eb16.webp?v=1774839267","width":2000},{"alt":null,"id":27094123970659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2961d4554b439bf0487d28a0cb99ae1add48e535.webp?v=1774839267"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2961d4554b439bf0487d28a0cb99ae1add48e535.webp?v=1774839267","width":2000},{"alt":null,"id":27094124167267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef4e883a32993482aca9c2ed0d7bdb4a45121a0a.webp?v=1774839268"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef4e883a32993482aca9c2ed0d7bdb4a45121a0a.webp?v=1774839268","width":2000},{"alt":null,"id":27094124363875,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e778dba95f97723df926e8882e0db4950348d58.webp?v=1774839269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e778dba95f97723df926e8882e0db4950348d58.webp?v=1774839269","width":2000},{"alt":null,"id":27094124527715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d8fdd57edbf1d691b9b45d76d4f05914bcab1b2.webp?v=1774839269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d8fdd57edbf1d691b9b45d76d4f05914bcab1b2.webp?v=1774839269","width":2000},{"alt":null,"id":27094907158627,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c77610de33ea9fe47937cb944fe5dfb890281d_5b732165-e536-4e63-8feb-565eb9b853fd.webp?v=1774842431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c77610de33ea9fe47937cb944fe5dfb890281d_5b732165-e536-4e63-8feb-565eb9b853fd.webp?v=1774842431","width":2000},{"alt":null,"id":27094907355235,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2961d4554b439bf0487d28a0cb99ae1add48e535_a39c7585-853b-4fc1-9532-d8d6cea269e3.webp?v=1774842431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2961d4554b439bf0487d28a0cb99ae1add48e535_a39c7585-853b-4fc1-9532-d8d6cea269e3.webp?v=1774842431","width":2000},{"alt":null,"id":27094907519075,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e28949bc924b3c7d86e5d4dd0344e13cbb49eb16_0a302fc3-e859-4d8f-92be-f39e4c3bf47f.webp?v=1774842432"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e28949bc924b3c7d86e5d4dd0344e13cbb49eb16_0a302fc3-e859-4d8f-92be-f39e4c3bf47f.webp?v=1774842432","width":2000},{"alt":null,"id":27094907748451,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9577df551ae3833e7c40f1be51a42e2c8e263cc9_a0cd5828-16f4-46d3-bbe8-7695a13b7e1d.webp?v=1774842432"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9577df551ae3833e7c40f1be51a42e2c8e263cc9_a0cd5828-16f4-46d3-bbe8-7695a13b7e1d.webp?v=1774842432","width":2000},{"alt":null,"id":27094907945059,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d8fdd57edbf1d691b9b45d76d4f05914bcab1b2_39d65c4a-dcc9-492d-817f-077cea760d0e.webp?v=1774842433"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d8fdd57edbf1d691b9b45d76d4f05914bcab1b2_39d65c4a-dcc9-492d-817f-077cea760d0e.webp?v=1774842433","width":2000},{"alt":null,"id":27094908141667,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e778dba95f97723df926e8882e0db4950348d58_5b7bd7b4-9383-4e2a-ad1f-a5f2e3731519.webp?v=1774842434"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e778dba95f97723df926e8882e0db4950348d58_5b7bd7b4-9383-4e2a-ad1f-a5f2e3731519.webp?v=1774842434","width":2000},{"alt":null,"id":27094908567651,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef4e883a32993482aca9c2ed0d7bdb4a45121a0a_a9f743db-20c4-43b0-8dc1-37aca46a4a75.webp?v=1774842434"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef4e883a32993482aca9c2ed0d7bdb4a45121a0a_a9f743db-20c4-43b0-8dc1-37aca46a4a75.webp?v=1774842434","width":2000},{"alt":null,"id":27094908797027,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4685ac897346d23b2dffe717fbe7a5ca1f95b7a_bca1ad21-b6c5-44a0-adc0-ae595345c759.webp?v=1774842435"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4685ac897346d23b2dffe717fbe7a5ca1f95b7a_bca1ad21-b6c5-44a0-adc0-ae595345c759.webp?v=1774842435","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":44088196628579,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-ANP05","requires_shipping":true,"taxable":true,"featured_image":{"id":35561339584611,"product_id":7987489603683,"position":13,"created_at":"2026-03-30T11:47:11+08:00","updated_at":"2026-03-30T11:47:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d8fdd57edbf1d691b9b45d76d4f05914bcab1b2_39d65c4a-dcc9-492d-817f-077cea760d0e.webp?v=1774842433","variant_ids":[44088196628579]},"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-ANP05","featured_media":{"alt":null,"id":27094907945059,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d8fdd57edbf1d691b9b45d76d4f05914bcab1b2_39d65c4a-dcc9-492d-817f-077cea760d0e.webp?v=1774842433"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44088199282787,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-ANP05","requires_shipping":true,"taxable":true,"featured_image":{"id":35561340436579,"product_id":7987489603683,"position":16,"created_at":"2026-03-30T11:47:13+08:00","updated_at":"2026-03-30T11:47:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4685ac897346d23b2dffe717fbe7a5ca1f95b7a_bca1ad21-b6c5-44a0-adc0-ae595345c759.webp?v=1774842435","variant_ids":[44088199282787]},"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-ANP05","featured_media":{"alt":null,"id":27094908797027,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4685ac897346d23b2dffe717fbe7a5ca1f95b7a_bca1ad21-b6c5-44a0-adc0-ae595345c759.webp?v=1774842435"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44088199413859,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01296O8-ANP05","requires_shipping":true,"taxable":true,"featured_image":{"id":35561338994787,"product_id":7987489603683,"position":10,"created_at":"2026-03-30T11:47:09+08:00","updated_at":"2026-03-30T11:47:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2961d4554b439bf0487d28a0cb99ae1add48e535_a39c7585-853b-4fc1-9532-d8d6cea269e3.webp?v=1774842431","variant_ids":[44088199413859]},"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-ANP05","featured_media":{"alt":null,"id":27094907355235,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2961d4554b439bf0487d28a0cb99ae1add48e535_a39c7585-853b-4fc1-9532-d8d6cea269e3.webp?v=1774842431"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":44088196628579,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-ANP05","requires_shipping":true,"taxable":true,"featured_image":{"id":35561339584611,"product_id":7987489603683,"position":13,"created_at":"2026-03-30T11:47:11+08:00","updated_at":"2026-03-30T11:47:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d8fdd57edbf1d691b9b45d76d4f05914bcab1b2_39d65c4a-dcc9-492d-817f-077cea760d0e.webp?v=1774842433","variant_ids":[44088196628579]},"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-ANP05","featured_media":{"alt":null,"id":27094907945059,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d8fdd57edbf1d691b9b45d76d4f05914bcab1b2_39d65c4a-dcc9-492d-817f-077cea760d0e.webp?v=1774842433"}},"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: "停產" }