$product = {"id":7408104505443,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術","handle":"iphone-13-pro-max-mod-nx-printable-pb35","description":null,"published_at":"2024-06-11T16:31:30+08:00","created_at":"2024-05-03T12:00:51+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 13 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":41882725974115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31471203811427,"product_id":7408104505443,"position":4,"created_at":"2024-05-03T12:01:01+08:00","updated_at":"2024-05-03T12:01:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/132ef7f2118bef1950a7a2acbed7a8859420000f_796be3d4-cf2c-4e5d-b91c-12339debc29b.webp?v=1714708861","variant_ids":[41882725974115]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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":"NPB0123224-PB35","featured_media":{"alt":null,"id":23876109205603,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/132ef7f2118bef1950a7a2acbed7a8859420000f_796be3d4-cf2c-4e5d-b91c-12339debc29b.webp?v=1714708861"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882726269027,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31471204401251,"product_id":7408104505443,"position":5,"created_at":"2024-05-03T12:01:04+08:00","updated_at":"2024-05-03T12:01:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6b34e0ce972b1b3f601c2c36cb256783813e52_a29824cb-3246-4b52-8fa4-27b4eda62eed.webp?v=1714708864","variant_ids":[41882726269027]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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":"NPB01232J5-PB35","featured_media":{"alt":null,"id":23876109631587,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6b34e0ce972b1b3f601c2c36cb256783813e52_a29824cb-3246-4b52-8fa4-27b4eda62eed.webp?v=1714708864"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1abbd6ec6ef661899422a689052b4d77f9943ea8_82bc4455-e050-40ea-a3a7-10c3a1f0222b.webp?v=1714708854","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a8245abf42e72ef374cc13fc00e7bac2b5fbf09_4120d77e-4051-41b7-86a4-4a1e2be49cab.webp?v=1714708857","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbe7e1e8d67f035cf7e1f05945188fa613880390_e65be572-73c2-479a-bd9e-379422580034.webp?v=1714708859","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/132ef7f2118bef1950a7a2acbed7a8859420000f_796be3d4-cf2c-4e5d-b91c-12339debc29b.webp?v=1714708861","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6b34e0ce972b1b3f601c2c36cb256783813e52_a29824cb-3246-4b52-8fa4-27b4eda62eed.webp?v=1714708864","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/384dc3849d8a2fea3c2928d471a266af03cf607e_bf39f576-4219-4e50-a65b-70d84f751288.webp?v=1714708866","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f72ac8bfc93b1b4697da8314119e2f3d56be198_4eb886eb-cf54-4f1d-b44a-3834c33188e1.webp?v=1714708869","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c9910ae8b3be7c40eef33fc328f1e553e833ee8_b2d90618-3214-45eb-9260-222aac259e08.webp?v=1714708871","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce7acbfa048218b20ca5da629042d2bafdbc459e_7d467ba8-73c0-40b1-91f4-aa66e4dff1f4.webp?v=1714708873","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a263dd1e6f3fbc44aafe7dee940da3468b69a342_710611b9-e66c-432e-94a9-b09bca0ab8f6.webp?v=1714708875"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1abbd6ec6ef661899422a689052b4d77f9943ea8_82bc4455-e050-40ea-a3a7-10c3a1f0222b.webp?v=1714708854","options":["color"],"media":[{"alt":null,"id":23876107862115,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1abbd6ec6ef661899422a689052b4d77f9943ea8_82bc4455-e050-40ea-a3a7-10c3a1f0222b.webp?v=1714708854"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1abbd6ec6ef661899422a689052b4d77f9943ea8_82bc4455-e050-40ea-a3a7-10c3a1f0222b.webp?v=1714708854","width":2000},{"alt":null,"id":23876108157027,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a8245abf42e72ef374cc13fc00e7bac2b5fbf09_4120d77e-4051-41b7-86a4-4a1e2be49cab.webp?v=1714708857"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a8245abf42e72ef374cc13fc00e7bac2b5fbf09_4120d77e-4051-41b7-86a4-4a1e2be49cab.webp?v=1714708857","width":2000},{"alt":null,"id":23876108779619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbe7e1e8d67f035cf7e1f05945188fa613880390_e65be572-73c2-479a-bd9e-379422580034.webp?v=1714708859"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbe7e1e8d67f035cf7e1f05945188fa613880390_e65be572-73c2-479a-bd9e-379422580034.webp?v=1714708859","width":2000},{"alt":null,"id":23876109205603,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/132ef7f2118bef1950a7a2acbed7a8859420000f_796be3d4-cf2c-4e5d-b91c-12339debc29b.webp?v=1714708861"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/132ef7f2118bef1950a7a2acbed7a8859420000f_796be3d4-cf2c-4e5d-b91c-12339debc29b.webp?v=1714708861","width":2000},{"alt":null,"id":23876109631587,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6b34e0ce972b1b3f601c2c36cb256783813e52_a29824cb-3246-4b52-8fa4-27b4eda62eed.webp?v=1714708864"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6b34e0ce972b1b3f601c2c36cb256783813e52_a29824cb-3246-4b52-8fa4-27b4eda62eed.webp?v=1714708864","width":2000},{"alt":null,"id":23876110155875,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/384dc3849d8a2fea3c2928d471a266af03cf607e_bf39f576-4219-4e50-a65b-70d84f751288.webp?v=1714708866"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/384dc3849d8a2fea3c2928d471a266af03cf607e_bf39f576-4219-4e50-a65b-70d84f751288.webp?v=1714708866","width":2000},{"alt":null,"id":23876110549091,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f72ac8bfc93b1b4697da8314119e2f3d56be198_4eb886eb-cf54-4f1d-b44a-3834c33188e1.webp?v=1714708869"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f72ac8bfc93b1b4697da8314119e2f3d56be198_4eb886eb-cf54-4f1d-b44a-3834c33188e1.webp?v=1714708869","width":2000},{"alt":null,"id":23876111073379,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c9910ae8b3be7c40eef33fc328f1e553e833ee8_b2d90618-3214-45eb-9260-222aac259e08.webp?v=1714708871"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c9910ae8b3be7c40eef33fc328f1e553e833ee8_b2d90618-3214-45eb-9260-222aac259e08.webp?v=1714708871","width":2000},{"alt":null,"id":23876111433827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce7acbfa048218b20ca5da629042d2bafdbc459e_7d467ba8-73c0-40b1-91f4-aa66e4dff1f4.webp?v=1714708873"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce7acbfa048218b20ca5da629042d2bafdbc459e_7d467ba8-73c0-40b1-91f4-aa66e4dff1f4.webp?v=1714708873","width":2000},{"alt":null,"id":23876111892579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a263dd1e6f3fbc44aafe7dee940da3468b69a342_710611b9-e66c-432e-94a9-b09bca0ab8f6.webp?v=1714708875"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a263dd1e6f3fbc44aafe7dee940da3468b69a342_710611b9-e66c-432e-94a9-b09bca0ab8f6.webp?v=1714708875","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41882725974115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31471203811427,"product_id":7408104505443,"position":4,"created_at":"2024-05-03T12:01:01+08:00","updated_at":"2024-05-03T12:01:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/132ef7f2118bef1950a7a2acbed7a8859420000f_796be3d4-cf2c-4e5d-b91c-12339debc29b.webp?v=1714708861","variant_ids":[41882725974115]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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":"NPB0123224-PB35","featured_media":{"alt":null,"id":23876109205603,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/132ef7f2118bef1950a7a2acbed7a8859420000f_796be3d4-cf2c-4e5d-b91c-12339debc29b.webp?v=1714708861"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882726269027,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31471204401251,"product_id":7408104505443,"position":5,"created_at":"2024-05-03T12:01:04+08:00","updated_at":"2024-05-03T12:01:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6b34e0ce972b1b3f601c2c36cb256783813e52_a29824cb-3246-4b52-8fa4-27b4eda62eed.webp?v=1714708864","variant_ids":[41882726269027]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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":"NPB01232J5-PB35","featured_media":{"alt":null,"id":23876109631587,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6b34e0ce972b1b3f601c2c36cb256783813e52_a29824cb-3246-4b52-8fa4-27b4eda62eed.webp?v=1714708864"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41882725974115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31471203811427,"product_id":7408104505443,"position":4,"created_at":"2024-05-03T12:01:01+08:00","updated_at":"2024-05-03T12:01:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/132ef7f2118bef1950a7a2acbed7a8859420000f_796be3d4-cf2c-4e5d-b91c-12339debc29b.webp?v=1714708861","variant_ids":[41882725974115]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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":"NPB0123224-PB35","featured_media":{"alt":null,"id":23876109205603,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/132ef7f2118bef1950a7a2acbed7a8859420000f_796be3d4-cf2c-4e5d-b91c-12339debc29b.webp?v=1714708861"}},"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: "停產" }