$product = {"id":7829123039331,"title":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We佇遮!(紅)","handle":"iphone-15-plus-solidx-magsafe-bumper-back-original-design-do05","description":null,"published_at":"2025-07-31T09:45:05+08:00","created_at":"2025-06-30T16:35:23+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer-we-taiwan-a-we-collection","device-iPhone 15 Plus","discountable-item","merge","original-design","reseller-we-taiwan-a-we-collection"],"price":145000,"price_min":145000,"price_max":145000,"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":43503122776163,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MNS012960A-DO05","requires_shipping":true,"taxable":true,"featured_image":{"id":34100380172387,"product_id":7829123039331,"position":7,"created_at":"2025-06-30T16:35:29+08:00","updated_at":"2025-06-30T16:35:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf6f4061864fb27d4575ca3407c05401d268a2b_64711b41-15e7-4312-b694-8af616626db6.webp?v=1751272531","variant_ids":[43503122776163]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We佇遮!(紅) - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS012960A-DO05","featured_media":{"alt":null,"id":25756654239843,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf6f4061864fb27d4575ca3407c05401d268a2b_64711b41-15e7-4312-b694-8af616626db6.webp?v=1751272531"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503122808931,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MNS0129652-DO05","requires_shipping":true,"taxable":true,"featured_image":{"id":34100382040163,"product_id":7829123039331,"position":10,"created_at":"2025-06-30T16:35:31+08:00","updated_at":"2025-06-30T16:35:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1caee7775a492c8f20720138e1f71b18ba66282c_be8ae9b9-b085-41b8-ac2f-5685f087e8e2.webp?v=1751272532","variant_ids":[43503122808931]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We佇遮!(紅) - Black","public_title":"Black","options":["Black"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS0129652-DO05","featured_media":{"alt":null,"id":25756655878243,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1caee7775a492c8f20720138e1f71b18ba66282c_be8ae9b9-b085-41b8-ac2f-5685f087e8e2.webp?v=1751272532"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503122841699,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"MNS01296O8-DO05","requires_shipping":true,"taxable":true,"featured_image":{"id":34100376436835,"product_id":7829123039331,"position":2,"created_at":"2025-06-30T16:35:26+08:00","updated_at":"2025-06-30T16:35:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fddd704fcaa41ac90bbee84ec9a3ad76b06e2bf_0ef47440-e863-41d6-9373-607b0b0fee22.webp?v=1751272528","variant_ids":[43503122841699]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We佇遮!(紅) - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01296O8-DO05","featured_media":{"alt":null,"id":25756652863587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fddd704fcaa41ac90bbee84ec9a3ad76b06e2bf_0ef47440-e863-41d6-9373-607b0b0fee22.webp?v=1751272528"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503122907235,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"MNS01296Z7-DO05","requires_shipping":true,"taxable":true,"featured_image":{"id":34100378009699,"product_id":7829123039331,"position":4,"created_at":"2025-06-30T16:35:28+08:00","updated_at":"2025-06-30T16:35:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d9a646ad5f1f85e7e4c7a9a45f9a5118a9df346_35971564-77f4-4cb6-9d3b-e763352ec778.webp?v=1751272529","variant_ids":[43503122907235]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We佇遮!(紅) - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01296Z7-DO05","featured_media":{"alt":null,"id":25756653453411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d9a646ad5f1f85e7e4c7a9a45f9a5118a9df346_35971564-77f4-4cb6-9d3b-e763352ec778.webp?v=1751272529"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dd4f87ee22c6de2f0717f30073e0fb918f2a449_652c33db-fd91-4e63-b102-e263aaea3b8e.webp?v=1751272527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fddd704fcaa41ac90bbee84ec9a3ad76b06e2bf_0ef47440-e863-41d6-9373-607b0b0fee22.webp?v=1751272528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf40f98bd7c3edbe655091ff6953cf069d72d85a_b71bf014-2867-4481-97db-2e93aba7d974.webp?v=1751272529","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d9a646ad5f1f85e7e4c7a9a45f9a5118a9df346_35971564-77f4-4cb6-9d3b-e763352ec778.webp?v=1751272529","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de7dd86c9d5549204929687f22d7c7e2be046aac_3dfcf126-8fc7-4227-8069-5d102f217a25.webp?v=1751272530","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f14749fd65aa8d62a9b26e3b54e329aba5be6d9b_56e9ae52-d2e4-4c85-8e19-7cc549462265.webp?v=1751272530","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf6f4061864fb27d4575ca3407c05401d268a2b_64711b41-15e7-4312-b694-8af616626db6.webp?v=1751272531","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3e85d1b7558df2f91c1840e0c73497a6e0650f3_023fc8f6-d1a1-4380-b9cb-2cf93a5f828d.webp?v=1751272531","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9199c1c352abd5035a816cc610bf48f9f8d5b3a2_eac89d8c-bccb-4cab-8ad8-d7eecd6d6aea.webp?v=1751272532","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1caee7775a492c8f20720138e1f71b18ba66282c_be8ae9b9-b085-41b8-ac2f-5685f087e8e2.webp?v=1751272532"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dd4f87ee22c6de2f0717f30073e0fb918f2a449_652c33db-fd91-4e63-b102-e263aaea3b8e.webp?v=1751272527","options":["color"],"media":[{"alt":null,"id":25756652601443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dd4f87ee22c6de2f0717f30073e0fb918f2a449_652c33db-fd91-4e63-b102-e263aaea3b8e.webp?v=1751272527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dd4f87ee22c6de2f0717f30073e0fb918f2a449_652c33db-fd91-4e63-b102-e263aaea3b8e.webp?v=1751272527","width":2000},{"alt":null,"id":25756652863587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fddd704fcaa41ac90bbee84ec9a3ad76b06e2bf_0ef47440-e863-41d6-9373-607b0b0fee22.webp?v=1751272528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fddd704fcaa41ac90bbee84ec9a3ad76b06e2bf_0ef47440-e863-41d6-9373-607b0b0fee22.webp?v=1751272528","width":2000},{"alt":null,"id":25756653060195,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf40f98bd7c3edbe655091ff6953cf069d72d85a_b71bf014-2867-4481-97db-2e93aba7d974.webp?v=1751272529"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf40f98bd7c3edbe655091ff6953cf069d72d85a_b71bf014-2867-4481-97db-2e93aba7d974.webp?v=1751272529","width":2000},{"alt":null,"id":25756653453411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d9a646ad5f1f85e7e4c7a9a45f9a5118a9df346_35971564-77f4-4cb6-9d3b-e763352ec778.webp?v=1751272529"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d9a646ad5f1f85e7e4c7a9a45f9a5118a9df346_35971564-77f4-4cb6-9d3b-e763352ec778.webp?v=1751272529","width":2000},{"alt":null,"id":25756653748323,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de7dd86c9d5549204929687f22d7c7e2be046aac_3dfcf126-8fc7-4227-8069-5d102f217a25.webp?v=1751272530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de7dd86c9d5549204929687f22d7c7e2be046aac_3dfcf126-8fc7-4227-8069-5d102f217a25.webp?v=1751272530","width":2000},{"alt":null,"id":25756654010467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f14749fd65aa8d62a9b26e3b54e329aba5be6d9b_56e9ae52-d2e4-4c85-8e19-7cc549462265.webp?v=1751272530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f14749fd65aa8d62a9b26e3b54e329aba5be6d9b_56e9ae52-d2e4-4c85-8e19-7cc549462265.webp?v=1751272530","width":2000},{"alt":null,"id":25756654239843,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf6f4061864fb27d4575ca3407c05401d268a2b_64711b41-15e7-4312-b694-8af616626db6.webp?v=1751272531"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf6f4061864fb27d4575ca3407c05401d268a2b_64711b41-15e7-4312-b694-8af616626db6.webp?v=1751272531","width":2000},{"alt":null,"id":25756654895203,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3e85d1b7558df2f91c1840e0c73497a6e0650f3_023fc8f6-d1a1-4380-b9cb-2cf93a5f828d.webp?v=1751272531"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3e85d1b7558df2f91c1840e0c73497a6e0650f3_023fc8f6-d1a1-4380-b9cb-2cf93a5f828d.webp?v=1751272531","width":2000},{"alt":null,"id":25756655485027,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9199c1c352abd5035a816cc610bf48f9f8d5b3a2_eac89d8c-bccb-4cab-8ad8-d7eecd6d6aea.webp?v=1751272532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9199c1c352abd5035a816cc610bf48f9f8d5b3a2_eac89d8c-bccb-4cab-8ad8-d7eecd6d6aea.webp?v=1751272532","width":2000},{"alt":null,"id":25756655878243,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1caee7775a492c8f20720138e1f71b18ba66282c_be8ae9b9-b085-41b8-ac2f-5685f087e8e2.webp?v=1751272532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1caee7775a492c8f20720138e1f71b18ba66282c_be8ae9b9-b085-41b8-ac2f-5685f087e8e2.webp?v=1751272532","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43503122776163,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MNS012960A-DO05","requires_shipping":true,"taxable":true,"featured_image":{"id":34100380172387,"product_id":7829123039331,"position":7,"created_at":"2025-06-30T16:35:29+08:00","updated_at":"2025-06-30T16:35:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf6f4061864fb27d4575ca3407c05401d268a2b_64711b41-15e7-4312-b694-8af616626db6.webp?v=1751272531","variant_ids":[43503122776163]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We佇遮!(紅) - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS012960A-DO05","featured_media":{"alt":null,"id":25756654239843,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf6f4061864fb27d4575ca3407c05401d268a2b_64711b41-15e7-4312-b694-8af616626db6.webp?v=1751272531"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503122808931,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MNS0129652-DO05","requires_shipping":true,"taxable":true,"featured_image":{"id":34100382040163,"product_id":7829123039331,"position":10,"created_at":"2025-06-30T16:35:31+08:00","updated_at":"2025-06-30T16:35:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1caee7775a492c8f20720138e1f71b18ba66282c_be8ae9b9-b085-41b8-ac2f-5685f087e8e2.webp?v=1751272532","variant_ids":[43503122808931]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We佇遮!(紅) - Black","public_title":"Black","options":["Black"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS0129652-DO05","featured_media":{"alt":null,"id":25756655878243,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1caee7775a492c8f20720138e1f71b18ba66282c_be8ae9b9-b085-41b8-ac2f-5685f087e8e2.webp?v=1751272532"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503122841699,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"MNS01296O8-DO05","requires_shipping":true,"taxable":true,"featured_image":{"id":34100376436835,"product_id":7829123039331,"position":2,"created_at":"2025-06-30T16:35:26+08:00","updated_at":"2025-06-30T16:35:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fddd704fcaa41ac90bbee84ec9a3ad76b06e2bf_0ef47440-e863-41d6-9373-607b0b0fee22.webp?v=1751272528","variant_ids":[43503122841699]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We佇遮!(紅) - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01296O8-DO05","featured_media":{"alt":null,"id":25756652863587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fddd704fcaa41ac90bbee84ec9a3ad76b06e2bf_0ef47440-e863-41d6-9373-607b0b0fee22.webp?v=1751272528"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503122907235,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"MNS01296Z7-DO05","requires_shipping":true,"taxable":true,"featured_image":{"id":34100378009699,"product_id":7829123039331,"position":4,"created_at":"2025-06-30T16:35:28+08:00","updated_at":"2025-06-30T16:35:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d9a646ad5f1f85e7e4c7a9a45f9a5118a9df346_35971564-77f4-4cb6-9d3b-e763352ec778.webp?v=1751272529","variant_ids":[43503122907235]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We佇遮!(紅) - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01296Z7-DO05","featured_media":{"alt":null,"id":25756653453411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d9a646ad5f1f85e7e4c7a9a45f9a5118a9df346_35971564-77f4-4cb6-9d3b-e763352ec778.webp?v=1751272529"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43503122776163,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MNS012960A-DO05","requires_shipping":true,"taxable":true,"featured_image":{"id":34100380172387,"product_id":7829123039331,"position":7,"created_at":"2025-06-30T16:35:29+08:00","updated_at":"2025-06-30T16:35:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf6f4061864fb27d4575ca3407c05401d268a2b_64711b41-15e7-4312-b694-8af616626db6.webp?v=1751272531","variant_ids":[43503122776163]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We佇遮!(紅) - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS012960A-DO05","featured_media":{"alt":null,"id":25756654239843,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf6f4061864fb27d4575ca3407c05401d268a2b_64711b41-15e7-4312-b694-8af616626db6.webp?v=1751272531"}},"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: "停產" }