$product = {"id":7407992045667,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 黑白畫風-小丑","handle":"iphone-14-plus-mod-nx-printable-sb13","description":null,"published_at":"2024-06-11T16:28:31+08:00","created_at":"2024-05-03T11:30:32+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-batman","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":41881459458147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31470897365091,"product_id":7407992045667,"position":5,"created_at":"2024-05-03T11:30:44+08:00","updated_at":"2024-05-03T11:30:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c96eeb04bbeaf85e56f944630a860c5e6497df5c_e0c9e079-a95e-418d-9a75-40e3d57d68cf.webp?v=1714707044","variant_ids":[41881459458147]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 黑白畫風-小丑 - 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":"NPB0126124-SB13","featured_media":{"alt":null,"id":23875802038371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c96eeb04bbeaf85e56f944630a860c5e6497df5c_e0c9e079-a95e-418d-9a75-40e3d57d68cf.webp?v=1714707044"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e88ff2b1d17e295c970b4e6efd1fc103551b22_31b571bf-e68e-4b2b-a450-900c6a923fee.webp?v=1714707035","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d21f77d8928d82552d2da73ae59badcd0fc2f968_6a0f35dd-1cab-469a-9a10-1d2bd4a202e6.webp?v=1714707037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a52a039ff43b51d0fc92efa7d3d2a7fd6336f4b1_fad96edb-eaa9-47e0-8646-aa409d3ae26d.webp?v=1714707040","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b770a4b7158b6169295c64818248c9e1cb3ff8b4_736d17d0-f8c2-4392-959b-40e717d24539.webp?v=1714707042","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c96eeb04bbeaf85e56f944630a860c5e6497df5c_e0c9e079-a95e-418d-9a75-40e3d57d68cf.webp?v=1714707044","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/996a5625e30370062a40b68181c3aea8e96b02a6_3db4a163-3429-45fe-9b4c-a96f7c78ec49.webp?v=1714707047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e5565798350681af0e6a14c6b1b40a3a1abe6b1_39324e6d-70b6-4720-ae0c-5fa6ccdd0c3f.webp?v=1714707049","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efb0b2f1e5432c3bfa26c6891b092bc410b51bc0_85538825-d28c-40a9-b75a-f88e32a70960.webp?v=1714707052","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46006062a14cb4c773e246b9cb5bbffeea7e15df_e5314c1a-ccdd-4c82-82bf-338a9aee4d2c.webp?v=1714707054","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8680ddecb8675113832323545183f48505f5a4eb_1d066c01-5611-40b3-9f54-1906a15f83f3.webp?v=1714707057"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e88ff2b1d17e295c970b4e6efd1fc103551b22_31b571bf-e68e-4b2b-a450-900c6a923fee.webp?v=1714707035","options":["color"],"media":[{"alt":null,"id":23875800334435,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e88ff2b1d17e295c970b4e6efd1fc103551b22_31b571bf-e68e-4b2b-a450-900c6a923fee.webp?v=1714707035"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e88ff2b1d17e295c970b4e6efd1fc103551b22_31b571bf-e68e-4b2b-a450-900c6a923fee.webp?v=1714707035","width":2000},{"alt":null,"id":23875800825955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d21f77d8928d82552d2da73ae59badcd0fc2f968_6a0f35dd-1cab-469a-9a10-1d2bd4a202e6.webp?v=1714707037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d21f77d8928d82552d2da73ae59badcd0fc2f968_6a0f35dd-1cab-469a-9a10-1d2bd4a202e6.webp?v=1714707037","width":2000},{"alt":null,"id":23875801317475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a52a039ff43b51d0fc92efa7d3d2a7fd6336f4b1_fad96edb-eaa9-47e0-8646-aa409d3ae26d.webp?v=1714707040"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a52a039ff43b51d0fc92efa7d3d2a7fd6336f4b1_fad96edb-eaa9-47e0-8646-aa409d3ae26d.webp?v=1714707040","width":2000},{"alt":null,"id":23875801710691,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b770a4b7158b6169295c64818248c9e1cb3ff8b4_736d17d0-f8c2-4392-959b-40e717d24539.webp?v=1714707042"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b770a4b7158b6169295c64818248c9e1cb3ff8b4_736d17d0-f8c2-4392-959b-40e717d24539.webp?v=1714707042","width":2000},{"alt":null,"id":23875802038371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c96eeb04bbeaf85e56f944630a860c5e6497df5c_e0c9e079-a95e-418d-9a75-40e3d57d68cf.webp?v=1714707044"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c96eeb04bbeaf85e56f944630a860c5e6497df5c_e0c9e079-a95e-418d-9a75-40e3d57d68cf.webp?v=1714707044","width":2000},{"alt":null,"id":23875802300515,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/996a5625e30370062a40b68181c3aea8e96b02a6_3db4a163-3429-45fe-9b4c-a96f7c78ec49.webp?v=1714707047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/996a5625e30370062a40b68181c3aea8e96b02a6_3db4a163-3429-45fe-9b4c-a96f7c78ec49.webp?v=1714707047","width":2000},{"alt":null,"id":23875802562659,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e5565798350681af0e6a14c6b1b40a3a1abe6b1_39324e6d-70b6-4720-ae0c-5fa6ccdd0c3f.webp?v=1714707049"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e5565798350681af0e6a14c6b1b40a3a1abe6b1_39324e6d-70b6-4720-ae0c-5fa6ccdd0c3f.webp?v=1714707049","width":2000},{"alt":null,"id":23875802693731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efb0b2f1e5432c3bfa26c6891b092bc410b51bc0_85538825-d28c-40a9-b75a-f88e32a70960.webp?v=1714707052"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efb0b2f1e5432c3bfa26c6891b092bc410b51bc0_85538825-d28c-40a9-b75a-f88e32a70960.webp?v=1714707052","width":2000},{"alt":null,"id":23875802792035,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46006062a14cb4c773e246b9cb5bbffeea7e15df_e5314c1a-ccdd-4c82-82bf-338a9aee4d2c.webp?v=1714707054"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46006062a14cb4c773e246b9cb5bbffeea7e15df_e5314c1a-ccdd-4c82-82bf-338a9aee4d2c.webp?v=1714707054","width":2000},{"alt":null,"id":23875802857571,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8680ddecb8675113832323545183f48505f5a4eb_1d066c01-5611-40b3-9f54-1906a15f83f3.webp?v=1714707057"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8680ddecb8675113832323545183f48505f5a4eb_1d066c01-5611-40b3-9f54-1906a15f83f3.webp?v=1714707057","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41881459458147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31470897365091,"product_id":7407992045667,"position":5,"created_at":"2024-05-03T11:30:44+08:00","updated_at":"2024-05-03T11:30:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c96eeb04bbeaf85e56f944630a860c5e6497df5c_e0c9e079-a95e-418d-9a75-40e3d57d68cf.webp?v=1714707044","variant_ids":[41881459458147]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 黑白畫風-小丑 - 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":"NPB0126124-SB13","featured_media":{"alt":null,"id":23875802038371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c96eeb04bbeaf85e56f944630a860c5e6497df5c_e0c9e079-a95e-418d-9a75-40e3d57d68cf.webp?v=1714707044"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41881459458147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31470897365091,"product_id":7407992045667,"position":5,"created_at":"2024-05-03T11:30:44+08:00","updated_at":"2024-05-03T11:30:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c96eeb04bbeaf85e56f944630a860c5e6497df5c_e0c9e079-a95e-418d-9a75-40e3d57d68cf.webp?v=1714707044","variant_ids":[41881459458147]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 黑白畫風-小丑 - 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":"NPB0126124-SB13","featured_media":{"alt":null,"id":23875802038371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c96eeb04bbeaf85e56f944630a860c5e6497df5c_e0c9e079-a95e-418d-9a75-40e3d57d68cf.webp?v=1714707044"}},"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: "停產" }