$product = {"id":7920554147939,"title":"iPhone 15 Clear (MagSafe 兼容) 咒術迴戰 懷玉・玉折角色系列-最強組合","handle":"iphone-15-jellytint-magsafe-ptt05","description":null,"published_at":"2025-11-10T16:32:15+08:00","created_at":"2025-11-10T15:08:48+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jujutsu-kaisen","device-iPhone 15","merge","reseller-jujutsu-kaisen"],"price":148000,"price_min":148000,"price_max":148000,"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":43828955152483,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012950J-PTT05","requires_shipping":true,"taxable":true,"featured_image":{"id":36126114906211,"product_id":7920554147939,"position":14,"created_at":"2026-06-29T16:36:13+08:00","updated_at":"2026-06-29T16:36:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc_2d300970-5a21-4582-b6f2-e35cf668fd28.webp?v=1782722176","variant_ids":[43828955152483]},"available":true,"name":"iPhone 15 Clear (MagSafe 兼容) 咒術迴戰 懷玉・玉折角色系列-最強組合 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012950J-PTT05","featured_media":{"alt":null,"id":27631356674147,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc_2d300970-5a21-4582-b6f2-e35cf668fd28.webp?v=1782722176"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828956397667,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"MCN012950H-PTT05","requires_shipping":true,"taxable":true,"featured_image":{"id":36126115037283,"product_id":7920554147939,"position":15,"created_at":"2026-06-29T16:36:14+08:00","updated_at":"2026-06-29T16:36:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32d42230b99bc7f7f0c8639994f64266c80242_78e96087-17a6-4fba-ba7a-0774ec5a9c7e.webp?v=1782722176","variant_ids":[43828956397667]},"available":true,"name":"iPhone 15 Clear (MagSafe 兼容) 咒術迴戰 懷玉・玉折角色系列-最強組合 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012950H-PTT05","featured_media":{"alt":null,"id":27631356805219,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32d42230b99bc7f7f0c8639994f64266c80242_78e96087-17a6-4fba-ba7a-0774ec5a9c7e.webp?v=1782722176"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828956463203,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012950G-PTT05","requires_shipping":true,"taxable":true,"featured_image":{"id":36126114644067,"product_id":7920554147939,"position":13,"created_at":"2026-06-29T16:36:13+08:00","updated_at":"2026-06-29T16:36:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6a3fef02267a62ad3472930a31b223feaeda80_e26d96dd-05c8-492e-b87d-32734adf256e.webp?v=1782722175","variant_ids":[43828956463203]},"available":true,"name":"iPhone 15 Clear (MagSafe 兼容) 咒術迴戰 懷玉・玉折角色系列-最強組合 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012950G-PTT05","featured_media":{"alt":null,"id":27631356412003,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6a3fef02267a62ad3472930a31b223feaeda80_e26d96dd-05c8-492e-b87d-32734adf256e.webp?v=1782722175"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6a3fef02267a62ad3472930a31b223feaeda80.webp?v=1762758534","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc.webp?v=1762758536","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32d42230b99bc7f7f0c8639994f64266c80242.webp?v=1762758536","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8608bd749971ee4cd400fcdd50a214da20a325af.webp?v=1762758537","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc_793f5e93-29d4-496a-8645-c244de4e18d1.webp?v=1782266029","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32d42230b99bc7f7f0c8639994f64266c80242_b88c7e0a-bf3b-401f-9c83-c06ff2425c48.webp?v=1782266030","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6a3fef02267a62ad3472930a31b223feaeda80_39ac1212-aefa-48f6-9d5d-db7ea61efb8a.webp?v=1782266030","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc_16bfe1bf-5fc6-473b-8dee-142de384b794.webp?v=1782291665","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32d42230b99bc7f7f0c8639994f64266c80242_0a58e91d-752b-4797-aff1-b62cdf7be20c.webp?v=1782291666","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6a3fef02267a62ad3472930a31b223feaeda80_1f7155b2-0f9d-4f53-96bb-4807dbb05c3f.webp?v=1782291666","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc_7fe11df2-cbc1-4ef0-b86a-7d2429f1c68a.webp?v=1782718810","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32d42230b99bc7f7f0c8639994f64266c80242_36ca87bb-59e7-441b-811c-ece653c7b8cc.webp?v=1782718812","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6a3fef02267a62ad3472930a31b223feaeda80_e26d96dd-05c8-492e-b87d-32734adf256e.webp?v=1782722175","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc_2d300970-5a21-4582-b6f2-e35cf668fd28.webp?v=1782722176","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32d42230b99bc7f7f0c8639994f64266c80242_78e96087-17a6-4fba-ba7a-0774ec5a9c7e.webp?v=1782722176"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6a3fef02267a62ad3472930a31b223feaeda80.webp?v=1762758534","options":["color"],"media":[{"alt":null,"id":26347859083363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6a3fef02267a62ad3472930a31b223feaeda80.webp?v=1762758534"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6a3fef02267a62ad3472930a31b223feaeda80.webp?v=1762758534","width":2000},{"alt":null,"id":26347859378275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc.webp?v=1762758536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc.webp?v=1762758536","width":2000},{"alt":null,"id":26347859673187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32d42230b99bc7f7f0c8639994f64266c80242.webp?v=1762758536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32d42230b99bc7f7f0c8639994f64266c80242.webp?v=1762758536","width":2000},{"alt":null,"id":26347859935331,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8608bd749971ee4cd400fcdd50a214da20a325af.webp?v=1762758537"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8608bd749971ee4cd400fcdd50a214da20a325af.webp?v=1762758537","width":2000},{"alt":null,"id":27587362160739,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc_793f5e93-29d4-496a-8645-c244de4e18d1.webp?v=1782266029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc_793f5e93-29d4-496a-8645-c244de4e18d1.webp?v=1782266029","width":2000},{"alt":null,"id":27587362553955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32d42230b99bc7f7f0c8639994f64266c80242_b88c7e0a-bf3b-401f-9c83-c06ff2425c48.webp?v=1782266030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32d42230b99bc7f7f0c8639994f64266c80242_b88c7e0a-bf3b-401f-9c83-c06ff2425c48.webp?v=1782266030","width":2000},{"alt":null,"id":27587362881635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6a3fef02267a62ad3472930a31b223feaeda80_39ac1212-aefa-48f6-9d5d-db7ea61efb8a.webp?v=1782266030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6a3fef02267a62ad3472930a31b223feaeda80_39ac1212-aefa-48f6-9d5d-db7ea61efb8a.webp?v=1782266030","width":2000},{"alt":null,"id":27594694787171,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc_16bfe1bf-5fc6-473b-8dee-142de384b794.webp?v=1782291665"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc_16bfe1bf-5fc6-473b-8dee-142de384b794.webp?v=1782291665","width":2000},{"alt":null,"id":27594695114851,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32d42230b99bc7f7f0c8639994f64266c80242_0a58e91d-752b-4797-aff1-b62cdf7be20c.webp?v=1782291666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32d42230b99bc7f7f0c8639994f64266c80242_0a58e91d-752b-4797-aff1-b62cdf7be20c.webp?v=1782291666","width":2000},{"alt":null,"id":27594695737443,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6a3fef02267a62ad3472930a31b223feaeda80_1f7155b2-0f9d-4f53-96bb-4807dbb05c3f.webp?v=1782291666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6a3fef02267a62ad3472930a31b223feaeda80_1f7155b2-0f9d-4f53-96bb-4807dbb05c3f.webp?v=1782291666","width":2000},{"alt":null,"id":27630350925923,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc_7fe11df2-cbc1-4ef0-b86a-7d2429f1c68a.webp?v=1782718810"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc_7fe11df2-cbc1-4ef0-b86a-7d2429f1c68a.webp?v=1782718810","width":2000},{"alt":null,"id":27630351220835,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32d42230b99bc7f7f0c8639994f64266c80242_36ca87bb-59e7-441b-811c-ece653c7b8cc.webp?v=1782718812"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32d42230b99bc7f7f0c8639994f64266c80242_36ca87bb-59e7-441b-811c-ece653c7b8cc.webp?v=1782718812","width":2000},{"alt":null,"id":27631356412003,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6a3fef02267a62ad3472930a31b223feaeda80_e26d96dd-05c8-492e-b87d-32734adf256e.webp?v=1782722175"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6a3fef02267a62ad3472930a31b223feaeda80_e26d96dd-05c8-492e-b87d-32734adf256e.webp?v=1782722175","width":2000},{"alt":null,"id":27631356674147,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc_2d300970-5a21-4582-b6f2-e35cf668fd28.webp?v=1782722176"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc_2d300970-5a21-4582-b6f2-e35cf668fd28.webp?v=1782722176","width":2000},{"alt":null,"id":27631356805219,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32d42230b99bc7f7f0c8639994f64266c80242_78e96087-17a6-4fba-ba7a-0774ec5a9c7e.webp?v=1782722176"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32d42230b99bc7f7f0c8639994f64266c80242_78e96087-17a6-4fba-ba7a-0774ec5a9c7e.webp?v=1782722176","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43828955152483,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012950J-PTT05","requires_shipping":true,"taxable":true,"featured_image":{"id":36126114906211,"product_id":7920554147939,"position":14,"created_at":"2026-06-29T16:36:13+08:00","updated_at":"2026-06-29T16:36:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc_2d300970-5a21-4582-b6f2-e35cf668fd28.webp?v=1782722176","variant_ids":[43828955152483]},"available":true,"name":"iPhone 15 Clear (MagSafe 兼容) 咒術迴戰 懷玉・玉折角色系列-最強組合 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012950J-PTT05","featured_media":{"alt":null,"id":27631356674147,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc_2d300970-5a21-4582-b6f2-e35cf668fd28.webp?v=1782722176"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828956397667,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"MCN012950H-PTT05","requires_shipping":true,"taxable":true,"featured_image":{"id":36126115037283,"product_id":7920554147939,"position":15,"created_at":"2026-06-29T16:36:14+08:00","updated_at":"2026-06-29T16:36:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32d42230b99bc7f7f0c8639994f64266c80242_78e96087-17a6-4fba-ba7a-0774ec5a9c7e.webp?v=1782722176","variant_ids":[43828956397667]},"available":true,"name":"iPhone 15 Clear (MagSafe 兼容) 咒術迴戰 懷玉・玉折角色系列-最強組合 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012950H-PTT05","featured_media":{"alt":null,"id":27631356805219,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a32d42230b99bc7f7f0c8639994f64266c80242_78e96087-17a6-4fba-ba7a-0774ec5a9c7e.webp?v=1782722176"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828956463203,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012950G-PTT05","requires_shipping":true,"taxable":true,"featured_image":{"id":36126114644067,"product_id":7920554147939,"position":13,"created_at":"2026-06-29T16:36:13+08:00","updated_at":"2026-06-29T16:36:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6a3fef02267a62ad3472930a31b223feaeda80_e26d96dd-05c8-492e-b87d-32734adf256e.webp?v=1782722175","variant_ids":[43828956463203]},"available":true,"name":"iPhone 15 Clear (MagSafe 兼容) 咒術迴戰 懷玉・玉折角色系列-最強組合 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012950G-PTT05","featured_media":{"alt":null,"id":27631356412003,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6a3fef02267a62ad3472930a31b223feaeda80_e26d96dd-05c8-492e-b87d-32734adf256e.webp?v=1782722175"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828955152483,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012950J-PTT05","requires_shipping":true,"taxable":true,"featured_image":{"id":36126114906211,"product_id":7920554147939,"position":14,"created_at":"2026-06-29T16:36:13+08:00","updated_at":"2026-06-29T16:36:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc_2d300970-5a21-4582-b6f2-e35cf668fd28.webp?v=1782722176","variant_ids":[43828955152483]},"available":true,"name":"iPhone 15 Clear (MagSafe 兼容) 咒術迴戰 懷玉・玉折角色系列-最強組合 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012950J-PTT05","featured_media":{"alt":null,"id":27631356674147,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c871a96273a460c16a9869628653db408fac1bc_2d300970-5a21-4582-b6f2-e35cf668fd28.webp?v=1782722176"}},"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: "停產" }