$product = {"id":7408443752547,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern","handle":"iphone-12-pro-max-mod-nx-printable-pc03","description":null,"published_at":"2024-06-11T16:37:22+08:00","created_at":"2024-05-03T15:27:32+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":41885539631203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31472293675107,"product_id":7408443752547,"position":4,"created_at":"2024-05-03T15:27:41+08:00","updated_at":"2024-05-03T15:27:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0892805c2ff2fab7d36ed94cb52805c4534f0863_b64f03e8-9d71-4198-bf29-bad0f4e33244.webp?v=1714721261","variant_ids":[41885539631203]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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-PC03","featured_media":{"alt":null,"id":23877210013795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0892805c2ff2fab7d36ed94cb52805c4534f0863_b64f03e8-9d71-4198-bf29-bad0f4e33244.webp?v=1714721261"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5f9766833707a03bb508f41eba0972bb931e5f5_08e6d9ae-ded8-4f7f-b3f0-d842c67e4695.webp?v=1714721254","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d95130320a6c0ec3e2aa668d4713d4922527ec5_1ecdbd69-5af3-4773-9a43-1c82a7eaa066.webp?v=1714721256","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcf0ae7e1bf222eced7f2c91494edf130e79167_12763282-91a5-479c-98b7-d295718cf8b4.webp?v=1714721259","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0892805c2ff2fab7d36ed94cb52805c4534f0863_b64f03e8-9d71-4198-bf29-bad0f4e33244.webp?v=1714721261","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf117c3d26017e66a22d2987164bfde0bc67383b_fca81b53-f3cf-421e-8c31-f9b8ed1257e7.webp?v=1714721263","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fad0eedf5c03f64bc5f8dfdc614a86ee258444b_2bb20ef3-3bf0-4649-9ec2-8c628880b1d3.webp?v=1714721266","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ade13fd122c5a2380f0ef5565994ea392f0b281e_e60cbbd1-cab8-4a11-8732-0911be502c88.webp?v=1714721268","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/149788a300fdf707778301f20f76272c49cf04d5_f7109f14-531c-4e57-8bac-55f97b007e76.webp?v=1714721270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4932dbb00b68bcea18951b9e54a975720d499c2_54e49a60-9ca2-43c0-8ae0-0c80c180d207.webp?v=1714721273","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b9c2fa1f605ed1e028d92ab4759ac83cb169485_a444cf98-1402-40df-a291-ad7345a543f1.webp?v=1714721275"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5f9766833707a03bb508f41eba0972bb931e5f5_08e6d9ae-ded8-4f7f-b3f0-d842c67e4695.webp?v=1714721254","options":["color"],"media":[{"alt":null,"id":23877208834147,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5f9766833707a03bb508f41eba0972bb931e5f5_08e6d9ae-ded8-4f7f-b3f0-d842c67e4695.webp?v=1714721254"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5f9766833707a03bb508f41eba0972bb931e5f5_08e6d9ae-ded8-4f7f-b3f0-d842c67e4695.webp?v=1714721254","width":2000},{"alt":null,"id":23877209161827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d95130320a6c0ec3e2aa668d4713d4922527ec5_1ecdbd69-5af3-4773-9a43-1c82a7eaa066.webp?v=1714721256"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d95130320a6c0ec3e2aa668d4713d4922527ec5_1ecdbd69-5af3-4773-9a43-1c82a7eaa066.webp?v=1714721256","width":2000},{"alt":null,"id":23877209653347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcf0ae7e1bf222eced7f2c91494edf130e79167_12763282-91a5-479c-98b7-d295718cf8b4.webp?v=1714721259"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcf0ae7e1bf222eced7f2c91494edf130e79167_12763282-91a5-479c-98b7-d295718cf8b4.webp?v=1714721259","width":2000},{"alt":null,"id":23877210013795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0892805c2ff2fab7d36ed94cb52805c4534f0863_b64f03e8-9d71-4198-bf29-bad0f4e33244.webp?v=1714721261"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0892805c2ff2fab7d36ed94cb52805c4534f0863_b64f03e8-9d71-4198-bf29-bad0f4e33244.webp?v=1714721261","width":2000},{"alt":null,"id":23877210472547,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf117c3d26017e66a22d2987164bfde0bc67383b_fca81b53-f3cf-421e-8c31-f9b8ed1257e7.webp?v=1714721263"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf117c3d26017e66a22d2987164bfde0bc67383b_fca81b53-f3cf-421e-8c31-f9b8ed1257e7.webp?v=1714721263","width":2000},{"alt":null,"id":23877210832995,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fad0eedf5c03f64bc5f8dfdc614a86ee258444b_2bb20ef3-3bf0-4649-9ec2-8c628880b1d3.webp?v=1714721266"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fad0eedf5c03f64bc5f8dfdc614a86ee258444b_2bb20ef3-3bf0-4649-9ec2-8c628880b1d3.webp?v=1714721266","width":2000},{"alt":null,"id":23877211324515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ade13fd122c5a2380f0ef5565994ea392f0b281e_e60cbbd1-cab8-4a11-8732-0911be502c88.webp?v=1714721268"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ade13fd122c5a2380f0ef5565994ea392f0b281e_e60cbbd1-cab8-4a11-8732-0911be502c88.webp?v=1714721268","width":2000},{"alt":null,"id":23877211848803,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/149788a300fdf707778301f20f76272c49cf04d5_f7109f14-531c-4e57-8bac-55f97b007e76.webp?v=1714721270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/149788a300fdf707778301f20f76272c49cf04d5_f7109f14-531c-4e57-8bac-55f97b007e76.webp?v=1714721270","width":2000},{"alt":null,"id":23877212307555,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4932dbb00b68bcea18951b9e54a975720d499c2_54e49a60-9ca2-43c0-8ae0-0c80c180d207.webp?v=1714721273"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4932dbb00b68bcea18951b9e54a975720d499c2_54e49a60-9ca2-43c0-8ae0-0c80c180d207.webp?v=1714721273","width":2000},{"alt":null,"id":23877212766307,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b9c2fa1f605ed1e028d92ab4759ac83cb169485_a444cf98-1402-40df-a291-ad7345a543f1.webp?v=1714721275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b9c2fa1f605ed1e028d92ab4759ac83cb169485_a444cf98-1402-40df-a291-ad7345a543f1.webp?v=1714721275","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885539631203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31472293675107,"product_id":7408443752547,"position":4,"created_at":"2024-05-03T15:27:41+08:00","updated_at":"2024-05-03T15:27:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0892805c2ff2fab7d36ed94cb52805c4534f0863_b64f03e8-9d71-4198-bf29-bad0f4e33244.webp?v=1714721261","variant_ids":[41885539631203]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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-PC03","featured_media":{"alt":null,"id":23877210013795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0892805c2ff2fab7d36ed94cb52805c4534f0863_b64f03e8-9d71-4198-bf29-bad0f4e33244.webp?v=1714721261"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885539631203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31472293675107,"product_id":7408443752547,"position":4,"created_at":"2024-05-03T15:27:41+08:00","updated_at":"2024-05-03T15:27:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0892805c2ff2fab7d36ed94cb52805c4534f0863_b64f03e8-9d71-4198-bf29-bad0f4e33244.webp?v=1714721261","variant_ids":[41885539631203]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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-PC03","featured_media":{"alt":null,"id":23877210013795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0892805c2ff2fab7d36ed94cb52805c4534f0863_b64f03e8-9d71-4198-bf29-bad0f4e33244.webp?v=1714721261"}},"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: "停產" }