$product = {"id":7416039899235,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號","handle":"iphone-xs-max-mod-nx-printable-pb69","description":null,"published_at":"2024-06-11T16:51:07+08:00","created_at":"2024-05-06T12:46:58+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":41916789751907,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB69","requires_shipping":true,"taxable":true,"featured_image":{"id":31491055681635,"product_id":7416039899235,"position":8,"created_at":"2024-05-06T12:47:18+08:00","updated_at":"2024-05-06T12:47:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8369299bace992d1430048a1b9830c6955bb7764_14d8f812-3f3a-4051-a795-e47ebba22492.webp?v=1714970838","variant_ids":[41916789751907]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號 - 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-PB69","featured_media":{"alt":null,"id":23896462917731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8369299bace992d1430048a1b9830c6955bb7764_14d8f812-3f3a-4051-a795-e47ebba22492.webp?v=1714970838"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee59683669becdc7a1cef096334f90935e6dd7f0_4ee25cdc-2233-4746-b10a-1c00a1a3df0e.webp?v=1714970821","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fbb651045f3fab121189ac9df976f89aa7d40f6_2118b5c5-288b-44ea-a20a-073ced1db18a.webp?v=1714970823","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95bf52b9a9a53f006df3204f8cf5a178878b5fbe_96228368-c2ed-44bc-aed3-254f3cc47fdc.webp?v=1714970825","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddd365beaf67fc1bc481a4354cb89eb86c820cfb_b1b9d1ee-6c1f-4fb1-8ed3-17c5c1e671c8.webp?v=1714970828","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfa22b5949d469ff821c0e98ca87c5980f4f7d6b_0d107ff2-aba9-4529-a536-151d04dbf3e5.webp?v=1714970830","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/380a7b0332cb0e12a90052202f99d2f1ae87ee05_d27f27b6-b55a-4109-a071-f09a26340ad6.webp?v=1714970833","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d3f68475889edc2eba970a41357f3f5e358077_ea3d03ea-04fd-4cfe-b294-b826aae06a62.webp?v=1714970835","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8369299bace992d1430048a1b9830c6955bb7764_14d8f812-3f3a-4051-a795-e47ebba22492.webp?v=1714970838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a11d34d0ee99a0cc6dbafb9aa8866a6e573f54_c4fcb9cf-49af-4f08-b01c-6eb36c4004a1.webp?v=1714970840","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c4f1795bb9c93ff6f2acf6f09810490b1c2dc4_3a4fe1ea-b030-4d40-836e-bea3a29c4291.webp?v=1714970842"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee59683669becdc7a1cef096334f90935e6dd7f0_4ee25cdc-2233-4746-b10a-1c00a1a3df0e.webp?v=1714970821","options":["color"],"media":[{"alt":null,"id":23896458330211,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee59683669becdc7a1cef096334f90935e6dd7f0_4ee25cdc-2233-4746-b10a-1c00a1a3df0e.webp?v=1714970821"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee59683669becdc7a1cef096334f90935e6dd7f0_4ee25cdc-2233-4746-b10a-1c00a1a3df0e.webp?v=1714970821","width":2000},{"alt":null,"id":23896458854499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fbb651045f3fab121189ac9df976f89aa7d40f6_2118b5c5-288b-44ea-a20a-073ced1db18a.webp?v=1714970823"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fbb651045f3fab121189ac9df976f89aa7d40f6_2118b5c5-288b-44ea-a20a-073ced1db18a.webp?v=1714970823","width":2000},{"alt":null,"id":23896459247715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95bf52b9a9a53f006df3204f8cf5a178878b5fbe_96228368-c2ed-44bc-aed3-254f3cc47fdc.webp?v=1714970825"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95bf52b9a9a53f006df3204f8cf5a178878b5fbe_96228368-c2ed-44bc-aed3-254f3cc47fdc.webp?v=1714970825","width":2000},{"alt":null,"id":23896460329059,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddd365beaf67fc1bc481a4354cb89eb86c820cfb_b1b9d1ee-6c1f-4fb1-8ed3-17c5c1e671c8.webp?v=1714970828"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddd365beaf67fc1bc481a4354cb89eb86c820cfb_b1b9d1ee-6c1f-4fb1-8ed3-17c5c1e671c8.webp?v=1714970828","width":2000},{"alt":null,"id":23896460918883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfa22b5949d469ff821c0e98ca87c5980f4f7d6b_0d107ff2-aba9-4529-a536-151d04dbf3e5.webp?v=1714970830"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfa22b5949d469ff821c0e98ca87c5980f4f7d6b_0d107ff2-aba9-4529-a536-151d04dbf3e5.webp?v=1714970830","width":2000},{"alt":null,"id":23896461934691,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/380a7b0332cb0e12a90052202f99d2f1ae87ee05_d27f27b6-b55a-4109-a071-f09a26340ad6.webp?v=1714970833"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/380a7b0332cb0e12a90052202f99d2f1ae87ee05_d27f27b6-b55a-4109-a071-f09a26340ad6.webp?v=1714970833","width":2000},{"alt":null,"id":23896462491747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d3f68475889edc2eba970a41357f3f5e358077_ea3d03ea-04fd-4cfe-b294-b826aae06a62.webp?v=1714970835"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d3f68475889edc2eba970a41357f3f5e358077_ea3d03ea-04fd-4cfe-b294-b826aae06a62.webp?v=1714970835","width":2000},{"alt":null,"id":23896462917731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8369299bace992d1430048a1b9830c6955bb7764_14d8f812-3f3a-4051-a795-e47ebba22492.webp?v=1714970838"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8369299bace992d1430048a1b9830c6955bb7764_14d8f812-3f3a-4051-a795-e47ebba22492.webp?v=1714970838","width":2000},{"alt":null,"id":23896463474787,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a11d34d0ee99a0cc6dbafb9aa8866a6e573f54_c4fcb9cf-49af-4f08-b01c-6eb36c4004a1.webp?v=1714970840"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a11d34d0ee99a0cc6dbafb9aa8866a6e573f54_c4fcb9cf-49af-4f08-b01c-6eb36c4004a1.webp?v=1714970840","width":2000},{"alt":null,"id":23896463900771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c4f1795bb9c93ff6f2acf6f09810490b1c2dc4_3a4fe1ea-b030-4d40-836e-bea3a29c4291.webp?v=1714970842"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c4f1795bb9c93ff6f2acf6f09810490b1c2dc4_3a4fe1ea-b030-4d40-836e-bea3a29c4291.webp?v=1714970842","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41916789751907,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB69","requires_shipping":true,"taxable":true,"featured_image":{"id":31491055681635,"product_id":7416039899235,"position":8,"created_at":"2024-05-06T12:47:18+08:00","updated_at":"2024-05-06T12:47:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8369299bace992d1430048a1b9830c6955bb7764_14d8f812-3f3a-4051-a795-e47ebba22492.webp?v=1714970838","variant_ids":[41916789751907]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號 - 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-PB69","featured_media":{"alt":null,"id":23896462917731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8369299bace992d1430048a1b9830c6955bb7764_14d8f812-3f3a-4051-a795-e47ebba22492.webp?v=1714970838"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41916789751907,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB69","requires_shipping":true,"taxable":true,"featured_image":{"id":31491055681635,"product_id":7416039899235,"position":8,"created_at":"2024-05-06T12:47:18+08:00","updated_at":"2024-05-06T12:47:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8369299bace992d1430048a1b9830c6955bb7764_14d8f812-3f3a-4051-a795-e47ebba22492.webp?v=1714970838","variant_ids":[41916789751907]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號 - 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-PB69","featured_media":{"alt":null,"id":23896462917731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8369299bace992d1430048a1b9830c6955bb7764_14d8f812-3f3a-4051-a795-e47ebba22492.webp?v=1714970838"}},"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: "停產" }