$product = {"id":7950372765795,"title":"Galaxy A56 SolidSuit StarWars 星際大戰 星際大戰 – 達斯·維達","handle":"samsung-galaxy-a56-solidsuit-android-pb147","description":null,"published_at":"2026-01-09T10:20:03+08:00","created_at":"2026-01-08T15:43:48+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Samsung","designer","designer-star-wars","device-Galaxy A56","merge","reseller-star-wars"],"price":83000,"price_min":83000,"price_max":83000,"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":43941978538083,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST033460B-PB147","requires_shipping":true,"taxable":true,"featured_image":{"id":35082935402595,"product_id":7950372765795,"position":15,"created_at":"2026-01-09T10:16:39+08:00","updated_at":"2026-01-09T10:16:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7_a61dd32d-c12a-4a84-8220-a5eb882ba856.webp?v=1767925001","variant_ids":[43941978538083]},"available":true,"name":"Galaxy A56 SolidSuit StarWars 星際大戰 星際大戰 – 達斯·維達 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST033460B-PB147","featured_media":{"alt":null,"id":26639873933411,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7_a61dd32d-c12a-4a84-8220-a5eb882ba856.webp?v=1767925001"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43941978898531,"title":"Raspberry Sorbet","option1":"Raspberry Sorbet","option2":null,"option3":null,"sku":"SST033463P-PB147","requires_shipping":true,"taxable":true,"featured_image":{"id":35082935009379,"product_id":7950372765795,"position":14,"created_at":"2026-01-09T10:16:39+08:00","updated_at":"2026-01-09T10:16:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2047bbf7992dc810b1ee605ea442d526c93d8e79_8e35d559-29a3-4f22-b5b9-7baa738925b6.webp?v=1767925001","variant_ids":[43941978898531]},"available":true,"name":"Galaxy A56 SolidSuit StarWars 星際大戰 星際大戰 – 達斯·維達 - Raspberry Sorbet","public_title":"Raspberry Sorbet","options":["Raspberry Sorbet"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST033463P-PB147","featured_media":{"alt":null,"id":26639873507427,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2047bbf7992dc810b1ee605ea442d526c93d8e79_8e35d559-29a3-4f22-b5b9-7baa738925b6.webp?v=1767925001"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43941978964067,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0334652-PB147","requires_shipping":true,"taxable":true,"featured_image":{"id":35082934714467,"product_id":7950372765795,"position":13,"created_at":"2026-01-09T10:16:38+08:00","updated_at":"2026-01-09T10:16:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff14e5af6920758ea48e898e4071cdaec2a9c_9bc053e3-5f2e-4246-84b2-09c267fcac2c.webp?v=1767925000","variant_ids":[43941978964067]},"available":true,"name":"Galaxy A56 SolidSuit StarWars 星際大戰 星際大戰 – 達斯·維達 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":-1,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0334652-PB147","featured_media":{"alt":null,"id":26639873245283,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff14e5af6920758ea48e898e4071cdaec2a9c_9bc053e3-5f2e-4246-84b2-09c267fcac2c.webp?v=1767925000"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7.webp?v=1767858239","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff14e5af6920758ea48e898e4071cdaec2a9c.webp?v=1767858239","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2047bbf7992dc810b1ee605ea442d526c93d8e79.webp?v=1767858240","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2047bbf7992dc810b1ee605ea442d526c93d8e79_09e32791-fac7-4eb5-a8a3-c7feae5223a6.webp?v=1767860520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff14e5af6920758ea48e898e4071cdaec2a9c_f8d21ecf-3fb6-4f9e-ba42-a90a50436b36.webp?v=1767860520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7_9d84bb8b-c0be-4f29-b2f9-a23783078f9e.webp?v=1767860521","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2047bbf7992dc810b1ee605ea442d526c93d8e79_57e7aae4-9c10-4e91-aafa-abfdd1d94a33.webp?v=1767861108","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7_bbb55dc9-7963-49e8-b6c7-7dc765bea866.webp?v=1767861109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff14e5af6920758ea48e898e4071cdaec2a9c_6dbb8a95-d2f4-43d9-853a-3ad83a36e055.webp?v=1767861109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff14e5af6920758ea48e898e4071cdaec2a9c_806b2016-7417-4206-8e0f-a001aad96840.webp?v=1767861405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7_2f4de177-1682-4c39-b54e-6fa0bbd3a112.webp?v=1767861405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2047bbf7992dc810b1ee605ea442d526c93d8e79_641bdcab-7ba1-4995-bb0f-5f87e105ce92.webp?v=1767861406","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff14e5af6920758ea48e898e4071cdaec2a9c_9bc053e3-5f2e-4246-84b2-09c267fcac2c.webp?v=1767925000","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2047bbf7992dc810b1ee605ea442d526c93d8e79_8e35d559-29a3-4f22-b5b9-7baa738925b6.webp?v=1767925001","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7_a61dd32d-c12a-4a84-8220-a5eb882ba856.webp?v=1767925001"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7.webp?v=1767858239","options":["color"],"media":[{"alt":null,"id":26636222693475,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7.webp?v=1767858239"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7.webp?v=1767858239","width":2000},{"alt":null,"id":26636223021155,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff14e5af6920758ea48e898e4071cdaec2a9c.webp?v=1767858239"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff14e5af6920758ea48e898e4071cdaec2a9c.webp?v=1767858239","width":2000},{"alt":null,"id":26636223414371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2047bbf7992dc810b1ee605ea442d526c93d8e79.webp?v=1767858240"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2047bbf7992dc810b1ee605ea442d526c93d8e79.webp?v=1767858240","width":2000},{"alt":null,"id":26636289998947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2047bbf7992dc810b1ee605ea442d526c93d8e79_09e32791-fac7-4eb5-a8a3-c7feae5223a6.webp?v=1767860520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2047bbf7992dc810b1ee605ea442d526c93d8e79_09e32791-fac7-4eb5-a8a3-c7feae5223a6.webp?v=1767860520","width":2000},{"alt":null,"id":26636290359395,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff14e5af6920758ea48e898e4071cdaec2a9c_f8d21ecf-3fb6-4f9e-ba42-a90a50436b36.webp?v=1767860520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff14e5af6920758ea48e898e4071cdaec2a9c_f8d21ecf-3fb6-4f9e-ba42-a90a50436b36.webp?v=1767860520","width":2000},{"alt":null,"id":26636290687075,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7_9d84bb8b-c0be-4f29-b2f9-a23783078f9e.webp?v=1767860521"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7_9d84bb8b-c0be-4f29-b2f9-a23783078f9e.webp?v=1767860521","width":2000},{"alt":null,"id":26636332793955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2047bbf7992dc810b1ee605ea442d526c93d8e79_57e7aae4-9c10-4e91-aafa-abfdd1d94a33.webp?v=1767861108"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2047bbf7992dc810b1ee605ea442d526c93d8e79_57e7aae4-9c10-4e91-aafa-abfdd1d94a33.webp?v=1767861108","width":2000},{"alt":null,"id":26636333056099,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7_bbb55dc9-7963-49e8-b6c7-7dc765bea866.webp?v=1767861109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7_bbb55dc9-7963-49e8-b6c7-7dc765bea866.webp?v=1767861109","width":2000},{"alt":null,"id":26636333383779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff14e5af6920758ea48e898e4071cdaec2a9c_6dbb8a95-d2f4-43d9-853a-3ad83a36e055.webp?v=1767861109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff14e5af6920758ea48e898e4071cdaec2a9c_6dbb8a95-d2f4-43d9-853a-3ad83a36e055.webp?v=1767861109","width":2000},{"alt":null,"id":26636373131363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff14e5af6920758ea48e898e4071cdaec2a9c_806b2016-7417-4206-8e0f-a001aad96840.webp?v=1767861405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff14e5af6920758ea48e898e4071cdaec2a9c_806b2016-7417-4206-8e0f-a001aad96840.webp?v=1767861405","width":2000},{"alt":null,"id":26636373360739,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7_2f4de177-1682-4c39-b54e-6fa0bbd3a112.webp?v=1767861405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7_2f4de177-1682-4c39-b54e-6fa0bbd3a112.webp?v=1767861405","width":2000},{"alt":null,"id":26636373721187,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2047bbf7992dc810b1ee605ea442d526c93d8e79_641bdcab-7ba1-4995-bb0f-5f87e105ce92.webp?v=1767861406"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2047bbf7992dc810b1ee605ea442d526c93d8e79_641bdcab-7ba1-4995-bb0f-5f87e105ce92.webp?v=1767861406","width":2000},{"alt":null,"id":26639873245283,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff14e5af6920758ea48e898e4071cdaec2a9c_9bc053e3-5f2e-4246-84b2-09c267fcac2c.webp?v=1767925000"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff14e5af6920758ea48e898e4071cdaec2a9c_9bc053e3-5f2e-4246-84b2-09c267fcac2c.webp?v=1767925000","width":2000},{"alt":null,"id":26639873507427,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2047bbf7992dc810b1ee605ea442d526c93d8e79_8e35d559-29a3-4f22-b5b9-7baa738925b6.webp?v=1767925001"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2047bbf7992dc810b1ee605ea442d526c93d8e79_8e35d559-29a3-4f22-b5b9-7baa738925b6.webp?v=1767925001","width":2000},{"alt":null,"id":26639873933411,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7_a61dd32d-c12a-4a84-8220-a5eb882ba856.webp?v=1767925001"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7_a61dd32d-c12a-4a84-8220-a5eb882ba856.webp?v=1767925001","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43941978538083,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST033460B-PB147","requires_shipping":true,"taxable":true,"featured_image":{"id":35082935402595,"product_id":7950372765795,"position":15,"created_at":"2026-01-09T10:16:39+08:00","updated_at":"2026-01-09T10:16:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7_a61dd32d-c12a-4a84-8220-a5eb882ba856.webp?v=1767925001","variant_ids":[43941978538083]},"available":true,"name":"Galaxy A56 SolidSuit StarWars 星際大戰 星際大戰 – 達斯·維達 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST033460B-PB147","featured_media":{"alt":null,"id":26639873933411,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7_a61dd32d-c12a-4a84-8220-a5eb882ba856.webp?v=1767925001"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43941978898531,"title":"Raspberry Sorbet","option1":"Raspberry Sorbet","option2":null,"option3":null,"sku":"SST033463P-PB147","requires_shipping":true,"taxable":true,"featured_image":{"id":35082935009379,"product_id":7950372765795,"position":14,"created_at":"2026-01-09T10:16:39+08:00","updated_at":"2026-01-09T10:16:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2047bbf7992dc810b1ee605ea442d526c93d8e79_8e35d559-29a3-4f22-b5b9-7baa738925b6.webp?v=1767925001","variant_ids":[43941978898531]},"available":true,"name":"Galaxy A56 SolidSuit StarWars 星際大戰 星際大戰 – 達斯·維達 - Raspberry Sorbet","public_title":"Raspberry Sorbet","options":["Raspberry Sorbet"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST033463P-PB147","featured_media":{"alt":null,"id":26639873507427,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2047bbf7992dc810b1ee605ea442d526c93d8e79_8e35d559-29a3-4f22-b5b9-7baa738925b6.webp?v=1767925001"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43941978964067,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0334652-PB147","requires_shipping":true,"taxable":true,"featured_image":{"id":35082934714467,"product_id":7950372765795,"position":13,"created_at":"2026-01-09T10:16:38+08:00","updated_at":"2026-01-09T10:16:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff14e5af6920758ea48e898e4071cdaec2a9c_9bc053e3-5f2e-4246-84b2-09c267fcac2c.webp?v=1767925000","variant_ids":[43941978964067]},"available":true,"name":"Galaxy A56 SolidSuit StarWars 星際大戰 星際大戰 – 達斯·維達 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":-1,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0334652-PB147","featured_media":{"alt":null,"id":26639873245283,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff14e5af6920758ea48e898e4071cdaec2a9c_9bc053e3-5f2e-4246-84b2-09c267fcac2c.webp?v=1767925000"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43941978538083,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST033460B-PB147","requires_shipping":true,"taxable":true,"featured_image":{"id":35082935402595,"product_id":7950372765795,"position":15,"created_at":"2026-01-09T10:16:39+08:00","updated_at":"2026-01-09T10:16:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7_a61dd32d-c12a-4a84-8220-a5eb882ba856.webp?v=1767925001","variant_ids":[43941978538083]},"available":true,"name":"Galaxy A56 SolidSuit StarWars 星際大戰 星際大戰 – 達斯·維達 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST033460B-PB147","featured_media":{"alt":null,"id":26639873933411,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5924366c89f368ef8de09b51555356ade41b7_a61dd32d-c12a-4a84-8220-a5eb882ba856.webp?v=1767925001"}},"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: "停產" }