$product = {"id":7407738880099,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-大臉系列","handle":"iphone-14-plus-mod-nx-printable-pb78","description":null,"published_at":"2024-06-11T16:22:36+08:00","created_at":"2024-05-03T10:46:37+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 14 Plus","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":41878260416611,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31470296891491,"product_id":7407738880099,"position":1,"created_at":"2024-05-03T10:46:40+08:00","updated_at":"2024-05-03T10:46:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91c43ea76fbb086c92dfb8367b857a38daaaf8c_440f54f4-3053-4f93-b936-438ffc06b23b.webp?v=1714704400","variant_ids":[41878260416611]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-大臉系列 - 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":"NPB0126124-PB78","featured_media":{"alt":null,"id":23875200024675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91c43ea76fbb086c92dfb8367b857a38daaaf8c_440f54f4-3053-4f93-b936-438ffc06b23b.webp?v=1714704400"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91c43ea76fbb086c92dfb8367b857a38daaaf8c_440f54f4-3053-4f93-b936-438ffc06b23b.webp?v=1714704400","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e875403a72e9ed8fa17a92c28e399891b34f9f2d_773fff64-8905-480b-8218-46547ba4fd28.webp?v=1714704402","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0cffdde5842c84db2c4a4e9e5a52976c98a73e8_f14bf16d-ec78-48e2-9d53-19e817d71be3.webp?v=1714704404","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1283c2ab6a155e67ee9e34315a2192af5f19da6_74693c26-3f90-4e8e-9816-65eba2eb1b13.webp?v=1714704407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ac514e6176833d993aef5e0edbfb0d2b8e5af07_254a8f72-63c5-4add-8785-02311e91f57a.webp?v=1714704410","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d57f55c41705c571e4fb4a7b14a06dfddd91bae_148207fd-c8ed-41a8-9764-966abd7f6aa0.webp?v=1714704412","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dde63e653c90517f618e8ab799481fe4018e82cd_1e368c72-4553-412c-9cb0-de77b8a99c2a.webp?v=1714704415","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8031e571cd7c8615b7c14127ed316e4f0e6cbb70_12d02d89-768b-4878-9221-52068887bc8d.webp?v=1714704418","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a23d4ad91f85a6e1d0a40ca401bfef35e039b754_55d0160d-b1fd-48eb-8e56-60f7de359a59.webp?v=1714704420","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b10ffcfddbda52bd746e2eb5abda010799df8a83_7360dfe5-1e65-471a-a304-492b43c9ab5c.webp?v=1714704423"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91c43ea76fbb086c92dfb8367b857a38daaaf8c_440f54f4-3053-4f93-b936-438ffc06b23b.webp?v=1714704400","options":["color"],"media":[{"alt":null,"id":23875200024675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91c43ea76fbb086c92dfb8367b857a38daaaf8c_440f54f4-3053-4f93-b936-438ffc06b23b.webp?v=1714704400"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91c43ea76fbb086c92dfb8367b857a38daaaf8c_440f54f4-3053-4f93-b936-438ffc06b23b.webp?v=1714704400","width":2000},{"alt":null,"id":23875200483427,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e875403a72e9ed8fa17a92c28e399891b34f9f2d_773fff64-8905-480b-8218-46547ba4fd28.webp?v=1714704402"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e875403a72e9ed8fa17a92c28e399891b34f9f2d_773fff64-8905-480b-8218-46547ba4fd28.webp?v=1714704402","width":2000},{"alt":null,"id":23875201269859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0cffdde5842c84db2c4a4e9e5a52976c98a73e8_f14bf16d-ec78-48e2-9d53-19e817d71be3.webp?v=1714704404"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0cffdde5842c84db2c4a4e9e5a52976c98a73e8_f14bf16d-ec78-48e2-9d53-19e817d71be3.webp?v=1714704404","width":2000},{"alt":null,"id":23875201859683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1283c2ab6a155e67ee9e34315a2192af5f19da6_74693c26-3f90-4e8e-9816-65eba2eb1b13.webp?v=1714704407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1283c2ab6a155e67ee9e34315a2192af5f19da6_74693c26-3f90-4e8e-9816-65eba2eb1b13.webp?v=1714704407","width":2000},{"alt":null,"id":23875202515043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ac514e6176833d993aef5e0edbfb0d2b8e5af07_254a8f72-63c5-4add-8785-02311e91f57a.webp?v=1714704410"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ac514e6176833d993aef5e0edbfb0d2b8e5af07_254a8f72-63c5-4add-8785-02311e91f57a.webp?v=1714704410","width":2000},{"alt":null,"id":23875203039331,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d57f55c41705c571e4fb4a7b14a06dfddd91bae_148207fd-c8ed-41a8-9764-966abd7f6aa0.webp?v=1714704412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d57f55c41705c571e4fb4a7b14a06dfddd91bae_148207fd-c8ed-41a8-9764-966abd7f6aa0.webp?v=1714704412","width":2000},{"alt":null,"id":23875203989603,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dde63e653c90517f618e8ab799481fe4018e82cd_1e368c72-4553-412c-9cb0-de77b8a99c2a.webp?v=1714704415"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dde63e653c90517f618e8ab799481fe4018e82cd_1e368c72-4553-412c-9cb0-de77b8a99c2a.webp?v=1714704415","width":2000},{"alt":null,"id":23875205365859,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8031e571cd7c8615b7c14127ed316e4f0e6cbb70_12d02d89-768b-4878-9221-52068887bc8d.webp?v=1714704418"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8031e571cd7c8615b7c14127ed316e4f0e6cbb70_12d02d89-768b-4878-9221-52068887bc8d.webp?v=1714704418","width":2000},{"alt":null,"id":23875205759075,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a23d4ad91f85a6e1d0a40ca401bfef35e039b754_55d0160d-b1fd-48eb-8e56-60f7de359a59.webp?v=1714704420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a23d4ad91f85a6e1d0a40ca401bfef35e039b754_55d0160d-b1fd-48eb-8e56-60f7de359a59.webp?v=1714704420","width":2000},{"alt":null,"id":23875206905955,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b10ffcfddbda52bd746e2eb5abda010799df8a83_7360dfe5-1e65-471a-a304-492b43c9ab5c.webp?v=1714704423"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b10ffcfddbda52bd746e2eb5abda010799df8a83_7360dfe5-1e65-471a-a304-492b43c9ab5c.webp?v=1714704423","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41878260416611,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31470296891491,"product_id":7407738880099,"position":1,"created_at":"2024-05-03T10:46:40+08:00","updated_at":"2024-05-03T10:46:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91c43ea76fbb086c92dfb8367b857a38daaaf8c_440f54f4-3053-4f93-b936-438ffc06b23b.webp?v=1714704400","variant_ids":[41878260416611]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-大臉系列 - 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":"NPB0126124-PB78","featured_media":{"alt":null,"id":23875200024675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91c43ea76fbb086c92dfb8367b857a38daaaf8c_440f54f4-3053-4f93-b936-438ffc06b23b.webp?v=1714704400"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41878260416611,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31470296891491,"product_id":7407738880099,"position":1,"created_at":"2024-05-03T10:46:40+08:00","updated_at":"2024-05-03T10:46:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91c43ea76fbb086c92dfb8367b857a38daaaf8c_440f54f4-3053-4f93-b936-438ffc06b23b.webp?v=1714704400","variant_ids":[41878260416611]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-大臉系列 - 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":"NPB0126124-PB78","featured_media":{"alt":null,"id":23875200024675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91c43ea76fbb086c92dfb8367b857a38daaaf8c_440f54f4-3053-4f93-b936-438ffc06b23b.webp?v=1714704400"}},"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: "停產" }