$product = {"id":7827281346659,"title":"iPhone 15 Plus SolidX Tour de France Rolling On!","handle":"iphone-15-plus-solidx-bumper-back-crossover-design-tdf04","description":null,"published_at":"2025-07-14T10:59:32+08:00","created_at":"2025-06-26T15:26:05+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-tour-de-france","device-iPhone 15 Plus","merge","reseller-tour-de-france"],"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":43497427959907,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-TDF04","requires_shipping":true,"taxable":true,"featured_image":{"id":34099563298915,"product_id":7827281346659,"position":20,"created_at":"2025-06-30T15:58:17+08:00","updated_at":"2025-06-30T15:58:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeb59ba1593fac22c0c52c506b7ecc539ff2753e_14dd290e-5204-4f64-8ef1-374675ba61e1.webp?v=1751270299","variant_ids":[43497427959907]},"available":true,"name":"iPhone 15 Plus SolidX Tour de France Rolling On! - 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-TDF04","featured_media":{"alt":null,"id":25756184412259,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeb59ba1593fac22c0c52c506b7ecc539ff2753e_14dd290e-5204-4f64-8ef1-374675ba61e1.webp?v=1751270299"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43497431728227,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-TDF04","requires_shipping":true,"taxable":true,"featured_image":{"id":34099561463907,"product_id":7827281346659,"position":17,"created_at":"2025-06-30T15:58:15+08:00","updated_at":"2025-06-30T15:58:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b0e712f903966990e98bfb023327eb3adf34553_9c661594-4de4-4eb8-8f22-198433888e8a.webp?v=1751270297","variant_ids":[43497431728227]},"available":true,"name":"iPhone 15 Plus SolidX Tour de France Rolling On! - 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-TDF04","featured_media":{"alt":null,"id":25756183461987,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b0e712f903966990e98bfb023327eb3adf34553_9c661594-4de4-4eb8-8f22-198433888e8a.webp?v=1751270297"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2872c0d456dea395f03c9384fb26117a8c1b5a71.webp?v=1750922771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeb59ba1593fac22c0c52c506b7ecc539ff2753e.webp?v=1750922771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5745dfb2fcf685091ee2d1e9800cb46814924d7e.webp?v=1750922772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b0e712f903966990e98bfb023327eb3adf34553.webp?v=1750922773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a88451fb6387cc79702d36ff149eed7f8daed0d5.webp?v=1750922773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46c17d7f63edd787c5f82f5b6acbb320e59aad70.webp?v=1750922774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa98f5a6cd938b229534a4a1a4892169c0f65bd.webp?v=1750922774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63ac8269c51853b58155f6e1579f7131b045d80.webp?v=1750922775","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4c417971739adac8b4ca751c287fa9ef8ab0dfb.webp?v=1750922775","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc15f6ba417fabc0d80886c91534c23ac5cbf047.webp?v=1750922776","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63ac8269c51853b58155f6e1579f7131b045d80_318bb6c2-e01b-4a6e-a8e8-3aab71a04b91.webp?v=1751270293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5745dfb2fcf685091ee2d1e9800cb46814924d7e_43a180e3-1fd3-47f1-9fb3-8a1cdc9cc6ef.webp?v=1751270294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2872c0d456dea395f03c9384fb26117a8c1b5a71_ead74255-c08e-45db-92a8-5c621b90b0de.webp?v=1751270295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc15f6ba417fabc0d80886c91534c23ac5cbf047_39f06a05-f994-4be0-8aef-212dea592a27.webp?v=1751270295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46c17d7f63edd787c5f82f5b6acbb320e59aad70_5e3f971f-74aa-428d-be47-ee6b3d75727f.webp?v=1751270296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa98f5a6cd938b229534a4a1a4892169c0f65bd_abd9da98-9b69-4b47-9ed9-147a816d4a9b.webp?v=1751270296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b0e712f903966990e98bfb023327eb3adf34553_9c661594-4de4-4eb8-8f22-198433888e8a.webp?v=1751270297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a88451fb6387cc79702d36ff149eed7f8daed0d5_d9ae63a1-9674-4d4f-b567-cb123456064d.webp?v=1751270298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4c417971739adac8b4ca751c287fa9ef8ab0dfb_5f148e31-cd5f-47aa-893c-57a2f4e34161.webp?v=1751270298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeb59ba1593fac22c0c52c506b7ecc539ff2753e_14dd290e-5204-4f64-8ef1-374675ba61e1.webp?v=1751270299"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2872c0d456dea395f03c9384fb26117a8c1b5a71.webp?v=1750922771","options":["color"],"media":[{"alt":null,"id":25742911242339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2872c0d456dea395f03c9384fb26117a8c1b5a71.webp?v=1750922771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2872c0d456dea395f03c9384fb26117a8c1b5a71.webp?v=1750922771","width":2000},{"alt":null,"id":25742911373411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeb59ba1593fac22c0c52c506b7ecc539ff2753e.webp?v=1750922771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeb59ba1593fac22c0c52c506b7ecc539ff2753e.webp?v=1750922771","width":2000},{"alt":null,"id":25742911635555,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5745dfb2fcf685091ee2d1e9800cb46814924d7e.webp?v=1750922772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5745dfb2fcf685091ee2d1e9800cb46814924d7e.webp?v=1750922772","width":2000},{"alt":null,"id":25742912389219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b0e712f903966990e98bfb023327eb3adf34553.webp?v=1750922773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b0e712f903966990e98bfb023327eb3adf34553.webp?v=1750922773","width":2000},{"alt":null,"id":25742912553059,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a88451fb6387cc79702d36ff149eed7f8daed0d5.webp?v=1750922773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a88451fb6387cc79702d36ff149eed7f8daed0d5.webp?v=1750922773","width":2000},{"alt":null,"id":25742912684131,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46c17d7f63edd787c5f82f5b6acbb320e59aad70.webp?v=1750922774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46c17d7f63edd787c5f82f5b6acbb320e59aad70.webp?v=1750922774","width":2000},{"alt":null,"id":25742912946275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa98f5a6cd938b229534a4a1a4892169c0f65bd.webp?v=1750922774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa98f5a6cd938b229534a4a1a4892169c0f65bd.webp?v=1750922774","width":2000},{"alt":null,"id":25742913044579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63ac8269c51853b58155f6e1579f7131b045d80.webp?v=1750922775"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63ac8269c51853b58155f6e1579f7131b045d80.webp?v=1750922775","width":2000},{"alt":null,"id":25742913273955,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4c417971739adac8b4ca751c287fa9ef8ab0dfb.webp?v=1750922775"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4c417971739adac8b4ca751c287fa9ef8ab0dfb.webp?v=1750922775","width":2000},{"alt":null,"id":25742913536099,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc15f6ba417fabc0d80886c91534c23ac5cbf047.webp?v=1750922776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc15f6ba417fabc0d80886c91534c23ac5cbf047.webp?v=1750922776","width":2000},{"alt":null,"id":25756182184035,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63ac8269c51853b58155f6e1579f7131b045d80_318bb6c2-e01b-4a6e-a8e8-3aab71a04b91.webp?v=1751270293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63ac8269c51853b58155f6e1579f7131b045d80_318bb6c2-e01b-4a6e-a8e8-3aab71a04b91.webp?v=1751270293","width":2000},{"alt":null,"id":25756182446179,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5745dfb2fcf685091ee2d1e9800cb46814924d7e_43a180e3-1fd3-47f1-9fb3-8a1cdc9cc6ef.webp?v=1751270294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5745dfb2fcf685091ee2d1e9800cb46814924d7e_43a180e3-1fd3-47f1-9fb3-8a1cdc9cc6ef.webp?v=1751270294","width":2000},{"alt":null,"id":25756182642787,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2872c0d456dea395f03c9384fb26117a8c1b5a71_ead74255-c08e-45db-92a8-5c621b90b0de.webp?v=1751270295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2872c0d456dea395f03c9384fb26117a8c1b5a71_ead74255-c08e-45db-92a8-5c621b90b0de.webp?v=1751270295","width":2000},{"alt":null,"id":25756182872163,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc15f6ba417fabc0d80886c91534c23ac5cbf047_39f06a05-f994-4be0-8aef-212dea592a27.webp?v=1751270295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc15f6ba417fabc0d80886c91534c23ac5cbf047_39f06a05-f994-4be0-8aef-212dea592a27.webp?v=1751270295","width":2000},{"alt":null,"id":25756183003235,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46c17d7f63edd787c5f82f5b6acbb320e59aad70_5e3f971f-74aa-428d-be47-ee6b3d75727f.webp?v=1751270296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46c17d7f63edd787c5f82f5b6acbb320e59aad70_5e3f971f-74aa-428d-be47-ee6b3d75727f.webp?v=1751270296","width":2000},{"alt":null,"id":25756183199843,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa98f5a6cd938b229534a4a1a4892169c0f65bd_abd9da98-9b69-4b47-9ed9-147a816d4a9b.webp?v=1751270296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa98f5a6cd938b229534a4a1a4892169c0f65bd_abd9da98-9b69-4b47-9ed9-147a816d4a9b.webp?v=1751270296","width":2000},{"alt":null,"id":25756183461987,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b0e712f903966990e98bfb023327eb3adf34553_9c661594-4de4-4eb8-8f22-198433888e8a.webp?v=1751270297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b0e712f903966990e98bfb023327eb3adf34553_9c661594-4de4-4eb8-8f22-198433888e8a.webp?v=1751270297","width":2000},{"alt":null,"id":25756183822435,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a88451fb6387cc79702d36ff149eed7f8daed0d5_d9ae63a1-9674-4d4f-b567-cb123456064d.webp?v=1751270298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a88451fb6387cc79702d36ff149eed7f8daed0d5_d9ae63a1-9674-4d4f-b567-cb123456064d.webp?v=1751270298","width":2000},{"alt":null,"id":25756184182883,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4c417971739adac8b4ca751c287fa9ef8ab0dfb_5f148e31-cd5f-47aa-893c-57a2f4e34161.webp?v=1751270298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4c417971739adac8b4ca751c287fa9ef8ab0dfb_5f148e31-cd5f-47aa-893c-57a2f4e34161.webp?v=1751270298","width":2000},{"alt":null,"id":25756184412259,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeb59ba1593fac22c0c52c506b7ecc539ff2753e_14dd290e-5204-4f64-8ef1-374675ba61e1.webp?v=1751270299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeb59ba1593fac22c0c52c506b7ecc539ff2753e_14dd290e-5204-4f64-8ef1-374675ba61e1.webp?v=1751270299","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43497427959907,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-TDF04","requires_shipping":true,"taxable":true,"featured_image":{"id":34099563298915,"product_id":7827281346659,"position":20,"created_at":"2025-06-30T15:58:17+08:00","updated_at":"2025-06-30T15:58:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeb59ba1593fac22c0c52c506b7ecc539ff2753e_14dd290e-5204-4f64-8ef1-374675ba61e1.webp?v=1751270299","variant_ids":[43497427959907]},"available":true,"name":"iPhone 15 Plus SolidX Tour de France Rolling On! - 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-TDF04","featured_media":{"alt":null,"id":25756184412259,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeb59ba1593fac22c0c52c506b7ecc539ff2753e_14dd290e-5204-4f64-8ef1-374675ba61e1.webp?v=1751270299"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43497431728227,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-TDF04","requires_shipping":true,"taxable":true,"featured_image":{"id":34099561463907,"product_id":7827281346659,"position":17,"created_at":"2025-06-30T15:58:15+08:00","updated_at":"2025-06-30T15:58:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b0e712f903966990e98bfb023327eb3adf34553_9c661594-4de4-4eb8-8f22-198433888e8a.webp?v=1751270297","variant_ids":[43497431728227]},"available":true,"name":"iPhone 15 Plus SolidX Tour de France Rolling On! - 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-TDF04","featured_media":{"alt":null,"id":25756183461987,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b0e712f903966990e98bfb023327eb3adf34553_9c661594-4de4-4eb8-8f22-198433888e8a.webp?v=1751270297"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43497427959907,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-TDF04","requires_shipping":true,"taxable":true,"featured_image":{"id":34099563298915,"product_id":7827281346659,"position":20,"created_at":"2025-06-30T15:58:17+08:00","updated_at":"2025-06-30T15:58:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeb59ba1593fac22c0c52c506b7ecc539ff2753e_14dd290e-5204-4f64-8ef1-374675ba61e1.webp?v=1751270299","variant_ids":[43497427959907]},"available":true,"name":"iPhone 15 Plus SolidX Tour de France Rolling On! - 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-TDF04","featured_media":{"alt":null,"id":25756184412259,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeb59ba1593fac22c0c52c506b7ecc539ff2753e_14dd290e-5204-4f64-8ef1-374675ba61e1.webp?v=1751270299"}},"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: "停產" }