$product = {"id":7873325727843,"title":"iPhone 15 Pro Max SolidX Keigo Beach Volleyball","handle":"iphone-15-pro-max-solidx-kei02","description":null,"published_at":"2025-09-01T10:31:25+08:00","created_at":"2025-09-01T09:54:09+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-keigo","device-iPhone 15 Pro Max","merge","reseller-keigo"],"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":43658768941155,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-KEI02","requires_shipping":true,"taxable":true,"featured_image":{"id":36319511937123,"product_id":7873325727843,"position":17,"created_at":"2026-07-20T13:07:59+08:00","updated_at":"2026-07-20T13:08:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0afbc2355572100cf3718389e7ad6c4e7886f46b_3a00d381-021a-4e08-9879-693a1472bcf3.webp?v=1784524082","variant_ids":[43658768941155]},"available":true,"name":"iPhone 15 Pro Max SolidX Keigo Beach Volleyball - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129853-KEI02","featured_media":{"alt":null,"id":27823464251491,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0afbc2355572100cf3718389e7ad6c4e7886f46b_3a00d381-021a-4e08-9879-693a1472bcf3.webp?v=1784524082"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658772709475,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-KEI02","requires_shipping":true,"taxable":true,"featured_image":{"id":36319512264803,"product_id":7873325727843,"position":20,"created_at":"2026-07-20T13:08:05+08:00","updated_at":"2026-07-20T13:08:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8aaee7a2e5a0589b2bebf520d697f30c52c25bd_fd0e6bf1-81b0-4a48-a72f-f17851c64928.webp?v=1784524087","variant_ids":[43658772709475]},"available":true,"name":"iPhone 15 Pro Max SolidX Keigo Beach Volleyball - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-KEI02","featured_media":{"alt":null,"id":27823464579171,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8aaee7a2e5a0589b2bebf520d697f30c52c25bd_fd0e6bf1-81b0-4a48-a72f-f17851c64928.webp?v=1784524087"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c555074627a5861bc51c9def916afa7c20169a55.webp?v=1756691656","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cb60e8137d831b94ddcd2d48e247213dbd8f4aa.webp?v=1756691657","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7d70553da3e9a0c51a1174d3fe8ecc9c976fb11.webp?v=1756691658","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9906bce042f7b6fac92c4c1424f45b406ba78b3b.webp?v=1756691659","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f133d8485676ec90cf2c4c7ff142a97fbd4b2b01.webp?v=1756691659","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44eb5fc1a1ba07cc602307a542a44f94227afbc9.webp?v=1756691660","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0afbc2355572100cf3718389e7ad6c4e7886f46b.webp?v=1756691661","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8aaee7a2e5a0589b2bebf520d697f30c52c25bd.webp?v=1756691661","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcff583039f856d65a66bb9908f0d8577e672312.webp?v=1756691662","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1815860f0a89dae10f2495f5fada6c2107e452f.webp?v=1756691663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0afbc2355572100cf3718389e7ad6c4e7886f46b_75d9b97b-237d-4bf8-8190-fcffd79c5144.webp?v=1784107318","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8aaee7a2e5a0589b2bebf520d697f30c52c25bd_e4575ed0-d7a2-41d1-beca-a72a84660ad7.webp?v=1784107318","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9906bce042f7b6fac92c4c1424f45b406ba78b3b_d17c1afc-5eae-413b-b94a-7b4d6c6a0a0a.webp?v=1784107319","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44eb5fc1a1ba07cc602307a542a44f94227afbc9_597d7832-5c12-4424-8bcf-50aeee1865a6.webp?v=1784107319","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1815860f0a89dae10f2495f5fada6c2107e452f_be90912c-eb0c-442c-9027-8146caf7c0e3.webp?v=1784107320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9906bce042f7b6fac92c4c1424f45b406ba78b3b_01c8adb2-6861-4fce-8b5d-38003998e6c9.webp?v=1784524081","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0afbc2355572100cf3718389e7ad6c4e7886f46b_3a00d381-021a-4e08-9879-693a1472bcf3.webp?v=1784524082","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1815860f0a89dae10f2495f5fada6c2107e452f_c3fd2584-410d-4e03-9cb8-914e50e5fe1b.webp?v=1784524083","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44eb5fc1a1ba07cc602307a542a44f94227afbc9_273691db-4b07-4eca-bfde-eeda3de1829a.webp?v=1784524086","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8aaee7a2e5a0589b2bebf520d697f30c52c25bd_fd0e6bf1-81b0-4a48-a72f-f17851c64928.webp?v=1784524087"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c555074627a5861bc51c9def916afa7c20169a55.webp?v=1756691656","options":["color"],"media":[{"alt":null,"id":25982436573283,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c555074627a5861bc51c9def916afa7c20169a55.webp?v=1756691656"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c555074627a5861bc51c9def916afa7c20169a55.webp?v=1756691656","width":2000},{"alt":null,"id":25982436737123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cb60e8137d831b94ddcd2d48e247213dbd8f4aa.webp?v=1756691657"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cb60e8137d831b94ddcd2d48e247213dbd8f4aa.webp?v=1756691657","width":2000},{"alt":null,"id":25982437032035,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7d70553da3e9a0c51a1174d3fe8ecc9c976fb11.webp?v=1756691658"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7d70553da3e9a0c51a1174d3fe8ecc9c976fb11.webp?v=1756691658","width":2000},{"alt":null,"id":25982437326947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9906bce042f7b6fac92c4c1424f45b406ba78b3b.webp?v=1756691659"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9906bce042f7b6fac92c4c1424f45b406ba78b3b.webp?v=1756691659","width":2000},{"alt":null,"id":25982437654627,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f133d8485676ec90cf2c4c7ff142a97fbd4b2b01.webp?v=1756691659"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f133d8485676ec90cf2c4c7ff142a97fbd4b2b01.webp?v=1756691659","width":2000},{"alt":null,"id":25982437982307,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44eb5fc1a1ba07cc602307a542a44f94227afbc9.webp?v=1756691660"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44eb5fc1a1ba07cc602307a542a44f94227afbc9.webp?v=1756691660","width":2000},{"alt":null,"id":25982438309987,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0afbc2355572100cf3718389e7ad6c4e7886f46b.webp?v=1756691661"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0afbc2355572100cf3718389e7ad6c4e7886f46b.webp?v=1756691661","width":2000},{"alt":null,"id":25982438670435,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8aaee7a2e5a0589b2bebf520d697f30c52c25bd.webp?v=1756691661"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8aaee7a2e5a0589b2bebf520d697f30c52c25bd.webp?v=1756691661","width":2000},{"alt":null,"id":25982438965347,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcff583039f856d65a66bb9908f0d8577e672312.webp?v=1756691662"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcff583039f856d65a66bb9908f0d8577e672312.webp?v=1756691662","width":2000},{"alt":null,"id":25982439161955,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1815860f0a89dae10f2495f5fada6c2107e452f.webp?v=1756691663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1815860f0a89dae10f2495f5fada6c2107e452f.webp?v=1756691663","width":2000},{"alt":null,"id":27777177878627,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0afbc2355572100cf3718389e7ad6c4e7886f46b_75d9b97b-237d-4bf8-8190-fcffd79c5144.webp?v=1784107318"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0afbc2355572100cf3718389e7ad6c4e7886f46b_75d9b97b-237d-4bf8-8190-fcffd79c5144.webp?v=1784107318","width":2000},{"alt":null,"id":27777178304611,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8aaee7a2e5a0589b2bebf520d697f30c52c25bd_e4575ed0-d7a2-41d1-beca-a72a84660ad7.webp?v=1784107318"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8aaee7a2e5a0589b2bebf520d697f30c52c25bd_e4575ed0-d7a2-41d1-beca-a72a84660ad7.webp?v=1784107318","width":2000},{"alt":null,"id":27777178632291,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9906bce042f7b6fac92c4c1424f45b406ba78b3b_d17c1afc-5eae-413b-b94a-7b4d6c6a0a0a.webp?v=1784107319"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9906bce042f7b6fac92c4c1424f45b406ba78b3b_d17c1afc-5eae-413b-b94a-7b4d6c6a0a0a.webp?v=1784107319","width":2000},{"alt":null,"id":27777179058275,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44eb5fc1a1ba07cc602307a542a44f94227afbc9_597d7832-5c12-4424-8bcf-50aeee1865a6.webp?v=1784107319"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44eb5fc1a1ba07cc602307a542a44f94227afbc9_597d7832-5c12-4424-8bcf-50aeee1865a6.webp?v=1784107319","width":2000},{"alt":null,"id":27777179418723,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1815860f0a89dae10f2495f5fada6c2107e452f_be90912c-eb0c-442c-9027-8146caf7c0e3.webp?v=1784107320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1815860f0a89dae10f2495f5fada6c2107e452f_be90912c-eb0c-442c-9027-8146caf7c0e3.webp?v=1784107320","width":2000},{"alt":null,"id":27823464153187,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9906bce042f7b6fac92c4c1424f45b406ba78b3b_01c8adb2-6861-4fce-8b5d-38003998e6c9.webp?v=1784524081"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9906bce042f7b6fac92c4c1424f45b406ba78b3b_01c8adb2-6861-4fce-8b5d-38003998e6c9.webp?v=1784524081","width":2000},{"alt":null,"id":27823464251491,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0afbc2355572100cf3718389e7ad6c4e7886f46b_3a00d381-021a-4e08-9879-693a1472bcf3.webp?v=1784524082"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0afbc2355572100cf3718389e7ad6c4e7886f46b_3a00d381-021a-4e08-9879-693a1472bcf3.webp?v=1784524082","width":2000},{"alt":null,"id":27823464349795,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1815860f0a89dae10f2495f5fada6c2107e452f_c3fd2584-410d-4e03-9cb8-914e50e5fe1b.webp?v=1784524083"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1815860f0a89dae10f2495f5fada6c2107e452f_c3fd2584-410d-4e03-9cb8-914e50e5fe1b.webp?v=1784524083","width":2000},{"alt":null,"id":27823464480867,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44eb5fc1a1ba07cc602307a542a44f94227afbc9_273691db-4b07-4eca-bfde-eeda3de1829a.webp?v=1784524086"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44eb5fc1a1ba07cc602307a542a44f94227afbc9_273691db-4b07-4eca-bfde-eeda3de1829a.webp?v=1784524086","width":2000},{"alt":null,"id":27823464579171,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8aaee7a2e5a0589b2bebf520d697f30c52c25bd_fd0e6bf1-81b0-4a48-a72f-f17851c64928.webp?v=1784524087"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8aaee7a2e5a0589b2bebf520d697f30c52c25bd_fd0e6bf1-81b0-4a48-a72f-f17851c64928.webp?v=1784524087","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43658768941155,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-KEI02","requires_shipping":true,"taxable":true,"featured_image":{"id":36319511937123,"product_id":7873325727843,"position":17,"created_at":"2026-07-20T13:07:59+08:00","updated_at":"2026-07-20T13:08:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0afbc2355572100cf3718389e7ad6c4e7886f46b_3a00d381-021a-4e08-9879-693a1472bcf3.webp?v=1784524082","variant_ids":[43658768941155]},"available":true,"name":"iPhone 15 Pro Max SolidX Keigo Beach Volleyball - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129853-KEI02","featured_media":{"alt":null,"id":27823464251491,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0afbc2355572100cf3718389e7ad6c4e7886f46b_3a00d381-021a-4e08-9879-693a1472bcf3.webp?v=1784524082"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658772709475,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-KEI02","requires_shipping":true,"taxable":true,"featured_image":{"id":36319512264803,"product_id":7873325727843,"position":20,"created_at":"2026-07-20T13:08:05+08:00","updated_at":"2026-07-20T13:08:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8aaee7a2e5a0589b2bebf520d697f30c52c25bd_fd0e6bf1-81b0-4a48-a72f-f17851c64928.webp?v=1784524087","variant_ids":[43658772709475]},"available":true,"name":"iPhone 15 Pro Max SolidX Keigo Beach Volleyball - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-KEI02","featured_media":{"alt":null,"id":27823464579171,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8aaee7a2e5a0589b2bebf520d697f30c52c25bd_fd0e6bf1-81b0-4a48-a72f-f17851c64928.webp?v=1784524087"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43658768941155,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-KEI02","requires_shipping":true,"taxable":true,"featured_image":{"id":36319511937123,"product_id":7873325727843,"position":17,"created_at":"2026-07-20T13:07:59+08:00","updated_at":"2026-07-20T13:08:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0afbc2355572100cf3718389e7ad6c4e7886f46b_3a00d381-021a-4e08-9879-693a1472bcf3.webp?v=1784524082","variant_ids":[43658768941155]},"available":true,"name":"iPhone 15 Pro Max SolidX Keigo Beach Volleyball - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129853-KEI02","featured_media":{"alt":null,"id":27823464251491,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0afbc2355572100cf3718389e7ad6c4e7886f46b_3a00d381-021a-4e08-9879-693a1472bcf3.webp?v=1784524082"}},"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: "停產" }