$product = {"id":7408436576355,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列","handle":"iphone-12-mini-mod-nx-printable-pb49","description":null,"published_at":"2024-06-11T16:37:11+08:00","created_at":"2024-05-03T15:26:18+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 12 mini","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":41885467476067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31472277389411,"product_id":7408436576355,"position":6,"created_at":"2024-05-03T15:26:33+08:00","updated_at":"2024-05-03T15:26:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c1c666c74130f230a13fda854b8cdef8069d4f_acafc063-165b-4dea-9a5a-7fcf632fc829.webp?v=1714721193","variant_ids":[41885467476067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118424-PB49","featured_media":{"alt":null,"id":23877193695331,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c1c666c74130f230a13fda854b8cdef8069d4f_acafc063-165b-4dea-9a5a-7fcf632fc829.webp?v=1714721193"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bd287fcc156c72ad1b99f0d5b7e781ef57f0ccd_b110317c-e614-407e-ad45-80a928c15d32.webp?v=1714721181","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c316c5050202bdbdc280e681c73d6dfc48a241d2_313c8fc0-ba89-49ba-ad52-087ae9098dc5.webp?v=1714721183","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8855019582df7841d332a64ed1a348cf2a7b56ac_fd8e109a-ea3b-4317-ab3a-d65f1db5a6ef.webp?v=1714721186","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45f430cc6255384714cee9c19535b18fabe17156_6609bab0-3f88-47d2-b2db-5bbb0f772677.webp?v=1714721188","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df405267b81a3d9979becbf018ef0cd729f03e8a_c20ce496-9dea-45b0-8991-316d5514a12a.webp?v=1714721190","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c1c666c74130f230a13fda854b8cdef8069d4f_acafc063-165b-4dea-9a5a-7fcf632fc829.webp?v=1714721193","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af5cee2353f9eeb8eceb4794e43d8ffc3dbcd4ec_6c985047-848b-4c2f-872e-932b26c804ea.webp?v=1714721195","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e12c1abdd4f365ed114a8927e5ede4d978d30612_13824460-c109-4075-8ad6-dd29259be619.webp?v=1714721198","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41062e34beb6f05a9430b3feee2e2d236365cb10_c2c619a6-ef78-4712-873d-5878fdb6f64d.webp?v=1714721200","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3f296a4db01e6e34512662fbc79fc354c890eb0_dcfc0835-4927-47ae-84b6-30ea24e7f37b.webp?v=1714721203","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f87d3434e2a13a153d36fc1a3c678e11ede3f42_8a1d259c-f653-4f8f-a7a6-a14c53bf7f03.webp?v=1714721205"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bd287fcc156c72ad1b99f0d5b7e781ef57f0ccd_b110317c-e614-407e-ad45-80a928c15d32.webp?v=1714721181","options":["color"],"media":[{"alt":null,"id":23877191172195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bd287fcc156c72ad1b99f0d5b7e781ef57f0ccd_b110317c-e614-407e-ad45-80a928c15d32.webp?v=1714721181"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bd287fcc156c72ad1b99f0d5b7e781ef57f0ccd_b110317c-e614-407e-ad45-80a928c15d32.webp?v=1714721181","width":2000},{"alt":null,"id":23877191663715,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c316c5050202bdbdc280e681c73d6dfc48a241d2_313c8fc0-ba89-49ba-ad52-087ae9098dc5.webp?v=1714721183"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c316c5050202bdbdc280e681c73d6dfc48a241d2_313c8fc0-ba89-49ba-ad52-087ae9098dc5.webp?v=1714721183","width":2000},{"alt":null,"id":23877192089699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8855019582df7841d332a64ed1a348cf2a7b56ac_fd8e109a-ea3b-4317-ab3a-d65f1db5a6ef.webp?v=1714721186"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8855019582df7841d332a64ed1a348cf2a7b56ac_fd8e109a-ea3b-4317-ab3a-d65f1db5a6ef.webp?v=1714721186","width":2000},{"alt":null,"id":23877192581219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45f430cc6255384714cee9c19535b18fabe17156_6609bab0-3f88-47d2-b2db-5bbb0f772677.webp?v=1714721188"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45f430cc6255384714cee9c19535b18fabe17156_6609bab0-3f88-47d2-b2db-5bbb0f772677.webp?v=1714721188","width":2000},{"alt":null,"id":23877193007203,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df405267b81a3d9979becbf018ef0cd729f03e8a_c20ce496-9dea-45b0-8991-316d5514a12a.webp?v=1714721190"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df405267b81a3d9979becbf018ef0cd729f03e8a_c20ce496-9dea-45b0-8991-316d5514a12a.webp?v=1714721190","width":2000},{"alt":null,"id":23877193695331,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c1c666c74130f230a13fda854b8cdef8069d4f_acafc063-165b-4dea-9a5a-7fcf632fc829.webp?v=1714721193"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c1c666c74130f230a13fda854b8cdef8069d4f_acafc063-165b-4dea-9a5a-7fcf632fc829.webp?v=1714721193","width":2000},{"alt":null,"id":23877194186851,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af5cee2353f9eeb8eceb4794e43d8ffc3dbcd4ec_6c985047-848b-4c2f-872e-932b26c804ea.webp?v=1714721195"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af5cee2353f9eeb8eceb4794e43d8ffc3dbcd4ec_6c985047-848b-4c2f-872e-932b26c804ea.webp?v=1714721195","width":2000},{"alt":null,"id":23877194743907,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e12c1abdd4f365ed114a8927e5ede4d978d30612_13824460-c109-4075-8ad6-dd29259be619.webp?v=1714721198"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e12c1abdd4f365ed114a8927e5ede4d978d30612_13824460-c109-4075-8ad6-dd29259be619.webp?v=1714721198","width":2000},{"alt":null,"id":23877195202659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41062e34beb6f05a9430b3feee2e2d236365cb10_c2c619a6-ef78-4712-873d-5878fdb6f64d.webp?v=1714721200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41062e34beb6f05a9430b3feee2e2d236365cb10_c2c619a6-ef78-4712-873d-5878fdb6f64d.webp?v=1714721200","width":2000},{"alt":null,"id":23877196841059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3f296a4db01e6e34512662fbc79fc354c890eb0_dcfc0835-4927-47ae-84b6-30ea24e7f37b.webp?v=1714721203"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3f296a4db01e6e34512662fbc79fc354c890eb0_dcfc0835-4927-47ae-84b6-30ea24e7f37b.webp?v=1714721203","width":2000},{"alt":null,"id":23877197299811,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f87d3434e2a13a153d36fc1a3c678e11ede3f42_8a1d259c-f653-4f8f-a7a6-a14c53bf7f03.webp?v=1714721205"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f87d3434e2a13a153d36fc1a3c678e11ede3f42_8a1d259c-f653-4f8f-a7a6-a14c53bf7f03.webp?v=1714721205","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885467476067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31472277389411,"product_id":7408436576355,"position":6,"created_at":"2024-05-03T15:26:33+08:00","updated_at":"2024-05-03T15:26:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c1c666c74130f230a13fda854b8cdef8069d4f_acafc063-165b-4dea-9a5a-7fcf632fc829.webp?v=1714721193","variant_ids":[41885467476067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118424-PB49","featured_media":{"alt":null,"id":23877193695331,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c1c666c74130f230a13fda854b8cdef8069d4f_acafc063-165b-4dea-9a5a-7fcf632fc829.webp?v=1714721193"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885467476067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31472277389411,"product_id":7408436576355,"position":6,"created_at":"2024-05-03T15:26:33+08:00","updated_at":"2024-05-03T15:26:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c1c666c74130f230a13fda854b8cdef8069d4f_acafc063-165b-4dea-9a5a-7fcf632fc829.webp?v=1714721193","variant_ids":[41885467476067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118424-PB49","featured_media":{"alt":null,"id":23877193695331,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c1c666c74130f230a13fda854b8cdef8069d4f_acafc063-165b-4dea-9a5a-7fcf632fc829.webp?v=1714721193"}},"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: "停產" }