$product = {"id":7407983067235,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Look - 大自然的傑作(斯瓦爾巴冰川)","handle":"iphone-14-plus-mod-nx-printable-af10","description":null,"published_at":"2024-06-11T16:28:17+08:00","created_at":"2024-05-03T11:28:24+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-look","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41881366691939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31470869971043,"product_id":7407983067235,"position":4,"created_at":"2024-05-03T11:28:34+08:00","updated_at":"2024-05-03T11:28:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe626eade32bc3af5527f95491469215b7bbc25_bf9fee8e-f850-4ee1-b027-fed3abf05735.webp?v=1714706914","variant_ids":[41881366691939]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-AF10","featured_media":{"alt":null,"id":23875774611555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe626eade32bc3af5527f95491469215b7bbc25_bf9fee8e-f850-4ee1-b027-fed3abf05735.webp?v=1714706914"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/497f2618ccb50d6a91c1cd1bd51d7e1979a49676_4967e1d1-0ad7-453f-be12-4b1ebc1322f1.webp?v=1714706907","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d9977b30d75b37fd6430bea91ddeec99e61ecc0_a00d02e8-42e8-4827-8f92-5692392c1991.webp?v=1714706909","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1ab5cd072009918f17b0547b8dcbd0328349bcc_622232d3-2c23-436f-a46a-da21de433d6b.webp?v=1714706912","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe626eade32bc3af5527f95491469215b7bbc25_bf9fee8e-f850-4ee1-b027-fed3abf05735.webp?v=1714706914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/982f43c05d1224ab5c401715f0ed6f064098744d_b5530044-c3c8-4c1b-bc9b-ca4125d87d0b.webp?v=1714706917","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0104d0c62b243bc70b248f3adff473efbe06940_93ef30d0-c1e0-45c4-9236-5c652bc8f4b6.webp?v=1714706919","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/086bef3b85c9e45bfc0c225d440224211bf38024_04ea3f2c-7af2-4ed1-9f36-d43cc5ba20cb.webp?v=1714706922","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43cdcff9164f4f74f1f5c582915078c22ce50e1f_d9748d51-0a53-4f0b-9b2a-d3642abb6c29.webp?v=1714706924","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a658f61c0bdf234d1a9f584ac87815d27891c593_f2ce3c1f-122c-4a74-9c56-bd06a7e4b695.webp?v=1714706927","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8096cdd4dd5979a55b597490193c47319039d696_a945cd12-b943-4cd8-97fc-3804dd8d7cb5.webp?v=1714706929"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/497f2618ccb50d6a91c1cd1bd51d7e1979a49676_4967e1d1-0ad7-453f-be12-4b1ebc1322f1.webp?v=1714706907","options":["color"],"media":[{"alt":null,"id":23875772842083,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/497f2618ccb50d6a91c1cd1bd51d7e1979a49676_4967e1d1-0ad7-453f-be12-4b1ebc1322f1.webp?v=1714706907"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/497f2618ccb50d6a91c1cd1bd51d7e1979a49676_4967e1d1-0ad7-453f-be12-4b1ebc1322f1.webp?v=1714706907","width":2000},{"alt":null,"id":23875773628515,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d9977b30d75b37fd6430bea91ddeec99e61ecc0_a00d02e8-42e8-4827-8f92-5692392c1991.webp?v=1714706909"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d9977b30d75b37fd6430bea91ddeec99e61ecc0_a00d02e8-42e8-4827-8f92-5692392c1991.webp?v=1714706909","width":2000},{"alt":null,"id":23875774054499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1ab5cd072009918f17b0547b8dcbd0328349bcc_622232d3-2c23-436f-a46a-da21de433d6b.webp?v=1714706912"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1ab5cd072009918f17b0547b8dcbd0328349bcc_622232d3-2c23-436f-a46a-da21de433d6b.webp?v=1714706912","width":2000},{"alt":null,"id":23875774611555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe626eade32bc3af5527f95491469215b7bbc25_bf9fee8e-f850-4ee1-b027-fed3abf05735.webp?v=1714706914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe626eade32bc3af5527f95491469215b7bbc25_bf9fee8e-f850-4ee1-b027-fed3abf05735.webp?v=1714706914","width":2000},{"alt":null,"id":23875775037539,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/982f43c05d1224ab5c401715f0ed6f064098744d_b5530044-c3c8-4c1b-bc9b-ca4125d87d0b.webp?v=1714706917"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/982f43c05d1224ab5c401715f0ed6f064098744d_b5530044-c3c8-4c1b-bc9b-ca4125d87d0b.webp?v=1714706917","width":2000},{"alt":null,"id":23875775627363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0104d0c62b243bc70b248f3adff473efbe06940_93ef30d0-c1e0-45c4-9236-5c652bc8f4b6.webp?v=1714706919"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0104d0c62b243bc70b248f3adff473efbe06940_93ef30d0-c1e0-45c4-9236-5c652bc8f4b6.webp?v=1714706919","width":2000},{"alt":null,"id":23875776118883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/086bef3b85c9e45bfc0c225d440224211bf38024_04ea3f2c-7af2-4ed1-9f36-d43cc5ba20cb.webp?v=1714706922"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/086bef3b85c9e45bfc0c225d440224211bf38024_04ea3f2c-7af2-4ed1-9f36-d43cc5ba20cb.webp?v=1714706922","width":2000},{"alt":null,"id":23875776774243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43cdcff9164f4f74f1f5c582915078c22ce50e1f_d9748d51-0a53-4f0b-9b2a-d3642abb6c29.webp?v=1714706924"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43cdcff9164f4f74f1f5c582915078c22ce50e1f_d9748d51-0a53-4f0b-9b2a-d3642abb6c29.webp?v=1714706924","width":2000},{"alt":null,"id":23875777167459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a658f61c0bdf234d1a9f584ac87815d27891c593_f2ce3c1f-122c-4a74-9c56-bd06a7e4b695.webp?v=1714706927"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a658f61c0bdf234d1a9f584ac87815d27891c593_f2ce3c1f-122c-4a74-9c56-bd06a7e4b695.webp?v=1714706927","width":2000},{"alt":null,"id":23875777757283,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8096cdd4dd5979a55b597490193c47319039d696_a945cd12-b943-4cd8-97fc-3804dd8d7cb5.webp?v=1714706929"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8096cdd4dd5979a55b597490193c47319039d696_a945cd12-b943-4cd8-97fc-3804dd8d7cb5.webp?v=1714706929","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41881366691939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31470869971043,"product_id":7407983067235,"position":4,"created_at":"2024-05-03T11:28:34+08:00","updated_at":"2024-05-03T11:28:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe626eade32bc3af5527f95491469215b7bbc25_bf9fee8e-f850-4ee1-b027-fed3abf05735.webp?v=1714706914","variant_ids":[41881366691939]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-AF10","featured_media":{"alt":null,"id":23875774611555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe626eade32bc3af5527f95491469215b7bbc25_bf9fee8e-f850-4ee1-b027-fed3abf05735.webp?v=1714706914"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41881366691939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31470869971043,"product_id":7407983067235,"position":4,"created_at":"2024-05-03T11:28:34+08:00","updated_at":"2024-05-03T11:28:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe626eade32bc3af5527f95491469215b7bbc25_bf9fee8e-f850-4ee1-b027-fed3abf05735.webp?v=1714706914","variant_ids":[41881366691939]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-AF10","featured_media":{"alt":null,"id":23875774611555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe626eade32bc3af5527f95491469215b7bbc25_bf9fee8e-f850-4ee1-b027-fed3abf05735.webp?v=1714706914"}},"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: "停產" }