$product = {"id":7408566829155,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - K2SO 1-俠盜一號","handle":"iphone-12-pro-max-mod-nx-printable-pb68","description":null,"published_at":"2024-06-11T16:40:54+08:00","created_at":"2024-05-03T15:52:31+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":41886938005603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB68","requires_shipping":true,"taxable":true,"featured_image":{"id":31472610934883,"product_id":7408566829155,"position":7,"created_at":"2024-05-03T15:52:47+08:00","updated_at":"2024-05-03T15:52:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdac587a3dfa6f62bfb6a77993e3ae53c2c4dc5a_3e171bae-3335-4661-8f4d-8d8383c0248b.webp?v=1714722767","variant_ids":[41886938005603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - K2SO 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":"NPB0118724-PB68","featured_media":{"alt":null,"id":23877528485987,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdac587a3dfa6f62bfb6a77993e3ae53c2c4dc5a_3e171bae-3335-4661-8f4d-8d8383c0248b.webp?v=1714722767"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82418bb124f80bd76264d928fd67200463d9b6f5_82bbee84-a426-4e3b-aba3-3e5b3241717c.webp?v=1714722753","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/067a8e4fb187cd419182603601622c5ba5e06be0_61da2da3-2c97-4fe2-9427-2ba370102331.webp?v=1714722756","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7d72e3d9d51f26505ce466440386f7b8b93ea2e_846e3d1f-1eed-4504-bb06-509569c60cbd.webp?v=1714722758","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eea87feb38679a655d527f36bc6106ec7086619a_3d6d466e-5b62-4e6e-b027-627ba2f4a98f.webp?v=1714722761","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/255ed7f7f5b3ff9eec032c7667d82f43c155e227_9a4f48ff-7036-486c-ad22-dbe27fd9d4df.webp?v=1714722763","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32f944d058570c80d139b6085fa67c90b4a6f2ab_5b4ec174-e7a6-443e-b02b-1b45e39e686f.webp?v=1714722765","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdac587a3dfa6f62bfb6a77993e3ae53c2c4dc5a_3e171bae-3335-4661-8f4d-8d8383c0248b.webp?v=1714722767","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3db589ee5c52151fcac2c3fda7c2a26ba662cbdc_e1fe6df9-fe33-4756-aada-1cb361557136.webp?v=1714722770","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef490a41269f50731c5d7e5c8bea4b5b88d98d30_b3d20977-10c7-4e79-8c08-dd4bdd6f73f9.webp?v=1714722772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa2473e0a8e45b53a0b62f15cf98dd60a2094f12_699a7a49-604d-42ce-9920-6c977b9711ac.webp?v=1714722774"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82418bb124f80bd76264d928fd67200463d9b6f5_82bbee84-a426-4e3b-aba3-3e5b3241717c.webp?v=1714722753","options":["color"],"media":[{"alt":null,"id":23877524619363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82418bb124f80bd76264d928fd67200463d9b6f5_82bbee84-a426-4e3b-aba3-3e5b3241717c.webp?v=1714722753"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82418bb124f80bd76264d928fd67200463d9b6f5_82bbee84-a426-4e3b-aba3-3e5b3241717c.webp?v=1714722753","width":2000},{"alt":null,"id":23877525438563,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/067a8e4fb187cd419182603601622c5ba5e06be0_61da2da3-2c97-4fe2-9427-2ba370102331.webp?v=1714722756"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/067a8e4fb187cd419182603601622c5ba5e06be0_61da2da3-2c97-4fe2-9427-2ba370102331.webp?v=1714722756","width":2000},{"alt":null,"id":23877526126691,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7d72e3d9d51f26505ce466440386f7b8b93ea2e_846e3d1f-1eed-4504-bb06-509569c60cbd.webp?v=1714722758"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7d72e3d9d51f26505ce466440386f7b8b93ea2e_846e3d1f-1eed-4504-bb06-509569c60cbd.webp?v=1714722758","width":2000},{"alt":null,"id":23877526782051,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eea87feb38679a655d527f36bc6106ec7086619a_3d6d466e-5b62-4e6e-b027-627ba2f4a98f.webp?v=1714722761"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eea87feb38679a655d527f36bc6106ec7086619a_3d6d466e-5b62-4e6e-b027-627ba2f4a98f.webp?v=1714722761","width":2000},{"alt":null,"id":23877527306339,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/255ed7f7f5b3ff9eec032c7667d82f43c155e227_9a4f48ff-7036-486c-ad22-dbe27fd9d4df.webp?v=1714722763"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/255ed7f7f5b3ff9eec032c7667d82f43c155e227_9a4f48ff-7036-486c-ad22-dbe27fd9d4df.webp?v=1714722763","width":2000},{"alt":null,"id":23877527994467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32f944d058570c80d139b6085fa67c90b4a6f2ab_5b4ec174-e7a6-443e-b02b-1b45e39e686f.webp?v=1714722765"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32f944d058570c80d139b6085fa67c90b4a6f2ab_5b4ec174-e7a6-443e-b02b-1b45e39e686f.webp?v=1714722765","width":2000},{"alt":null,"id":23877528485987,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdac587a3dfa6f62bfb6a77993e3ae53c2c4dc5a_3e171bae-3335-4661-8f4d-8d8383c0248b.webp?v=1714722767"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdac587a3dfa6f62bfb6a77993e3ae53c2c4dc5a_3e171bae-3335-4661-8f4d-8d8383c0248b.webp?v=1714722767","width":2000},{"alt":null,"id":23877528944739,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3db589ee5c52151fcac2c3fda7c2a26ba662cbdc_e1fe6df9-fe33-4756-aada-1cb361557136.webp?v=1714722770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3db589ee5c52151fcac2c3fda7c2a26ba662cbdc_e1fe6df9-fe33-4756-aada-1cb361557136.webp?v=1714722770","width":2000},{"alt":null,"id":23877529305187,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef490a41269f50731c5d7e5c8bea4b5b88d98d30_b3d20977-10c7-4e79-8c08-dd4bdd6f73f9.webp?v=1714722772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef490a41269f50731c5d7e5c8bea4b5b88d98d30_b3d20977-10c7-4e79-8c08-dd4bdd6f73f9.webp?v=1714722772","width":2000},{"alt":null,"id":23877529665635,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa2473e0a8e45b53a0b62f15cf98dd60a2094f12_699a7a49-604d-42ce-9920-6c977b9711ac.webp?v=1714722774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa2473e0a8e45b53a0b62f15cf98dd60a2094f12_699a7a49-604d-42ce-9920-6c977b9711ac.webp?v=1714722774","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886938005603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB68","requires_shipping":true,"taxable":true,"featured_image":{"id":31472610934883,"product_id":7408566829155,"position":7,"created_at":"2024-05-03T15:52:47+08:00","updated_at":"2024-05-03T15:52:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdac587a3dfa6f62bfb6a77993e3ae53c2c4dc5a_3e171bae-3335-4661-8f4d-8d8383c0248b.webp?v=1714722767","variant_ids":[41886938005603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - K2SO 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":"NPB0118724-PB68","featured_media":{"alt":null,"id":23877528485987,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdac587a3dfa6f62bfb6a77993e3ae53c2c4dc5a_3e171bae-3335-4661-8f4d-8d8383c0248b.webp?v=1714722767"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886938005603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB68","requires_shipping":true,"taxable":true,"featured_image":{"id":31472610934883,"product_id":7408566829155,"position":7,"created_at":"2024-05-03T15:52:47+08:00","updated_at":"2024-05-03T15:52:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdac587a3dfa6f62bfb6a77993e3ae53c2c4dc5a_3e171bae-3335-4661-8f4d-8d8383c0248b.webp?v=1714722767","variant_ids":[41886938005603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - K2SO 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":"NPB0118724-PB68","featured_media":{"alt":null,"id":23877528485987,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdac587a3dfa6f62bfb6a77993e3ae53c2c4dc5a_3e171bae-3335-4661-8f4d-8d8383c0248b.webp?v=1714722767"}},"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: "停產" }