$product = {"id":7416003199075,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列","handle":"iphone-xs-max-mod-nx-printable-pb49","description":null,"published_at":"2024-06-11T16:50:09+08:00","created_at":"2024-05-06T12:40:28+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 XS 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":41916402565219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31490964357219,"product_id":7416003199075,"position":8,"created_at":"2024-05-06T12:40:51+08:00","updated_at":"2024-05-06T12:40:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/045511d1c18019c57946a4fe10adc92dfb0e884c_93f9b833-ad3e-4a80-ae68-ef361c100e57.webp?v=1714970451","variant_ids":[41916402565219]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0108624-PB49","featured_media":{"alt":null,"id":23896371462243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/045511d1c18019c57946a4fe10adc92dfb0e884c_93f9b833-ad3e-4a80-ae68-ef361c100e57.webp?v=1714970451"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99bb416b81c84b80f1bcef1125b33e7f331bc9b7_c755ca83-64b5-465a-9581-61ed7b75ec86.webp?v=1714970431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5657a8d65b5d6cee508615edac0b6d6dcd8d7ce6_778d0fe9-f271-4f2c-b51a-41e8ff8516ca.webp?v=1714970433","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94a4c26710c3db7a3655a10e8e2515697aba01eb_8ff5a13e-d34c-48b1-906a-6d8a569c703e.webp?v=1714970438","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d72a269a141a46cbcc428741b27b0437f83a340_00ab16b9-e8f1-4783-8e8b-acf037bd33f3.webp?v=1714970441","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7328acfd8cc06eb071a4fbbb2dd1bb731eaf1b8_ef2ea297-f8a8-4e6f-b524-0166bf277e6f.webp?v=1714970443","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff14ccc06fed18a7fde5c4d063d8a7e308d03b3f_27a5dc6e-62b1-49be-9e3d-b264567f79f7.webp?v=1714970446","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/802a07bba137ac555e7f92b0e08863af0bbf7a88_9ed5dfe4-e265-4197-9da7-bdd6fcad4840.webp?v=1714970448","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/045511d1c18019c57946a4fe10adc92dfb0e884c_93f9b833-ad3e-4a80-ae68-ef361c100e57.webp?v=1714970451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd0b226ada9cb88e4df643fe2f415fffe330a28_bc3fea94-fd78-4703-857e-0466b199b6a7.webp?v=1714970453"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99bb416b81c84b80f1bcef1125b33e7f331bc9b7_c755ca83-64b5-465a-9581-61ed7b75ec86.webp?v=1714970431","options":["color"],"media":[{"alt":null,"id":23896366547043,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99bb416b81c84b80f1bcef1125b33e7f331bc9b7_c755ca83-64b5-465a-9581-61ed7b75ec86.webp?v=1714970431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99bb416b81c84b80f1bcef1125b33e7f331bc9b7_c755ca83-64b5-465a-9581-61ed7b75ec86.webp?v=1714970431","width":2000},{"alt":null,"id":23896367005795,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5657a8d65b5d6cee508615edac0b6d6dcd8d7ce6_778d0fe9-f271-4f2c-b51a-41e8ff8516ca.webp?v=1714970433"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5657a8d65b5d6cee508615edac0b6d6dcd8d7ce6_778d0fe9-f271-4f2c-b51a-41e8ff8516ca.webp?v=1714970433","width":2000},{"alt":null,"id":23896368087139,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94a4c26710c3db7a3655a10e8e2515697aba01eb_8ff5a13e-d34c-48b1-906a-6d8a569c703e.webp?v=1714970438"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94a4c26710c3db7a3655a10e8e2515697aba01eb_8ff5a13e-d34c-48b1-906a-6d8a569c703e.webp?v=1714970438","width":2000},{"alt":null,"id":23896368939107,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d72a269a141a46cbcc428741b27b0437f83a340_00ab16b9-e8f1-4783-8e8b-acf037bd33f3.webp?v=1714970441"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d72a269a141a46cbcc428741b27b0437f83a340_00ab16b9-e8f1-4783-8e8b-acf037bd33f3.webp?v=1714970441","width":2000},{"alt":null,"id":23896369725539,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7328acfd8cc06eb071a4fbbb2dd1bb731eaf1b8_ef2ea297-f8a8-4e6f-b524-0166bf277e6f.webp?v=1714970443"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7328acfd8cc06eb071a4fbbb2dd1bb731eaf1b8_ef2ea297-f8a8-4e6f-b524-0166bf277e6f.webp?v=1714970443","width":2000},{"alt":null,"id":23896370413667,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff14ccc06fed18a7fde5c4d063d8a7e308d03b3f_27a5dc6e-62b1-49be-9e3d-b264567f79f7.webp?v=1714970446"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff14ccc06fed18a7fde5c4d063d8a7e308d03b3f_27a5dc6e-62b1-49be-9e3d-b264567f79f7.webp?v=1714970446","width":2000},{"alt":null,"id":23896370970723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/802a07bba137ac555e7f92b0e08863af0bbf7a88_9ed5dfe4-e265-4197-9da7-bdd6fcad4840.webp?v=1714970448"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/802a07bba137ac555e7f92b0e08863af0bbf7a88_9ed5dfe4-e265-4197-9da7-bdd6fcad4840.webp?v=1714970448","width":2000},{"alt":null,"id":23896371462243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/045511d1c18019c57946a4fe10adc92dfb0e884c_93f9b833-ad3e-4a80-ae68-ef361c100e57.webp?v=1714970451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/045511d1c18019c57946a4fe10adc92dfb0e884c_93f9b833-ad3e-4a80-ae68-ef361c100e57.webp?v=1714970451","width":2000},{"alt":null,"id":23896372117603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd0b226ada9cb88e4df643fe2f415fffe330a28_bc3fea94-fd78-4703-857e-0466b199b6a7.webp?v=1714970453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd0b226ada9cb88e4df643fe2f415fffe330a28_bc3fea94-fd78-4703-857e-0466b199b6a7.webp?v=1714970453","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41916402565219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31490964357219,"product_id":7416003199075,"position":8,"created_at":"2024-05-06T12:40:51+08:00","updated_at":"2024-05-06T12:40:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/045511d1c18019c57946a4fe10adc92dfb0e884c_93f9b833-ad3e-4a80-ae68-ef361c100e57.webp?v=1714970451","variant_ids":[41916402565219]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0108624-PB49","featured_media":{"alt":null,"id":23896371462243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/045511d1c18019c57946a4fe10adc92dfb0e884c_93f9b833-ad3e-4a80-ae68-ef361c100e57.webp?v=1714970451"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41916402565219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31490964357219,"product_id":7416003199075,"position":8,"created_at":"2024-05-06T12:40:51+08:00","updated_at":"2024-05-06T12:40:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/045511d1c18019c57946a4fe10adc92dfb0e884c_93f9b833-ad3e-4a80-ae68-ef361c100e57.webp?v=1714970451","variant_ids":[41916402565219]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0108624-PB49","featured_media":{"alt":null,"id":23896371462243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/045511d1c18019c57946a4fe10adc92dfb0e884c_93f9b833-ad3e-4a80-ae68-ef361c100e57.webp?v=1714970451"}},"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: "停產" }