$product = {"id":7407770042467,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典","handle":"iphone-14-plus-mod-nx-printable-pb76","description":null,"published_at":"2024-06-11T16:22:59+08:00","created_at":"2024-05-03T10:49:50+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","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":41878625681507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31470351581283,"product_id":7407770042467,"position":2,"created_at":"2024-05-03T10:49:55+08:00","updated_at":"2024-05-03T10:49:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32f1d61448c4113f47ebff44eacafd11d740b77f_0d3a4544-69f4-40a0-9db4-d27ead2b8f75.webp?v=1714704595","variant_ids":[41878625681507]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-PB76","featured_media":{"alt":null,"id":23875254747235,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32f1d61448c4113f47ebff44eacafd11d740b77f_0d3a4544-69f4-40a0-9db4-d27ead2b8f75.webp?v=1714704595"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16017ba867f6e1bb09a05a808185bc33508a008a_22465e6a-0aa4-4b96-a81d-a57007cf74c6.webp?v=1714704593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32f1d61448c4113f47ebff44eacafd11d740b77f_0d3a4544-69f4-40a0-9db4-d27ead2b8f75.webp?v=1714704595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68b895ca8378f50d148e14b99e7a260333519c8d_f16727b6-f530-4789-948d-731e6e0da3de.webp?v=1714704598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd6887d650cfca6473567724346b4fe6a401c724_f5c76de6-5c8e-4e52-836c-f6d0aa4f3eb7.webp?v=1714704600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81a74d24a3e5eaf27e41dc1c2f314ef73ed7476b_697068c8-e4ab-4747-ae41-32f7e549910f.webp?v=1714704603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caa6978484fde259ed37dfb01f1185aa73ee6a1c_ed666bb9-ad9f-4f16-89aa-9c29e791ccc0.webp?v=1714704605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee9bcb307cdfff3e08cb2bf0ab548fa8187f9aa_ba436474-26b2-47ad-8bc4-665cf2d0958e.webp?v=1714704607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a72fca796f1d9709b1155ed79d3ade2eec3cfe_5a99e62d-e49a-4225-b7d3-f4c3dc1b7206.webp?v=1714704610","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7dc963ca62bc9c3b6750991811e6d1210fbdef81_e1997d42-d054-4a39-b8ee-084ed7b8595c.webp?v=1714704612","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d8fa36004d71aa5ab31e56897698c2e95879bc2_879a4e16-9c58-4c93-8e1a-5553363b7281.webp?v=1714704614"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16017ba867f6e1bb09a05a808185bc33508a008a_22465e6a-0aa4-4b96-a81d-a57007cf74c6.webp?v=1714704593","options":["color"],"media":[{"alt":null,"id":23875254190179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16017ba867f6e1bb09a05a808185bc33508a008a_22465e6a-0aa4-4b96-a81d-a57007cf74c6.webp?v=1714704593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16017ba867f6e1bb09a05a808185bc33508a008a_22465e6a-0aa4-4b96-a81d-a57007cf74c6.webp?v=1714704593","width":2000},{"alt":null,"id":23875254747235,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32f1d61448c4113f47ebff44eacafd11d740b77f_0d3a4544-69f4-40a0-9db4-d27ead2b8f75.webp?v=1714704595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32f1d61448c4113f47ebff44eacafd11d740b77f_0d3a4544-69f4-40a0-9db4-d27ead2b8f75.webp?v=1714704595","width":2000},{"alt":null,"id":23875255500899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68b895ca8378f50d148e14b99e7a260333519c8d_f16727b6-f530-4789-948d-731e6e0da3de.webp?v=1714704598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68b895ca8378f50d148e14b99e7a260333519c8d_f16727b6-f530-4789-948d-731e6e0da3de.webp?v=1714704598","width":2000},{"alt":null,"id":23875256090723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd6887d650cfca6473567724346b4fe6a401c724_f5c76de6-5c8e-4e52-836c-f6d0aa4f3eb7.webp?v=1714704600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd6887d650cfca6473567724346b4fe6a401c724_f5c76de6-5c8e-4e52-836c-f6d0aa4f3eb7.webp?v=1714704600","width":2000},{"alt":null,"id":23875256877155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81a74d24a3e5eaf27e41dc1c2f314ef73ed7476b_697068c8-e4ab-4747-ae41-32f7e549910f.webp?v=1714704603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81a74d24a3e5eaf27e41dc1c2f314ef73ed7476b_697068c8-e4ab-4747-ae41-32f7e549910f.webp?v=1714704603","width":2000},{"alt":null,"id":23875257598051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caa6978484fde259ed37dfb01f1185aa73ee6a1c_ed666bb9-ad9f-4f16-89aa-9c29e791ccc0.webp?v=1714704605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caa6978484fde259ed37dfb01f1185aa73ee6a1c_ed666bb9-ad9f-4f16-89aa-9c29e791ccc0.webp?v=1714704605","width":2000},{"alt":null,"id":23875258024035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee9bcb307cdfff3e08cb2bf0ab548fa8187f9aa_ba436474-26b2-47ad-8bc4-665cf2d0958e.webp?v=1714704607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee9bcb307cdfff3e08cb2bf0ab548fa8187f9aa_ba436474-26b2-47ad-8bc4-665cf2d0958e.webp?v=1714704607","width":2000},{"alt":null,"id":23875258712163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a72fca796f1d9709b1155ed79d3ade2eec3cfe_5a99e62d-e49a-4225-b7d3-f4c3dc1b7206.webp?v=1714704610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a72fca796f1d9709b1155ed79d3ade2eec3cfe_5a99e62d-e49a-4225-b7d3-f4c3dc1b7206.webp?v=1714704610","width":2000},{"alt":null,"id":23875259465827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7dc963ca62bc9c3b6750991811e6d1210fbdef81_e1997d42-d054-4a39-b8ee-084ed7b8595c.webp?v=1714704612"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7dc963ca62bc9c3b6750991811e6d1210fbdef81_e1997d42-d054-4a39-b8ee-084ed7b8595c.webp?v=1714704612","width":2000},{"alt":null,"id":23875259990115,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d8fa36004d71aa5ab31e56897698c2e95879bc2_879a4e16-9c58-4c93-8e1a-5553363b7281.webp?v=1714704614"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d8fa36004d71aa5ab31e56897698c2e95879bc2_879a4e16-9c58-4c93-8e1a-5553363b7281.webp?v=1714704614","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41878625681507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31470351581283,"product_id":7407770042467,"position":2,"created_at":"2024-05-03T10:49:55+08:00","updated_at":"2024-05-03T10:49:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32f1d61448c4113f47ebff44eacafd11d740b77f_0d3a4544-69f4-40a0-9db4-d27ead2b8f75.webp?v=1714704595","variant_ids":[41878625681507]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-PB76","featured_media":{"alt":null,"id":23875254747235,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32f1d61448c4113f47ebff44eacafd11d740b77f_0d3a4544-69f4-40a0-9db4-d27ead2b8f75.webp?v=1714704595"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41878625681507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31470351581283,"product_id":7407770042467,"position":2,"created_at":"2024-05-03T10:49:55+08:00","updated_at":"2024-05-03T10:49:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32f1d61448c4113f47ebff44eacafd11d740b77f_0d3a4544-69f4-40a0-9db4-d27ead2b8f75.webp?v=1714704595","variant_ids":[41878625681507]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-PB76","featured_media":{"alt":null,"id":23875254747235,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32f1d61448c4113f47ebff44eacafd11d740b77f_0d3a4544-69f4-40a0-9db4-d27ead2b8f75.webp?v=1714704595"}},"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: "停產" }