Home
›
iPhone 17 Pro AirX 右手超人 趴趴雲
$product = {"id":7944342962275,"title":"iPhone 17 Pro AirX 右手超人 趴趴雲","handle":"iphone-17-pro-airx-magsafe-yoh08","description":null,"published_at":"2025-12-24T10:11:17+08:00","created_at":"2025-12-23T17:01:45+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-yohand","device-iPhone 17 Pro","merge","reseller-yohand"],"price":195000,"price_min":195000,"price_max":195000,"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":43908473782371,"title":"Flux Gray","option1":"Flux Gray","option2":null,"option3":null,"sku":"MAR013524F-YOH08","requires_shipping":true,"taxable":true,"featured_image":{"id":36272233611363,"product_id":7944342962275,"position":4,"created_at":"2026-07-15T15:18:10+08:00","updated_at":"2026-07-15T15:18:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34c293e0b49b83b52485281db7e1500bb47f9724_df4777c1-123e-4af8-bde7-be386e6224c0.webp?v=1784099892","variant_ids":[43908473782371]},"available":true,"name":"iPhone 17 Pro AirX 右手超人 趴趴雲 - Flux Gray","public_title":"Flux Gray","options":["Flux Gray"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013524F-YOH08","featured_media":{"alt":null,"id":27776287899747,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34c293e0b49b83b52485281db7e1500bb47f9724_df4777c1-123e-4af8-bde7-be386e6224c0.webp?v=1784099892"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43908477911139,"title":"Vero Black","option1":"Vero Black","option2":null,"option3":null,"sku":"MAR013524E-YOH08","requires_shipping":true,"taxable":true,"featured_image":{"id":36272233250915,"product_id":7944342962275,"position":3,"created_at":"2026-07-15T15:18:09+08:00","updated_at":"2026-07-15T15:18:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b983f75ad46224b6831e9c4d9da0b06320c2f1f_9931b3ba-4b51-445c-a430-faf74b7fb6e6.webp?v=1784099891","variant_ids":[43908477911139]},"available":true,"name":"iPhone 17 Pro AirX 右手超人 趴趴雲 - Vero Black","public_title":"Vero Black","options":["Vero Black"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013524E-YOH08","featured_media":{"alt":null,"id":27776287539299,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b983f75ad46224b6831e9c4d9da0b06320c2f1f_9931b3ba-4b51-445c-a430-faf74b7fb6e6.webp?v=1784099891"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44440932122723,"title":"Ashen Violet","option1":"Ashen Violet","option2":null,"option3":null,"sku":"MAR013526C-YOH08","requires_shipping":true,"taxable":true,"featured_image":{"id":36485813534819,"product_id":7944342962275,"position":7,"created_at":"2026-08-05T10:56:14+08:00","updated_at":"2026-08-05T10:56:16+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d7f596abdcb7f73ddfbac89bf329590f22c9700.webp?v=1785898576","variant_ids":[44440932122723]},"available":true,"name":"iPhone 17 Pro AirX 右手超人 趴趴雲 - Ashen Violet","public_title":"Ashen Violet","options":["Ashen Violet"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013526C-YOH08","featured_media":{"alt":null,"id":27989126381667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d7f596abdcb7f73ddfbac89bf329590f22c9700.webp?v=1785898576"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44449054064739,"title":"Ridgeline Gray","option1":"Ridgeline Gray","option2":null,"option3":null,"sku":"MAR013526D-YOH08","requires_shipping":true,"taxable":true,"featured_image":{"id":36495021572195,"product_id":7944342962275,"position":8,"created_at":"2026-08-06T11:27:14+08:00","updated_at":"2026-08-06T11:27:16+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1feeca0bf526f95d9f89c9e1f4122f4a55898d90_4c106968-7fa8-4df2-b212-09020398789a.webp?v=1785986836","variant_ids":[44449054064739]},"available":true,"name":"iPhone 17 Pro AirX 右手超人 趴趴雲 - Ridgeline Gray","public_title":"Ridgeline Gray","options":["Ridgeline Gray"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013526D-YOH08","featured_media":{"alt":null,"id":27998317412451,"position":8,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1feeca0bf526f95d9f89c9e1f4122f4a55898d90_4c106968-7fa8-4df2-b212-09020398789a.webp?v=1785986836"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44449054326883,"title":"Trailhead Green","option1":"Trailhead Green","option2":null,"option3":null,"sku":"MAR013526E-YOH08","requires_shipping":true,"taxable":true,"featured_image":{"id":36495021834339,"product_id":7944342962275,"position":9,"created_at":"2026-08-06T11:27:16+08:00","updated_at":"2026-08-06T11:27:18+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/470199a63a2436c5f386b39aa8dc088412275681_1e3a4778-ba40-459c-a6f5-24d391e31c76.webp?v=1785986838","variant_ids":[44449054326883]},"available":true,"name":"iPhone 17 Pro AirX 右手超人 趴趴雲 - Trailhead Green","public_title":"Trailhead Green","options":["Trailhead Green"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013526E-YOH08","featured_media":{"alt":null,"id":27998317674595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/470199a63a2436c5f386b39aa8dc088412275681_1e3a4778-ba40-459c-a6f5-24d391e31c76.webp?v=1785986838"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34c293e0b49b83b52485281db7e1500bb47f9724.webp?v=1766480514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b983f75ad46224b6831e9c4d9da0b06320c2f1f.webp?v=1766480516","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b983f75ad46224b6831e9c4d9da0b06320c2f1f_9931b3ba-4b51-445c-a430-faf74b7fb6e6.webp?v=1784099891","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34c293e0b49b83b52485281db7e1500bb47f9724_df4777c1-123e-4af8-bde7-be386e6224c0.webp?v=1784099892","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1feeca0bf526f95d9f89c9e1f4122f4a55898d90.webp?v=1785898572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/470199a63a2436c5f386b39aa8dc088412275681.webp?v=1785898574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d7f596abdcb7f73ddfbac89bf329590f22c9700.webp?v=1785898576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1feeca0bf526f95d9f89c9e1f4122f4a55898d90_4c106968-7fa8-4df2-b212-09020398789a.webp?v=1785986836","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/470199a63a2436c5f386b39aa8dc088412275681_1e3a4778-ba40-459c-a6f5-24d391e31c76.webp?v=1785986838"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34c293e0b49b83b52485281db7e1500bb47f9724.webp?v=1766480514","options":["color"],"media":[{"alt":null,"id":26563466494051,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34c293e0b49b83b52485281db7e1500bb47f9724.webp?v=1766480514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34c293e0b49b83b52485281db7e1500bb47f9724.webp?v=1766480514","width":2000},{"alt":null,"id":26563466657891,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b983f75ad46224b6831e9c4d9da0b06320c2f1f.webp?v=1766480516"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b983f75ad46224b6831e9c4d9da0b06320c2f1f.webp?v=1766480516","width":2000},{"alt":null,"id":27776287539299,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b983f75ad46224b6831e9c4d9da0b06320c2f1f_9931b3ba-4b51-445c-a430-faf74b7fb6e6.webp?v=1784099891"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b983f75ad46224b6831e9c4d9da0b06320c2f1f_9931b3ba-4b51-445c-a430-faf74b7fb6e6.webp?v=1784099891","width":2000},{"alt":null,"id":27776287899747,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34c293e0b49b83b52485281db7e1500bb47f9724_df4777c1-123e-4af8-bde7-be386e6224c0.webp?v=1784099892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34c293e0b49b83b52485281db7e1500bb47f9724_df4777c1-123e-4af8-bde7-be386e6224c0.webp?v=1784099892","width":2000},{"alt":null,"id":27989125824611,"position":5,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1feeca0bf526f95d9f89c9e1f4122f4a55898d90.webp?v=1785898572"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1feeca0bf526f95d9f89c9e1f4122f4a55898d90.webp?v=1785898572","width":550},{"alt":null,"id":27989126185059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/470199a63a2436c5f386b39aa8dc088412275681.webp?v=1785898574"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/470199a63a2436c5f386b39aa8dc088412275681.webp?v=1785898574","width":550},{"alt":null,"id":27989126381667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d7f596abdcb7f73ddfbac89bf329590f22c9700.webp?v=1785898576"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d7f596abdcb7f73ddfbac89bf329590f22c9700.webp?v=1785898576","width":550},{"alt":null,"id":27998317412451,"position":8,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1feeca0bf526f95d9f89c9e1f4122f4a55898d90_4c106968-7fa8-4df2-b212-09020398789a.webp?v=1785986836"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1feeca0bf526f95d9f89c9e1f4122f4a55898d90_4c106968-7fa8-4df2-b212-09020398789a.webp?v=1785986836","width":550},{"alt":null,"id":27998317674595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/470199a63a2436c5f386b39aa8dc088412275681_1e3a4778-ba40-459c-a6f5-24d391e31c76.webp?v=1785986838"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/470199a63a2436c5f386b39aa8dc088412275681_1e3a4778-ba40-459c-a6f5-24d391e31c76.webp?v=1785986838","width":550}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43908473782371,"title":"Flux Gray","option1":"Flux Gray","option2":null,"option3":null,"sku":"MAR013524F-YOH08","requires_shipping":true,"taxable":true,"featured_image":{"id":36272233611363,"product_id":7944342962275,"position":4,"created_at":"2026-07-15T15:18:10+08:00","updated_at":"2026-07-15T15:18:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34c293e0b49b83b52485281db7e1500bb47f9724_df4777c1-123e-4af8-bde7-be386e6224c0.webp?v=1784099892","variant_ids":[43908473782371]},"available":true,"name":"iPhone 17 Pro AirX 右手超人 趴趴雲 - Flux Gray","public_title":"Flux Gray","options":["Flux Gray"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013524F-YOH08","featured_media":{"alt":null,"id":27776287899747,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34c293e0b49b83b52485281db7e1500bb47f9724_df4777c1-123e-4af8-bde7-be386e6224c0.webp?v=1784099892"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43908477911139,"title":"Vero Black","option1":"Vero Black","option2":null,"option3":null,"sku":"MAR013524E-YOH08","requires_shipping":true,"taxable":true,"featured_image":{"id":36272233250915,"product_id":7944342962275,"position":3,"created_at":"2026-07-15T15:18:09+08:00","updated_at":"2026-07-15T15:18:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b983f75ad46224b6831e9c4d9da0b06320c2f1f_9931b3ba-4b51-445c-a430-faf74b7fb6e6.webp?v=1784099891","variant_ids":[43908477911139]},"available":true,"name":"iPhone 17 Pro AirX 右手超人 趴趴雲 - Vero Black","public_title":"Vero Black","options":["Vero Black"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013524E-YOH08","featured_media":{"alt":null,"id":27776287539299,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b983f75ad46224b6831e9c4d9da0b06320c2f1f_9931b3ba-4b51-445c-a430-faf74b7fb6e6.webp?v=1784099891"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44440932122723,"title":"Ashen Violet","option1":"Ashen Violet","option2":null,"option3":null,"sku":"MAR013526C-YOH08","requires_shipping":true,"taxable":true,"featured_image":{"id":36485813534819,"product_id":7944342962275,"position":7,"created_at":"2026-08-05T10:56:14+08:00","updated_at":"2026-08-05T10:56:16+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d7f596abdcb7f73ddfbac89bf329590f22c9700.webp?v=1785898576","variant_ids":[44440932122723]},"available":true,"name":"iPhone 17 Pro AirX 右手超人 趴趴雲 - Ashen Violet","public_title":"Ashen Violet","options":["Ashen Violet"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013526C-YOH08","featured_media":{"alt":null,"id":27989126381667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d7f596abdcb7f73ddfbac89bf329590f22c9700.webp?v=1785898576"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44449054064739,"title":"Ridgeline Gray","option1":"Ridgeline Gray","option2":null,"option3":null,"sku":"MAR013526D-YOH08","requires_shipping":true,"taxable":true,"featured_image":{"id":36495021572195,"product_id":7944342962275,"position":8,"created_at":"2026-08-06T11:27:14+08:00","updated_at":"2026-08-06T11:27:16+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1feeca0bf526f95d9f89c9e1f4122f4a55898d90_4c106968-7fa8-4df2-b212-09020398789a.webp?v=1785986836","variant_ids":[44449054064739]},"available":true,"name":"iPhone 17 Pro AirX 右手超人 趴趴雲 - Ridgeline Gray","public_title":"Ridgeline Gray","options":["Ridgeline Gray"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013526D-YOH08","featured_media":{"alt":null,"id":27998317412451,"position":8,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1feeca0bf526f95d9f89c9e1f4122f4a55898d90_4c106968-7fa8-4df2-b212-09020398789a.webp?v=1785986836"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44449054326883,"title":"Trailhead Green","option1":"Trailhead Green","option2":null,"option3":null,"sku":"MAR013526E-YOH08","requires_shipping":true,"taxable":true,"featured_image":{"id":36495021834339,"product_id":7944342962275,"position":9,"created_at":"2026-08-06T11:27:16+08:00","updated_at":"2026-08-06T11:27:18+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/470199a63a2436c5f386b39aa8dc088412275681_1e3a4778-ba40-459c-a6f5-24d391e31c76.webp?v=1785986838","variant_ids":[44449054326883]},"available":true,"name":"iPhone 17 Pro AirX 右手超人 趴趴雲 - Trailhead Green","public_title":"Trailhead Green","options":["Trailhead Green"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013526E-YOH08","featured_media":{"alt":null,"id":27998317674595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/470199a63a2436c5f386b39aa8dc088412275681_1e3a4778-ba40-459c-a6f5-24d391e31c76.webp?v=1785986838"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43908473782371,"title":"Flux Gray","option1":"Flux Gray","option2":null,"option3":null,"sku":"MAR013524F-YOH08","requires_shipping":true,"taxable":true,"featured_image":{"id":36272233611363,"product_id":7944342962275,"position":4,"created_at":"2026-07-15T15:18:10+08:00","updated_at":"2026-07-15T15:18:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34c293e0b49b83b52485281db7e1500bb47f9724_df4777c1-123e-4af8-bde7-be386e6224c0.webp?v=1784099892","variant_ids":[43908473782371]},"available":true,"name":"iPhone 17 Pro AirX 右手超人 趴趴雲 - Flux Gray","public_title":"Flux Gray","options":["Flux Gray"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013524F-YOH08","featured_media":{"alt":null,"id":27776287899747,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34c293e0b49b83b52485281db7e1500bb47f9724_df4777c1-123e-4af8-bde7-be386e6224c0.webp?v=1784099892"}},"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: "停產"
}