$product = {"id":7873327202403,"title":"iPhone 15 Pro Max SolidX Keigo Mascot Costume","handle":"iphone-15-pro-max-solidx-kei06","description":null,"published_at":"2025-09-01T10:30:35+08:00","created_at":"2025-09-01T09:54:36+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":43658775298147,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":36319512297571,"product_id":7873327202403,"position":17,"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\/ffbb07e57b6f0b256edbb7295d941adf6d50e038_ac3e27cd-e02a-4580-a7c3-57fa1d73b98a.webp?v=1784524087","variant_ids":[43658775298147]},"available":true,"name":"iPhone 15 Pro Max SolidX Keigo Mascot Costume - 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-KEI06","featured_media":{"alt":null,"id":27823464611939,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffbb07e57b6f0b256edbb7295d941adf6d50e038_ac3e27cd-e02a-4580-a7c3-57fa1d73b98a.webp?v=1784524087"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658777722979,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":36319512428643,"product_id":7873327202403,"position":18,"created_at":"2026-07-20T13:08:06+08:00","updated_at":"2026-07-20T13:08:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c596fbf96a4c337c024f7643cdd88acab915ba64_af81e877-b6ac-408f-ae78-fe8bcd7325ce.webp?v=1784524088","variant_ids":[43658777722979]},"available":true,"name":"iPhone 15 Pro Max SolidX Keigo Mascot Costume - 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-KEI06","featured_media":{"alt":null,"id":27823464743011,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c596fbf96a4c337c024f7643cdd88acab915ba64_af81e877-b6ac-408f-ae78-fe8bcd7325ce.webp?v=1784524088"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea53ffce24e6bc5e1e2d727b087b729368a98b13.webp?v=1756691682","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f7dff31b0b0117110e9cd84a39a338912de913.webp?v=1756691683","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf6cbcab26b15b7b292e713bf9c31e89b9d2261.webp?v=1756691684","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a66cecaf05416af6276c6a2bbc03ed3dcb8664f.webp?v=1756691684","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd204afe36cf2fd5f80a81f151f94fea90b0b94e.webp?v=1756691686","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1ebcf0553f75d76db7d52215963c25613fa5b04.webp?v=1756691686","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffbb07e57b6f0b256edbb7295d941adf6d50e038.webp?v=1756691687","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c596fbf96a4c337c024f7643cdd88acab915ba64.webp?v=1756691688","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/654c23feea4df0d66865be0b2f8c7ca99e3948ca.webp?v=1756691689","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91585e2837d27d659237bc8574bb1925caef35f2.webp?v=1756691690","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/654c23feea4df0d66865be0b2f8c7ca99e3948ca_b43c0744-c211-4c21-b927-c8211ca72332.webp?v=1784107316","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c596fbf96a4c337c024f7643cdd88acab915ba64_6063fde5-888d-485e-9d58-409b437dc948.webp?v=1784107317","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffbb07e57b6f0b256edbb7295d941adf6d50e038_344567f7-2b36-4561-a999-74aeab3dc27f.webp?v=1784107318","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f7dff31b0b0117110e9cd84a39a338912de913_40966f48-3800-4c62-ac8c-a7e7c81dfdf6.webp?v=1784107318","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1ebcf0553f75d76db7d52215963c25613fa5b04_c0041785-2613-4658-b430-68dcf42c27e7.webp?v=1784107319","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1ebcf0553f75d76db7d52215963c25613fa5b04_ddf16aaa-86d4-4983-a6ff-84fda678035b.webp?v=1784524086","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffbb07e57b6f0b256edbb7295d941adf6d50e038_ac3e27cd-e02a-4580-a7c3-57fa1d73b98a.webp?v=1784524087","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c596fbf96a4c337c024f7643cdd88acab915ba64_af81e877-b6ac-408f-ae78-fe8bcd7325ce.webp?v=1784524088","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/654c23feea4df0d66865be0b2f8c7ca99e3948ca_c9f6eefa-9c60-4395-9a81-325ccaed9e4a.webp?v=1784524089","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f7dff31b0b0117110e9cd84a39a338912de913_73c05211-4f90-47c9-b34e-2dace447c005.webp?v=1784524089"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea53ffce24e6bc5e1e2d727b087b729368a98b13.webp?v=1756691682","options":["color"],"media":[{"alt":null,"id":25982442143843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea53ffce24e6bc5e1e2d727b087b729368a98b13.webp?v=1756691682"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea53ffce24e6bc5e1e2d727b087b729368a98b13.webp?v=1756691682","width":2000},{"alt":null,"id":25982442242147,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f7dff31b0b0117110e9cd84a39a338912de913.webp?v=1756691683"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f7dff31b0b0117110e9cd84a39a338912de913.webp?v=1756691683","width":2000},{"alt":null,"id":25982442373219,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf6cbcab26b15b7b292e713bf9c31e89b9d2261.webp?v=1756691684"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf6cbcab26b15b7b292e713bf9c31e89b9d2261.webp?v=1756691684","width":2000},{"alt":null,"id":25982442504291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a66cecaf05416af6276c6a2bbc03ed3dcb8664f.webp?v=1756691684"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a66cecaf05416af6276c6a2bbc03ed3dcb8664f.webp?v=1756691684","width":2000},{"alt":null,"id":25982442766435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd204afe36cf2fd5f80a81f151f94fea90b0b94e.webp?v=1756691686"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd204afe36cf2fd5f80a81f151f94fea90b0b94e.webp?v=1756691686","width":2000},{"alt":null,"id":25982442864739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1ebcf0553f75d76db7d52215963c25613fa5b04.webp?v=1756691686"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1ebcf0553f75d76db7d52215963c25613fa5b04.webp?v=1756691686","width":2000},{"alt":null,"id":25982443192419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffbb07e57b6f0b256edbb7295d941adf6d50e038.webp?v=1756691687"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffbb07e57b6f0b256edbb7295d941adf6d50e038.webp?v=1756691687","width":2000},{"alt":null,"id":25982443389027,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c596fbf96a4c337c024f7643cdd88acab915ba64.webp?v=1756691688"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c596fbf96a4c337c024f7643cdd88acab915ba64.webp?v=1756691688","width":2000},{"alt":null,"id":25982443520099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/654c23feea4df0d66865be0b2f8c7ca99e3948ca.webp?v=1756691689"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/654c23feea4df0d66865be0b2f8c7ca99e3948ca.webp?v=1756691689","width":2000},{"alt":null,"id":25982443618403,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91585e2837d27d659237bc8574bb1925caef35f2.webp?v=1756691690"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91585e2837d27d659237bc8574bb1925caef35f2.webp?v=1756691690","width":2000},{"alt":null,"id":27777177223267,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/654c23feea4df0d66865be0b2f8c7ca99e3948ca_b43c0744-c211-4c21-b927-c8211ca72332.webp?v=1784107316"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/654c23feea4df0d66865be0b2f8c7ca99e3948ca_b43c0744-c211-4c21-b927-c8211ca72332.webp?v=1784107316","width":2000},{"alt":null,"id":27777177518179,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c596fbf96a4c337c024f7643cdd88acab915ba64_6063fde5-888d-485e-9d58-409b437dc948.webp?v=1784107317"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c596fbf96a4c337c024f7643cdd88acab915ba64_6063fde5-888d-485e-9d58-409b437dc948.webp?v=1784107317","width":2000},{"alt":null,"id":27777177845859,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffbb07e57b6f0b256edbb7295d941adf6d50e038_344567f7-2b36-4561-a999-74aeab3dc27f.webp?v=1784107318"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffbb07e57b6f0b256edbb7295d941adf6d50e038_344567f7-2b36-4561-a999-74aeab3dc27f.webp?v=1784107318","width":2000},{"alt":null,"id":27777178402915,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f7dff31b0b0117110e9cd84a39a338912de913_40966f48-3800-4c62-ac8c-a7e7c81dfdf6.webp?v=1784107318"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f7dff31b0b0117110e9cd84a39a338912de913_40966f48-3800-4c62-ac8c-a7e7c81dfdf6.webp?v=1784107318","width":2000},{"alt":null,"id":27777178828899,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1ebcf0553f75d76db7d52215963c25613fa5b04_c0041785-2613-4658-b430-68dcf42c27e7.webp?v=1784107319"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1ebcf0553f75d76db7d52215963c25613fa5b04_c0041785-2613-4658-b430-68dcf42c27e7.webp?v=1784107319","width":2000},{"alt":null,"id":27823464513635,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1ebcf0553f75d76db7d52215963c25613fa5b04_ddf16aaa-86d4-4983-a6ff-84fda678035b.webp?v=1784524086"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1ebcf0553f75d76db7d52215963c25613fa5b04_ddf16aaa-86d4-4983-a6ff-84fda678035b.webp?v=1784524086","width":2000},{"alt":null,"id":27823464611939,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffbb07e57b6f0b256edbb7295d941adf6d50e038_ac3e27cd-e02a-4580-a7c3-57fa1d73b98a.webp?v=1784524087"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffbb07e57b6f0b256edbb7295d941adf6d50e038_ac3e27cd-e02a-4580-a7c3-57fa1d73b98a.webp?v=1784524087","width":2000},{"alt":null,"id":27823464743011,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c596fbf96a4c337c024f7643cdd88acab915ba64_af81e877-b6ac-408f-ae78-fe8bcd7325ce.webp?v=1784524088"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c596fbf96a4c337c024f7643cdd88acab915ba64_af81e877-b6ac-408f-ae78-fe8bcd7325ce.webp?v=1784524088","width":2000},{"alt":null,"id":27823464972387,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/654c23feea4df0d66865be0b2f8c7ca99e3948ca_c9f6eefa-9c60-4395-9a81-325ccaed9e4a.webp?v=1784524089"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/654c23feea4df0d66865be0b2f8c7ca99e3948ca_c9f6eefa-9c60-4395-9a81-325ccaed9e4a.webp?v=1784524089","width":2000},{"alt":null,"id":27823465136227,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f7dff31b0b0117110e9cd84a39a338912de913_73c05211-4f90-47c9-b34e-2dace447c005.webp?v=1784524089"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f7dff31b0b0117110e9cd84a39a338912de913_73c05211-4f90-47c9-b34e-2dace447c005.webp?v=1784524089","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43658775298147,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":36319512297571,"product_id":7873327202403,"position":17,"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\/ffbb07e57b6f0b256edbb7295d941adf6d50e038_ac3e27cd-e02a-4580-a7c3-57fa1d73b98a.webp?v=1784524087","variant_ids":[43658775298147]},"available":true,"name":"iPhone 15 Pro Max SolidX Keigo Mascot Costume - 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-KEI06","featured_media":{"alt":null,"id":27823464611939,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffbb07e57b6f0b256edbb7295d941adf6d50e038_ac3e27cd-e02a-4580-a7c3-57fa1d73b98a.webp?v=1784524087"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658777722979,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":36319512428643,"product_id":7873327202403,"position":18,"created_at":"2026-07-20T13:08:06+08:00","updated_at":"2026-07-20T13:08:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c596fbf96a4c337c024f7643cdd88acab915ba64_af81e877-b6ac-408f-ae78-fe8bcd7325ce.webp?v=1784524088","variant_ids":[43658777722979]},"available":true,"name":"iPhone 15 Pro Max SolidX Keigo Mascot Costume - 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-KEI06","featured_media":{"alt":null,"id":27823464743011,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c596fbf96a4c337c024f7643cdd88acab915ba64_af81e877-b6ac-408f-ae78-fe8bcd7325ce.webp?v=1784524088"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43658775298147,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":36319512297571,"product_id":7873327202403,"position":17,"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\/ffbb07e57b6f0b256edbb7295d941adf6d50e038_ac3e27cd-e02a-4580-a7c3-57fa1d73b98a.webp?v=1784524087","variant_ids":[43658775298147]},"available":true,"name":"iPhone 15 Pro Max SolidX Keigo Mascot Costume - 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-KEI06","featured_media":{"alt":null,"id":27823464611939,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffbb07e57b6f0b256edbb7295d941adf6d50e038_ac3e27cd-e02a-4580-a7c3-57fa1d73b98a.webp?v=1784524087"}},"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: "停產" }