$product = {"id":7407765651555,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Look - 大自然的傑作(亞馬遜雨林)","handle":"iphone-14-plus-mod-nx-printable-af09","description":null,"published_at":"2024-06-11T16:22:56+08:00","created_at":"2024-05-03T10:49: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":41878580002915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31470348140643,"product_id":7407765651555,"position":7,"created_at":"2024-05-03T10:49:43+08:00","updated_at":"2024-05-03T10:49:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/121733ceacac070589cd71dbfcf37d4038e87169_aa343bff-6f3c-4a68-a751-a52e6479542f.webp?v=1714704583","variant_ids":[41878580002915]},"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-AF09","featured_media":{"alt":null,"id":23875251273827,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/121733ceacac070589cd71dbfcf37d4038e87169_aa343bff-6f3c-4a68-a751-a52e6479542f.webp?v=1714704583"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/941cbf554ad1c21a838ba96c823b33937400f8d3_a99eccef-3395-4106-b82f-7204c089d2c7.webp?v=1714704567","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ce02b31bb7d320772473f0b2820ccaf65a2076c_a3fe4156-3d48-4837-a5a7-70261dc34d56.webp?v=1714704570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b50dd5d457c18a730b2405f0e20ee0e463815b54_9bbebcdc-1c12-430a-87bf-e55177c3c9f9.webp?v=1714704572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204d42c1630920935d3d92a93badf76e1191a32e_8ea3c76f-f391-43a0-9cef-cc71db7eff52.webp?v=1714704575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/461e6e4d5aa33f8702af82a102948875e55e4f7d_6dc24eab-d118-4a06-a59f-5bf829db71e6.webp?v=1714704578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/636d9173f1a42379ead3ab43eb63a186ff5cfb61_f871710b-2bf2-4aa1-b681-b8adb6094658.webp?v=1714704580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/121733ceacac070589cd71dbfcf37d4038e87169_aa343bff-6f3c-4a68-a751-a52e6479542f.webp?v=1714704583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4917f7edcb621226e25c6bc20cf778e17d15e67c_4fa65a5d-7597-4544-aee0-500e98b1d10c.webp?v=1714704585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deba3ffe19e2c40e0d62bed30225d3d334969bbb_2aa784bd-a82e-48d1-8ef2-414685a9384b.webp?v=1714704588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/401586b84e72254742eee72053ade068b5758e9e_dac39fad-19d1-414e-a4fd-2cc9ae7cc0c9.webp?v=1714704590"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/941cbf554ad1c21a838ba96c823b33937400f8d3_a99eccef-3395-4106-b82f-7204c089d2c7.webp?v=1714704567","options":["color"],"media":[{"alt":null,"id":23875247472739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/941cbf554ad1c21a838ba96c823b33937400f8d3_a99eccef-3395-4106-b82f-7204c089d2c7.webp?v=1714704567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/941cbf554ad1c21a838ba96c823b33937400f8d3_a99eccef-3395-4106-b82f-7204c089d2c7.webp?v=1714704567","width":2000},{"alt":null,"id":23875248357475,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ce02b31bb7d320772473f0b2820ccaf65a2076c_a3fe4156-3d48-4837-a5a7-70261dc34d56.webp?v=1714704570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ce02b31bb7d320772473f0b2820ccaf65a2076c_a3fe4156-3d48-4837-a5a7-70261dc34d56.webp?v=1714704570","width":2000},{"alt":null,"id":23875248980067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b50dd5d457c18a730b2405f0e20ee0e463815b54_9bbebcdc-1c12-430a-87bf-e55177c3c9f9.webp?v=1714704572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b50dd5d457c18a730b2405f0e20ee0e463815b54_9bbebcdc-1c12-430a-87bf-e55177c3c9f9.webp?v=1714704572","width":2000},{"alt":null,"id":23875249438819,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204d42c1630920935d3d92a93badf76e1191a32e_8ea3c76f-f391-43a0-9cef-cc71db7eff52.webp?v=1714704575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204d42c1630920935d3d92a93badf76e1191a32e_8ea3c76f-f391-43a0-9cef-cc71db7eff52.webp?v=1714704575","width":2000},{"alt":null,"id":23875250258019,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/461e6e4d5aa33f8702af82a102948875e55e4f7d_6dc24eab-d118-4a06-a59f-5bf829db71e6.webp?v=1714704578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/461e6e4d5aa33f8702af82a102948875e55e4f7d_6dc24eab-d118-4a06-a59f-5bf829db71e6.webp?v=1714704578","width":2000},{"alt":null,"id":23875250782307,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/636d9173f1a42379ead3ab43eb63a186ff5cfb61_f871710b-2bf2-4aa1-b681-b8adb6094658.webp?v=1714704580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/636d9173f1a42379ead3ab43eb63a186ff5cfb61_f871710b-2bf2-4aa1-b681-b8adb6094658.webp?v=1714704580","width":2000},{"alt":null,"id":23875251273827,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/121733ceacac070589cd71dbfcf37d4038e87169_aa343bff-6f3c-4a68-a751-a52e6479542f.webp?v=1714704583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/121733ceacac070589cd71dbfcf37d4038e87169_aa343bff-6f3c-4a68-a751-a52e6479542f.webp?v=1714704583","width":2000},{"alt":null,"id":23875252224099,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4917f7edcb621226e25c6bc20cf778e17d15e67c_4fa65a5d-7597-4544-aee0-500e98b1d10c.webp?v=1714704585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4917f7edcb621226e25c6bc20cf778e17d15e67c_4fa65a5d-7597-4544-aee0-500e98b1d10c.webp?v=1714704585","width":2000},{"alt":null,"id":23875252846691,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deba3ffe19e2c40e0d62bed30225d3d334969bbb_2aa784bd-a82e-48d1-8ef2-414685a9384b.webp?v=1714704588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deba3ffe19e2c40e0d62bed30225d3d334969bbb_2aa784bd-a82e-48d1-8ef2-414685a9384b.webp?v=1714704588","width":2000},{"alt":null,"id":23875253403747,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/401586b84e72254742eee72053ade068b5758e9e_dac39fad-19d1-414e-a4fd-2cc9ae7cc0c9.webp?v=1714704590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/401586b84e72254742eee72053ade068b5758e9e_dac39fad-19d1-414e-a4fd-2cc9ae7cc0c9.webp?v=1714704590","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41878580002915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31470348140643,"product_id":7407765651555,"position":7,"created_at":"2024-05-03T10:49:43+08:00","updated_at":"2024-05-03T10:49:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/121733ceacac070589cd71dbfcf37d4038e87169_aa343bff-6f3c-4a68-a751-a52e6479542f.webp?v=1714704583","variant_ids":[41878580002915]},"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-AF09","featured_media":{"alt":null,"id":23875251273827,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/121733ceacac070589cd71dbfcf37d4038e87169_aa343bff-6f3c-4a68-a751-a52e6479542f.webp?v=1714704583"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41878580002915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31470348140643,"product_id":7407765651555,"position":7,"created_at":"2024-05-03T10:49:43+08:00","updated_at":"2024-05-03T10:49:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/121733ceacac070589cd71dbfcf37d4038e87169_aa343bff-6f3c-4a68-a751-a52e6479542f.webp?v=1714704583","variant_ids":[41878580002915]},"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-AF09","featured_media":{"alt":null,"id":23875251273827,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/121733ceacac070589cd71dbfcf37d4038e87169_aa343bff-6f3c-4a68-a751-a52e6479542f.webp?v=1714704583"}},"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: "停產" }