$product = {"id":7408441000035,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 復古版","handle":"iphone-12-pro-max-mod-nx-printable-sb01","description":null,"published_at":"2024-06-11T16:37:18+08:00","created_at":"2024-05-03T15:27:02+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 12 pro 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":41885508927587,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472290988131,"product_id":7408441000035,"position":10,"created_at":"2024-05-03T15:27:26+08:00","updated_at":"2024-05-03T15:27:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4952fda6ff2071c6904efc39af3e3e28ee39441d_8875cfa0-9dce-4604-9d5d-5f5b39bf70e1.webp?v=1714721246","variant_ids":[41885508927587]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-SB01","featured_media":{"alt":null,"id":23877207326819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4952fda6ff2071c6904efc39af3e3e28ee39441d_8875cfa0-9dce-4604-9d5d-5f5b39bf70e1.webp?v=1714721246"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d423220ddab5a3801890c32c6a1620b62e4f54b_b5e33e25-00bc-4b7e-a70f-a49ec0e9a81a.webp?v=1714721225","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/582b1e88eef0c8522701789ba67a49cef639cf68_5a83f78c-7417-43f7-a551-e200e7a21921.webp?v=1714721227","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aedce4b3ffc2652b52bc57bd56c2abe14a8f3658_53f0d30d-91bc-43b5-a49f-3a5e9b9a2836.webp?v=1714721230","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc04dc85e5e352dc82d894058edca5d864410b23_1832b4da-1240-4d02-be56-ee4e16f31be6.webp?v=1714721232","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9240792ec70b5ba10edbbcbd6aa1b0ca64f6cace_9fbb22f9-b0d0-4cc3-b4ea-a4c7c2370852.webp?v=1714721235","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ce98f8c5d6b03c1f604913ca7ab346a06a9d909_065baed2-8315-4f71-b1ac-0c5536d0110e.webp?v=1714721237","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81aa211676aaa17a4330ddbf09c036a676e39640_3fe223ca-31be-4a8b-a1b5-97f9693810ea.webp?v=1714721239","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e78eb34f753eed54034f1cb86376f17bd09c2b99_901a37f1-9370-4c49-bd9c-e47c52d2d6ad.webp?v=1714721241","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1b386181fe2546344f24413aaf94c11cc8c951b_4f408def-275a-4b05-bc1e-afd954305568.webp?v=1714721243","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4952fda6ff2071c6904efc39af3e3e28ee39441d_8875cfa0-9dce-4604-9d5d-5f5b39bf70e1.webp?v=1714721246"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d423220ddab5a3801890c32c6a1620b62e4f54b_b5e33e25-00bc-4b7e-a70f-a49ec0e9a81a.webp?v=1714721225","options":["color"],"media":[{"alt":null,"id":23877203066979,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d423220ddab5a3801890c32c6a1620b62e4f54b_b5e33e25-00bc-4b7e-a70f-a49ec0e9a81a.webp?v=1714721225"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d423220ddab5a3801890c32c6a1620b62e4f54b_b5e33e25-00bc-4b7e-a70f-a49ec0e9a81a.webp?v=1714721225","width":2000},{"alt":null,"id":23877203492963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/582b1e88eef0c8522701789ba67a49cef639cf68_5a83f78c-7417-43f7-a551-e200e7a21921.webp?v=1714721227"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/582b1e88eef0c8522701789ba67a49cef639cf68_5a83f78c-7417-43f7-a551-e200e7a21921.webp?v=1714721227","width":2000},{"alt":null,"id":23877204082787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aedce4b3ffc2652b52bc57bd56c2abe14a8f3658_53f0d30d-91bc-43b5-a49f-3a5e9b9a2836.webp?v=1714721230"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aedce4b3ffc2652b52bc57bd56c2abe14a8f3658_53f0d30d-91bc-43b5-a49f-3a5e9b9a2836.webp?v=1714721230","width":2000},{"alt":null,"id":23877204738147,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc04dc85e5e352dc82d894058edca5d864410b23_1832b4da-1240-4d02-be56-ee4e16f31be6.webp?v=1714721232"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc04dc85e5e352dc82d894058edca5d864410b23_1832b4da-1240-4d02-be56-ee4e16f31be6.webp?v=1714721232","width":2000},{"alt":null,"id":23877205229667,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9240792ec70b5ba10edbbcbd6aa1b0ca64f6cace_9fbb22f9-b0d0-4cc3-b4ea-a4c7c2370852.webp?v=1714721235"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9240792ec70b5ba10edbbcbd6aa1b0ca64f6cace_9fbb22f9-b0d0-4cc3-b4ea-a4c7c2370852.webp?v=1714721235","width":2000},{"alt":null,"id":23877205590115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ce98f8c5d6b03c1f604913ca7ab346a06a9d909_065baed2-8315-4f71-b1ac-0c5536d0110e.webp?v=1714721237"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ce98f8c5d6b03c1f604913ca7ab346a06a9d909_065baed2-8315-4f71-b1ac-0c5536d0110e.webp?v=1714721237","width":2000},{"alt":null,"id":23877205983331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81aa211676aaa17a4330ddbf09c036a676e39640_3fe223ca-31be-4a8b-a1b5-97f9693810ea.webp?v=1714721239"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81aa211676aaa17a4330ddbf09c036a676e39640_3fe223ca-31be-4a8b-a1b5-97f9693810ea.webp?v=1714721239","width":2000},{"alt":null,"id":23877206409315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e78eb34f753eed54034f1cb86376f17bd09c2b99_901a37f1-9370-4c49-bd9c-e47c52d2d6ad.webp?v=1714721241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e78eb34f753eed54034f1cb86376f17bd09c2b99_901a37f1-9370-4c49-bd9c-e47c52d2d6ad.webp?v=1714721241","width":2000},{"alt":null,"id":23877206802531,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1b386181fe2546344f24413aaf94c11cc8c951b_4f408def-275a-4b05-bc1e-afd954305568.webp?v=1714721243"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1b386181fe2546344f24413aaf94c11cc8c951b_4f408def-275a-4b05-bc1e-afd954305568.webp?v=1714721243","width":2000},{"alt":null,"id":23877207326819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4952fda6ff2071c6904efc39af3e3e28ee39441d_8875cfa0-9dce-4604-9d5d-5f5b39bf70e1.webp?v=1714721246"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4952fda6ff2071c6904efc39af3e3e28ee39441d_8875cfa0-9dce-4604-9d5d-5f5b39bf70e1.webp?v=1714721246","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885508927587,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472290988131,"product_id":7408441000035,"position":10,"created_at":"2024-05-03T15:27:26+08:00","updated_at":"2024-05-03T15:27:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4952fda6ff2071c6904efc39af3e3e28ee39441d_8875cfa0-9dce-4604-9d5d-5f5b39bf70e1.webp?v=1714721246","variant_ids":[41885508927587]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-SB01","featured_media":{"alt":null,"id":23877207326819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4952fda6ff2071c6904efc39af3e3e28ee39441d_8875cfa0-9dce-4604-9d5d-5f5b39bf70e1.webp?v=1714721246"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885508927587,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472290988131,"product_id":7408441000035,"position":10,"created_at":"2024-05-03T15:27:26+08:00","updated_at":"2024-05-03T15:27:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4952fda6ff2071c6904efc39af3e3e28ee39441d_8875cfa0-9dce-4604-9d5d-5f5b39bf70e1.webp?v=1714721246","variant_ids":[41885508927587]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-SB01","featured_media":{"alt":null,"id":23877207326819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4952fda6ff2071c6904efc39af3e3e28ee39441d_8875cfa0-9dce-4604-9d5d-5f5b39bf70e1.webp?v=1714721246"}},"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: "停產" }