$product = {"id":7407935160419,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - Funshine Bear","handle":"iphone-14-plus-mod-nx-printable-yb06","description":null,"published_at":"2024-06-11T16:26:59+08:00","created_at":"2024-05-03T11:19:02+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-carebears","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":41880736890979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470739554403,"product_id":7407935160419,"position":3,"created_at":"2024-05-03T11:19:09+08:00","updated_at":"2024-05-03T11:19:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8edd1950a3380db1c84f6a076998fa9cccb56f8_037e0258-3a1e-4f90-a09a-f7b248416112.webp?v=1714706349","variant_ids":[41880736890979]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - Funshine Bear - 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-YB06","featured_media":{"alt":null,"id":23875643736163,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8edd1950a3380db1c84f6a076998fa9cccb56f8_037e0258-3a1e-4f90-a09a-f7b248416112.webp?v=1714706349"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63974e40950a0189e60d80e10b5ab7733b713466_8c0adb23-5919-46c2-92ab-46b21d0f5a02.webp?v=1714706344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6f8feb0aeafbbf7bc563d98d10d6ae90d570b84_40e4dc45-7636-41f8-8ae0-136d9ccb90e3.webp?v=1714706347","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8edd1950a3380db1c84f6a076998fa9cccb56f8_037e0258-3a1e-4f90-a09a-f7b248416112.webp?v=1714706349","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b2df48cd316692c666892a4a556d97c39a09a13_d00e812f-d32f-4d15-9bdb-935ab16f1cd1.webp?v=1714706351","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f973f483fcfb3e53fe16b80546643da20c025728_e83f9f06-4ed9-4620-b786-424a8e331407.webp?v=1714706354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8795d81c27789a172dac65e002bf4f7a170526f_4fffcdca-3b09-4917-aebb-9f6c9e65e3f0.webp?v=1714706357","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e6ec5ba651853b716a5da1d46aa909184d8aeb7_866a4105-937a-427e-86a0-444c36e57d01.webp?v=1714706359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24b95011971458581815d044274b318f96841998_785e3e25-f5dd-433f-81ba-b9874c6ef14a.webp?v=1714706361","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d77790ff084927d5cafb76d9bb23b7f14f88195_e1c4794a-b00d-423e-9803-6ccbac2ea879.webp?v=1714706364","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a18f11dc54763a612a3a8deb2a2d5e40ea60c1e_7538fb89-8b94-4213-b486-f0daf65b3be0.webp?v=1714706366"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63974e40950a0189e60d80e10b5ab7733b713466_8c0adb23-5919-46c2-92ab-46b21d0f5a02.webp?v=1714706344","options":["color"],"media":[{"alt":null,"id":23875642490979,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63974e40950a0189e60d80e10b5ab7733b713466_8c0adb23-5919-46c2-92ab-46b21d0f5a02.webp?v=1714706344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63974e40950a0189e60d80e10b5ab7733b713466_8c0adb23-5919-46c2-92ab-46b21d0f5a02.webp?v=1714706344","width":2000},{"alt":null,"id":23875643211875,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6f8feb0aeafbbf7bc563d98d10d6ae90d570b84_40e4dc45-7636-41f8-8ae0-136d9ccb90e3.webp?v=1714706347"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6f8feb0aeafbbf7bc563d98d10d6ae90d570b84_40e4dc45-7636-41f8-8ae0-136d9ccb90e3.webp?v=1714706347","width":2000},{"alt":null,"id":23875643736163,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8edd1950a3380db1c84f6a076998fa9cccb56f8_037e0258-3a1e-4f90-a09a-f7b248416112.webp?v=1714706349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8edd1950a3380db1c84f6a076998fa9cccb56f8_037e0258-3a1e-4f90-a09a-f7b248416112.webp?v=1714706349","width":2000},{"alt":null,"id":23875644194915,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b2df48cd316692c666892a4a556d97c39a09a13_d00e812f-d32f-4d15-9bdb-935ab16f1cd1.webp?v=1714706351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b2df48cd316692c666892a4a556d97c39a09a13_d00e812f-d32f-4d15-9bdb-935ab16f1cd1.webp?v=1714706351","width":2000},{"alt":null,"id":23875645145187,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f973f483fcfb3e53fe16b80546643da20c025728_e83f9f06-4ed9-4620-b786-424a8e331407.webp?v=1714706354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f973f483fcfb3e53fe16b80546643da20c025728_e83f9f06-4ed9-4620-b786-424a8e331407.webp?v=1714706354","width":2000},{"alt":null,"id":23875645636707,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8795d81c27789a172dac65e002bf4f7a170526f_4fffcdca-3b09-4917-aebb-9f6c9e65e3f0.webp?v=1714706357"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8795d81c27789a172dac65e002bf4f7a170526f_4fffcdca-3b09-4917-aebb-9f6c9e65e3f0.webp?v=1714706357","width":2000},{"alt":null,"id":23875647766627,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e6ec5ba651853b716a5da1d46aa909184d8aeb7_866a4105-937a-427e-86a0-444c36e57d01.webp?v=1714706359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e6ec5ba651853b716a5da1d46aa909184d8aeb7_866a4105-937a-427e-86a0-444c36e57d01.webp?v=1714706359","width":2000},{"alt":null,"id":23875648159843,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24b95011971458581815d044274b318f96841998_785e3e25-f5dd-433f-81ba-b9874c6ef14a.webp?v=1714706361"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24b95011971458581815d044274b318f96841998_785e3e25-f5dd-433f-81ba-b9874c6ef14a.webp?v=1714706361","width":2000},{"alt":null,"id":23875648946275,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d77790ff084927d5cafb76d9bb23b7f14f88195_e1c4794a-b00d-423e-9803-6ccbac2ea879.webp?v=1714706364"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d77790ff084927d5cafb76d9bb23b7f14f88195_e1c4794a-b00d-423e-9803-6ccbac2ea879.webp?v=1714706364","width":2000},{"alt":null,"id":23875649437795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a18f11dc54763a612a3a8deb2a2d5e40ea60c1e_7538fb89-8b94-4213-b486-f0daf65b3be0.webp?v=1714706366"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a18f11dc54763a612a3a8deb2a2d5e40ea60c1e_7538fb89-8b94-4213-b486-f0daf65b3be0.webp?v=1714706366","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880736890979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470739554403,"product_id":7407935160419,"position":3,"created_at":"2024-05-03T11:19:09+08:00","updated_at":"2024-05-03T11:19:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8edd1950a3380db1c84f6a076998fa9cccb56f8_037e0258-3a1e-4f90-a09a-f7b248416112.webp?v=1714706349","variant_ids":[41880736890979]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - Funshine Bear - 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-YB06","featured_media":{"alt":null,"id":23875643736163,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8edd1950a3380db1c84f6a076998fa9cccb56f8_037e0258-3a1e-4f90-a09a-f7b248416112.webp?v=1714706349"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880736890979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470739554403,"product_id":7407935160419,"position":3,"created_at":"2024-05-03T11:19:09+08:00","updated_at":"2024-05-03T11:19:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8edd1950a3380db1c84f6a076998fa9cccb56f8_037e0258-3a1e-4f90-a09a-f7b248416112.webp?v=1714706349","variant_ids":[41880736890979]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - Funshine Bear - 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-YB06","featured_media":{"alt":null,"id":23875643736163,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8edd1950a3380db1c84f6a076998fa9cccb56f8_037e0258-3a1e-4f90-a09a-f7b248416112.webp?v=1714706349"}},"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: "停產" }