$product = {"id":7836805333091,"title":"iPhone 13 mini SolidSuit (MagSafe 兼容) OSAMU GOODS 多彩系列-Jill","handle":"iphone-13-mini-solidsuit-magsafe-bumper-back-crossover-design-yn31","description":null,"published_at":"2025-07-14T16:02:19+08:00","created_at":"2025-07-14T10:06:04+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-osamugoods","device-iPhone 13 Mini","merge","reseller-osamugoods"],"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":43524956651619,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-YN31","requires_shipping":true,"taxable":true,"featured_image":{"id":34179956342883,"product_id":7836805333091,"position":16,"created_at":"2025-07-14T14:57:22+08:00","updated_at":"2025-07-14T14:57:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df32a3a09139ec35501ff5ee422cf32199b3636c_2923d1cd-751c-4b50-a89e-e038f31b8a22.webp?v=1752476244","variant_ids":[43524956651619]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) OSAMU GOODS 多彩系列-Jill - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-YN31","featured_media":{"alt":null,"id":25817108021347,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df32a3a09139ec35501ff5ee422cf32199b3636c_2923d1cd-751c-4b50-a89e-e038f31b8a22.webp?v=1752476244"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43524956684387,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01228Z9-YN31","requires_shipping":true,"taxable":true,"featured_image":{"id":34178247622755,"product_id":7836805333091,"position":1,"created_at":"2025-07-14T10:06:09+08:00","updated_at":"2025-07-14T10:06:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cec86d367c75b5917c501e5384827f5cefbf1d.webp?v=1752458771","variant_ids":[43524956684387]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) OSAMU GOODS 多彩系列-Jill - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z9-YN31","featured_media":{"alt":null,"id":25815916773475,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cec86d367c75b5917c501e5384827f5cefbf1d.webp?v=1752458771"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43524956749923,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-YN31","requires_shipping":true,"taxable":true,"featured_image":{"id":34178250244195,"product_id":7836805333091,"position":6,"created_at":"2025-07-14T10:06:12+08:00","updated_at":"2025-07-14T10:06:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/599d07b43be5d90ba2db29ce200e3ebe99c0f4ae.webp?v=1752458774","variant_ids":[43524956749923]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) OSAMU GOODS 多彩系列-Jill - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-YN31","featured_media":{"alt":null,"id":25815918772323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/599d07b43be5d90ba2db29ce200e3ebe99c0f4ae.webp?v=1752458774"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cec86d367c75b5917c501e5384827f5cefbf1d.webp?v=1752458771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e061b6a16dcb87aef96bbd98b8ac8bbd3fe7ece.webp?v=1752458772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e3f4fcf4740802e30d7a77d1bd1e7d67730bf5.webp?v=1752458772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df32a3a09139ec35501ff5ee422cf32199b3636c.webp?v=1752458773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208514cb25e87c73afdd90fa2f4f99061ee51eb0.webp?v=1752458773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/599d07b43be5d90ba2db29ce200e3ebe99c0f4ae.webp?v=1752458774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436efb0716d97a6b34eb6187afccdab1a38db21a.webp?v=1752458775","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d3dadae90aef0746dd9f0e2adca30e49704c92a.webp?v=1752458776","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/599d07b43be5d90ba2db29ce200e3ebe99c0f4ae_c9105a2a-c717-447c-a468-c7962808f1bb.webp?v=1752476239","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e061b6a16dcb87aef96bbd98b8ac8bbd3fe7ece_5b8fa3e0-d561-4cad-ac90-ae7fa67323a6.webp?v=1752476240","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cec86d367c75b5917c501e5384827f5cefbf1d_ec1e6471-b8db-4a0d-b99a-40e7b0b9f090.webp?v=1752476241","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208514cb25e87c73afdd90fa2f4f99061ee51eb0_93a8b9bc-df50-4845-b1d4-61afdb6956d3.webp?v=1752476241","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e3f4fcf4740802e30d7a77d1bd1e7d67730bf5_a4828419-3e9d-4525-97fb-96e9f1397ef7.webp?v=1752476242","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436efb0716d97a6b34eb6187afccdab1a38db21a_2d98219e-b77b-40e8-b34a-0f778241e3ac.webp?v=1752476242","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d3dadae90aef0746dd9f0e2adca30e49704c92a_dc101cdc-6bd0-46d3-94b7-97d0de1fe55c.webp?v=1752476243","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df32a3a09139ec35501ff5ee422cf32199b3636c_2923d1cd-751c-4b50-a89e-e038f31b8a22.webp?v=1752476244"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cec86d367c75b5917c501e5384827f5cefbf1d.webp?v=1752458771","options":["color"],"media":[{"alt":null,"id":25815916773475,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cec86d367c75b5917c501e5384827f5cefbf1d.webp?v=1752458771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cec86d367c75b5917c501e5384827f5cefbf1d.webp?v=1752458771","width":2000},{"alt":null,"id":25815917363299,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e061b6a16dcb87aef96bbd98b8ac8bbd3fe7ece.webp?v=1752458772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e061b6a16dcb87aef96bbd98b8ac8bbd3fe7ece.webp?v=1752458772","width":2000},{"alt":null,"id":25815918116963,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e3f4fcf4740802e30d7a77d1bd1e7d67730bf5.webp?v=1752458772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e3f4fcf4740802e30d7a77d1bd1e7d67730bf5.webp?v=1752458772","width":2000},{"alt":null,"id":25815918248035,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df32a3a09139ec35501ff5ee422cf32199b3636c.webp?v=1752458773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df32a3a09139ec35501ff5ee422cf32199b3636c.webp?v=1752458773","width":2000},{"alt":null,"id":25815918477411,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208514cb25e87c73afdd90fa2f4f99061ee51eb0.webp?v=1752458773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208514cb25e87c73afdd90fa2f4f99061ee51eb0.webp?v=1752458773","width":2000},{"alt":null,"id":25815918772323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/599d07b43be5d90ba2db29ce200e3ebe99c0f4ae.webp?v=1752458774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/599d07b43be5d90ba2db29ce200e3ebe99c0f4ae.webp?v=1752458774","width":2000},{"alt":null,"id":25815919067235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436efb0716d97a6b34eb6187afccdab1a38db21a.webp?v=1752458775"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436efb0716d97a6b34eb6187afccdab1a38db21a.webp?v=1752458775","width":2000},{"alt":null,"id":25815919296611,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d3dadae90aef0746dd9f0e2adca30e49704c92a.webp?v=1752458776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d3dadae90aef0746dd9f0e2adca30e49704c92a.webp?v=1752458776","width":2000},{"alt":null,"id":25817106415715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/599d07b43be5d90ba2db29ce200e3ebe99c0f4ae_c9105a2a-c717-447c-a468-c7962808f1bb.webp?v=1752476239"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/599d07b43be5d90ba2db29ce200e3ebe99c0f4ae_c9105a2a-c717-447c-a468-c7962808f1bb.webp?v=1752476239","width":2000},{"alt":null,"id":25817106776163,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e061b6a16dcb87aef96bbd98b8ac8bbd3fe7ece_5b8fa3e0-d561-4cad-ac90-ae7fa67323a6.webp?v=1752476240"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e061b6a16dcb87aef96bbd98b8ac8bbd3fe7ece_5b8fa3e0-d561-4cad-ac90-ae7fa67323a6.webp?v=1752476240","width":2000},{"alt":null,"id":25817106940003,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cec86d367c75b5917c501e5384827f5cefbf1d_ec1e6471-b8db-4a0d-b99a-40e7b0b9f090.webp?v=1752476241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cec86d367c75b5917c501e5384827f5cefbf1d_ec1e6471-b8db-4a0d-b99a-40e7b0b9f090.webp?v=1752476241","width":2000},{"alt":null,"id":25817107234915,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208514cb25e87c73afdd90fa2f4f99061ee51eb0_93a8b9bc-df50-4845-b1d4-61afdb6956d3.webp?v=1752476241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208514cb25e87c73afdd90fa2f4f99061ee51eb0_93a8b9bc-df50-4845-b1d4-61afdb6956d3.webp?v=1752476241","width":2000},{"alt":null,"id":25817107365987,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e3f4fcf4740802e30d7a77d1bd1e7d67730bf5_a4828419-3e9d-4525-97fb-96e9f1397ef7.webp?v=1752476242"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e3f4fcf4740802e30d7a77d1bd1e7d67730bf5_a4828419-3e9d-4525-97fb-96e9f1397ef7.webp?v=1752476242","width":2000},{"alt":null,"id":25817107464291,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436efb0716d97a6b34eb6187afccdab1a38db21a_2d98219e-b77b-40e8-b34a-0f778241e3ac.webp?v=1752476242"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436efb0716d97a6b34eb6187afccdab1a38db21a_2d98219e-b77b-40e8-b34a-0f778241e3ac.webp?v=1752476242","width":2000},{"alt":null,"id":25817107595363,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d3dadae90aef0746dd9f0e2adca30e49704c92a_dc101cdc-6bd0-46d3-94b7-97d0de1fe55c.webp?v=1752476243"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d3dadae90aef0746dd9f0e2adca30e49704c92a_dc101cdc-6bd0-46d3-94b7-97d0de1fe55c.webp?v=1752476243","width":2000},{"alt":null,"id":25817108021347,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df32a3a09139ec35501ff5ee422cf32199b3636c_2923d1cd-751c-4b50-a89e-e038f31b8a22.webp?v=1752476244"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df32a3a09139ec35501ff5ee422cf32199b3636c_2923d1cd-751c-4b50-a89e-e038f31b8a22.webp?v=1752476244","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43524956651619,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-YN31","requires_shipping":true,"taxable":true,"featured_image":{"id":34179956342883,"product_id":7836805333091,"position":16,"created_at":"2025-07-14T14:57:22+08:00","updated_at":"2025-07-14T14:57:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df32a3a09139ec35501ff5ee422cf32199b3636c_2923d1cd-751c-4b50-a89e-e038f31b8a22.webp?v=1752476244","variant_ids":[43524956651619]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) OSAMU GOODS 多彩系列-Jill - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-YN31","featured_media":{"alt":null,"id":25817108021347,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df32a3a09139ec35501ff5ee422cf32199b3636c_2923d1cd-751c-4b50-a89e-e038f31b8a22.webp?v=1752476244"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43524956684387,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01228Z9-YN31","requires_shipping":true,"taxable":true,"featured_image":{"id":34178247622755,"product_id":7836805333091,"position":1,"created_at":"2025-07-14T10:06:09+08:00","updated_at":"2025-07-14T10:06:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cec86d367c75b5917c501e5384827f5cefbf1d.webp?v=1752458771","variant_ids":[43524956684387]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) OSAMU GOODS 多彩系列-Jill - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z9-YN31","featured_media":{"alt":null,"id":25815916773475,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cec86d367c75b5917c501e5384827f5cefbf1d.webp?v=1752458771"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43524956749923,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-YN31","requires_shipping":true,"taxable":true,"featured_image":{"id":34178250244195,"product_id":7836805333091,"position":6,"created_at":"2025-07-14T10:06:12+08:00","updated_at":"2025-07-14T10:06:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/599d07b43be5d90ba2db29ce200e3ebe99c0f4ae.webp?v=1752458774","variant_ids":[43524956749923]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) OSAMU GOODS 多彩系列-Jill - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-YN31","featured_media":{"alt":null,"id":25815918772323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/599d07b43be5d90ba2db29ce200e3ebe99c0f4ae.webp?v=1752458774"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43524956651619,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-YN31","requires_shipping":true,"taxable":true,"featured_image":{"id":34179956342883,"product_id":7836805333091,"position":16,"created_at":"2025-07-14T14:57:22+08:00","updated_at":"2025-07-14T14:57:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df32a3a09139ec35501ff5ee422cf32199b3636c_2923d1cd-751c-4b50-a89e-e038f31b8a22.webp?v=1752476244","variant_ids":[43524956651619]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) OSAMU GOODS 多彩系列-Jill - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-YN31","featured_media":{"alt":null,"id":25817108021347,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df32a3a09139ec35501ff5ee422cf32199b3636c_2923d1cd-751c-4b50-a89e-e038f31b8a22.webp?v=1752476244"}},"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: "停產" }