$product = {"id":7408512172131,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-剪紙系列","handle":"iphone-12-pro-max-mod-nx-printable-pb57","description":null,"published_at":"2024-06-11T16:39:19+08:00","created_at":"2024-05-03T15:41:07+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","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":41886322851939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB57","requires_shipping":true,"taxable":true,"featured_image":{"id":31472467607651,"product_id":7408512172131,"position":6,"created_at":"2024-05-03T15:41:22+08:00","updated_at":"2024-05-03T15:41:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628cf8b69fee06041d50537871cee455789e1114_c0d09c17-62da-416d-bd03-c563e4b7c3eb.webp?v=1714722082","variant_ids":[41886322851939]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-剪紙系列 - 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-PB57","featured_media":{"alt":null,"id":23877384798307,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628cf8b69fee06041d50537871cee455789e1114_c0d09c17-62da-416d-bd03-c563e4b7c3eb.webp?v=1714722082"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/172d15e091f76a8005e48b41612c195e3362074f_50ec278d-d957-415f-837f-df7fd5f4d104.webp?v=1714722070","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d9e95e4dfc818cd59db76d0f875751dddbcbfc_52346faf-fac6-440b-a77b-f3fe6dad5439.webp?v=1714722073","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9b88f0a4d1bec52740608bc14d27c1c29031c52_c7772d3a-aaca-4172-84a5-01e0b346ecbc.webp?v=1714722075","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a509ed76a9ede1d630e2fbbed916cbc2612f08c_39ebcb82-a5a7-4c8c-add2-9e1c5c821916.webp?v=1714722077","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c569a88770dd31727dad2c37cbd3a4603944e6a_edc30461-ff8e-44ca-aa83-9caad82c92a2.webp?v=1714722079","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628cf8b69fee06041d50537871cee455789e1114_c0d09c17-62da-416d-bd03-c563e4b7c3eb.webp?v=1714722082","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c075ca20af451cfce79b3007434dde58d329c9_f7488a8e-50f6-4406-893d-d75198d4708e.webp?v=1714722084","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94151b63bbc5c39b7b62d2840fa3b7038c0ca1ea_c0d3e758-b253-4360-849b-d8856492993f.webp?v=1714722086","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d993265ba87a2bff1d85a65cc3b2f57c1b5a7b_009424c0-f8f9-4b83-81cc-7a9e686c073e.webp?v=1714722088","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9913614f94aa4764cd858bc17dd20ab840971cd6_066df73e-eda6-4f1a-80ce-d952263a61ad.webp?v=1714722091"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/172d15e091f76a8005e48b41612c195e3362074f_50ec278d-d957-415f-837f-df7fd5f4d104.webp?v=1714722070","options":["color"],"media":[{"alt":null,"id":23877382340707,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/172d15e091f76a8005e48b41612c195e3362074f_50ec278d-d957-415f-837f-df7fd5f4d104.webp?v=1714722070"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/172d15e091f76a8005e48b41612c195e3362074f_50ec278d-d957-415f-837f-df7fd5f4d104.webp?v=1714722070","width":2000},{"alt":null,"id":23877382864995,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d9e95e4dfc818cd59db76d0f875751dddbcbfc_52346faf-fac6-440b-a77b-f3fe6dad5439.webp?v=1714722073"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d9e95e4dfc818cd59db76d0f875751dddbcbfc_52346faf-fac6-440b-a77b-f3fe6dad5439.webp?v=1714722073","width":2000},{"alt":null,"id":23877383290979,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9b88f0a4d1bec52740608bc14d27c1c29031c52_c7772d3a-aaca-4172-84a5-01e0b346ecbc.webp?v=1714722075"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9b88f0a4d1bec52740608bc14d27c1c29031c52_c7772d3a-aaca-4172-84a5-01e0b346ecbc.webp?v=1714722075","width":2000},{"alt":null,"id":23877383848035,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a509ed76a9ede1d630e2fbbed916cbc2612f08c_39ebcb82-a5a7-4c8c-add2-9e1c5c821916.webp?v=1714722077"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a509ed76a9ede1d630e2fbbed916cbc2612f08c_39ebcb82-a5a7-4c8c-add2-9e1c5c821916.webp?v=1714722077","width":2000},{"alt":null,"id":23877384306787,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c569a88770dd31727dad2c37cbd3a4603944e6a_edc30461-ff8e-44ca-aa83-9caad82c92a2.webp?v=1714722079"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c569a88770dd31727dad2c37cbd3a4603944e6a_edc30461-ff8e-44ca-aa83-9caad82c92a2.webp?v=1714722079","width":2000},{"alt":null,"id":23877384798307,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628cf8b69fee06041d50537871cee455789e1114_c0d09c17-62da-416d-bd03-c563e4b7c3eb.webp?v=1714722082"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628cf8b69fee06041d50537871cee455789e1114_c0d09c17-62da-416d-bd03-c563e4b7c3eb.webp?v=1714722082","width":2000},{"alt":null,"id":23877385355363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c075ca20af451cfce79b3007434dde58d329c9_f7488a8e-50f6-4406-893d-d75198d4708e.webp?v=1714722084"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c075ca20af451cfce79b3007434dde58d329c9_f7488a8e-50f6-4406-893d-d75198d4708e.webp?v=1714722084","width":2000},{"alt":null,"id":23877386010723,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94151b63bbc5c39b7b62d2840fa3b7038c0ca1ea_c0d3e758-b253-4360-849b-d8856492993f.webp?v=1714722086"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94151b63bbc5c39b7b62d2840fa3b7038c0ca1ea_c0d3e758-b253-4360-849b-d8856492993f.webp?v=1714722086","width":2000},{"alt":null,"id":23877386567779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d993265ba87a2bff1d85a65cc3b2f57c1b5a7b_009424c0-f8f9-4b83-81cc-7a9e686c073e.webp?v=1714722088"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d993265ba87a2bff1d85a65cc3b2f57c1b5a7b_009424c0-f8f9-4b83-81cc-7a9e686c073e.webp?v=1714722088","width":2000},{"alt":null,"id":23877387157603,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9913614f94aa4764cd858bc17dd20ab840971cd6_066df73e-eda6-4f1a-80ce-d952263a61ad.webp?v=1714722091"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9913614f94aa4764cd858bc17dd20ab840971cd6_066df73e-eda6-4f1a-80ce-d952263a61ad.webp?v=1714722091","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886322851939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB57","requires_shipping":true,"taxable":true,"featured_image":{"id":31472467607651,"product_id":7408512172131,"position":6,"created_at":"2024-05-03T15:41:22+08:00","updated_at":"2024-05-03T15:41:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628cf8b69fee06041d50537871cee455789e1114_c0d09c17-62da-416d-bd03-c563e4b7c3eb.webp?v=1714722082","variant_ids":[41886322851939]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-剪紙系列 - 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-PB57","featured_media":{"alt":null,"id":23877384798307,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628cf8b69fee06041d50537871cee455789e1114_c0d09c17-62da-416d-bd03-c563e4b7c3eb.webp?v=1714722082"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886322851939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB57","requires_shipping":true,"taxable":true,"featured_image":{"id":31472467607651,"product_id":7408512172131,"position":6,"created_at":"2024-05-03T15:41:22+08:00","updated_at":"2024-05-03T15:41:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628cf8b69fee06041d50537871cee455789e1114_c0d09c17-62da-416d-bd03-c563e4b7c3eb.webp?v=1714722082","variant_ids":[41886322851939]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-剪紙系列 - 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-PB57","featured_media":{"alt":null,"id":23877384798307,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628cf8b69fee06041d50537871cee455789e1114_c0d09c17-62da-416d-bd03-c563e4b7c3eb.webp?v=1714722082"}},"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: "停產" }