$product = {"id":7922126782563,"title":"iPhone 17 AirX AH!Q by ALAN HONG 你好我是阿 Q","handle":"iphone-17-airx-magsafe-al02","description":null,"published_at":"2025-11-19T11:07:11+08:00","created_at":"2025-11-13T15:03:08+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-alanhong","device-iPhone 17","merge","reseller-alanhong"],"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":43835395211363,"title":"Vero Black","option1":"Vero Black","option2":null,"option3":null,"sku":"MAR013504E-AL02","requires_shipping":true,"taxable":true,"featured_image":{"id":36646826803299,"product_id":7922126782563,"position":9,"created_at":"2026-08-24T17:53:18+08:00","updated_at":"2026-08-24T17:53:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56e7b572b4afee694e51359cb8f208910ee227d5.webp?v=1787565200","variant_ids":[43835395211363]},"available":true,"name":"iPhone 17 AirX AH!Q by ALAN HONG 你好我是阿 Q - 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":"MAR013504E-AL02","featured_media":{"alt":null,"id":28149294235747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56e7b572b4afee694e51359cb8f208910ee227d5.webp?v=1787565200"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43835395735651,"title":"Flux Gray","option1":"Flux Gray","option2":null,"option3":null,"sku":"MAR013504F-AL02","requires_shipping":true,"taxable":true,"featured_image":{"id":36646826508387,"product_id":7922126782563,"position":8,"created_at":"2026-08-24T17:53:17+08:00","updated_at":"2026-08-24T17:53:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4297c0d09b6e2101c572b34b58858c160a6a87d1.webp?v=1787565199","variant_ids":[43835395735651]},"available":true,"name":"iPhone 17 AirX AH!Q by ALAN HONG 你好我是阿 Q - 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":"MAR013504F-AL02","featured_media":{"alt":null,"id":28149293940835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4297c0d09b6e2101c572b34b58858c160a6a87d1.webp?v=1787565199"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44439833772131,"title":"Ashen Violet","option1":"Ashen Violet","option2":null,"option3":null,"sku":"MAR013506C-AL02","requires_shipping":true,"taxable":true,"featured_image":{"id":36646827425891,"product_id":7922126782563,"position":11,"created_at":"2026-08-24T17:53:19+08:00","updated_at":"2026-08-24T17:53:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6926af0ff2b3ea0fefc5b7e41a01a602e8837349.webp?v=1787565201","variant_ids":[44439833772131]},"available":true,"name":"iPhone 17 AirX AH!Q by ALAN HONG 你好我是阿 Q - 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":"MAR013506C-AL02","featured_media":{"alt":null,"id":28149295054947,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6926af0ff2b3ea0fefc5b7e41a01a602e8837349.webp?v=1787565201"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44448384057443,"title":"Ridgeline Gray","option1":"Ridgeline Gray","option2":null,"option3":null,"sku":"MAR013506D-AL02","requires_shipping":true,"taxable":true,"featured_image":{"id":36646826082403,"product_id":7922126782563,"position":7,"created_at":"2026-08-24T17:53:16+08:00","updated_at":"2026-08-24T17:53:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a28c2e994ee68d6efde9b529c5aefbc4bfb6c0e.webp?v=1787565199","variant_ids":[44448384057443]},"available":true,"name":"iPhone 17 AirX AH!Q by ALAN HONG 你好我是阿 Q - 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":"MAR013506D-AL02","featured_media":{"alt":null,"id":28149293318243,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a28c2e994ee68d6efde9b529c5aefbc4bfb6c0e.webp?v=1787565199"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44448384745571,"title":"Trailhead Green","option1":"Trailhead Green","option2":null,"option3":null,"sku":"MAR013506E-AL02","requires_shipping":true,"taxable":true,"featured_image":{"id":36646827196515,"product_id":7922126782563,"position":10,"created_at":"2026-08-24T17:53:19+08:00","updated_at":"2026-08-24T17:53:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7d9d5b1dd7f53e71d100b1ecafbc4470b370e4a.webp?v=1787565200","variant_ids":[44448384745571]},"available":true,"name":"iPhone 17 AirX AH!Q by ALAN HONG 你好我是阿 Q - 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":"MAR013506E-AL02","featured_media":{"alt":null,"id":28149294628963,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7d9d5b1dd7f53e71d100b1ecafbc4470b370e4a.webp?v=1787565200"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/AirX-4E-350-AL02.png?v=1763017391","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10d3934794a3036774f411da3e9e877a12bf0ef6.webp?v=1785892905","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ed5abe610b4a63195b2ee0e4ba56e988bfa32de.webp?v=1785892907","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9120bc8e12494f34b7d3052af9734ef2e4d8aa9a.webp?v=1785892909","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ed5abe610b4a63195b2ee0e4ba56e988bfa32de_b2f0001c-5355-418d-9fb6-0251b96cf1d0.webp?v=1785983253","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9120bc8e12494f34b7d3052af9734ef2e4d8aa9a_c07c1cef-de25-4ad8-ac9d-64548cee4706.webp?v=1785983255","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a28c2e994ee68d6efde9b529c5aefbc4bfb6c0e.webp?v=1787565199","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4297c0d09b6e2101c572b34b58858c160a6a87d1.webp?v=1787565199","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56e7b572b4afee694e51359cb8f208910ee227d5.webp?v=1787565200","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7d9d5b1dd7f53e71d100b1ecafbc4470b370e4a.webp?v=1787565200","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6926af0ff2b3ea0fefc5b7e41a01a602e8837349.webp?v=1787565201"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/AirX-4E-350-AL02.png?v=1763017391","options":["color"],"media":[{"alt":null,"id":26360494555235,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/AirX-4E-350-AL02.png?v=1763017391"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/AirX-4E-350-AL02.png?v=1763017391","width":2000},{"alt":null,"id":27988111655011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10d3934794a3036774f411da3e9e877a12bf0ef6.webp?v=1785892905"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10d3934794a3036774f411da3e9e877a12bf0ef6.webp?v=1785892905","width":550},{"alt":null,"id":27988112244835,"position":3,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ed5abe610b4a63195b2ee0e4ba56e988bfa32de.webp?v=1785892907"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ed5abe610b4a63195b2ee0e4ba56e988bfa32de.webp?v=1785892907","width":550},{"alt":null,"id":27988112932963,"position":4,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9120bc8e12494f34b7d3052af9734ef2e4d8aa9a.webp?v=1785892909"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9120bc8e12494f34b7d3052af9734ef2e4d8aa9a.webp?v=1785892909","width":550},{"alt":null,"id":27997692428387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ed5abe610b4a63195b2ee0e4ba56e988bfa32de_b2f0001c-5355-418d-9fb6-0251b96cf1d0.webp?v=1785983253"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ed5abe610b4a63195b2ee0e4ba56e988bfa32de_b2f0001c-5355-418d-9fb6-0251b96cf1d0.webp?v=1785983253","width":550},{"alt":null,"id":27997693018211,"position":6,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9120bc8e12494f34b7d3052af9734ef2e4d8aa9a_c07c1cef-de25-4ad8-ac9d-64548cee4706.webp?v=1785983255"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9120bc8e12494f34b7d3052af9734ef2e4d8aa9a_c07c1cef-de25-4ad8-ac9d-64548cee4706.webp?v=1785983255","width":550},{"alt":null,"id":28149293318243,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a28c2e994ee68d6efde9b529c5aefbc4bfb6c0e.webp?v=1787565199"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a28c2e994ee68d6efde9b529c5aefbc4bfb6c0e.webp?v=1787565199","width":2000},{"alt":null,"id":28149293940835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4297c0d09b6e2101c572b34b58858c160a6a87d1.webp?v=1787565199"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4297c0d09b6e2101c572b34b58858c160a6a87d1.webp?v=1787565199","width":2000},{"alt":null,"id":28149294235747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56e7b572b4afee694e51359cb8f208910ee227d5.webp?v=1787565200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56e7b572b4afee694e51359cb8f208910ee227d5.webp?v=1787565200","width":2000},{"alt":null,"id":28149294628963,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7d9d5b1dd7f53e71d100b1ecafbc4470b370e4a.webp?v=1787565200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7d9d5b1dd7f53e71d100b1ecafbc4470b370e4a.webp?v=1787565200","width":2000},{"alt":null,"id":28149295054947,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6926af0ff2b3ea0fefc5b7e41a01a602e8837349.webp?v=1787565201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6926af0ff2b3ea0fefc5b7e41a01a602e8837349.webp?v=1787565201","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43835395211363,"title":"Vero Black","option1":"Vero Black","option2":null,"option3":null,"sku":"MAR013504E-AL02","requires_shipping":true,"taxable":true,"featured_image":{"id":36646826803299,"product_id":7922126782563,"position":9,"created_at":"2026-08-24T17:53:18+08:00","updated_at":"2026-08-24T17:53:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56e7b572b4afee694e51359cb8f208910ee227d5.webp?v=1787565200","variant_ids":[43835395211363]},"available":true,"name":"iPhone 17 AirX AH!Q by ALAN HONG 你好我是阿 Q - 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":"MAR013504E-AL02","featured_media":{"alt":null,"id":28149294235747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56e7b572b4afee694e51359cb8f208910ee227d5.webp?v=1787565200"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43835395735651,"title":"Flux Gray","option1":"Flux Gray","option2":null,"option3":null,"sku":"MAR013504F-AL02","requires_shipping":true,"taxable":true,"featured_image":{"id":36646826508387,"product_id":7922126782563,"position":8,"created_at":"2026-08-24T17:53:17+08:00","updated_at":"2026-08-24T17:53:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4297c0d09b6e2101c572b34b58858c160a6a87d1.webp?v=1787565199","variant_ids":[43835395735651]},"available":true,"name":"iPhone 17 AirX AH!Q by ALAN HONG 你好我是阿 Q - 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":"MAR013504F-AL02","featured_media":{"alt":null,"id":28149293940835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4297c0d09b6e2101c572b34b58858c160a6a87d1.webp?v=1787565199"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44439833772131,"title":"Ashen Violet","option1":"Ashen Violet","option2":null,"option3":null,"sku":"MAR013506C-AL02","requires_shipping":true,"taxable":true,"featured_image":{"id":36646827425891,"product_id":7922126782563,"position":11,"created_at":"2026-08-24T17:53:19+08:00","updated_at":"2026-08-24T17:53:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6926af0ff2b3ea0fefc5b7e41a01a602e8837349.webp?v=1787565201","variant_ids":[44439833772131]},"available":true,"name":"iPhone 17 AirX AH!Q by ALAN HONG 你好我是阿 Q - 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":"MAR013506C-AL02","featured_media":{"alt":null,"id":28149295054947,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6926af0ff2b3ea0fefc5b7e41a01a602e8837349.webp?v=1787565201"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44448384057443,"title":"Ridgeline Gray","option1":"Ridgeline Gray","option2":null,"option3":null,"sku":"MAR013506D-AL02","requires_shipping":true,"taxable":true,"featured_image":{"id":36646826082403,"product_id":7922126782563,"position":7,"created_at":"2026-08-24T17:53:16+08:00","updated_at":"2026-08-24T17:53:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a28c2e994ee68d6efde9b529c5aefbc4bfb6c0e.webp?v=1787565199","variant_ids":[44448384057443]},"available":true,"name":"iPhone 17 AirX AH!Q by ALAN HONG 你好我是阿 Q - 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":"MAR013506D-AL02","featured_media":{"alt":null,"id":28149293318243,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a28c2e994ee68d6efde9b529c5aefbc4bfb6c0e.webp?v=1787565199"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44448384745571,"title":"Trailhead Green","option1":"Trailhead Green","option2":null,"option3":null,"sku":"MAR013506E-AL02","requires_shipping":true,"taxable":true,"featured_image":{"id":36646827196515,"product_id":7922126782563,"position":10,"created_at":"2026-08-24T17:53:19+08:00","updated_at":"2026-08-24T17:53:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7d9d5b1dd7f53e71d100b1ecafbc4470b370e4a.webp?v=1787565200","variant_ids":[44448384745571]},"available":true,"name":"iPhone 17 AirX AH!Q by ALAN HONG 你好我是阿 Q - 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":"MAR013506E-AL02","featured_media":{"alt":null,"id":28149294628963,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7d9d5b1dd7f53e71d100b1ecafbc4470b370e4a.webp?v=1787565200"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43835395211363,"title":"Vero Black","option1":"Vero Black","option2":null,"option3":null,"sku":"MAR013504E-AL02","requires_shipping":true,"taxable":true,"featured_image":{"id":36646826803299,"product_id":7922126782563,"position":9,"created_at":"2026-08-24T17:53:18+08:00","updated_at":"2026-08-24T17:53:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56e7b572b4afee694e51359cb8f208910ee227d5.webp?v=1787565200","variant_ids":[43835395211363]},"available":true,"name":"iPhone 17 AirX AH!Q by ALAN HONG 你好我是阿 Q - 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":"MAR013504E-AL02","featured_media":{"alt":null,"id":28149294235747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56e7b572b4afee694e51359cb8f208910ee227d5.webp?v=1787565200"}},"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: "停產"
}