$product = {"id":7416075976803,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP千年鷹","handle":"iphone-xs-max-mod-nx-printable-pb27","description":null,"published_at":"2024-06-11T16:52:05+08:00","created_at":"2024-05-06T12:53:33+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":41917184278627,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB27","requires_shipping":true,"taxable":true,"featured_image":{"id":31491159130211,"product_id":7416075976803,"position":8,"created_at":"2024-05-06T12:53:54+08:00","updated_at":"2024-05-06T12:53:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bba5dd8c8770e2e7c118632c57d6872cbb1695ec_9e01a837-2765-4af4-ad18-c941a0350c59.webp?v=1714971234","variant_ids":[41917184278627]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP千年鷹 - 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-PB27","featured_media":{"alt":null,"id":23896566628451,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bba5dd8c8770e2e7c118632c57d6872cbb1695ec_9e01a837-2765-4af4-ad18-c941a0350c59.webp?v=1714971234"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72cdbda36f6d0a1a8835e8db005f49c9a67ec4bc_7e6549be-6329-49be-8a1d-b8dcf25fd556.webp?v=1714971216","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97fd8e7b74c8a008886428e7a661f9c8b7b7f362_d6d6b01e-c651-46d0-8316-5cb052e15b99.webp?v=1714971218","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8921c7f09a7f4c30b72155a90f02e194295b0d86_a6505f87-af4d-422d-af84-3b543ae72366.webp?v=1714971223","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edca25c698f8dcf29149eec56e0b1179d6bdc5a_683f88e6-d55b-42e5-87da-26f8ea1dd509.webp?v=1714971225","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4947a36bf15a08b01fe749e101ff13cdbd1dea3f_a931e002-7793-45ca-9879-23d4e0b6d648.webp?v=1714971227","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf291029e551c3d1c47f49f8fa8b5aa911ca01a2_163f86b5-e5c0-43e4-85d7-36eb51e5a760.webp?v=1714971230","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96abf7dec51075a968670a742f5d01232fb0285b_36fe12c7-8485-4eb3-a405-a82072b58a92.webp?v=1714971232","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bba5dd8c8770e2e7c118632c57d6872cbb1695ec_9e01a837-2765-4af4-ad18-c941a0350c59.webp?v=1714971234","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27f15599b3a7423fbb6666ca84a74bc31338f80c_0d0e3d97-c169-421c-b209-3246b460c81f.webp?v=1714971236"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72cdbda36f6d0a1a8835e8db005f49c9a67ec4bc_7e6549be-6329-49be-8a1d-b8dcf25fd556.webp?v=1714971216","options":["color"],"media":[{"alt":null,"id":23896561188963,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72cdbda36f6d0a1a8835e8db005f49c9a67ec4bc_7e6549be-6329-49be-8a1d-b8dcf25fd556.webp?v=1714971216"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72cdbda36f6d0a1a8835e8db005f49c9a67ec4bc_7e6549be-6329-49be-8a1d-b8dcf25fd556.webp?v=1714971216","width":2000},{"alt":null,"id":23896562172003,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97fd8e7b74c8a008886428e7a661f9c8b7b7f362_d6d6b01e-c651-46d0-8316-5cb052e15b99.webp?v=1714971218"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97fd8e7b74c8a008886428e7a661f9c8b7b7f362_d6d6b01e-c651-46d0-8316-5cb052e15b99.webp?v=1714971218","width":2000},{"alt":null,"id":23896563482723,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8921c7f09a7f4c30b72155a90f02e194295b0d86_a6505f87-af4d-422d-af84-3b543ae72366.webp?v=1714971223"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8921c7f09a7f4c30b72155a90f02e194295b0d86_a6505f87-af4d-422d-af84-3b543ae72366.webp?v=1714971223","width":2000},{"alt":null,"id":23896564039779,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edca25c698f8dcf29149eec56e0b1179d6bdc5a_683f88e6-d55b-42e5-87da-26f8ea1dd509.webp?v=1714971225"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edca25c698f8dcf29149eec56e0b1179d6bdc5a_683f88e6-d55b-42e5-87da-26f8ea1dd509.webp?v=1714971225","width":2000},{"alt":null,"id":23896564793443,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4947a36bf15a08b01fe749e101ff13cdbd1dea3f_a931e002-7793-45ca-9879-23d4e0b6d648.webp?v=1714971227"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4947a36bf15a08b01fe749e101ff13cdbd1dea3f_a931e002-7793-45ca-9879-23d4e0b6d648.webp?v=1714971227","width":2000},{"alt":null,"id":23896565612643,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf291029e551c3d1c47f49f8fa8b5aa911ca01a2_163f86b5-e5c0-43e4-85d7-36eb51e5a760.webp?v=1714971230"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf291029e551c3d1c47f49f8fa8b5aa911ca01a2_163f86b5-e5c0-43e4-85d7-36eb51e5a760.webp?v=1714971230","width":2000},{"alt":null,"id":23896566202467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96abf7dec51075a968670a742f5d01232fb0285b_36fe12c7-8485-4eb3-a405-a82072b58a92.webp?v=1714971232"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96abf7dec51075a968670a742f5d01232fb0285b_36fe12c7-8485-4eb3-a405-a82072b58a92.webp?v=1714971232","width":2000},{"alt":null,"id":23896566628451,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bba5dd8c8770e2e7c118632c57d6872cbb1695ec_9e01a837-2765-4af4-ad18-c941a0350c59.webp?v=1714971234"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bba5dd8c8770e2e7c118632c57d6872cbb1695ec_9e01a837-2765-4af4-ad18-c941a0350c59.webp?v=1714971234","width":2000},{"alt":null,"id":23896567119971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27f15599b3a7423fbb6666ca84a74bc31338f80c_0d0e3d97-c169-421c-b209-3246b460c81f.webp?v=1714971236"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27f15599b3a7423fbb6666ca84a74bc31338f80c_0d0e3d97-c169-421c-b209-3246b460c81f.webp?v=1714971236","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41917184278627,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB27","requires_shipping":true,"taxable":true,"featured_image":{"id":31491159130211,"product_id":7416075976803,"position":8,"created_at":"2024-05-06T12:53:54+08:00","updated_at":"2024-05-06T12:53:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bba5dd8c8770e2e7c118632c57d6872cbb1695ec_9e01a837-2765-4af4-ad18-c941a0350c59.webp?v=1714971234","variant_ids":[41917184278627]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP千年鷹 - 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-PB27","featured_media":{"alt":null,"id":23896566628451,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bba5dd8c8770e2e7c118632c57d6872cbb1695ec_9e01a837-2765-4af4-ad18-c941a0350c59.webp?v=1714971234"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41917184278627,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB27","requires_shipping":true,"taxable":true,"featured_image":{"id":31491159130211,"product_id":7416075976803,"position":8,"created_at":"2024-05-06T12:53:54+08:00","updated_at":"2024-05-06T12:53:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bba5dd8c8770e2e7c118632c57d6872cbb1695ec_9e01a837-2765-4af4-ad18-c941a0350c59.webp?v=1714971234","variant_ids":[41917184278627]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP千年鷹 - 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-PB27","featured_media":{"alt":null,"id":23896566628451,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bba5dd8c8770e2e7c118632c57d6872cbb1695ec_9e01a837-2765-4af4-ad18-c941a0350c59.webp?v=1714971234"}},"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: "停產" }