$product = {"id":6835793690723,"title":"iPhone 12 mini SolidSuit noiinoii 登山小兔","handle":"iphone-12-mini-solidsuit-classic-mw09","description":"","published_at":"2024-04-15T09:38:46+08:00","created_at":"2022-09-16T17:16:25+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":40062286397539,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-MW09","requires_shipping":true,"taxable":true,"featured_image":{"id":36347608989795,"product_id":6835793690723,"position":16,"created_at":"2026-07-22T18:03:17+08:00","updated_at":"2026-07-22T18:03:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc6e6ece4eb4796f99c40b4e3bfb082f2d51fe9_d198919c-db1e-43ca-b761-f70421a9969c.webp?v=1784714599","variant_ids":[40062286397539]},"available":true,"name":"iPhone 12 mini SolidSuit noiinoii 登山小兔 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-MW09","featured_media":{"alt":null,"id":27851464048739,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc6e6ece4eb4796f99c40b4e3bfb082f2d51fe9_d198919c-db1e-43ca-b761-f70421a9969c.webp?v=1784714599"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41638095781987,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-MW09","requires_shipping":true,"taxable":true,"featured_image":{"id":36347607777379,"product_id":6835793690723,"position":13,"created_at":"2026-07-22T18:03:14+08:00","updated_at":"2026-07-22T18:03:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3061226c24a4ec9d1717464cf1c417d204c3bf_af086799-0a5d-4c38-9901-ca327f59b2d2.webp?v=1784714596","variant_ids":[41638095781987]},"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-MW09","featured_media":{"alt":null,"id":27851462869091,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3061226c24a4ec9d1717464cf1c417d204c3bf_af086799-0a5d-4c38-9901-ca327f59b2d2.webp?v=1784714596"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40556014665827,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-MW09","requires_shipping":true,"taxable":true,"featured_image":{"id":36347607384163,"product_id":6835793690723,"position":11,"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\/2bf0300b7b405b123c5cf03f74137c55d17ef33c_5d4e34b3-02b6-4ffd-9ec7-d407eff6f290.webp?v=1784714595","variant_ids":[40556014665827]},"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-MW09","featured_media":{"alt":null,"id":27851462475875,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf0300b7b405b123c5cf03f74137c55d17ef33c_5d4e34b3-02b6-4ffd-9ec7-d407eff6f290.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\/33190e45532c061eaf28a22baa6c563438173af4_23ea54c1-f4f5-4ff9-9447-ac18d4b3de50.webp?v=1712826027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3061226c24a4ec9d1717464cf1c417d204c3bf.webp?v=1758529076","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e34530d66c266e3871e36b2806c964920ae90040.webp?v=1758529077","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96dd1aaccf8abbf6bde6741055fb6c77a6bfbdda.webp?v=1758529077","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc6e6ece4eb4796f99c40b4e3bfb082f2d51fe9.webp?v=1758529078","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5861ad5d3698a26d76dd74f37f938c36afdfd043.webp?v=1758529078","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e200f43d0f23f5cabd0c5fa303716c7de3562dd2.webp?v=1758529079","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28b546d10d3b087aefc55a49324c6a43b404629b.webp?v=1758529080","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccef635465c46ac2dd19e2bef663a53e2bdfe278.webp?v=1758529081","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf0300b7b405b123c5cf03f74137c55d17ef33c.webp?v=1758529081","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf0300b7b405b123c5cf03f74137c55d17ef33c_5d4e34b3-02b6-4ffd-9ec7-d407eff6f290.webp?v=1784714595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5861ad5d3698a26d76dd74f37f938c36afdfd043_a9a25dd3-7256-4e53-ad54-68385e757ec4.webp?v=1784714595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3061226c24a4ec9d1717464cf1c417d204c3bf_af086799-0a5d-4c38-9901-ca327f59b2d2.webp?v=1784714596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96dd1aaccf8abbf6bde6741055fb6c77a6bfbdda_a830315c-90ea-4923-8f58-a65ddc51b95e.webp?v=1784714598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccef635465c46ac2dd19e2bef663a53e2bdfe278_a7221520-2d7e-4d81-bc4c-effa4d573cbb.webp?v=1784714599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc6e6ece4eb4796f99c40b4e3bfb082f2d51fe9_d198919c-db1e-43ca-b761-f70421a9969c.webp?v=1784714599"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33190e45532c061eaf28a22baa6c563438173af4_23ea54c1-f4f5-4ff9-9447-ac18d4b3de50.webp?v=1712826027","options":["color"],"media":[{"alt":null,"id":23646227857507,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33190e45532c061eaf28a22baa6c563438173af4_23ea54c1-f4f5-4ff9-9447-ac18d4b3de50.webp?v=1712826027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33190e45532c061eaf28a22baa6c563438173af4_23ea54c1-f4f5-4ff9-9447-ac18d4b3de50.webp?v=1712826027","width":2000},{"alt":null,"id":26085479317603,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3061226c24a4ec9d1717464cf1c417d204c3bf.webp?v=1758529076"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3061226c24a4ec9d1717464cf1c417d204c3bf.webp?v=1758529076","width":2000},{"alt":null,"id":26085479415907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e34530d66c266e3871e36b2806c964920ae90040.webp?v=1758529077"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e34530d66c266e3871e36b2806c964920ae90040.webp?v=1758529077","width":2000},{"alt":null,"id":26085479546979,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96dd1aaccf8abbf6bde6741055fb6c77a6bfbdda.webp?v=1758529077"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96dd1aaccf8abbf6bde6741055fb6c77a6bfbdda.webp?v=1758529077","width":2000},{"alt":null,"id":26085479776355,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc6e6ece4eb4796f99c40b4e3bfb082f2d51fe9.webp?v=1758529078"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc6e6ece4eb4796f99c40b4e3bfb082f2d51fe9.webp?v=1758529078","width":2000},{"alt":null,"id":26085480005731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5861ad5d3698a26d76dd74f37f938c36afdfd043.webp?v=1758529078"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5861ad5d3698a26d76dd74f37f938c36afdfd043.webp?v=1758529078","width":2000},{"alt":null,"id":26085480267875,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e200f43d0f23f5cabd0c5fa303716c7de3562dd2.webp?v=1758529079"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e200f43d0f23f5cabd0c5fa303716c7de3562dd2.webp?v=1758529079","width":2000},{"alt":null,"id":26085480595555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28b546d10d3b087aefc55a49324c6a43b404629b.webp?v=1758529080"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28b546d10d3b087aefc55a49324c6a43b404629b.webp?v=1758529080","width":2000},{"alt":null,"id":26085480759395,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccef635465c46ac2dd19e2bef663a53e2bdfe278.webp?v=1758529081"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccef635465c46ac2dd19e2bef663a53e2bdfe278.webp?v=1758529081","width":2000},{"alt":null,"id":26085480923235,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf0300b7b405b123c5cf03f74137c55d17ef33c.webp?v=1758529081"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf0300b7b405b123c5cf03f74137c55d17ef33c.webp?v=1758529081","width":2000},{"alt":null,"id":27851462475875,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf0300b7b405b123c5cf03f74137c55d17ef33c_5d4e34b3-02b6-4ffd-9ec7-d407eff6f290.webp?v=1784714595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf0300b7b405b123c5cf03f74137c55d17ef33c_5d4e34b3-02b6-4ffd-9ec7-d407eff6f290.webp?v=1784714595","width":2000},{"alt":null,"id":27851462639715,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5861ad5d3698a26d76dd74f37f938c36afdfd043_a9a25dd3-7256-4e53-ad54-68385e757ec4.webp?v=1784714595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5861ad5d3698a26d76dd74f37f938c36afdfd043_a9a25dd3-7256-4e53-ad54-68385e757ec4.webp?v=1784714595","width":2000},{"alt":null,"id":27851462869091,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3061226c24a4ec9d1717464cf1c417d204c3bf_af086799-0a5d-4c38-9901-ca327f59b2d2.webp?v=1784714596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3061226c24a4ec9d1717464cf1c417d204c3bf_af086799-0a5d-4c38-9901-ca327f59b2d2.webp?v=1784714596","width":2000},{"alt":null,"id":27851463196771,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96dd1aaccf8abbf6bde6741055fb6c77a6bfbdda_a830315c-90ea-4923-8f58-a65ddc51b95e.webp?v=1784714598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96dd1aaccf8abbf6bde6741055fb6c77a6bfbdda_a830315c-90ea-4923-8f58-a65ddc51b95e.webp?v=1784714598","width":2000},{"alt":null,"id":27851463655523,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccef635465c46ac2dd19e2bef663a53e2bdfe278_a7221520-2d7e-4d81-bc4c-effa4d573cbb.webp?v=1784714599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccef635465c46ac2dd19e2bef663a53e2bdfe278_a7221520-2d7e-4d81-bc4c-effa4d573cbb.webp?v=1784714599","width":2000},{"alt":null,"id":27851464048739,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc6e6ece4eb4796f99c40b4e3bfb082f2d51fe9_d198919c-db1e-43ca-b761-f70421a9969c.webp?v=1784714599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc6e6ece4eb4796f99c40b4e3bfb082f2d51fe9_d198919c-db1e-43ca-b761-f70421a9969c.webp?v=1784714599","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""}; $isMerge = null; $variants = [{"id":40062286397539,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-MW09","requires_shipping":true,"taxable":true,"featured_image":{"id":36347608989795,"product_id":6835793690723,"position":16,"created_at":"2026-07-22T18:03:17+08:00","updated_at":"2026-07-22T18:03:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc6e6ece4eb4796f99c40b4e3bfb082f2d51fe9_d198919c-db1e-43ca-b761-f70421a9969c.webp?v=1784714599","variant_ids":[40062286397539]},"available":true,"name":"iPhone 12 mini SolidSuit noiinoii 登山小兔 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-MW09","featured_media":{"alt":null,"id":27851464048739,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc6e6ece4eb4796f99c40b4e3bfb082f2d51fe9_d198919c-db1e-43ca-b761-f70421a9969c.webp?v=1784714599"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41638095781987,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-MW09","requires_shipping":true,"taxable":true,"featured_image":{"id":36347607777379,"product_id":6835793690723,"position":13,"created_at":"2026-07-22T18:03:14+08:00","updated_at":"2026-07-22T18:03:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3061226c24a4ec9d1717464cf1c417d204c3bf_af086799-0a5d-4c38-9901-ca327f59b2d2.webp?v=1784714596","variant_ids":[41638095781987]},"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-MW09","featured_media":{"alt":null,"id":27851462869091,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3061226c24a4ec9d1717464cf1c417d204c3bf_af086799-0a5d-4c38-9901-ca327f59b2d2.webp?v=1784714596"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40556014665827,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-MW09","requires_shipping":true,"taxable":true,"featured_image":{"id":36347607384163,"product_id":6835793690723,"position":11,"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\/2bf0300b7b405b123c5cf03f74137c55d17ef33c_5d4e34b3-02b6-4ffd-9ec7-d407eff6f290.webp?v=1784714595","variant_ids":[40556014665827]},"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-MW09","featured_media":{"alt":null,"id":27851462475875,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf0300b7b405b123c5cf03f74137c55d17ef33c_5d4e34b3-02b6-4ffd-9ec7-d407eff6f290.webp?v=1784714595"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":40062286397539,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-MW09","requires_shipping":true,"taxable":true,"featured_image":{"id":36347608989795,"product_id":6835793690723,"position":16,"created_at":"2026-07-22T18:03:17+08:00","updated_at":"2026-07-22T18:03:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc6e6ece4eb4796f99c40b4e3bfb082f2d51fe9_d198919c-db1e-43ca-b761-f70421a9969c.webp?v=1784714599","variant_ids":[40062286397539]},"available":true,"name":"iPhone 12 mini SolidSuit noiinoii 登山小兔 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-MW09","featured_media":{"alt":null,"id":27851464048739,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbc6e6ece4eb4796f99c40b4e3bfb082f2d51fe9_d198919c-db1e-43ca-b761-f70421a9969c.webp?v=1784714599"}},"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: "停產" }