$product = {"id":7408425402467,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 1G - 生日帽","handle":"iphone-12-pro-max-mod-nx-printable-iv01","description":null,"published_at":"2024-06-11T16:36:53+08:00","created_at":"2024-05-03T15:24:17+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-1chun","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":41885338435683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472242917475,"product_id":7408425402467,"position":4,"created_at":"2024-05-03T15:24:27+08:00","updated_at":"2024-05-03T15:24:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/386546267e7b74f34b178b391cb15b191018eaef_761b7e4d-54aa-4b39-acd3-a8a2510ebc01.webp?v=1714721067","variant_ids":[41885338435683]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 1G - 生日帽 - 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":"NPB0118724-IV01","featured_media":{"alt":null,"id":23877159125091,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/386546267e7b74f34b178b391cb15b191018eaef_761b7e4d-54aa-4b39-acd3-a8a2510ebc01.webp?v=1714721067"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0750f72630e390dedcafbe5b5aa03d91782def84_5b0e4e04-bef3-43cd-a2b0-ec04855526bf.webp?v=1714721060","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7839f70022588f8303fcd574e2109f43075f8a0c_63794dce-5dd7-4500-bca6-5ece80e07122.webp?v=1714721062","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d80f9c993fb83fd32de0edd4f522f91274403782_42d6dd44-f738-4001-ba1f-0ba0299e78d9.webp?v=1714721065","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/386546267e7b74f34b178b391cb15b191018eaef_761b7e4d-54aa-4b39-acd3-a8a2510ebc01.webp?v=1714721067","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3b4c83179318130f65181016ad57785f38300bb_1e896930-b4dd-43af-a71e-cbb06b2e3e92.webp?v=1714721069","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/552c2c5d982e8a05f227de2be61d9e4cd3c8135a_16f8518f-96fa-44b4-a178-28e60677c1db.webp?v=1714721072","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92ae61ebd07acde0fc63e6ea8a9b81ecec8eb8be_ed10479f-5c27-4bbe-a63e-c77e0e007909.webp?v=1714721074","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca79f798b4afafef6da2bad4357389e37de0818c_70c5b3ec-348d-44ab-9824-e28dfa4eda03.webp?v=1714721076","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38dfe06869e92f505edec363052f232684632f3a_d47e26e3-c30a-443e-b5ab-72eb3b8f02e7.webp?v=1714721078","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbb7ddd5cf9f8cd987dc972f20754e164ee77014_0310ad2e-9679-402a-8bf2-fc420543524d.webp?v=1714721081"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0750f72630e390dedcafbe5b5aa03d91782def84_5b0e4e04-bef3-43cd-a2b0-ec04855526bf.webp?v=1714721060","options":["color"],"media":[{"alt":null,"id":23877157355619,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0750f72630e390dedcafbe5b5aa03d91782def84_5b0e4e04-bef3-43cd-a2b0-ec04855526bf.webp?v=1714721060"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0750f72630e390dedcafbe5b5aa03d91782def84_5b0e4e04-bef3-43cd-a2b0-ec04855526bf.webp?v=1714721060","width":2000},{"alt":null,"id":23877158109283,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7839f70022588f8303fcd574e2109f43075f8a0c_63794dce-5dd7-4500-bca6-5ece80e07122.webp?v=1714721062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7839f70022588f8303fcd574e2109f43075f8a0c_63794dce-5dd7-4500-bca6-5ece80e07122.webp?v=1714721062","width":2000},{"alt":null,"id":23877158633571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d80f9c993fb83fd32de0edd4f522f91274403782_42d6dd44-f738-4001-ba1f-0ba0299e78d9.webp?v=1714721065"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d80f9c993fb83fd32de0edd4f522f91274403782_42d6dd44-f738-4001-ba1f-0ba0299e78d9.webp?v=1714721065","width":2000},{"alt":null,"id":23877159125091,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/386546267e7b74f34b178b391cb15b191018eaef_761b7e4d-54aa-4b39-acd3-a8a2510ebc01.webp?v=1714721067"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/386546267e7b74f34b178b391cb15b191018eaef_761b7e4d-54aa-4b39-acd3-a8a2510ebc01.webp?v=1714721067","width":2000},{"alt":null,"id":23877159845987,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3b4c83179318130f65181016ad57785f38300bb_1e896930-b4dd-43af-a71e-cbb06b2e3e92.webp?v=1714721069"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3b4c83179318130f65181016ad57785f38300bb_1e896930-b4dd-43af-a71e-cbb06b2e3e92.webp?v=1714721069","width":2000},{"alt":null,"id":23877160435811,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/552c2c5d982e8a05f227de2be61d9e4cd3c8135a_16f8518f-96fa-44b4-a178-28e60677c1db.webp?v=1714721072"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/552c2c5d982e8a05f227de2be61d9e4cd3c8135a_16f8518f-96fa-44b4-a178-28e60677c1db.webp?v=1714721072","width":2000},{"alt":null,"id":23877160861795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92ae61ebd07acde0fc63e6ea8a9b81ecec8eb8be_ed10479f-5c27-4bbe-a63e-c77e0e007909.webp?v=1714721074"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92ae61ebd07acde0fc63e6ea8a9b81ecec8eb8be_ed10479f-5c27-4bbe-a63e-c77e0e007909.webp?v=1714721074","width":2000},{"alt":null,"id":23877161222243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca79f798b4afafef6da2bad4357389e37de0818c_70c5b3ec-348d-44ab-9824-e28dfa4eda03.webp?v=1714721076"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca79f798b4afafef6da2bad4357389e37de0818c_70c5b3ec-348d-44ab-9824-e28dfa4eda03.webp?v=1714721076","width":2000},{"alt":null,"id":23877161713763,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38dfe06869e92f505edec363052f232684632f3a_d47e26e3-c30a-443e-b5ab-72eb3b8f02e7.webp?v=1714721078"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38dfe06869e92f505edec363052f232684632f3a_d47e26e3-c30a-443e-b5ab-72eb3b8f02e7.webp?v=1714721078","width":2000},{"alt":null,"id":23877162074211,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbb7ddd5cf9f8cd987dc972f20754e164ee77014_0310ad2e-9679-402a-8bf2-fc420543524d.webp?v=1714721081"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbb7ddd5cf9f8cd987dc972f20754e164ee77014_0310ad2e-9679-402a-8bf2-fc420543524d.webp?v=1714721081","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885338435683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472242917475,"product_id":7408425402467,"position":4,"created_at":"2024-05-03T15:24:27+08:00","updated_at":"2024-05-03T15:24:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/386546267e7b74f34b178b391cb15b191018eaef_761b7e4d-54aa-4b39-acd3-a8a2510ebc01.webp?v=1714721067","variant_ids":[41885338435683]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 1G - 生日帽 - 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":"NPB0118724-IV01","featured_media":{"alt":null,"id":23877159125091,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/386546267e7b74f34b178b391cb15b191018eaef_761b7e4d-54aa-4b39-acd3-a8a2510ebc01.webp?v=1714721067"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885338435683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472242917475,"product_id":7408425402467,"position":4,"created_at":"2024-05-03T15:24:27+08:00","updated_at":"2024-05-03T15:24:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/386546267e7b74f34b178b391cb15b191018eaef_761b7e4d-54aa-4b39-acd3-a8a2510ebc01.webp?v=1714721067","variant_ids":[41885338435683]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 1G - 生日帽 - 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":"NPB0118724-IV01","featured_media":{"alt":null,"id":23877159125091,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/386546267e7b74f34b178b391cb15b191018eaef_761b7e4d-54aa-4b39-acd3-a8a2510ebc01.webp?v=1714721067"}},"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: "停產" }