$product = {"id":7415918657635,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 史迪奇 - 夏威夷系列-線稿","handle":"iphone-xs-max-mod-nx-printable-yf03","description":null,"published_at":"2024-06-11T16:47:55+08:00","created_at":"2024-05-06T12:24:44+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone XS Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-stitch","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":41915522777187,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31490731278435,"product_id":7415918657635,"position":2,"created_at":"2024-05-06T12:24:50+08:00","updated_at":"2024-05-06T12:24:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdc7b361e4aa6bea7db5eb1d67fa977b617c6bf_c93aadf2-9b5c-4e11-a223-1d3d7cbcc973.webp?v=1714969490","variant_ids":[41915522777187]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 史迪奇 - 夏威夷系列-線稿 - 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-YF03","featured_media":{"alt":null,"id":23896138023011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdc7b361e4aa6bea7db5eb1d67fa977b617c6bf_c93aadf2-9b5c-4e11-a223-1d3d7cbcc973.webp?v=1714969490"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/687a00b00323c7cf4afa9be3cd747cf0029995b1_5a3ecc1a-3bca-48ae-96da-1db0516e5c1e.webp?v=1714969488","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdc7b361e4aa6bea7db5eb1d67fa977b617c6bf_c93aadf2-9b5c-4e11-a223-1d3d7cbcc973.webp?v=1714969490","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ac6f752280403a4e580402b8fc72aeec79808eb_58e186b9-73ad-4b7e-898e-31295d398ae7.webp?v=1714969493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3162b5223784449d49eb3ed5fb91d1e5c36dbf3f_3af8630c-d134-474e-be84-3affa5223332.webp?v=1714969495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/707d7c350ad3c67134bd85bbf8a8f525e3599f04_52d264e5-c1b0-4bf0-a406-845246f54b24.webp?v=1714969497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1c0d3321506fc60f4f558d349a358ae51f84bbd_75765a05-39cc-4aba-ab1e-39a0cfdde8f8.webp?v=1714969501","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18931c959cdc267b2e443e2a589946a584d103fe_c5c8cdf1-60ed-411d-8cc4-1276cc0075ba.webp?v=1714969503","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a54e660ee0c344914fd8a2eac2edd322211a71fb_8ca805e5-7727-4d24-acbe-48e791766995.webp?v=1714969506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f0f66f7070842d61ab8433d2db11fac75a43f5_7de38264-19f3-440d-80a9-74dba7102696.webp?v=1714969508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abdad2de55ccaeb195de1a517e87cc1a0653a3c_7fe03ab6-654e-4c2e-8943-487062721eae.webp?v=1714969510"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/687a00b00323c7cf4afa9be3cd747cf0029995b1_5a3ecc1a-3bca-48ae-96da-1db0516e5c1e.webp?v=1714969488","options":["color"],"media":[{"alt":null,"id":23896137629795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/687a00b00323c7cf4afa9be3cd747cf0029995b1_5a3ecc1a-3bca-48ae-96da-1db0516e5c1e.webp?v=1714969488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/687a00b00323c7cf4afa9be3cd747cf0029995b1_5a3ecc1a-3bca-48ae-96da-1db0516e5c1e.webp?v=1714969488","width":2000},{"alt":null,"id":23896138023011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdc7b361e4aa6bea7db5eb1d67fa977b617c6bf_c93aadf2-9b5c-4e11-a223-1d3d7cbcc973.webp?v=1714969490"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdc7b361e4aa6bea7db5eb1d67fa977b617c6bf_c93aadf2-9b5c-4e11-a223-1d3d7cbcc973.webp?v=1714969490","width":2000},{"alt":null,"id":23896138678371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ac6f752280403a4e580402b8fc72aeec79808eb_58e186b9-73ad-4b7e-898e-31295d398ae7.webp?v=1714969493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ac6f752280403a4e580402b8fc72aeec79808eb_58e186b9-73ad-4b7e-898e-31295d398ae7.webp?v=1714969493","width":2000},{"alt":null,"id":23896139038819,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3162b5223784449d49eb3ed5fb91d1e5c36dbf3f_3af8630c-d134-474e-be84-3affa5223332.webp?v=1714969495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3162b5223784449d49eb3ed5fb91d1e5c36dbf3f_3af8630c-d134-474e-be84-3affa5223332.webp?v=1714969495","width":2000},{"alt":null,"id":23896140054627,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/707d7c350ad3c67134bd85bbf8a8f525e3599f04_52d264e5-c1b0-4bf0-a406-845246f54b24.webp?v=1714969497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/707d7c350ad3c67134bd85bbf8a8f525e3599f04_52d264e5-c1b0-4bf0-a406-845246f54b24.webp?v=1714969497","width":2000},{"alt":null,"id":23896141004899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1c0d3321506fc60f4f558d349a358ae51f84bbd_75765a05-39cc-4aba-ab1e-39a0cfdde8f8.webp?v=1714969501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1c0d3321506fc60f4f558d349a358ae51f84bbd_75765a05-39cc-4aba-ab1e-39a0cfdde8f8.webp?v=1714969501","width":2000},{"alt":null,"id":23896141627491,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18931c959cdc267b2e443e2a589946a584d103fe_c5c8cdf1-60ed-411d-8cc4-1276cc0075ba.webp?v=1714969503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18931c959cdc267b2e443e2a589946a584d103fe_c5c8cdf1-60ed-411d-8cc4-1276cc0075ba.webp?v=1714969503","width":2000},{"alt":null,"id":23896142086243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a54e660ee0c344914fd8a2eac2edd322211a71fb_8ca805e5-7727-4d24-acbe-48e791766995.webp?v=1714969506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a54e660ee0c344914fd8a2eac2edd322211a71fb_8ca805e5-7727-4d24-acbe-48e791766995.webp?v=1714969506","width":2000},{"alt":null,"id":23896142774371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f0f66f7070842d61ab8433d2db11fac75a43f5_7de38264-19f3-440d-80a9-74dba7102696.webp?v=1714969508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f0f66f7070842d61ab8433d2db11fac75a43f5_7de38264-19f3-440d-80a9-74dba7102696.webp?v=1714969508","width":2000},{"alt":null,"id":23896143200355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abdad2de55ccaeb195de1a517e87cc1a0653a3c_7fe03ab6-654e-4c2e-8943-487062721eae.webp?v=1714969510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abdad2de55ccaeb195de1a517e87cc1a0653a3c_7fe03ab6-654e-4c2e-8943-487062721eae.webp?v=1714969510","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41915522777187,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31490731278435,"product_id":7415918657635,"position":2,"created_at":"2024-05-06T12:24:50+08:00","updated_at":"2024-05-06T12:24:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdc7b361e4aa6bea7db5eb1d67fa977b617c6bf_c93aadf2-9b5c-4e11-a223-1d3d7cbcc973.webp?v=1714969490","variant_ids":[41915522777187]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 史迪奇 - 夏威夷系列-線稿 - 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-YF03","featured_media":{"alt":null,"id":23896138023011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdc7b361e4aa6bea7db5eb1d67fa977b617c6bf_c93aadf2-9b5c-4e11-a223-1d3d7cbcc973.webp?v=1714969490"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41915522777187,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31490731278435,"product_id":7415918657635,"position":2,"created_at":"2024-05-06T12:24:50+08:00","updated_at":"2024-05-06T12:24:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdc7b361e4aa6bea7db5eb1d67fa977b617c6bf_c93aadf2-9b5c-4e11-a223-1d3d7cbcc973.webp?v=1714969490","variant_ids":[41915522777187]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 史迪奇 - 夏威夷系列-線稿 - 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-YF03","featured_media":{"alt":null,"id":23896138023011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdc7b361e4aa6bea7db5eb1d67fa977b617c6bf_c93aadf2-9b5c-4e11-a223-1d3d7cbcc973.webp?v=1714969490"}},"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: "停產" }