$product = {"id":7155920404579,"title":"iPhone 14 Pro Max Clear 1G 右看看","handle":"iphone-14-pro-max-jellytint-iv04","description":null,"published_at":"2024-02-02T09:58:43+08:00","created_at":"2024-01-23T17:17:22+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint專區-1G","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-1chun","device-iPhone 14 Pro Max","merge","reseller-1chun"],"price":128000,"price_min":128000,"price_max":128000,"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":41197329612899,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012630G-IV04","requires_shipping":true,"taxable":true,"featured_image":{"id":36322762227811,"product_id":7155920404579,"position":14,"created_at":"2026-07-20T18:17:10+08:00","updated_at":"2026-07-20T18:17:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d58d191139cf6fd8091843eb7db9e6135021cf_65d35d4c-e1a9-479a-b829-74e6fb927b19.webp?v=1784542632","variant_ids":[41197329612899]},"available":true,"name":"iPhone 14 Pro Max Clear 1G 右看看 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630G-IV04","featured_media":{"alt":null,"id":27826670076003,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d58d191139cf6fd8091843eb7db9e6135021cf_65d35d4c-e1a9-479a-b829-74e6fb927b19.webp?v=1784542632"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197329645667,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012630H-IV04","requires_shipping":true,"taxable":true,"featured_image":{"id":36322761769059,"product_id":7155920404579,"position":13,"created_at":"2026-07-20T18:17:10+08:00","updated_at":"2026-07-20T18:17:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/555aefe330f9536c12d0645b5dfde1e03ad20f52_e5f74466-cdef-4aeb-8b51-b1808b79cbe9.webp?v=1784542632","variant_ids":[41197329645667]},"available":true,"name":"iPhone 14 Pro Max Clear 1G 右看看 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630H-IV04","featured_media":{"alt":null,"id":27826669617251,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/555aefe330f9536c12d0645b5dfde1e03ad20f52_e5f74466-cdef-4aeb-8b51-b1808b79cbe9.webp?v=1784542632"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197329711203,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012630J-IV04","requires_shipping":true,"taxable":true,"featured_image":{"id":36322763079779,"product_id":7155920404579,"position":15,"created_at":"2026-07-20T18:17:11+08:00","updated_at":"2026-07-20T18:17:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/215c7a68c2e338c4b1346786b1647eda68917a49_ec5161bf-0e07-4d30-b776-66166547db00.webp?v=1784542633","variant_ids":[41197329711203]},"available":true,"name":"iPhone 14 Pro Max Clear 1G 右看看 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630J-IV04","featured_media":{"alt":null,"id":27826670927971,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/215c7a68c2e338c4b1346786b1647eda68917a49_ec5161bf-0e07-4d30-b776-66166547db00.webp?v=1784542633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb3788ac7ad78fd038b77d249cd46fc4454cb8b_bafd3a6e-834e-4475-b3da-b75a2c85d694.webp?v=1706001444","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac0a7f8d53ef47d4c3cf35f3ab84d24b206621e9_38324a4d-906a-4307-b6ba-d66c29b26784.webp?v=1706001446","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ddf3767c58691462bac262d4bde300c95cd2d63_ccf26651-0c9e-4c52-b479-acf6243b956e.webp?v=1706001449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9870092a122d8a206ffe189c432e1247b13947d5_25ed4899-87b2-4b64-9ad4-b8e95a9362bb.webp?v=1706001451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/870256dfd5339ce9779987e13a6f3e7d2e989ad8_ae7ba463-b86d-4443-9447-f3495fa8365a.webp?v=1706001453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abea451f8005ea76f1dcf11f52f233de02869e63_5bbce5a3-deae-4987-b122-b5e1611332fc.webp?v=1706001456","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7473827c29891deca2b3d188039aa91d3485b6_4a5a3eec-2106-4462-8dc6-3ee749f81719.webp?v=1706001458","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7ed0ecfb66d152b07ac6fa283a14296a84cfa3f_a91ca5d2-254a-4d6a-83ac-af63be216ac2.webp?v=1706001460","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/846cafdffbfe7703033b907898744d78bd05196b_72a90a5b-2324-4f69-98ec-b579b8781965.webp?v=1706262653","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/555aefe330f9536c12d0645b5dfde1e03ad20f52.webp?v=1782881792","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/215c7a68c2e338c4b1346786b1647eda68917a49.webp?v=1782881792","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d58d191139cf6fd8091843eb7db9e6135021cf.webp?v=1782881793","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/555aefe330f9536c12d0645b5dfde1e03ad20f52_e5f74466-cdef-4aeb-8b51-b1808b79cbe9.webp?v=1784542632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d58d191139cf6fd8091843eb7db9e6135021cf_65d35d4c-e1a9-479a-b829-74e6fb927b19.webp?v=1784542632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/215c7a68c2e338c4b1346786b1647eda68917a49_ec5161bf-0e07-4d30-b776-66166547db00.webp?v=1784542633"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb3788ac7ad78fd038b77d249cd46fc4454cb8b_bafd3a6e-834e-4475-b3da-b75a2c85d694.webp?v=1706001444","options":["color"],"media":[{"alt":null,"id":23202168635491,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb3788ac7ad78fd038b77d249cd46fc4454cb8b_bafd3a6e-834e-4475-b3da-b75a2c85d694.webp?v=1706001444"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb3788ac7ad78fd038b77d249cd46fc4454cb8b_bafd3a6e-834e-4475-b3da-b75a2c85d694.webp?v=1706001444","width":2000},{"alt":null,"id":23202169356387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac0a7f8d53ef47d4c3cf35f3ab84d24b206621e9_38324a4d-906a-4307-b6ba-d66c29b26784.webp?v=1706001446"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac0a7f8d53ef47d4c3cf35f3ab84d24b206621e9_38324a4d-906a-4307-b6ba-d66c29b26784.webp?v=1706001446","width":2000},{"alt":null,"id":23202169946211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ddf3767c58691462bac262d4bde300c95cd2d63_ccf26651-0c9e-4c52-b479-acf6243b956e.webp?v=1706001449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ddf3767c58691462bac262d4bde300c95cd2d63_ccf26651-0c9e-4c52-b479-acf6243b956e.webp?v=1706001449","width":2000},{"alt":null,"id":23202170699875,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9870092a122d8a206ffe189c432e1247b13947d5_25ed4899-87b2-4b64-9ad4-b8e95a9362bb.webp?v=1706001451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9870092a122d8a206ffe189c432e1247b13947d5_25ed4899-87b2-4b64-9ad4-b8e95a9362bb.webp?v=1706001451","width":2000},{"alt":null,"id":23202171355235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/870256dfd5339ce9779987e13a6f3e7d2e989ad8_ae7ba463-b86d-4443-9447-f3495fa8365a.webp?v=1706001453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/870256dfd5339ce9779987e13a6f3e7d2e989ad8_ae7ba463-b86d-4443-9447-f3495fa8365a.webp?v=1706001453","width":2000},{"alt":null,"id":23202171813987,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abea451f8005ea76f1dcf11f52f233de02869e63_5bbce5a3-deae-4987-b122-b5e1611332fc.webp?v=1706001456"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abea451f8005ea76f1dcf11f52f233de02869e63_5bbce5a3-deae-4987-b122-b5e1611332fc.webp?v=1706001456","width":2000},{"alt":null,"id":23202172469347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7473827c29891deca2b3d188039aa91d3485b6_4a5a3eec-2106-4462-8dc6-3ee749f81719.webp?v=1706001458"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7473827c29891deca2b3d188039aa91d3485b6_4a5a3eec-2106-4462-8dc6-3ee749f81719.webp?v=1706001458","width":2000},{"alt":null,"id":23202172928099,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7ed0ecfb66d152b07ac6fa283a14296a84cfa3f_a91ca5d2-254a-4d6a-83ac-af63be216ac2.webp?v=1706001460"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7ed0ecfb66d152b07ac6fa283a14296a84cfa3f_a91ca5d2-254a-4d6a-83ac-af63be216ac2.webp?v=1706001460","width":2000},{"alt":null,"id":23219486752867,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/846cafdffbfe7703033b907898744d78bd05196b_72a90a5b-2324-4f69-98ec-b579b8781965.webp?v=1706262653"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/846cafdffbfe7703033b907898744d78bd05196b_72a90a5b-2324-4f69-98ec-b579b8781965.webp?v=1706262653","width":2000},{"alt":null,"id":27647311806563,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/555aefe330f9536c12d0645b5dfde1e03ad20f52.webp?v=1782881792"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/555aefe330f9536c12d0645b5dfde1e03ad20f52.webp?v=1782881792","width":2000},{"alt":null,"id":27647312724067,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/215c7a68c2e338c4b1346786b1647eda68917a49.webp?v=1782881792"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/215c7a68c2e338c4b1346786b1647eda68917a49.webp?v=1782881792","width":2000},{"alt":null,"id":27647313346659,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d58d191139cf6fd8091843eb7db9e6135021cf.webp?v=1782881793"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d58d191139cf6fd8091843eb7db9e6135021cf.webp?v=1782881793","width":2000},{"alt":null,"id":27826669617251,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/555aefe330f9536c12d0645b5dfde1e03ad20f52_e5f74466-cdef-4aeb-8b51-b1808b79cbe9.webp?v=1784542632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/555aefe330f9536c12d0645b5dfde1e03ad20f52_e5f74466-cdef-4aeb-8b51-b1808b79cbe9.webp?v=1784542632","width":2000},{"alt":null,"id":27826670076003,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d58d191139cf6fd8091843eb7db9e6135021cf_65d35d4c-e1a9-479a-b829-74e6fb927b19.webp?v=1784542632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d58d191139cf6fd8091843eb7db9e6135021cf_65d35d4c-e1a9-479a-b829-74e6fb927b19.webp?v=1784542632","width":2000},{"alt":null,"id":27826670927971,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/215c7a68c2e338c4b1346786b1647eda68917a49_ec5161bf-0e07-4d30-b776-66166547db00.webp?v=1784542633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/215c7a68c2e338c4b1346786b1647eda68917a49_ec5161bf-0e07-4d30-b776-66166547db00.webp?v=1784542633","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41197329612899,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012630G-IV04","requires_shipping":true,"taxable":true,"featured_image":{"id":36322762227811,"product_id":7155920404579,"position":14,"created_at":"2026-07-20T18:17:10+08:00","updated_at":"2026-07-20T18:17:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d58d191139cf6fd8091843eb7db9e6135021cf_65d35d4c-e1a9-479a-b829-74e6fb927b19.webp?v=1784542632","variant_ids":[41197329612899]},"available":true,"name":"iPhone 14 Pro Max Clear 1G 右看看 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630G-IV04","featured_media":{"alt":null,"id":27826670076003,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d58d191139cf6fd8091843eb7db9e6135021cf_65d35d4c-e1a9-479a-b829-74e6fb927b19.webp?v=1784542632"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197329645667,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012630H-IV04","requires_shipping":true,"taxable":true,"featured_image":{"id":36322761769059,"product_id":7155920404579,"position":13,"created_at":"2026-07-20T18:17:10+08:00","updated_at":"2026-07-20T18:17:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/555aefe330f9536c12d0645b5dfde1e03ad20f52_e5f74466-cdef-4aeb-8b51-b1808b79cbe9.webp?v=1784542632","variant_ids":[41197329645667]},"available":true,"name":"iPhone 14 Pro Max Clear 1G 右看看 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630H-IV04","featured_media":{"alt":null,"id":27826669617251,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/555aefe330f9536c12d0645b5dfde1e03ad20f52_e5f74466-cdef-4aeb-8b51-b1808b79cbe9.webp?v=1784542632"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197329711203,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012630J-IV04","requires_shipping":true,"taxable":true,"featured_image":{"id":36322763079779,"product_id":7155920404579,"position":15,"created_at":"2026-07-20T18:17:11+08:00","updated_at":"2026-07-20T18:17:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/215c7a68c2e338c4b1346786b1647eda68917a49_ec5161bf-0e07-4d30-b776-66166547db00.webp?v=1784542633","variant_ids":[41197329711203]},"available":true,"name":"iPhone 14 Pro Max Clear 1G 右看看 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630J-IV04","featured_media":{"alt":null,"id":27826670927971,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/215c7a68c2e338c4b1346786b1647eda68917a49_ec5161bf-0e07-4d30-b776-66166547db00.webp?v=1784542633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41197329612899,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012630G-IV04","requires_shipping":true,"taxable":true,"featured_image":{"id":36322762227811,"product_id":7155920404579,"position":14,"created_at":"2026-07-20T18:17:10+08:00","updated_at":"2026-07-20T18:17:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d58d191139cf6fd8091843eb7db9e6135021cf_65d35d4c-e1a9-479a-b829-74e6fb927b19.webp?v=1784542632","variant_ids":[41197329612899]},"available":true,"name":"iPhone 14 Pro Max Clear 1G 右看看 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630G-IV04","featured_media":{"alt":null,"id":27826670076003,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d58d191139cf6fd8091843eb7db9e6135021cf_65d35d4c-e1a9-479a-b829-74e6fb927b19.webp?v=1784542632"}},"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: "停產" }