$product = {"id":7920529145955,"title":"iPhone 15 Plus SolidX 咒術迴戰 澀谷事變戰鬥系列-伏黑惠","handle":"iphone-15-plus-solidx-ptt13","description":null,"published_at":"2025-11-10T16:35:45+08:00","created_at":"2025-11-10T15:03:10+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jujutsu-kaisen","device-iPhone 15 Plus","merge","reseller-jujutsu-kaisen"],"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":43828868055139,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125154279523,"product_id":7920529145955,"position":17,"created_at":"2026-06-29T15:42:50+08:00","updated_at":"2026-06-29T15:42:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c6e2191cef6abf3adf7e32bb70824dbb60d90d_79ea1c5d-0b42-4216-a8c3-816f4c1f514c.webp?v=1782718972","variant_ids":[43828868055139]},"available":true,"name":"iPhone 15 Plus SolidX 咒術迴戰 澀谷事變戰鬥系列-伏黑惠 - 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-PTT13","featured_media":{"alt":null,"id":27630397030499,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c6e2191cef6abf3adf7e32bb70824dbb60d90d_79ea1c5d-0b42-4216-a8c3-816f4c1f514c.webp?v=1782718972"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828872740963,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125154541667,"product_id":7920529145955,"position":18,"created_at":"2026-06-29T15:42:50+08:00","updated_at":"2026-06-29T15:42:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cc36cacecf9a34bb0b4bae744144a400110cc4e_ba4d2ed2-2496-4d3f-878f-3e9defd59bb4.webp?v=1782718972","variant_ids":[43828872740963]},"available":true,"name":"iPhone 15 Plus SolidX 咒術迴戰 澀谷事變戰鬥系列-伏黑惠 - 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-PTT13","featured_media":{"alt":null,"id":27630397292643,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cc36cacecf9a34bb0b4bae744144a400110cc4e_ba4d2ed2-2496-4d3f-878f-3e9defd59bb4.webp?v=1782718972"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23d2e7a66b4b5df5ac556794dabe25a694f22589.webp?v=1762758197","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0290785de3e9c6a38f4aab564f156c17abe32b0f.webp?v=1762758197","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28027ec016981a5f0d3d63c2868815475b917513.webp?v=1762758198","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cc36cacecf9a34bb0b4bae744144a400110cc4e.webp?v=1762758199","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02a60fa645795923c5a9adeb56f76cae5cb52acb.webp?v=1762758199","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4310bf0882de39120e2534bee4b5ff9b87c1877e.webp?v=1762758200","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ddd8adc2abf64bfef4b2c0cebcd0d29a8df0cb6.webp?v=1762758201","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81ea0cb1ad8a72e0762f047bc6ddb12c498fef95.webp?v=1762758202","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8d25e74e04970c01145393d14cbcb4554c77ebc.webp?v=1762758203","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c6e2191cef6abf3adf7e32bb70824dbb60d90d.webp?v=1762758203","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c6e2191cef6abf3adf7e32bb70824dbb60d90d_12b8a15b-9311-4dba-9579-0a44240286cb.webp?v=1782266139","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cc36cacecf9a34bb0b4bae744144a400110cc4e_620a0d8e-127f-45f6-ab96-decc288ec9bb.webp?v=1782266141","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ddd8adc2abf64bfef4b2c0cebcd0d29a8df0cb6_a0dedb70-0ee7-4fc3-8168-5f1c064fe907.webp?v=1782266142","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c6e2191cef6abf3adf7e32bb70824dbb60d90d_f37efb15-bcf7-41d1-af79-d4500f508511.webp?v=1782291741","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cc36cacecf9a34bb0b4bae744144a400110cc4e_06019a8b-a606-4cd2-a177-eacd5f1d8989.webp?v=1782291743","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ddd8adc2abf64bfef4b2c0cebcd0d29a8df0cb6_7699b739-0681-4acc-af71-c466afd7e25c.webp?v=1782291744","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c6e2191cef6abf3adf7e32bb70824dbb60d90d_79ea1c5d-0b42-4216-a8c3-816f4c1f514c.webp?v=1782718972","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cc36cacecf9a34bb0b4bae744144a400110cc4e_ba4d2ed2-2496-4d3f-878f-3e9defd59bb4.webp?v=1782718972","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ddd8adc2abf64bfef4b2c0cebcd0d29a8df0cb6_d6609db1-611b-44d0-8f81-a1ac5f3391c8.webp?v=1782718973"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23d2e7a66b4b5df5ac556794dabe25a694f22589.webp?v=1762758197","options":["color"],"media":[{"alt":null,"id":26347777425507,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23d2e7a66b4b5df5ac556794dabe25a694f22589.webp?v=1762758197"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23d2e7a66b4b5df5ac556794dabe25a694f22589.webp?v=1762758197","width":2000},{"alt":null,"id":26347777622115,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0290785de3e9c6a38f4aab564f156c17abe32b0f.webp?v=1762758197"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0290785de3e9c6a38f4aab564f156c17abe32b0f.webp?v=1762758197","width":2000},{"alt":null,"id":26347777917027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28027ec016981a5f0d3d63c2868815475b917513.webp?v=1762758198"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28027ec016981a5f0d3d63c2868815475b917513.webp?v=1762758198","width":2000},{"alt":null,"id":26347778146403,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cc36cacecf9a34bb0b4bae744144a400110cc4e.webp?v=1762758199"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cc36cacecf9a34bb0b4bae744144a400110cc4e.webp?v=1762758199","width":2000},{"alt":null,"id":26347778441315,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02a60fa645795923c5a9adeb56f76cae5cb52acb.webp?v=1762758199"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02a60fa645795923c5a9adeb56f76cae5cb52acb.webp?v=1762758199","width":2000},{"alt":null,"id":26347778572387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4310bf0882de39120e2534bee4b5ff9b87c1877e.webp?v=1762758200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4310bf0882de39120e2534bee4b5ff9b87c1877e.webp?v=1762758200","width":2000},{"alt":null,"id":26347778605155,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ddd8adc2abf64bfef4b2c0cebcd0d29a8df0cb6.webp?v=1762758201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ddd8adc2abf64bfef4b2c0cebcd0d29a8df0cb6.webp?v=1762758201","width":2000},{"alt":null,"id":26347778703459,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81ea0cb1ad8a72e0762f047bc6ddb12c498fef95.webp?v=1762758202"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81ea0cb1ad8a72e0762f047bc6ddb12c498fef95.webp?v=1762758202","width":2000},{"alt":null,"id":26347778768995,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8d25e74e04970c01145393d14cbcb4554c77ebc.webp?v=1762758203"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8d25e74e04970c01145393d14cbcb4554c77ebc.webp?v=1762758203","width":2000},{"alt":null,"id":26347778834531,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c6e2191cef6abf3adf7e32bb70824dbb60d90d.webp?v=1762758203"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c6e2191cef6abf3adf7e32bb70824dbb60d90d.webp?v=1762758203","width":2000},{"alt":null,"id":27587409510499,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c6e2191cef6abf3adf7e32bb70824dbb60d90d_12b8a15b-9311-4dba-9579-0a44240286cb.webp?v=1782266139"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c6e2191cef6abf3adf7e32bb70824dbb60d90d_12b8a15b-9311-4dba-9579-0a44240286cb.webp?v=1782266139","width":2000},{"alt":null,"id":27587410853987,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cc36cacecf9a34bb0b4bae744144a400110cc4e_620a0d8e-127f-45f6-ab96-decc288ec9bb.webp?v=1782266141"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cc36cacecf9a34bb0b4bae744144a400110cc4e_620a0d8e-127f-45f6-ab96-decc288ec9bb.webp?v=1782266141","width":2000},{"alt":null,"id":27587411345507,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ddd8adc2abf64bfef4b2c0cebcd0d29a8df0cb6_a0dedb70-0ee7-4fc3-8168-5f1c064fe907.webp?v=1782266142"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ddd8adc2abf64bfef4b2c0cebcd0d29a8df0cb6_a0dedb70-0ee7-4fc3-8168-5f1c064fe907.webp?v=1782266142","width":2000},{"alt":null,"id":27594719101027,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c6e2191cef6abf3adf7e32bb70824dbb60d90d_f37efb15-bcf7-41d1-af79-d4500f508511.webp?v=1782291741"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c6e2191cef6abf3adf7e32bb70824dbb60d90d_f37efb15-bcf7-41d1-af79-d4500f508511.webp?v=1782291741","width":2000},{"alt":null,"id":27594719690851,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cc36cacecf9a34bb0b4bae744144a400110cc4e_06019a8b-a606-4cd2-a177-eacd5f1d8989.webp?v=1782291743"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cc36cacecf9a34bb0b4bae744144a400110cc4e_06019a8b-a606-4cd2-a177-eacd5f1d8989.webp?v=1782291743","width":2000},{"alt":null,"id":27594720772195,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ddd8adc2abf64bfef4b2c0cebcd0d29a8df0cb6_7699b739-0681-4acc-af71-c466afd7e25c.webp?v=1782291744"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ddd8adc2abf64bfef4b2c0cebcd0d29a8df0cb6_7699b739-0681-4acc-af71-c466afd7e25c.webp?v=1782291744","width":2000},{"alt":null,"id":27630397030499,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c6e2191cef6abf3adf7e32bb70824dbb60d90d_79ea1c5d-0b42-4216-a8c3-816f4c1f514c.webp?v=1782718972"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c6e2191cef6abf3adf7e32bb70824dbb60d90d_79ea1c5d-0b42-4216-a8c3-816f4c1f514c.webp?v=1782718972","width":2000},{"alt":null,"id":27630397292643,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cc36cacecf9a34bb0b4bae744144a400110cc4e_ba4d2ed2-2496-4d3f-878f-3e9defd59bb4.webp?v=1782718972"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cc36cacecf9a34bb0b4bae744144a400110cc4e_ba4d2ed2-2496-4d3f-878f-3e9defd59bb4.webp?v=1782718972","width":2000},{"alt":null,"id":27630397522019,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ddd8adc2abf64bfef4b2c0cebcd0d29a8df0cb6_d6609db1-611b-44d0-8f81-a1ac5f3391c8.webp?v=1782718973"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ddd8adc2abf64bfef4b2c0cebcd0d29a8df0cb6_d6609db1-611b-44d0-8f81-a1ac5f3391c8.webp?v=1782718973","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43828868055139,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125154279523,"product_id":7920529145955,"position":17,"created_at":"2026-06-29T15:42:50+08:00","updated_at":"2026-06-29T15:42:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c6e2191cef6abf3adf7e32bb70824dbb60d90d_79ea1c5d-0b42-4216-a8c3-816f4c1f514c.webp?v=1782718972","variant_ids":[43828868055139]},"available":true,"name":"iPhone 15 Plus SolidX 咒術迴戰 澀谷事變戰鬥系列-伏黑惠 - 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-PTT13","featured_media":{"alt":null,"id":27630397030499,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c6e2191cef6abf3adf7e32bb70824dbb60d90d_79ea1c5d-0b42-4216-a8c3-816f4c1f514c.webp?v=1782718972"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828872740963,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125154541667,"product_id":7920529145955,"position":18,"created_at":"2026-06-29T15:42:50+08:00","updated_at":"2026-06-29T15:42:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cc36cacecf9a34bb0b4bae744144a400110cc4e_ba4d2ed2-2496-4d3f-878f-3e9defd59bb4.webp?v=1782718972","variant_ids":[43828872740963]},"available":true,"name":"iPhone 15 Plus SolidX 咒術迴戰 澀谷事變戰鬥系列-伏黑惠 - 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-PTT13","featured_media":{"alt":null,"id":27630397292643,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cc36cacecf9a34bb0b4bae744144a400110cc4e_ba4d2ed2-2496-4d3f-878f-3e9defd59bb4.webp?v=1782718972"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828868055139,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125154279523,"product_id":7920529145955,"position":17,"created_at":"2026-06-29T15:42:50+08:00","updated_at":"2026-06-29T15:42:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c6e2191cef6abf3adf7e32bb70824dbb60d90d_79ea1c5d-0b42-4216-a8c3-816f4c1f514c.webp?v=1782718972","variant_ids":[43828868055139]},"available":true,"name":"iPhone 15 Plus SolidX 咒術迴戰 澀谷事變戰鬥系列-伏黑惠 - 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-PTT13","featured_media":{"alt":null,"id":27630397030499,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c6e2191cef6abf3adf7e32bb70824dbb60d90d_79ea1c5d-0b42-4216-a8c3-816f4c1f514c.webp?v=1782718972"}},"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: "停產" }