$product = {"id":7408490348643,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-日文字系列","handle":"iphone-12-mini-mod-nx-printable-pb65","description":null,"published_at":"2024-06-11T16:38:42+08:00","created_at":"2024-05-03T15:36:49+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 12 mini","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":41886072569955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31472409542755,"product_id":7408490348643,"position":4,"created_at":"2024-05-03T15:36:59+08:00","updated_at":"2024-05-03T15:36:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a2443cf30b0089e5f346ee90f7915f01e91ba05_069861d6-7fd3-4aaa-bb62-ec65c1360376.webp?v=1714721819","variant_ids":[41886072569955]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-日文字系列 - 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":"NPB0118424-PB65","featured_media":{"alt":null,"id":23877326471267,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a2443cf30b0089e5f346ee90f7915f01e91ba05_069861d6-7fd3-4aaa-bb62-ec65c1360376.webp?v=1714721819"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc6f2edff314b4f4f471fb2fb339403294deb623_79dbdca5-e00e-410f-ade7-b94ead3e26bf.webp?v=1714721812","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d18505f9a467285a807ae4028f08ecea7b0183e_b4701f57-6b45-4547-ae01-11987d4b1576.webp?v=1714721814","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5392f0b9898075388ed422823cfed23f2ff8126e_9cc1b213-b5e6-4e01-8539-5c86b57a65ca.webp?v=1714721816","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a2443cf30b0089e5f346ee90f7915f01e91ba05_069861d6-7fd3-4aaa-bb62-ec65c1360376.webp?v=1714721819","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c80a25e4e2ed57fb5c117d6ba1ce4e8c107eb6f3_57d06e32-e65d-4d2a-bd33-1b9148f6b4c5.webp?v=1714721821","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9a3f24c4cf230dc1e5b9172b9e0c39eaf7d7a77_c7c5b613-8a89-41fa-a776-1f7e8cc7ee3a.webp?v=1714721823","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e826a1acd1c8b7bf56b70903a870d92beb2973e_a921e03a-d99c-4638-b529-19eaba6f2653.webp?v=1714721825","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d288c6b5a6b1e22ea17cc2f0ec9cc8165cb662a1_e3ad86a6-ded2-4eeb-8c54-dc8a3d19409a.webp?v=1714721828","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/945ab266dc51f6951d92b223298b2fe086024dc6_e143dabc-bc31-4b4a-ae7f-a27dc46f30e9.webp?v=1714721830","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cbf48a55f65264d8c7bc924b75a17ef7727d163_caaf8021-dfb9-488c-927b-8d37b38a33ed.webp?v=1714721832","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a6350150725f88130b315250272d93985de3cff_9c720d90-cbf4-4c9c-a707-a115151cd281.webp?v=1714721835"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc6f2edff314b4f4f471fb2fb339403294deb623_79dbdca5-e00e-410f-ade7-b94ead3e26bf.webp?v=1714721812","options":["color"],"media":[{"alt":null,"id":23877324931171,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc6f2edff314b4f4f471fb2fb339403294deb623_79dbdca5-e00e-410f-ade7-b94ead3e26bf.webp?v=1714721812"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc6f2edff314b4f4f471fb2fb339403294deb623_79dbdca5-e00e-410f-ade7-b94ead3e26bf.webp?v=1714721812","width":2000},{"alt":null,"id":23877325553763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d18505f9a467285a807ae4028f08ecea7b0183e_b4701f57-6b45-4547-ae01-11987d4b1576.webp?v=1714721814"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d18505f9a467285a807ae4028f08ecea7b0183e_b4701f57-6b45-4547-ae01-11987d4b1576.webp?v=1714721814","width":2000},{"alt":null,"id":23877325979747,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5392f0b9898075388ed422823cfed23f2ff8126e_9cc1b213-b5e6-4e01-8539-5c86b57a65ca.webp?v=1714721816"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5392f0b9898075388ed422823cfed23f2ff8126e_9cc1b213-b5e6-4e01-8539-5c86b57a65ca.webp?v=1714721816","width":2000},{"alt":null,"id":23877326471267,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a2443cf30b0089e5f346ee90f7915f01e91ba05_069861d6-7fd3-4aaa-bb62-ec65c1360376.webp?v=1714721819"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a2443cf30b0089e5f346ee90f7915f01e91ba05_069861d6-7fd3-4aaa-bb62-ec65c1360376.webp?v=1714721819","width":2000},{"alt":null,"id":23877327061091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c80a25e4e2ed57fb5c117d6ba1ce4e8c107eb6f3_57d06e32-e65d-4d2a-bd33-1b9148f6b4c5.webp?v=1714721821"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c80a25e4e2ed57fb5c117d6ba1ce4e8c107eb6f3_57d06e32-e65d-4d2a-bd33-1b9148f6b4c5.webp?v=1714721821","width":2000},{"alt":null,"id":23877327618147,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9a3f24c4cf230dc1e5b9172b9e0c39eaf7d7a77_c7c5b613-8a89-41fa-a776-1f7e8cc7ee3a.webp?v=1714721823"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9a3f24c4cf230dc1e5b9172b9e0c39eaf7d7a77_c7c5b613-8a89-41fa-a776-1f7e8cc7ee3a.webp?v=1714721823","width":2000},{"alt":null,"id":23877328240739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e826a1acd1c8b7bf56b70903a870d92beb2973e_a921e03a-d99c-4638-b529-19eaba6f2653.webp?v=1714721825"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e826a1acd1c8b7bf56b70903a870d92beb2973e_a921e03a-d99c-4638-b529-19eaba6f2653.webp?v=1714721825","width":2000},{"alt":null,"id":23877328601187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d288c6b5a6b1e22ea17cc2f0ec9cc8165cb662a1_e3ad86a6-ded2-4eeb-8c54-dc8a3d19409a.webp?v=1714721828"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d288c6b5a6b1e22ea17cc2f0ec9cc8165cb662a1_e3ad86a6-ded2-4eeb-8c54-dc8a3d19409a.webp?v=1714721828","width":2000},{"alt":null,"id":23877329256547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/945ab266dc51f6951d92b223298b2fe086024dc6_e143dabc-bc31-4b4a-ae7f-a27dc46f30e9.webp?v=1714721830"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/945ab266dc51f6951d92b223298b2fe086024dc6_e143dabc-bc31-4b4a-ae7f-a27dc46f30e9.webp?v=1714721830","width":2000},{"alt":null,"id":23877329649763,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cbf48a55f65264d8c7bc924b75a17ef7727d163_caaf8021-dfb9-488c-927b-8d37b38a33ed.webp?v=1714721832"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cbf48a55f65264d8c7bc924b75a17ef7727d163_caaf8021-dfb9-488c-927b-8d37b38a33ed.webp?v=1714721832","width":2000},{"alt":null,"id":23877330501731,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a6350150725f88130b315250272d93985de3cff_9c720d90-cbf4-4c9c-a707-a115151cd281.webp?v=1714721835"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a6350150725f88130b315250272d93985de3cff_9c720d90-cbf4-4c9c-a707-a115151cd281.webp?v=1714721835","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886072569955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31472409542755,"product_id":7408490348643,"position":4,"created_at":"2024-05-03T15:36:59+08:00","updated_at":"2024-05-03T15:36:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a2443cf30b0089e5f346ee90f7915f01e91ba05_069861d6-7fd3-4aaa-bb62-ec65c1360376.webp?v=1714721819","variant_ids":[41886072569955]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-日文字系列 - 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":"NPB0118424-PB65","featured_media":{"alt":null,"id":23877326471267,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a2443cf30b0089e5f346ee90f7915f01e91ba05_069861d6-7fd3-4aaa-bb62-ec65c1360376.webp?v=1714721819"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886072569955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31472409542755,"product_id":7408490348643,"position":4,"created_at":"2024-05-03T15:36:59+08:00","updated_at":"2024-05-03T15:36:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a2443cf30b0089e5f346ee90f7915f01e91ba05_069861d6-7fd3-4aaa-bb62-ec65c1360376.webp?v=1714721819","variant_ids":[41886072569955]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-日文字系列 - 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":"NPB0118424-PB65","featured_media":{"alt":null,"id":23877326471267,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a2443cf30b0089e5f346ee90f7915f01e91ba05_069861d6-7fd3-4aaa-bb62-ec65c1360376.webp?v=1714721819"}},"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: "停產" }