$product = {"id":7408435593315,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 小圖款-凱羅忍","handle":"iphone-12-pro-max-mod-nx-printable-pc06","description":null,"published_at":"2024-06-11T16:37:10+08:00","created_at":"2024-05-03T15:26:08+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 pro max","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":41885452370019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472276340835,"product_id":7408435593315,"position":9,"created_at":"2024-05-03T15:26:29+08:00","updated_at":"2024-05-03T15:26:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc9c3dcc847d4dcb98667b5ce56fd0f9716bf23a_c8c4f723-993f-4133-bcd0-ff631ebb48e6.webp?v=1714721189","variant_ids":[41885452370019]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118724-PC06","featured_media":{"alt":null,"id":23877192646755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc9c3dcc847d4dcb98667b5ce56fd0f9716bf23a_c8c4f723-993f-4133-bcd0-ff631ebb48e6.webp?v=1714721189"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603475a825197f8142618602fca64e87e890eb3b_32d327d3-07fa-4af7-a339-7a5e00f0508e.webp?v=1714721170","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ae139456eafcfd8eb52396da66a595c02bba81e_2cd82182-530f-4664-8a6f-ae5615b67779.webp?v=1714721173","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c109621e9e290eb6c6796872af697ee1169473e_efc3bfa7-15af-4e42-984e-cffe6701d193.webp?v=1714721175","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89e240ca4eb82fd3829a21232dc73fa91c978456_e9310727-91bf-4aff-b039-39461c2f6854.webp?v=1714721177","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a8d6842b850c81e5504470eeb2cbf12085b822d_ea0f0900-77ff-424a-b353-49615d34e3d9.webp?v=1714721180","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f18aed3fa65012e8e89b94daf4b346ef00b1e1c4_87c93290-83a9-4a9e-a84d-5e80cc4c8698.webp?v=1714721182","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3463ad198418cc6c8da2bf236815883ae84a70_4d093506-066b-4334-99e1-fbb0062f5ada.webp?v=1714721184","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aacee9dc0badc00bf6aa047738b99c46cdc78d3f_cdf546ef-b3c8-4653-9c01-ec1f90fd91bf.webp?v=1714721187","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc9c3dcc847d4dcb98667b5ce56fd0f9716bf23a_c8c4f723-993f-4133-bcd0-ff631ebb48e6.webp?v=1714721189","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77db22f81f08d82f984aec70cda2532dbb24c68_0a858cef-ccef-4041-8d88-fba7d917a7e1.webp?v=1714721191"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603475a825197f8142618602fca64e87e890eb3b_32d327d3-07fa-4af7-a339-7a5e00f0508e.webp?v=1714721170","options":["color"],"media":[{"alt":null,"id":23877187928163,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603475a825197f8142618602fca64e87e890eb3b_32d327d3-07fa-4af7-a339-7a5e00f0508e.webp?v=1714721170"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603475a825197f8142618602fca64e87e890eb3b_32d327d3-07fa-4af7-a339-7a5e00f0508e.webp?v=1714721170","width":2000},{"alt":null,"id":23877188452451,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ae139456eafcfd8eb52396da66a595c02bba81e_2cd82182-530f-4664-8a6f-ae5615b67779.webp?v=1714721173"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ae139456eafcfd8eb52396da66a595c02bba81e_2cd82182-530f-4664-8a6f-ae5615b67779.webp?v=1714721173","width":2000},{"alt":null,"id":23877189697635,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c109621e9e290eb6c6796872af697ee1169473e_efc3bfa7-15af-4e42-984e-cffe6701d193.webp?v=1714721175"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c109621e9e290eb6c6796872af697ee1169473e_efc3bfa7-15af-4e42-984e-cffe6701d193.webp?v=1714721175","width":2000},{"alt":null,"id":23877190156387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89e240ca4eb82fd3829a21232dc73fa91c978456_e9310727-91bf-4aff-b039-39461c2f6854.webp?v=1714721177"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89e240ca4eb82fd3829a21232dc73fa91c978456_e9310727-91bf-4aff-b039-39461c2f6854.webp?v=1714721177","width":2000},{"alt":null,"id":23877190844515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a8d6842b850c81e5504470eeb2cbf12085b822d_ea0f0900-77ff-424a-b353-49615d34e3d9.webp?v=1714721180"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a8d6842b850c81e5504470eeb2cbf12085b822d_ea0f0900-77ff-424a-b353-49615d34e3d9.webp?v=1714721180","width":2000},{"alt":null,"id":23877191303267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f18aed3fa65012e8e89b94daf4b346ef00b1e1c4_87c93290-83a9-4a9e-a84d-5e80cc4c8698.webp?v=1714721182"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f18aed3fa65012e8e89b94daf4b346ef00b1e1c4_87c93290-83a9-4a9e-a84d-5e80cc4c8698.webp?v=1714721182","width":2000},{"alt":null,"id":23877191729251,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3463ad198418cc6c8da2bf236815883ae84a70_4d093506-066b-4334-99e1-fbb0062f5ada.webp?v=1714721184"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3463ad198418cc6c8da2bf236815883ae84a70_4d093506-066b-4334-99e1-fbb0062f5ada.webp?v=1714721184","width":2000},{"alt":null,"id":23877192155235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aacee9dc0badc00bf6aa047738b99c46cdc78d3f_cdf546ef-b3c8-4653-9c01-ec1f90fd91bf.webp?v=1714721187"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aacee9dc0badc00bf6aa047738b99c46cdc78d3f_cdf546ef-b3c8-4653-9c01-ec1f90fd91bf.webp?v=1714721187","width":2000},{"alt":null,"id":23877192646755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc9c3dcc847d4dcb98667b5ce56fd0f9716bf23a_c8c4f723-993f-4133-bcd0-ff631ebb48e6.webp?v=1714721189"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc9c3dcc847d4dcb98667b5ce56fd0f9716bf23a_c8c4f723-993f-4133-bcd0-ff631ebb48e6.webp?v=1714721189","width":2000},{"alt":null,"id":23877193105507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77db22f81f08d82f984aec70cda2532dbb24c68_0a858cef-ccef-4041-8d88-fba7d917a7e1.webp?v=1714721191"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77db22f81f08d82f984aec70cda2532dbb24c68_0a858cef-ccef-4041-8d88-fba7d917a7e1.webp?v=1714721191","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885452370019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472276340835,"product_id":7408435593315,"position":9,"created_at":"2024-05-03T15:26:29+08:00","updated_at":"2024-05-03T15:26:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc9c3dcc847d4dcb98667b5ce56fd0f9716bf23a_c8c4f723-993f-4133-bcd0-ff631ebb48e6.webp?v=1714721189","variant_ids":[41885452370019]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118724-PC06","featured_media":{"alt":null,"id":23877192646755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc9c3dcc847d4dcb98667b5ce56fd0f9716bf23a_c8c4f723-993f-4133-bcd0-ff631ebb48e6.webp?v=1714721189"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885452370019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472276340835,"product_id":7408435593315,"position":9,"created_at":"2024-05-03T15:26:29+08:00","updated_at":"2024-05-03T15:26:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc9c3dcc847d4dcb98667b5ce56fd0f9716bf23a_c8c4f723-993f-4133-bcd0-ff631ebb48e6.webp?v=1714721189","variant_ids":[41885452370019]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118724-PC06","featured_media":{"alt":null,"id":23877192646755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc9c3dcc847d4dcb98667b5ce56fd0f9716bf23a_c8c4f723-993f-4133-bcd0-ff631ebb48e6.webp?v=1714721189"}},"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: "停產" }