$product = {"id":7415901290595,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆黑","handle":"iphone-xs-max-mod-nx-printable-pb01","description":null,"published_at":"2024-06-11T16:47:28+08:00","created_at":"2024-05-06T12:21:31+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":41915354382435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31490693496931,"product_id":7415901290595,"position":6,"created_at":"2024-05-06T12:21:45+08:00","updated_at":"2024-05-06T12:21:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56480e849519545c27955b01492b6fedc449a35c_db5bbbaa-be10-4b45-aa25-d1c4c027418d.webp?v=1714969305","variant_ids":[41915354382435]},"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-PB01","featured_media":{"alt":null,"id":23896100208739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56480e849519545c27955b01492b6fedc449a35c_db5bbbaa-be10-4b45-aa25-d1c4c027418d.webp?v=1714969305"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6cca7853e24ca7c525ab2bf4756d1c0fbc941a_7440c155-76f9-4833-b523-4a2bef555861.webp?v=1714969293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed8a7b7537b527a4074863263e7f3c2d4c4b360f_df841adf-b650-41fa-ae6a-b51e50287260.webp?v=1714969296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f240064c268355930bd4e31a5292eedf2a94fdac_9b6d36c5-d1bb-4ba6-81ad-392902b466f6.webp?v=1714969298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cfb2c86e2f7437548932e7d75cf1c816be43e1d_df7dfb04-1d6c-4ba6-946d-679fc1f6959d.webp?v=1714969301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48e251ff5ddbe5c76c4c9093535ce9844a1502b1_fd4fd351-3316-47c9-a92c-2c471d21b6bd.webp?v=1714969303","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56480e849519545c27955b01492b6fedc449a35c_db5bbbaa-be10-4b45-aa25-d1c4c027418d.webp?v=1714969305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd9c3a9444354fc75be11baac6f6d8521082e25_117b12a0-bbcf-4202-927e-2b320e758007.webp?v=1714969308","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c127feed1a74ea4d04c1ab434cdb1d09559e11bf_376e02b3-194e-46f4-8fa9-ff21db7ce515.webp?v=1714969310","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/856235420cf59432782d1127589342ab4c8065b8_9dc0139f-de77-4fb8-b179-6faba1ea8261.webp?v=1714969312","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8c88e45292dcc6a647144870ac27146d6141f4_c28bfd60-4982-4c26-9da7-348ec279522c.webp?v=1714969315"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6cca7853e24ca7c525ab2bf4756d1c0fbc941a_7440c155-76f9-4833-b523-4a2bef555861.webp?v=1714969293","options":["color"],"media":[{"alt":null,"id":23896097882211,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6cca7853e24ca7c525ab2bf4756d1c0fbc941a_7440c155-76f9-4833-b523-4a2bef555861.webp?v=1714969293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6cca7853e24ca7c525ab2bf4756d1c0fbc941a_7440c155-76f9-4833-b523-4a2bef555861.webp?v=1714969293","width":2000},{"alt":null,"id":23896098275427,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed8a7b7537b527a4074863263e7f3c2d4c4b360f_df841adf-b650-41fa-ae6a-b51e50287260.webp?v=1714969296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed8a7b7537b527a4074863263e7f3c2d4c4b360f_df841adf-b650-41fa-ae6a-b51e50287260.webp?v=1714969296","width":2000},{"alt":null,"id":23896098701411,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f240064c268355930bd4e31a5292eedf2a94fdac_9b6d36c5-d1bb-4ba6-81ad-392902b466f6.webp?v=1714969298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f240064c268355930bd4e31a5292eedf2a94fdac_9b6d36c5-d1bb-4ba6-81ad-392902b466f6.webp?v=1714969298","width":2000},{"alt":null,"id":23896099291235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cfb2c86e2f7437548932e7d75cf1c816be43e1d_df7dfb04-1d6c-4ba6-946d-679fc1f6959d.webp?v=1714969301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cfb2c86e2f7437548932e7d75cf1c816be43e1d_df7dfb04-1d6c-4ba6-946d-679fc1f6959d.webp?v=1714969301","width":2000},{"alt":null,"id":23896099782755,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48e251ff5ddbe5c76c4c9093535ce9844a1502b1_fd4fd351-3316-47c9-a92c-2c471d21b6bd.webp?v=1714969303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48e251ff5ddbe5c76c4c9093535ce9844a1502b1_fd4fd351-3316-47c9-a92c-2c471d21b6bd.webp?v=1714969303","width":2000},{"alt":null,"id":23896100208739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56480e849519545c27955b01492b6fedc449a35c_db5bbbaa-be10-4b45-aa25-d1c4c027418d.webp?v=1714969305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56480e849519545c27955b01492b6fedc449a35c_db5bbbaa-be10-4b45-aa25-d1c4c027418d.webp?v=1714969305","width":2000},{"alt":null,"id":23896100634723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd9c3a9444354fc75be11baac6f6d8521082e25_117b12a0-bbcf-4202-927e-2b320e758007.webp?v=1714969308"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd9c3a9444354fc75be11baac6f6d8521082e25_117b12a0-bbcf-4202-927e-2b320e758007.webp?v=1714969308","width":2000},{"alt":null,"id":23896101027939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c127feed1a74ea4d04c1ab434cdb1d09559e11bf_376e02b3-194e-46f4-8fa9-ff21db7ce515.webp?v=1714969310"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c127feed1a74ea4d04c1ab434cdb1d09559e11bf_376e02b3-194e-46f4-8fa9-ff21db7ce515.webp?v=1714969310","width":2000},{"alt":null,"id":23896101421155,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/856235420cf59432782d1127589342ab4c8065b8_9dc0139f-de77-4fb8-b179-6faba1ea8261.webp?v=1714969312"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/856235420cf59432782d1127589342ab4c8065b8_9dc0139f-de77-4fb8-b179-6faba1ea8261.webp?v=1714969312","width":2000},{"alt":null,"id":23896101847139,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8c88e45292dcc6a647144870ac27146d6141f4_c28bfd60-4982-4c26-9da7-348ec279522c.webp?v=1714969315"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8c88e45292dcc6a647144870ac27146d6141f4_c28bfd60-4982-4c26-9da7-348ec279522c.webp?v=1714969315","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41915354382435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31490693496931,"product_id":7415901290595,"position":6,"created_at":"2024-05-06T12:21:45+08:00","updated_at":"2024-05-06T12:21:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56480e849519545c27955b01492b6fedc449a35c_db5bbbaa-be10-4b45-aa25-d1c4c027418d.webp?v=1714969305","variant_ids":[41915354382435]},"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-PB01","featured_media":{"alt":null,"id":23896100208739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56480e849519545c27955b01492b6fedc449a35c_db5bbbaa-be10-4b45-aa25-d1c4c027418d.webp?v=1714969305"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41915354382435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31490693496931,"product_id":7415901290595,"position":6,"created_at":"2024-05-06T12:21:45+08:00","updated_at":"2024-05-06T12:21:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56480e849519545c27955b01492b6fedc449a35c_db5bbbaa-be10-4b45-aa25-d1c4c027418d.webp?v=1714969305","variant_ids":[41915354382435]},"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-PB01","featured_media":{"alt":null,"id":23896100208739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56480e849519545c27955b01492b6fedc449a35c_db5bbbaa-be10-4b45-aa25-d1c4c027418d.webp?v=1714969305"}},"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: "停產" }