$product = {"id":7416353914979,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列","handle":"iphone-8-mod-nx-printable-pb54","description":null,"published_at":"2024-06-11T16:56:45+08:00","created_at":"2024-05-06T14:40:36+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 8","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":41918825496675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31491921346659,"product_id":7416353914979,"position":6,"created_at":"2024-05-06T14:40:50+08:00","updated_at":"2024-05-06T14:40:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6ed93663137acdc1c29b584d4fd7486831d79a_dbbfc3e8-4cc2-4a8b-89b4-928469c19a36.webp?v=1714977650","variant_ids":[41918825496675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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":"NPB0105424-PB54","featured_media":{"alt":null,"id":23897334284387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6ed93663137acdc1c29b584d4fd7486831d79a_dbbfc3e8-4cc2-4a8b-89b4-928469c19a36.webp?v=1714977650"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd2f7d276db451255dedb32273b8b23de85100b9_6fdb5a18-ebfd-48ff-af1c-ea1b7fa62033.webp?v=1714977639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e032abb17bf81cd3d821e5e0c369d9d936bfb7_b68c3a9b-4d84-4bd5-95de-d131aac7df23.webp?v=1714977641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fc17dda40651304a5e047b1ec75a037c56597d1_7d68be09-9df3-417d-8310-3937fab8af03.webp?v=1714977643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11d9fb27baee989e30415a96b1c22dd6c7bf9f8c_e1003d23-a15e-4250-9c56-fa2b7d158ca8.webp?v=1714977646","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/020a3153b10db80da1842e777200ba71b55a3981_610ffa87-556d-4cba-86aa-a7e396f73057.webp?v=1714977648","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6ed93663137acdc1c29b584d4fd7486831d79a_dbbfc3e8-4cc2-4a8b-89b4-928469c19a36.webp?v=1714977650","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2c4b4968c77e3e19696c889e4e5a2147726da9a_c5d9498f-70a5-4aa1-a85a-86e0d4530bb6.webp?v=1714977652","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd5702c8e8730c45323b7581ecf040cbc15d600_1ece271f-1fcb-4183-96b4-6838c81ed1cb.webp?v=1714977655","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cfccbb0ac3e9e6e90b8e2d7d40daa417f400c63_582755b9-ef9d-4828-b04d-5cce0123389b.webp?v=1714977659"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd2f7d276db451255dedb32273b8b23de85100b9_6fdb5a18-ebfd-48ff-af1c-ea1b7fa62033.webp?v=1714977639","options":["color"],"media":[{"alt":null,"id":23897332220003,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd2f7d276db451255dedb32273b8b23de85100b9_6fdb5a18-ebfd-48ff-af1c-ea1b7fa62033.webp?v=1714977639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd2f7d276db451255dedb32273b8b23de85100b9_6fdb5a18-ebfd-48ff-af1c-ea1b7fa62033.webp?v=1714977639","width":2000},{"alt":null,"id":23897332744291,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e032abb17bf81cd3d821e5e0c369d9d936bfb7_b68c3a9b-4d84-4bd5-95de-d131aac7df23.webp?v=1714977641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e032abb17bf81cd3d821e5e0c369d9d936bfb7_b68c3a9b-4d84-4bd5-95de-d131aac7df23.webp?v=1714977641","width":2000},{"alt":null,"id":23897333071971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fc17dda40651304a5e047b1ec75a037c56597d1_7d68be09-9df3-417d-8310-3937fab8af03.webp?v=1714977643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fc17dda40651304a5e047b1ec75a037c56597d1_7d68be09-9df3-417d-8310-3937fab8af03.webp?v=1714977643","width":2000},{"alt":null,"id":23897333563491,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11d9fb27baee989e30415a96b1c22dd6c7bf9f8c_e1003d23-a15e-4250-9c56-fa2b7d158ca8.webp?v=1714977646"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11d9fb27baee989e30415a96b1c22dd6c7bf9f8c_e1003d23-a15e-4250-9c56-fa2b7d158ca8.webp?v=1714977646","width":2000},{"alt":null,"id":23897333891171,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/020a3153b10db80da1842e777200ba71b55a3981_610ffa87-556d-4cba-86aa-a7e396f73057.webp?v=1714977648"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/020a3153b10db80da1842e777200ba71b55a3981_610ffa87-556d-4cba-86aa-a7e396f73057.webp?v=1714977648","width":2000},{"alt":null,"id":23897334284387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6ed93663137acdc1c29b584d4fd7486831d79a_dbbfc3e8-4cc2-4a8b-89b4-928469c19a36.webp?v=1714977650"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6ed93663137acdc1c29b584d4fd7486831d79a_dbbfc3e8-4cc2-4a8b-89b4-928469c19a36.webp?v=1714977650","width":2000},{"alt":null,"id":23897334710371,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2c4b4968c77e3e19696c889e4e5a2147726da9a_c5d9498f-70a5-4aa1-a85a-86e0d4530bb6.webp?v=1714977652"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2c4b4968c77e3e19696c889e4e5a2147726da9a_c5d9498f-70a5-4aa1-a85a-86e0d4530bb6.webp?v=1714977652","width":2000},{"alt":null,"id":23897335169123,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd5702c8e8730c45323b7581ecf040cbc15d600_1ece271f-1fcb-4183-96b4-6838c81ed1cb.webp?v=1714977655"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd5702c8e8730c45323b7581ecf040cbc15d600_1ece271f-1fcb-4183-96b4-6838c81ed1cb.webp?v=1714977655","width":2000},{"alt":null,"id":23897336086627,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cfccbb0ac3e9e6e90b8e2d7d40daa417f400c63_582755b9-ef9d-4828-b04d-5cce0123389b.webp?v=1714977659"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cfccbb0ac3e9e6e90b8e2d7d40daa417f400c63_582755b9-ef9d-4828-b04d-5cce0123389b.webp?v=1714977659","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918825496675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31491921346659,"product_id":7416353914979,"position":6,"created_at":"2024-05-06T14:40:50+08:00","updated_at":"2024-05-06T14:40:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6ed93663137acdc1c29b584d4fd7486831d79a_dbbfc3e8-4cc2-4a8b-89b4-928469c19a36.webp?v=1714977650","variant_ids":[41918825496675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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":"NPB0105424-PB54","featured_media":{"alt":null,"id":23897334284387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6ed93663137acdc1c29b584d4fd7486831d79a_dbbfc3e8-4cc2-4a8b-89b4-928469c19a36.webp?v=1714977650"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918825496675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31491921346659,"product_id":7416353914979,"position":6,"created_at":"2024-05-06T14:40:50+08:00","updated_at":"2024-05-06T14:40:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6ed93663137acdc1c29b584d4fd7486831d79a_dbbfc3e8-4cc2-4a8b-89b4-928469c19a36.webp?v=1714977650","variant_ids":[41918825496675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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":"NPB0105424-PB54","featured_media":{"alt":null,"id":23897334284387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6ed93663137acdc1c29b584d4fd7486831d79a_dbbfc3e8-4cc2-4a8b-89b4-928469c19a36.webp?v=1714977650"}},"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: "停產" }