$product = {"id":7416379506787,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅","handle":"iphone-8-mod-nx-printable-pb33","description":null,"published_at":"2024-06-11T16:57:28+08:00","created_at":"2024-05-06T14:45:35+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":41919102255203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31491983310947,"product_id":7416379506787,"position":4,"created_at":"2024-05-06T14:45:45+08:00","updated_at":"2024-05-06T14:45:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e46e3045be9e1302905c8b65aa6286a69364c2_ecef92e3-91f5-440c-ab9c-a48e72f6b8ca.webp?v=1714977945","variant_ids":[41919102255203]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23897396772963,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e46e3045be9e1302905c8b65aa6286a69364c2_ecef92e3-91f5-440c-ab9c-a48e72f6b8ca.webp?v=1714977945"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3effc998166bc2102c4d56dbaac12d83fb046cd8_37370fe3-b063-4f75-bac9-073050d3f258.webp?v=1714977938","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f05ebb1fe62c0b7c5b89832bdf666fc2d7e93e0_c19bde1b-f70c-4d3d-9725-1720988e7d71.webp?v=1714977940","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2537c8aaed18f72e537776ab94c26af3815e9cca_d1fba47d-c9ec-481a-88cb-62800c1bf7af.webp?v=1714977943","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e46e3045be9e1302905c8b65aa6286a69364c2_ecef92e3-91f5-440c-ab9c-a48e72f6b8ca.webp?v=1714977945","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98160ebb8b7cfcfec1be7fad6363e0dccc540bad_c0ebc1cf-ba69-4fed-b78a-18c355d34a81.webp?v=1714977947","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73f6769bffd8a90159cc98f4782249d4dd8a5aba_c5b12623-1e66-4237-9ae4-129af10e3949.webp?v=1714977950","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e5b17ec64b205b2c0eed52342d1a86aee946092_e07d1a61-083d-4de2-9b75-6ab64fbf6513.webp?v=1714977952","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8506cd526f4eb1e90871ab674f607323fd7014e8_9cdb607b-4a38-4e1b-a1d7-7e6defc095c9.webp?v=1714977955","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c0541295b2f4fa0ce0606a1db95049d7e5a30db_7b819e0f-c23e-48e4-857d-34a71f15ffaa.webp?v=1714977957","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91b6d088d855de09c98e528ee55ff80ac35a7b41_d50c7d72-eb66-42d8-8212-57dfe5a7384e.webp?v=1714977960"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3effc998166bc2102c4d56dbaac12d83fb046cd8_37370fe3-b063-4f75-bac9-073050d3f258.webp?v=1714977938","options":["color"],"media":[{"alt":null,"id":23897395101795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3effc998166bc2102c4d56dbaac12d83fb046cd8_37370fe3-b063-4f75-bac9-073050d3f258.webp?v=1714977938"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3effc998166bc2102c4d56dbaac12d83fb046cd8_37370fe3-b063-4f75-bac9-073050d3f258.webp?v=1714977938","width":2000},{"alt":null,"id":23897395757155,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f05ebb1fe62c0b7c5b89832bdf666fc2d7e93e0_c19bde1b-f70c-4d3d-9725-1720988e7d71.webp?v=1714977940"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f05ebb1fe62c0b7c5b89832bdf666fc2d7e93e0_c19bde1b-f70c-4d3d-9725-1720988e7d71.webp?v=1714977940","width":2000},{"alt":null,"id":23897396314211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2537c8aaed18f72e537776ab94c26af3815e9cca_d1fba47d-c9ec-481a-88cb-62800c1bf7af.webp?v=1714977943"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2537c8aaed18f72e537776ab94c26af3815e9cca_d1fba47d-c9ec-481a-88cb-62800c1bf7af.webp?v=1714977943","width":2000},{"alt":null,"id":23897396772963,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e46e3045be9e1302905c8b65aa6286a69364c2_ecef92e3-91f5-440c-ab9c-a48e72f6b8ca.webp?v=1714977945"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e46e3045be9e1302905c8b65aa6286a69364c2_ecef92e3-91f5-440c-ab9c-a48e72f6b8ca.webp?v=1714977945","width":2000},{"alt":null,"id":23897397330019,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98160ebb8b7cfcfec1be7fad6363e0dccc540bad_c0ebc1cf-ba69-4fed-b78a-18c355d34a81.webp?v=1714977947"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98160ebb8b7cfcfec1be7fad6363e0dccc540bad_c0ebc1cf-ba69-4fed-b78a-18c355d34a81.webp?v=1714977947","width":2000},{"alt":null,"id":23897397821539,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73f6769bffd8a90159cc98f4782249d4dd8a5aba_c5b12623-1e66-4237-9ae4-129af10e3949.webp?v=1714977950"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73f6769bffd8a90159cc98f4782249d4dd8a5aba_c5b12623-1e66-4237-9ae4-129af10e3949.webp?v=1714977950","width":2000},{"alt":null,"id":23897398509667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e5b17ec64b205b2c0eed52342d1a86aee946092_e07d1a61-083d-4de2-9b75-6ab64fbf6513.webp?v=1714977952"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e5b17ec64b205b2c0eed52342d1a86aee946092_e07d1a61-083d-4de2-9b75-6ab64fbf6513.webp?v=1714977952","width":2000},{"alt":null,"id":23897398968419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8506cd526f4eb1e90871ab674f607323fd7014e8_9cdb607b-4a38-4e1b-a1d7-7e6defc095c9.webp?v=1714977955"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8506cd526f4eb1e90871ab674f607323fd7014e8_9cdb607b-4a38-4e1b-a1d7-7e6defc095c9.webp?v=1714977955","width":2000},{"alt":null,"id":23897399492707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c0541295b2f4fa0ce0606a1db95049d7e5a30db_7b819e0f-c23e-48e4-857d-34a71f15ffaa.webp?v=1714977957"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c0541295b2f4fa0ce0606a1db95049d7e5a30db_7b819e0f-c23e-48e4-857d-34a71f15ffaa.webp?v=1714977957","width":2000},{"alt":null,"id":23897400082531,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91b6d088d855de09c98e528ee55ff80ac35a7b41_d50c7d72-eb66-42d8-8212-57dfe5a7384e.webp?v=1714977960"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91b6d088d855de09c98e528ee55ff80ac35a7b41_d50c7d72-eb66-42d8-8212-57dfe5a7384e.webp?v=1714977960","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919102255203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31491983310947,"product_id":7416379506787,"position":4,"created_at":"2024-05-06T14:45:45+08:00","updated_at":"2024-05-06T14:45:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e46e3045be9e1302905c8b65aa6286a69364c2_ecef92e3-91f5-440c-ab9c-a48e72f6b8ca.webp?v=1714977945","variant_ids":[41919102255203]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23897396772963,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e46e3045be9e1302905c8b65aa6286a69364c2_ecef92e3-91f5-440c-ab9c-a48e72f6b8ca.webp?v=1714977945"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919102255203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31491983310947,"product_id":7416379506787,"position":4,"created_at":"2024-05-06T14:45:45+08:00","updated_at":"2024-05-06T14:45:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e46e3045be9e1302905c8b65aa6286a69364c2_ecef92e3-91f5-440c-ab9c-a48e72f6b8ca.webp?v=1714977945","variant_ids":[41919102255203]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23897396772963,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e46e3045be9e1302905c8b65aa6286a69364c2_ecef92e3-91f5-440c-ab9c-a48e72f6b8ca.webp?v=1714977945"}},"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: "停產" }