$product = {"id":7408472916067,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 超級惡棍和蝙蝠俠Logo貼紙款","handle":"iphone-12-pro-max-mod-nx-printable-sb10","description":null,"published_at":"2024-06-11T16:38:12+08:00","created_at":"2024-05-03T15:33: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 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":41885872455779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31472364814435,"product_id":7408472916067,"position":2,"created_at":"2024-05-03T15:33:30+08:00","updated_at":"2024-05-03T15:33:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8901a5eec6e492003104fb6883241c0eb31e98cf_dda29d29-6137-4faf-9502-2d6b2e6d086e.webp?v=1714721610","variant_ids":[41885872455779]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-SB10","featured_media":{"alt":null,"id":23877281677411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8901a5eec6e492003104fb6883241c0eb31e98cf_dda29d29-6137-4faf-9502-2d6b2e6d086e.webp?v=1714721610"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/470368138e623b761ddff9cd3a6b6867cacb4cc9_6d0c3dfa-ef59-409c-b398-a8e9fed33a3c.webp?v=1714721608","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8901a5eec6e492003104fb6883241c0eb31e98cf_dda29d29-6137-4faf-9502-2d6b2e6d086e.webp?v=1714721610","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d202604300f905742e0f9f99c36826e600135b0b_36fc9799-45bf-46f4-958f-334c336688cc.webp?v=1714721613","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c02f78497a8c684da9837381c1f66962b786dde2_7e50a035-1aab-44d2-9330-6e7aa530fd76.webp?v=1714721615","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcd75f33453d7ba79b4b3ac994455b2a1a6bb724_1cf3671a-3220-4e7f-9a52-c58fc0b3c1bf.webp?v=1714721617","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e376640c337e7d728392383a2ef17c39e656d53e_2999ad53-98f9-47ae-919e-11b317ec7908.webp?v=1714721620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2164d74193a63393bcc1648e6d3d4279abaf1ee6_64734e8f-699f-490c-a889-76ee8370f435.webp?v=1714721622","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3182248a79682a310ac82204a43b6098e9e247f_970652bb-2036-4343-b95e-0a87525d9478.webp?v=1714721625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa90da4d2a3ca617d87571d5acef4a8c13509ce4_117cd3c8-ef31-4816-b05a-59455adb663e.webp?v=1714721627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f801e790a4accfd6ed4eea2ef12e650757eda8de_b630e70d-311f-45c5-b9b2-56f74497f533.webp?v=1714721629"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/470368138e623b761ddff9cd3a6b6867cacb4cc9_6d0c3dfa-ef59-409c-b398-a8e9fed33a3c.webp?v=1714721608","options":["color"],"media":[{"alt":null,"id":23877281284195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/470368138e623b761ddff9cd3a6b6867cacb4cc9_6d0c3dfa-ef59-409c-b398-a8e9fed33a3c.webp?v=1714721608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/470368138e623b761ddff9cd3a6b6867cacb4cc9_6d0c3dfa-ef59-409c-b398-a8e9fed33a3c.webp?v=1714721608","width":2000},{"alt":null,"id":23877281677411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8901a5eec6e492003104fb6883241c0eb31e98cf_dda29d29-6137-4faf-9502-2d6b2e6d086e.webp?v=1714721610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8901a5eec6e492003104fb6883241c0eb31e98cf_dda29d29-6137-4faf-9502-2d6b2e6d086e.webp?v=1714721610","width":2000},{"alt":null,"id":23877282168931,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d202604300f905742e0f9f99c36826e600135b0b_36fc9799-45bf-46f4-958f-334c336688cc.webp?v=1714721613"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d202604300f905742e0f9f99c36826e600135b0b_36fc9799-45bf-46f4-958f-334c336688cc.webp?v=1714721613","width":2000},{"alt":null,"id":23877282693219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c02f78497a8c684da9837381c1f66962b786dde2_7e50a035-1aab-44d2-9330-6e7aa530fd76.webp?v=1714721615"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c02f78497a8c684da9837381c1f66962b786dde2_7e50a035-1aab-44d2-9330-6e7aa530fd76.webp?v=1714721615","width":2000},{"alt":null,"id":23877283217507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcd75f33453d7ba79b4b3ac994455b2a1a6bb724_1cf3671a-3220-4e7f-9a52-c58fc0b3c1bf.webp?v=1714721617"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcd75f33453d7ba79b4b3ac994455b2a1a6bb724_1cf3671a-3220-4e7f-9a52-c58fc0b3c1bf.webp?v=1714721617","width":2000},{"alt":null,"id":23877283709027,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e376640c337e7d728392383a2ef17c39e656d53e_2999ad53-98f9-47ae-919e-11b317ec7908.webp?v=1714721620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e376640c337e7d728392383a2ef17c39e656d53e_2999ad53-98f9-47ae-919e-11b317ec7908.webp?v=1714721620","width":2000},{"alt":null,"id":23877284331619,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2164d74193a63393bcc1648e6d3d4279abaf1ee6_64734e8f-699f-490c-a889-76ee8370f435.webp?v=1714721622"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2164d74193a63393bcc1648e6d3d4279abaf1ee6_64734e8f-699f-490c-a889-76ee8370f435.webp?v=1714721622","width":2000},{"alt":null,"id":23877284823139,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3182248a79682a310ac82204a43b6098e9e247f_970652bb-2036-4343-b95e-0a87525d9478.webp?v=1714721625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3182248a79682a310ac82204a43b6098e9e247f_970652bb-2036-4343-b95e-0a87525d9478.webp?v=1714721625","width":2000},{"alt":null,"id":23877285216355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa90da4d2a3ca617d87571d5acef4a8c13509ce4_117cd3c8-ef31-4816-b05a-59455adb663e.webp?v=1714721627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa90da4d2a3ca617d87571d5acef4a8c13509ce4_117cd3c8-ef31-4816-b05a-59455adb663e.webp?v=1714721627","width":2000},{"alt":null,"id":23877285904483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f801e790a4accfd6ed4eea2ef12e650757eda8de_b630e70d-311f-45c5-b9b2-56f74497f533.webp?v=1714721629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f801e790a4accfd6ed4eea2ef12e650757eda8de_b630e70d-311f-45c5-b9b2-56f74497f533.webp?v=1714721629","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885872455779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31472364814435,"product_id":7408472916067,"position":2,"created_at":"2024-05-03T15:33:30+08:00","updated_at":"2024-05-03T15:33:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8901a5eec6e492003104fb6883241c0eb31e98cf_dda29d29-6137-4faf-9502-2d6b2e6d086e.webp?v=1714721610","variant_ids":[41885872455779]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-SB10","featured_media":{"alt":null,"id":23877281677411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8901a5eec6e492003104fb6883241c0eb31e98cf_dda29d29-6137-4faf-9502-2d6b2e6d086e.webp?v=1714721610"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885872455779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31472364814435,"product_id":7408472916067,"position":2,"created_at":"2024-05-03T15:33:30+08:00","updated_at":"2024-05-03T15:33:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8901a5eec6e492003104fb6883241c0eb31e98cf_dda29d29-6137-4faf-9502-2d6b2e6d086e.webp?v=1714721610","variant_ids":[41885872455779]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-SB10","featured_media":{"alt":null,"id":23877281677411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8901a5eec6e492003104fb6883241c0eb31e98cf_dda29d29-6137-4faf-9502-2d6b2e6d086e.webp?v=1714721610"}},"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: "停產" }