$product = {"id":7408373301347,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列","handle":"iphone-12-pro-max-mod-nx-printable-pb64","description":null,"published_at":"2024-06-11T16:35:27+08:00","created_at":"2024-05-03T15:13:58+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":41884764930147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31472098410595,"product_id":7408373301347,"position":6,"created_at":"2024-05-03T15:14:13+08:00","updated_at":"2024-05-03T15:14:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed8b6af5e0b9bd0fec197966b915b4a021dd5173_f72c541f-8ec4-4cc2-b340-66cc6a0db39c.webp?v=1714720453","variant_ids":[41884764930147]},"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-PB64","featured_media":{"alt":null,"id":23877013799011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed8b6af5e0b9bd0fec197966b915b4a021dd5173_f72c541f-8ec4-4cc2-b340-66cc6a0db39c.webp?v=1714720453"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d99815b581db0d272e503ead8e8a77afe0e0218d_3c400ba8-ad1f-4aee-9a3e-11779ac401dc.webp?v=1714720441","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32d4587f3f4c974ce560f69466f7f98f39d8dd90_4e0698e4-fafc-4010-a133-355d3469753c.webp?v=1714720443","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3e5627cd1926829c645eed541967c1e1b46b0f_8ab0b10f-d014-4584-a43c-0b0b57b44d9c.webp?v=1714720445","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d63bbccdcdac4005919a3cb28b8a939f11c0d2c_80b1a8c9-8a06-4b4d-ab8d-e13803527ba7.webp?v=1714720448","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd7fc3b1b45697f97dae2d2f72d691224d488c1f_7bdbca1e-5a37-4165-9c60-143605e2de95.webp?v=1714720450","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed8b6af5e0b9bd0fec197966b915b4a021dd5173_f72c541f-8ec4-4cc2-b340-66cc6a0db39c.webp?v=1714720453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b315f526a1c434165559987587dba1e9bc178f3_256db2ba-15a6-4c4d-b2f0-9b282c04ddb0.webp?v=1714720455","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7de8b26e2366bbe625c6d94fe6f9a66d12bae503_5172c06d-9b6f-4c23-b0fe-3085ca706802.webp?v=1714720457","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99b24819a5780ecbcb5e59c9fa2a7566e5761157_51a5fd4a-1396-4f4c-b295-9f8af01befcc.webp?v=1714720459","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28095dcc684b52690b8c4fe39010970a71a539a6_3c010861-29a2-4047-be43-1711d5c1af17.webp?v=1714720462"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d99815b581db0d272e503ead8e8a77afe0e0218d_3c400ba8-ad1f-4aee-9a3e-11779ac401dc.webp?v=1714720441","options":["color"],"media":[{"alt":null,"id":23877011505251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d99815b581db0d272e503ead8e8a77afe0e0218d_3c400ba8-ad1f-4aee-9a3e-11779ac401dc.webp?v=1714720441"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d99815b581db0d272e503ead8e8a77afe0e0218d_3c400ba8-ad1f-4aee-9a3e-11779ac401dc.webp?v=1714720441","width":2000},{"alt":null,"id":23877012160611,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32d4587f3f4c974ce560f69466f7f98f39d8dd90_4e0698e4-fafc-4010-a133-355d3469753c.webp?v=1714720443"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32d4587f3f4c974ce560f69466f7f98f39d8dd90_4e0698e4-fafc-4010-a133-355d3469753c.webp?v=1714720443","width":2000},{"alt":null,"id":23877012324451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3e5627cd1926829c645eed541967c1e1b46b0f_8ab0b10f-d014-4584-a43c-0b0b57b44d9c.webp?v=1714720445"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3e5627cd1926829c645eed541967c1e1b46b0f_8ab0b10f-d014-4584-a43c-0b0b57b44d9c.webp?v=1714720445","width":2000},{"alt":null,"id":23877013078115,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d63bbccdcdac4005919a3cb28b8a939f11c0d2c_80b1a8c9-8a06-4b4d-ab8d-e13803527ba7.webp?v=1714720448"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d63bbccdcdac4005919a3cb28b8a939f11c0d2c_80b1a8c9-8a06-4b4d-ab8d-e13803527ba7.webp?v=1714720448","width":2000},{"alt":null,"id":23877013373027,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd7fc3b1b45697f97dae2d2f72d691224d488c1f_7bdbca1e-5a37-4165-9c60-143605e2de95.webp?v=1714720450"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd7fc3b1b45697f97dae2d2f72d691224d488c1f_7bdbca1e-5a37-4165-9c60-143605e2de95.webp?v=1714720450","width":2000},{"alt":null,"id":23877013799011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed8b6af5e0b9bd0fec197966b915b4a021dd5173_f72c541f-8ec4-4cc2-b340-66cc6a0db39c.webp?v=1714720453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed8b6af5e0b9bd0fec197966b915b4a021dd5173_f72c541f-8ec4-4cc2-b340-66cc6a0db39c.webp?v=1714720453","width":2000},{"alt":null,"id":23877014487139,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b315f526a1c434165559987587dba1e9bc178f3_256db2ba-15a6-4c4d-b2f0-9b282c04ddb0.webp?v=1714720455"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b315f526a1c434165559987587dba1e9bc178f3_256db2ba-15a6-4c4d-b2f0-9b282c04ddb0.webp?v=1714720455","width":2000},{"alt":null,"id":23877014814819,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7de8b26e2366bbe625c6d94fe6f9a66d12bae503_5172c06d-9b6f-4c23-b0fe-3085ca706802.webp?v=1714720457"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7de8b26e2366bbe625c6d94fe6f9a66d12bae503_5172c06d-9b6f-4c23-b0fe-3085ca706802.webp?v=1714720457","width":2000},{"alt":null,"id":23877015371875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99b24819a5780ecbcb5e59c9fa2a7566e5761157_51a5fd4a-1396-4f4c-b295-9f8af01befcc.webp?v=1714720459"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99b24819a5780ecbcb5e59c9fa2a7566e5761157_51a5fd4a-1396-4f4c-b295-9f8af01befcc.webp?v=1714720459","width":2000},{"alt":null,"id":23877015634019,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28095dcc684b52690b8c4fe39010970a71a539a6_3c010861-29a2-4047-be43-1711d5c1af17.webp?v=1714720462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28095dcc684b52690b8c4fe39010970a71a539a6_3c010861-29a2-4047-be43-1711d5c1af17.webp?v=1714720462","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41884764930147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31472098410595,"product_id":7408373301347,"position":6,"created_at":"2024-05-03T15:14:13+08:00","updated_at":"2024-05-03T15:14:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed8b6af5e0b9bd0fec197966b915b4a021dd5173_f72c541f-8ec4-4cc2-b340-66cc6a0db39c.webp?v=1714720453","variant_ids":[41884764930147]},"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-PB64","featured_media":{"alt":null,"id":23877013799011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed8b6af5e0b9bd0fec197966b915b4a021dd5173_f72c541f-8ec4-4cc2-b340-66cc6a0db39c.webp?v=1714720453"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41884764930147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31472098410595,"product_id":7408373301347,"position":6,"created_at":"2024-05-03T15:14:13+08:00","updated_at":"2024-05-03T15:14:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed8b6af5e0b9bd0fec197966b915b4a021dd5173_f72c541f-8ec4-4cc2-b340-66cc6a0db39c.webp?v=1714720453","variant_ids":[41884764930147]},"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-PB64","featured_media":{"alt":null,"id":23877013799011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed8b6af5e0b9bd0fec197966b915b4a021dd5173_f72c541f-8ec4-4cc2-b340-66cc6a0db39c.webp?v=1714720453"}},"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: "停產" }