$product = {"id":7415971217507,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Batman - Batman Logo","handle":"iphone-xs-max-mod-nx-printable-sb03","description":null,"published_at":"2024-06-11T16:49:17+08:00","created_at":"2024-05-06T12:34:25+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 XS Max","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":41916070166627,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-SB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31490868314211,"product_id":7415971217507,"position":2,"created_at":"2024-05-06T12:34:29+08:00","updated_at":"2024-05-06T12:34:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7204dff7cadf643b9e3450f2e04cab058e8b6c38_7d062235-2d60-4acb-8341-0c39e48a3aa9.webp?v=1714970069","variant_ids":[41916070166627]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Batman - Batman Logo - 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":"NPB0108624-SB03","featured_media":{"alt":null,"id":23896275353699,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7204dff7cadf643b9e3450f2e04cab058e8b6c38_7d062235-2d60-4acb-8341-0c39e48a3aa9.webp?v=1714970069"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fda7b50a3326821adb2ee6b0f5edae2a419bda26_6c3ac060-d88d-439d-97ed-b75a4e71cda9.webp?v=1714970067","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7204dff7cadf643b9e3450f2e04cab058e8b6c38_7d062235-2d60-4acb-8341-0c39e48a3aa9.webp?v=1714970069","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51aee3bb6d34296dfd6b7401d9c441224de0b8cf_e3716d80-b9eb-41f9-ba38-97ff69cdb8d4.webp?v=1714970072","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0ca323a76a63f5ee2d9a6835ef16261ec825ab3_1f9dbc4b-a918-49b4-a43e-0dea6b884de7.webp?v=1714970074","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f21e25c8f19d698adf51464271220c9fe2a6943_9cf05eaf-95c9-48a5-b43d-7c574b4e3751.webp?v=1714970076","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6648e7f5d27962392096985efd09259bd3c0bbf5_ed3116b6-dec5-4510-9679-02d4aca5cc92.webp?v=1714970079","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/250b6ed534d1d9d713d8611245bd92b776cfc54e_9c2f46cc-9eca-4945-9721-0b4b0c4e36d0.webp?v=1714970081","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35bfedaf0d793b68235ec905ba421cbee0623469_f7c0652d-5edd-4810-8529-8709a49958c3.webp?v=1714970084","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acc672ac69127474ca996944e6c6136121d2f45a_6d52ef79-da07-4a20-88cb-f3c97194c9e6.webp?v=1714970086","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac452b752ac2afb6df362b0839dbd8444f2c18da_2a77dc78-21e5-4b6e-9c22-94bb08374d4c.webp?v=1714970088"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fda7b50a3326821adb2ee6b0f5edae2a419bda26_6c3ac060-d88d-439d-97ed-b75a4e71cda9.webp?v=1714970067","options":["color"],"media":[{"alt":null,"id":23896274993251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fda7b50a3326821adb2ee6b0f5edae2a419bda26_6c3ac060-d88d-439d-97ed-b75a4e71cda9.webp?v=1714970067"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fda7b50a3326821adb2ee6b0f5edae2a419bda26_6c3ac060-d88d-439d-97ed-b75a4e71cda9.webp?v=1714970067","width":2000},{"alt":null,"id":23896275353699,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7204dff7cadf643b9e3450f2e04cab058e8b6c38_7d062235-2d60-4acb-8341-0c39e48a3aa9.webp?v=1714970069"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7204dff7cadf643b9e3450f2e04cab058e8b6c38_7d062235-2d60-4acb-8341-0c39e48a3aa9.webp?v=1714970069","width":2000},{"alt":null,"id":23896276009059,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51aee3bb6d34296dfd6b7401d9c441224de0b8cf_e3716d80-b9eb-41f9-ba38-97ff69cdb8d4.webp?v=1714970072"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51aee3bb6d34296dfd6b7401d9c441224de0b8cf_e3716d80-b9eb-41f9-ba38-97ff69cdb8d4.webp?v=1714970072","width":2000},{"alt":null,"id":23896276271203,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0ca323a76a63f5ee2d9a6835ef16261ec825ab3_1f9dbc4b-a918-49b4-a43e-0dea6b884de7.webp?v=1714970074"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0ca323a76a63f5ee2d9a6835ef16261ec825ab3_1f9dbc4b-a918-49b4-a43e-0dea6b884de7.webp?v=1714970074","width":2000},{"alt":null,"id":23896276697187,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f21e25c8f19d698adf51464271220c9fe2a6943_9cf05eaf-95c9-48a5-b43d-7c574b4e3751.webp?v=1714970076"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f21e25c8f19d698adf51464271220c9fe2a6943_9cf05eaf-95c9-48a5-b43d-7c574b4e3751.webp?v=1714970076","width":2000},{"alt":null,"id":23896277549155,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6648e7f5d27962392096985efd09259bd3c0bbf5_ed3116b6-dec5-4510-9679-02d4aca5cc92.webp?v=1714970079"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6648e7f5d27962392096985efd09259bd3c0bbf5_ed3116b6-dec5-4510-9679-02d4aca5cc92.webp?v=1714970079","width":2000},{"alt":null,"id":23896278040675,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/250b6ed534d1d9d713d8611245bd92b776cfc54e_9c2f46cc-9eca-4945-9721-0b4b0c4e36d0.webp?v=1714970081"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/250b6ed534d1d9d713d8611245bd92b776cfc54e_9c2f46cc-9eca-4945-9721-0b4b0c4e36d0.webp?v=1714970081","width":2000},{"alt":null,"id":23896278368355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35bfedaf0d793b68235ec905ba421cbee0623469_f7c0652d-5edd-4810-8529-8709a49958c3.webp?v=1714970084"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35bfedaf0d793b68235ec905ba421cbee0623469_f7c0652d-5edd-4810-8529-8709a49958c3.webp?v=1714970084","width":2000},{"alt":null,"id":23896278728803,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acc672ac69127474ca996944e6c6136121d2f45a_6d52ef79-da07-4a20-88cb-f3c97194c9e6.webp?v=1714970086"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acc672ac69127474ca996944e6c6136121d2f45a_6d52ef79-da07-4a20-88cb-f3c97194c9e6.webp?v=1714970086","width":2000},{"alt":null,"id":23896279384163,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac452b752ac2afb6df362b0839dbd8444f2c18da_2a77dc78-21e5-4b6e-9c22-94bb08374d4c.webp?v=1714970088"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac452b752ac2afb6df362b0839dbd8444f2c18da_2a77dc78-21e5-4b6e-9c22-94bb08374d4c.webp?v=1714970088","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41916070166627,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-SB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31490868314211,"product_id":7415971217507,"position":2,"created_at":"2024-05-06T12:34:29+08:00","updated_at":"2024-05-06T12:34:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7204dff7cadf643b9e3450f2e04cab058e8b6c38_7d062235-2d60-4acb-8341-0c39e48a3aa9.webp?v=1714970069","variant_ids":[41916070166627]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Batman - Batman Logo - 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":"NPB0108624-SB03","featured_media":{"alt":null,"id":23896275353699,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7204dff7cadf643b9e3450f2e04cab058e8b6c38_7d062235-2d60-4acb-8341-0c39e48a3aa9.webp?v=1714970069"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41916070166627,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-SB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31490868314211,"product_id":7415971217507,"position":2,"created_at":"2024-05-06T12:34:29+08:00","updated_at":"2024-05-06T12:34:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7204dff7cadf643b9e3450f2e04cab058e8b6c38_7d062235-2d60-4acb-8341-0c39e48a3aa9.webp?v=1714970069","variant_ids":[41916070166627]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Batman - Batman Logo - 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":"NPB0108624-SB03","featured_media":{"alt":null,"id":23896275353699,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7204dff7cadf643b9e3450f2e04cab058e8b6c38_7d062235-2d60-4acb-8341-0c39e48a3aa9.webp?v=1714970069"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }