$product = {"id":6541725663331,"title":"iPhone 12 mini SolidSuit noiinoii 珍奶松鼠","handle":"iphone-12-mini-solidsuit-classic-mw02","description":"","published_at":"2024-04-15T09:38:38+08:00","created_at":"2021-03-09T11:44:05+08:00","vendor":"Rhinoshield","type":"設計師SolidSuit專區noiinoii","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-noiinoii","device-iPhone 12 Mini","merge","reseller-noiinoii"],"price":83000,"price_min":83000,"price_max":83000,"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":41638077726819,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-MW02","requires_shipping":true,"taxable":true,"featured_image":{"id":36347606859875,"product_id":6541725663331,"position":13,"created_at":"2026-07-22T18:03:10+08:00","updated_at":"2026-07-22T18:03:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4f007df992cc4702cf81268c737cde5cb6fe680_0d546fb1-ba8e-4fd1-ba64-180554ad8581.webp?v=1784714592","variant_ids":[41638077726819]},"available":true,"name":"iPhone 12 mini SolidSuit noiinoii 珍奶松鼠 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-MW02","featured_media":{"alt":null,"id":27851461918819,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4f007df992cc4702cf81268c737cde5cb6fe680_0d546fb1-ba8e-4fd1-ba64-180554ad8581.webp?v=1784714592"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41638077923427,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-MW02","requires_shipping":true,"taxable":true,"featured_image":{"id":36347607154787,"product_id":6541725663331,"position":15,"created_at":"2026-07-22T18:03:12+08:00","updated_at":"2026-07-22T18:03:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/976ab86e8992dcfacba1b9d6961ed9ed367bc824_87c51130-0f3d-46fe-b3a4-1b8c83b77930.webp?v=1784714594","variant_ids":[41638077923427]},"available":true,"name":"iPhone 12 mini SolidSuit noiinoii 珍奶松鼠 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01184O9-MW02","featured_media":{"alt":null,"id":27851462246499,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/976ab86e8992dcfacba1b9d6961ed9ed367bc824_87c51130-0f3d-46fe-b3a4-1b8c83b77930.webp?v=1784714594"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41638078120035,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-MW02","requires_shipping":true,"taxable":true,"featured_image":{"id":36347607351395,"product_id":6541725663331,"position":16,"created_at":"2026-07-22T18:03:13+08:00","updated_at":"2026-07-22T18:03:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a23ceb4a4459e5f39d9e0fae7dd3405cb1c5c6cf_f5456dcf-ed95-44d2-86ed-b1367aae6223.webp?v=1784714595","variant_ids":[41638078120035]},"available":true,"name":"iPhone 12 mini SolidSuit noiinoii 珍奶松鼠 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST011840B-MW02","featured_media":{"alt":null,"id":27851462443107,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a23ceb4a4459e5f39d9e0fae7dd3405cb1c5c6cf_f5456dcf-ed95-44d2-86ed-b1367aae6223.webp?v=1784714595"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8bb0efe23b7f51165f6bcdac962f2e1c1551f16_bc9c88bd-ebe5-414b-b043-2424134f72aa.webp?v=1712826068","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/976ab86e8992dcfacba1b9d6961ed9ed367bc824.webp?v=1758529583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6364060b80aa55c6a8bc31b7ee4032d46f9e2a2.webp?v=1758529584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4f007df992cc4702cf81268c737cde5cb6fe680.webp?v=1758529585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bd1af2087c43aa570c7824425912880b494fe1c.webp?v=1758529585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f3a9d68c22e1a30c7574b47b7bc5893c2fa45ce.webp?v=1758529586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ce76a1a05b589300a7367db1aaf5ea7dc240886.webp?v=1758529586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24299d6097af28b49274fd20efc28fad7fe94364.webp?v=1758529587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a23ceb4a4459e5f39d9e0fae7dd3405cb1c5c6cf.webp?v=1758529588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae78de7247685dd57bddb970e9290b1eea3a3eb7.webp?v=1758529588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bd1af2087c43aa570c7824425912880b494fe1c_65c29216-a978-4aca-b5b5-efd30bd05494.webp?v=1784714591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f3a9d68c22e1a30c7574b47b7bc5893c2fa45ce_f2b837ab-06af-48e0-9e77-70170ec1d79a.webp?v=1784714592","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4f007df992cc4702cf81268c737cde5cb6fe680_0d546fb1-ba8e-4fd1-ba64-180554ad8581.webp?v=1784714592","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6364060b80aa55c6a8bc31b7ee4032d46f9e2a2_a9858ca2-26be-44d6-a5cd-9b4b71cf61e5.webp?v=1784714593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/976ab86e8992dcfacba1b9d6961ed9ed367bc824_87c51130-0f3d-46fe-b3a4-1b8c83b77930.webp?v=1784714594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a23ceb4a4459e5f39d9e0fae7dd3405cb1c5c6cf_f5456dcf-ed95-44d2-86ed-b1367aae6223.webp?v=1784714595"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8bb0efe23b7f51165f6bcdac962f2e1c1551f16_bc9c88bd-ebe5-414b-b043-2424134f72aa.webp?v=1712826068","options":["color"],"media":[{"alt":null,"id":23646239293539,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8bb0efe23b7f51165f6bcdac962f2e1c1551f16_bc9c88bd-ebe5-414b-b043-2424134f72aa.webp?v=1712826068"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8bb0efe23b7f51165f6bcdac962f2e1c1551f16_bc9c88bd-ebe5-414b-b043-2424134f72aa.webp?v=1712826068","width":2000},{"alt":null,"id":26085681660003,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/976ab86e8992dcfacba1b9d6961ed9ed367bc824.webp?v=1758529583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/976ab86e8992dcfacba1b9d6961ed9ed367bc824.webp?v=1758529583","width":2000},{"alt":null,"id":26085681889379,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6364060b80aa55c6a8bc31b7ee4032d46f9e2a2.webp?v=1758529584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6364060b80aa55c6a8bc31b7ee4032d46f9e2a2.webp?v=1758529584","width":2000},{"alt":null,"id":26085682511971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4f007df992cc4702cf81268c737cde5cb6fe680.webp?v=1758529585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4f007df992cc4702cf81268c737cde5cb6fe680.webp?v=1758529585","width":2000},{"alt":null,"id":26085682643043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bd1af2087c43aa570c7824425912880b494fe1c.webp?v=1758529585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bd1af2087c43aa570c7824425912880b494fe1c.webp?v=1758529585","width":2000},{"alt":null,"id":26085682806883,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f3a9d68c22e1a30c7574b47b7bc5893c2fa45ce.webp?v=1758529586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f3a9d68c22e1a30c7574b47b7bc5893c2fa45ce.webp?v=1758529586","width":2000},{"alt":null,"id":26085683069027,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ce76a1a05b589300a7367db1aaf5ea7dc240886.webp?v=1758529586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ce76a1a05b589300a7367db1aaf5ea7dc240886.webp?v=1758529586","width":2000},{"alt":null,"id":26085683298403,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24299d6097af28b49274fd20efc28fad7fe94364.webp?v=1758529587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24299d6097af28b49274fd20efc28fad7fe94364.webp?v=1758529587","width":2000},{"alt":null,"id":26085683757155,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a23ceb4a4459e5f39d9e0fae7dd3405cb1c5c6cf.webp?v=1758529588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a23ceb4a4459e5f39d9e0fae7dd3405cb1c5c6cf.webp?v=1758529588","width":2000},{"alt":null,"id":26085683953763,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae78de7247685dd57bddb970e9290b1eea3a3eb7.webp?v=1758529588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae78de7247685dd57bddb970e9290b1eea3a3eb7.webp?v=1758529588","width":2000},{"alt":null,"id":27851461722211,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bd1af2087c43aa570c7824425912880b494fe1c_65c29216-a978-4aca-b5b5-efd30bd05494.webp?v=1784714591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bd1af2087c43aa570c7824425912880b494fe1c_65c29216-a978-4aca-b5b5-efd30bd05494.webp?v=1784714591","width":2000},{"alt":null,"id":27851461820515,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f3a9d68c22e1a30c7574b47b7bc5893c2fa45ce_f2b837ab-06af-48e0-9e77-70170ec1d79a.webp?v=1784714592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f3a9d68c22e1a30c7574b47b7bc5893c2fa45ce_f2b837ab-06af-48e0-9e77-70170ec1d79a.webp?v=1784714592","width":2000},{"alt":null,"id":27851461918819,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4f007df992cc4702cf81268c737cde5cb6fe680_0d546fb1-ba8e-4fd1-ba64-180554ad8581.webp?v=1784714592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4f007df992cc4702cf81268c737cde5cb6fe680_0d546fb1-ba8e-4fd1-ba64-180554ad8581.webp?v=1784714592","width":2000},{"alt":null,"id":27851462115427,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6364060b80aa55c6a8bc31b7ee4032d46f9e2a2_a9858ca2-26be-44d6-a5cd-9b4b71cf61e5.webp?v=1784714593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6364060b80aa55c6a8bc31b7ee4032d46f9e2a2_a9858ca2-26be-44d6-a5cd-9b4b71cf61e5.webp?v=1784714593","width":2000},{"alt":null,"id":27851462246499,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/976ab86e8992dcfacba1b9d6961ed9ed367bc824_87c51130-0f3d-46fe-b3a4-1b8c83b77930.webp?v=1784714594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/976ab86e8992dcfacba1b9d6961ed9ed367bc824_87c51130-0f3d-46fe-b3a4-1b8c83b77930.webp?v=1784714594","width":2000},{"alt":null,"id":27851462443107,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a23ceb4a4459e5f39d9e0fae7dd3405cb1c5c6cf_f5456dcf-ed95-44d2-86ed-b1367aae6223.webp?v=1784714595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a23ceb4a4459e5f39d9e0fae7dd3405cb1c5c6cf_f5456dcf-ed95-44d2-86ed-b1367aae6223.webp?v=1784714595","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""}; $isMerge = null; $variants = [{"id":41638077726819,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-MW02","requires_shipping":true,"taxable":true,"featured_image":{"id":36347606859875,"product_id":6541725663331,"position":13,"created_at":"2026-07-22T18:03:10+08:00","updated_at":"2026-07-22T18:03:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4f007df992cc4702cf81268c737cde5cb6fe680_0d546fb1-ba8e-4fd1-ba64-180554ad8581.webp?v=1784714592","variant_ids":[41638077726819]},"available":true,"name":"iPhone 12 mini SolidSuit noiinoii 珍奶松鼠 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-MW02","featured_media":{"alt":null,"id":27851461918819,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4f007df992cc4702cf81268c737cde5cb6fe680_0d546fb1-ba8e-4fd1-ba64-180554ad8581.webp?v=1784714592"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41638077923427,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-MW02","requires_shipping":true,"taxable":true,"featured_image":{"id":36347607154787,"product_id":6541725663331,"position":15,"created_at":"2026-07-22T18:03:12+08:00","updated_at":"2026-07-22T18:03:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/976ab86e8992dcfacba1b9d6961ed9ed367bc824_87c51130-0f3d-46fe-b3a4-1b8c83b77930.webp?v=1784714594","variant_ids":[41638077923427]},"available":true,"name":"iPhone 12 mini SolidSuit noiinoii 珍奶松鼠 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01184O9-MW02","featured_media":{"alt":null,"id":27851462246499,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/976ab86e8992dcfacba1b9d6961ed9ed367bc824_87c51130-0f3d-46fe-b3a4-1b8c83b77930.webp?v=1784714594"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41638078120035,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-MW02","requires_shipping":true,"taxable":true,"featured_image":{"id":36347607351395,"product_id":6541725663331,"position":16,"created_at":"2026-07-22T18:03:13+08:00","updated_at":"2026-07-22T18:03:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a23ceb4a4459e5f39d9e0fae7dd3405cb1c5c6cf_f5456dcf-ed95-44d2-86ed-b1367aae6223.webp?v=1784714595","variant_ids":[41638078120035]},"available":true,"name":"iPhone 12 mini SolidSuit noiinoii 珍奶松鼠 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST011840B-MW02","featured_media":{"alt":null,"id":27851462443107,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a23ceb4a4459e5f39d9e0fae7dd3405cb1c5c6cf_f5456dcf-ed95-44d2-86ed-b1367aae6223.webp?v=1784714595"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41638077726819,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-MW02","requires_shipping":true,"taxable":true,"featured_image":{"id":36347606859875,"product_id":6541725663331,"position":13,"created_at":"2026-07-22T18:03:10+08:00","updated_at":"2026-07-22T18:03:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4f007df992cc4702cf81268c737cde5cb6fe680_0d546fb1-ba8e-4fd1-ba64-180554ad8581.webp?v=1784714592","variant_ids":[41638077726819]},"available":true,"name":"iPhone 12 mini SolidSuit noiinoii 珍奶松鼠 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-MW02","featured_media":{"alt":null,"id":27851461918819,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4f007df992cc4702cf81268c737cde5cb6fe680_0d546fb1-ba8e-4fd1-ba64-180554ad8581.webp?v=1784714592"}},"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: "停產" }