Home
›
iPhone 15 Plus SolidX 咒術迴戰 澀谷事變Q版系列-全員集合
$product = {"id":7920583737443,"title":"iPhone 15 Plus SolidX 咒術迴戰 澀谷事變Q版系列-全員集合","handle":"iphone-15-plus-solidx-ptt19","description":null,"published_at":"2025-11-10T16:27:41+08:00","created_at":"2025-11-10T15:47:31+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jujutsu-kaisen","device-iPhone 15 Plus","merge","reseller-jujutsu-kaisen"],"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":43829074493539,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-PTT19","requires_shipping":true,"taxable":true,"featured_image":{"id":36125154148451,"product_id":7920583737443,"position":17,"created_at":"2026-06-29T15:42:49+08:00","updated_at":"2026-06-29T15:42:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf758c6d18e7747f263b5c42489ccfba8a5b879c_7e9ec315-75a3-4ca6-8b8e-6f0f7faaa68a.webp?v=1782718971","variant_ids":[43829074493539]},"available":true,"name":"iPhone 15 Plus SolidX 咒術迴戰 澀谷事變Q版系列-全員集合 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-PTT19","featured_media":{"alt":null,"id":27630396932195,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf758c6d18e7747f263b5c42489ccfba8a5b879c_7e9ec315-75a3-4ca6-8b8e-6f0f7faaa68a.webp?v=1782718971"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829076754531,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-PTT19","requires_shipping":true,"taxable":true,"featured_image":{"id":36125154345059,"product_id":7920583737443,"position":18,"created_at":"2026-06-29T15:42:50+08:00","updated_at":"2026-06-29T15:42:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e2c44a49cac0d25fb62260d6a8f57eff4dcb684_6728e3ae-9838-46a9-9600-d8fb7b3a7a41.webp?v=1782718972","variant_ids":[43829076754531]},"available":true,"name":"iPhone 15 Plus SolidX 咒術迴戰 澀谷事變Q版系列-全員集合 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-PTT19","featured_media":{"alt":null,"id":27630397096035,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e2c44a49cac0d25fb62260d6a8f57eff4dcb684_6728e3ae-9838-46a9-9600-d8fb7b3a7a41.webp?v=1782718972"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ae7c83c54a24734076e639c0a8882ad2f24f9e.webp?v=1762760857","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd17e829fa9e984263fc2795b4a1a3981bfe3fd.webp?v=1762760858","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/173f261af350e957172409874d1732bb49ca94b6.webp?v=1762760858","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba4fc21e4c22ee02ceaa585cd29bb9403b0209ce.webp?v=1762760859","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f355e90945b72ca106f40123f21ed5bbe70fac.webp?v=1762760859","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d180e018def0c90e14132dab396e20740f787664.webp?v=1762760860","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e2c44a49cac0d25fb62260d6a8f57eff4dcb684.webp?v=1762760861","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f322f9f7a264e1ec7be6a7b25e316ff4584038ff.webp?v=1762760861","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c941162b72202c1c925244a27690d6151fc1eaf6.webp?v=1762760862","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf758c6d18e7747f263b5c42489ccfba8a5b879c.webp?v=1762760863","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd17e829fa9e984263fc2795b4a1a3981bfe3fd_192e1cdd-8537-43d2-ba47-42030fae7dae.webp?v=1782266142","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e2c44a49cac0d25fb62260d6a8f57eff4dcb684_e6999d63-36db-4114-94c4-cc98847ce71d.webp?v=1782266143","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf758c6d18e7747f263b5c42489ccfba8a5b879c_d5dc482e-e26a-4181-a9b5-7ce56beb0eff.webp?v=1782266144","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd17e829fa9e984263fc2795b4a1a3981bfe3fd_b817dc14-8fe9-469a-bf82-4d4aab46b3da.webp?v=1782291739","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e2c44a49cac0d25fb62260d6a8f57eff4dcb684_8eb34224-5b56-42b5-9fbe-5be0991d36da.webp?v=1782291741","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf758c6d18e7747f263b5c42489ccfba8a5b879c_f0df3e58-f15c-4bc7-b5cb-31aa1571762b.webp?v=1782291743","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf758c6d18e7747f263b5c42489ccfba8a5b879c_7e9ec315-75a3-4ca6-8b8e-6f0f7faaa68a.webp?v=1782718971","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e2c44a49cac0d25fb62260d6a8f57eff4dcb684_6728e3ae-9838-46a9-9600-d8fb7b3a7a41.webp?v=1782718972","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd17e829fa9e984263fc2795b4a1a3981bfe3fd_0204f016-f12e-4e5f-9c5f-19dae42edbe1.webp?v=1782718973"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ae7c83c54a24734076e639c0a8882ad2f24f9e.webp?v=1762760857","options":["color"],"media":[{"alt":null,"id":26348040945763,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ae7c83c54a24734076e639c0a8882ad2f24f9e.webp?v=1762760857"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ae7c83c54a24734076e639c0a8882ad2f24f9e.webp?v=1762760857","width":2000},{"alt":null,"id":26348041109603,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd17e829fa9e984263fc2795b4a1a3981bfe3fd.webp?v=1762760858"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd17e829fa9e984263fc2795b4a1a3981bfe3fd.webp?v=1762760858","width":2000},{"alt":null,"id":26348041306211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/173f261af350e957172409874d1732bb49ca94b6.webp?v=1762760858"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/173f261af350e957172409874d1732bb49ca94b6.webp?v=1762760858","width":2000},{"alt":null,"id":26348041470051,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba4fc21e4c22ee02ceaa585cd29bb9403b0209ce.webp?v=1762760859"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba4fc21e4c22ee02ceaa585cd29bb9403b0209ce.webp?v=1762760859","width":2000},{"alt":null,"id":26348041633891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f355e90945b72ca106f40123f21ed5bbe70fac.webp?v=1762760859"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f355e90945b72ca106f40123f21ed5bbe70fac.webp?v=1762760859","width":2000},{"alt":null,"id":26348041764963,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d180e018def0c90e14132dab396e20740f787664.webp?v=1762760860"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d180e018def0c90e14132dab396e20740f787664.webp?v=1762760860","width":2000},{"alt":null,"id":26348041863267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e2c44a49cac0d25fb62260d6a8f57eff4dcb684.webp?v=1762760861"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e2c44a49cac0d25fb62260d6a8f57eff4dcb684.webp?v=1762760861","width":2000},{"alt":null,"id":26348042190947,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f322f9f7a264e1ec7be6a7b25e316ff4584038ff.webp?v=1762760861"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f322f9f7a264e1ec7be6a7b25e316ff4584038ff.webp?v=1762760861","width":2000},{"alt":null,"id":26348042322019,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c941162b72202c1c925244a27690d6151fc1eaf6.webp?v=1762760862"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c941162b72202c1c925244a27690d6151fc1eaf6.webp?v=1762760862","width":2000},{"alt":null,"id":26348042584163,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf758c6d18e7747f263b5c42489ccfba8a5b879c.webp?v=1762760863"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf758c6d18e7747f263b5c42489ccfba8a5b879c.webp?v=1762760863","width":2000},{"alt":null,"id":27587411214435,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd17e829fa9e984263fc2795b4a1a3981bfe3fd_192e1cdd-8537-43d2-ba47-42030fae7dae.webp?v=1782266142"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd17e829fa9e984263fc2795b4a1a3981bfe3fd_192e1cdd-8537-43d2-ba47-42030fae7dae.webp?v=1782266142","width":2000},{"alt":null,"id":27587411542115,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e2c44a49cac0d25fb62260d6a8f57eff4dcb684_e6999d63-36db-4114-94c4-cc98847ce71d.webp?v=1782266143"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e2c44a49cac0d25fb62260d6a8f57eff4dcb684_e6999d63-36db-4114-94c4-cc98847ce71d.webp?v=1782266143","width":2000},{"alt":null,"id":27587411804259,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf758c6d18e7747f263b5c42489ccfba8a5b879c_d5dc482e-e26a-4181-a9b5-7ce56beb0eff.webp?v=1782266144"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf758c6d18e7747f263b5c42489ccfba8a5b879c_d5dc482e-e26a-4181-a9b5-7ce56beb0eff.webp?v=1782266144","width":2000},{"alt":null,"id":27594718347363,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd17e829fa9e984263fc2795b4a1a3981bfe3fd_b817dc14-8fe9-469a-bf82-4d4aab46b3da.webp?v=1782291739"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd17e829fa9e984263fc2795b4a1a3981bfe3fd_b817dc14-8fe9-469a-bf82-4d4aab46b3da.webp?v=1782291739","width":2000},{"alt":null,"id":27594719166563,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e2c44a49cac0d25fb62260d6a8f57eff4dcb684_8eb34224-5b56-42b5-9fbe-5be0991d36da.webp?v=1782291741"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e2c44a49cac0d25fb62260d6a8f57eff4dcb684_8eb34224-5b56-42b5-9fbe-5be0991d36da.webp?v=1782291741","width":2000},{"alt":null,"id":27594719854691,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf758c6d18e7747f263b5c42489ccfba8a5b879c_f0df3e58-f15c-4bc7-b5cb-31aa1571762b.webp?v=1782291743"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf758c6d18e7747f263b5c42489ccfba8a5b879c_f0df3e58-f15c-4bc7-b5cb-31aa1571762b.webp?v=1782291743","width":2000},{"alt":null,"id":27630396932195,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf758c6d18e7747f263b5c42489ccfba8a5b879c_7e9ec315-75a3-4ca6-8b8e-6f0f7faaa68a.webp?v=1782718971"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf758c6d18e7747f263b5c42489ccfba8a5b879c_7e9ec315-75a3-4ca6-8b8e-6f0f7faaa68a.webp?v=1782718971","width":2000},{"alt":null,"id":27630397096035,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e2c44a49cac0d25fb62260d6a8f57eff4dcb684_6728e3ae-9838-46a9-9600-d8fb7b3a7a41.webp?v=1782718972"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e2c44a49cac0d25fb62260d6a8f57eff4dcb684_6728e3ae-9838-46a9-9600-d8fb7b3a7a41.webp?v=1782718972","width":2000},{"alt":null,"id":27630397423715,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd17e829fa9e984263fc2795b4a1a3981bfe3fd_0204f016-f12e-4e5f-9c5f-19dae42edbe1.webp?v=1782718973"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd17e829fa9e984263fc2795b4a1a3981bfe3fd_0204f016-f12e-4e5f-9c5f-19dae42edbe1.webp?v=1782718973","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43829074493539,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-PTT19","requires_shipping":true,"taxable":true,"featured_image":{"id":36125154148451,"product_id":7920583737443,"position":17,"created_at":"2026-06-29T15:42:49+08:00","updated_at":"2026-06-29T15:42:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf758c6d18e7747f263b5c42489ccfba8a5b879c_7e9ec315-75a3-4ca6-8b8e-6f0f7faaa68a.webp?v=1782718971","variant_ids":[43829074493539]},"available":true,"name":"iPhone 15 Plus SolidX 咒術迴戰 澀谷事變Q版系列-全員集合 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-PTT19","featured_media":{"alt":null,"id":27630396932195,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf758c6d18e7747f263b5c42489ccfba8a5b879c_7e9ec315-75a3-4ca6-8b8e-6f0f7faaa68a.webp?v=1782718971"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829076754531,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-PTT19","requires_shipping":true,"taxable":true,"featured_image":{"id":36125154345059,"product_id":7920583737443,"position":18,"created_at":"2026-06-29T15:42:50+08:00","updated_at":"2026-06-29T15:42:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e2c44a49cac0d25fb62260d6a8f57eff4dcb684_6728e3ae-9838-46a9-9600-d8fb7b3a7a41.webp?v=1782718972","variant_ids":[43829076754531]},"available":true,"name":"iPhone 15 Plus SolidX 咒術迴戰 澀谷事變Q版系列-全員集合 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-PTT19","featured_media":{"alt":null,"id":27630397096035,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e2c44a49cac0d25fb62260d6a8f57eff4dcb684_6728e3ae-9838-46a9-9600-d8fb7b3a7a41.webp?v=1782718972"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43829074493539,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-PTT19","requires_shipping":true,"taxable":true,"featured_image":{"id":36125154148451,"product_id":7920583737443,"position":17,"created_at":"2026-06-29T15:42:49+08:00","updated_at":"2026-06-29T15:42:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf758c6d18e7747f263b5c42489ccfba8a5b879c_7e9ec315-75a3-4ca6-8b8e-6f0f7faaa68a.webp?v=1782718971","variant_ids":[43829074493539]},"available":true,"name":"iPhone 15 Plus SolidX 咒術迴戰 澀谷事變Q版系列-全員集合 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-PTT19","featured_media":{"alt":null,"id":27630396932195,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf758c6d18e7747f263b5c42489ccfba8a5b879c_7e9ec315-75a3-4ca6-8b8e-6f0f7faaa68a.webp?v=1782718971"}},"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: "停產"
}