$product = {"id":7416358731875,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Batman - 高譚守護者","handle":"iphone-8-mod-nx-printable-sb20","description":null,"published_at":"2024-06-11T16:56:53+08:00","created_at":"2024-05-06T14:41:27+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 8","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":41918875730019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31491932258403,"product_id":7416358731875,"position":7,"created_at":"2024-05-06T14:41:44+08:00","updated_at":"2024-05-06T14:41:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f6462733bd1eaae9b600fe6f6491ffa38d8d82_46f8fe2c-4e42-4ffb-b0d0-fde2b03492b2.webp?v=1714977704","variant_ids":[41918875730019]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 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":"NPB0105424-SB20","featured_media":{"alt":null,"id":23897345261667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f6462733bd1eaae9b600fe6f6491ffa38d8d82_46f8fe2c-4e42-4ffb-b0d0-fde2b03492b2.webp?v=1714977704"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96ba8fa54666c2704ba78dca87560f06f18fc90f_58cb7b7a-e6e6-45a9-8d2b-ef29a11e2055.webp?v=1714977690","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e624738e9a999b56aa996a43bf2fa7d20f806c83_b345e6b9-b45d-4084-a229-79a47898a5e1.webp?v=1714977692","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed459f07de742cdc0a5f171dd2536441201d95b7_908456a7-c9b0-4ae9-99eb-a774a0c579bc.webp?v=1714977695","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c879dbf88843fe1d079abc06286ac4db9c24b7ab_f8cb0b4b-93a1-4fef-9ab9-1f6578ede5d1.webp?v=1714977697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dd053d1134ca60a21bc0b497e702f5a697e8411_64b6d03d-5fb3-4afb-8382-d301232a0142.webp?v=1714977699","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1262b497c6802f5a06dcaeb62fcf1e085c6a657_0d050360-de62-4d2a-9e9b-f51a083633d5.webp?v=1714977702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f6462733bd1eaae9b600fe6f6491ffa38d8d82_46f8fe2c-4e42-4ffb-b0d0-fde2b03492b2.webp?v=1714977704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e98a7626578a92c6cb488e0e284473e2312121c_59902193-37a7-4e8c-b606-4df766e760ac.webp?v=1714977707","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e97378a7fb060c681da8fd09b0e5bba7a26f3b_b45d013a-6938-497c-9eca-30047de77b93.webp?v=1714977709","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec1d63bdd9358e68795e8adec53c7ce003e7ea2_fa3f06bd-5c01-4f71-83df-90b07a1659d6.webp?v=1714977711"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96ba8fa54666c2704ba78dca87560f06f18fc90f_58cb7b7a-e6e6-45a9-8d2b-ef29a11e2055.webp?v=1714977690","options":["color"],"media":[{"alt":null,"id":23897342279779,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96ba8fa54666c2704ba78dca87560f06f18fc90f_58cb7b7a-e6e6-45a9-8d2b-ef29a11e2055.webp?v=1714977690"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96ba8fa54666c2704ba78dca87560f06f18fc90f_58cb7b7a-e6e6-45a9-8d2b-ef29a11e2055.webp?v=1714977690","width":2000},{"alt":null,"id":23897342574691,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e624738e9a999b56aa996a43bf2fa7d20f806c83_b345e6b9-b45d-4084-a229-79a47898a5e1.webp?v=1714977692"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e624738e9a999b56aa996a43bf2fa7d20f806c83_b345e6b9-b45d-4084-a229-79a47898a5e1.webp?v=1714977692","width":2000},{"alt":null,"id":23897343131747,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed459f07de742cdc0a5f171dd2536441201d95b7_908456a7-c9b0-4ae9-99eb-a774a0c579bc.webp?v=1714977695"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed459f07de742cdc0a5f171dd2536441201d95b7_908456a7-c9b0-4ae9-99eb-a774a0c579bc.webp?v=1714977695","width":2000},{"alt":null,"id":23897343524963,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c879dbf88843fe1d079abc06286ac4db9c24b7ab_f8cb0b4b-93a1-4fef-9ab9-1f6578ede5d1.webp?v=1714977697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c879dbf88843fe1d079abc06286ac4db9c24b7ab_f8cb0b4b-93a1-4fef-9ab9-1f6578ede5d1.webp?v=1714977697","width":2000},{"alt":null,"id":23897344147555,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dd053d1134ca60a21bc0b497e702f5a697e8411_64b6d03d-5fb3-4afb-8382-d301232a0142.webp?v=1714977699"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dd053d1134ca60a21bc0b497e702f5a697e8411_64b6d03d-5fb3-4afb-8382-d301232a0142.webp?v=1714977699","width":2000},{"alt":null,"id":23897344704611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1262b497c6802f5a06dcaeb62fcf1e085c6a657_0d050360-de62-4d2a-9e9b-f51a083633d5.webp?v=1714977702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1262b497c6802f5a06dcaeb62fcf1e085c6a657_0d050360-de62-4d2a-9e9b-f51a083633d5.webp?v=1714977702","width":2000},{"alt":null,"id":23897345261667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f6462733bd1eaae9b600fe6f6491ffa38d8d82_46f8fe2c-4e42-4ffb-b0d0-fde2b03492b2.webp?v=1714977704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f6462733bd1eaae9b600fe6f6491ffa38d8d82_46f8fe2c-4e42-4ffb-b0d0-fde2b03492b2.webp?v=1714977704","width":2000},{"alt":null,"id":23897347489891,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e98a7626578a92c6cb488e0e284473e2312121c_59902193-37a7-4e8c-b606-4df766e760ac.webp?v=1714977707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e98a7626578a92c6cb488e0e284473e2312121c_59902193-37a7-4e8c-b606-4df766e760ac.webp?v=1714977707","width":2000},{"alt":null,"id":23897348014179,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e97378a7fb060c681da8fd09b0e5bba7a26f3b_b45d013a-6938-497c-9eca-30047de77b93.webp?v=1714977709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e97378a7fb060c681da8fd09b0e5bba7a26f3b_b45d013a-6938-497c-9eca-30047de77b93.webp?v=1714977709","width":2000},{"alt":null,"id":23897348440163,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec1d63bdd9358e68795e8adec53c7ce003e7ea2_fa3f06bd-5c01-4f71-83df-90b07a1659d6.webp?v=1714977711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec1d63bdd9358e68795e8adec53c7ce003e7ea2_fa3f06bd-5c01-4f71-83df-90b07a1659d6.webp?v=1714977711","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918875730019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31491932258403,"product_id":7416358731875,"position":7,"created_at":"2024-05-06T14:41:44+08:00","updated_at":"2024-05-06T14:41:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f6462733bd1eaae9b600fe6f6491ffa38d8d82_46f8fe2c-4e42-4ffb-b0d0-fde2b03492b2.webp?v=1714977704","variant_ids":[41918875730019]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 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":"NPB0105424-SB20","featured_media":{"alt":null,"id":23897345261667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f6462733bd1eaae9b600fe6f6491ffa38d8d82_46f8fe2c-4e42-4ffb-b0d0-fde2b03492b2.webp?v=1714977704"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918875730019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31491932258403,"product_id":7416358731875,"position":7,"created_at":"2024-05-06T14:41:44+08:00","updated_at":"2024-05-06T14:41:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f6462733bd1eaae9b600fe6f6491ffa38d8d82_46f8fe2c-4e42-4ffb-b0d0-fde2b03492b2.webp?v=1714977704","variant_ids":[41918875730019]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 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":"NPB0105424-SB20","featured_media":{"alt":null,"id":23897345261667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f6462733bd1eaae9b600fe6f6491ffa38d8d82_46f8fe2c-4e42-4ffb-b0d0-fde2b03492b2.webp?v=1714977704"}},"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: "停產" }