$product = {"id":7408540352611,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 1G - 抱一個","handle":"iphone-12-mini-mod-nx-printable-iv03","description":null,"published_at":"2024-06-11T16:40:08+08:00","created_at":"2024-05-03T15:46:35+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 12 mini","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-1chun","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":41886644338787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-IV03","requires_shipping":true,"taxable":true,"featured_image":{"id":31472539730019,"product_id":7408540352611,"position":8,"created_at":"2024-05-03T15:46:53+08:00","updated_at":"2024-05-03T15:46:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122f39b604d556b97250fe2202bf862023d953ae_947f286b-79cf-4e92-bc38-4c1b4509f59b.webp?v=1714722413","variant_ids":[41886644338787]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 1G - 抱一個 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-IV03","featured_media":{"alt":null,"id":23877456986211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122f39b604d556b97250fe2202bf862023d953ae_947f286b-79cf-4e92-bc38-4c1b4509f59b.webp?v=1714722413"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b686134983fec826d095191affc4c47febf9a9f2_5411d1f9-ceba-4aac-8aa2-86e74c7d7af8.webp?v=1714722397","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e18ca0a3da5ba89a362abacc78db0ded5d938bd_76ebb287-899f-484b-aa30-662c880d87a3.webp?v=1714722399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afd8cf6147e476a56d7790b411497181540637ae_f84e92e4-b54a-457f-abcf-c56bc48fcaca.webp?v=1714722402","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c8092b1b098af01b3e4c257b8082eec4c2fe9ce_a15a8d04-b9cc-4009-9509-c250fdf66fa5.webp?v=1714722404","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5eb1c2dc6cdb37299e39f8d81a1f9349f246d1e_7f5d52bc-8d0e-435b-b6d2-dd1174dbd730.webp?v=1714722406","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/905ea965b075088bf59181127bd6264c7268ef8e_c04d3abe-95d9-4ffb-8031-cf7c78c618f2.webp?v=1714722409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf397abb380bc8497e8fc2136ee4842bdcb39f79_93a7d18d-0b55-448c-831b-b26d41799f35.webp?v=1714722411","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122f39b604d556b97250fe2202bf862023d953ae_947f286b-79cf-4e92-bc38-4c1b4509f59b.webp?v=1714722413","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5de50cbe265e33ed9d4dcbb09d89d3ebd38a7b2c_f79d70a3-51e4-4a70-a1cf-468aa897f72d.webp?v=1714722416","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bd9e7b5d30452c8aaa83d0865714cd68ddfcb7f_b4d82c28-1e11-46b0-a9a0-bb2185f442c5.webp?v=1714722418","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c032d15cda88b14f0d4ab59b75909e52a553cb2_95bea598-8fc5-4764-a7a2-901967bc0571.webp?v=1714722420"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b686134983fec826d095191affc4c47febf9a9f2_5411d1f9-ceba-4aac-8aa2-86e74c7d7af8.webp?v=1714722397","options":["color"],"media":[{"alt":null,"id":23877453119587,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b686134983fec826d095191affc4c47febf9a9f2_5411d1f9-ceba-4aac-8aa2-86e74c7d7af8.webp?v=1714722397"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b686134983fec826d095191affc4c47febf9a9f2_5411d1f9-ceba-4aac-8aa2-86e74c7d7af8.webp?v=1714722397","width":2000},{"alt":null,"id":23877453578339,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e18ca0a3da5ba89a362abacc78db0ded5d938bd_76ebb287-899f-484b-aa30-662c880d87a3.webp?v=1714722399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e18ca0a3da5ba89a362abacc78db0ded5d938bd_76ebb287-899f-484b-aa30-662c880d87a3.webp?v=1714722399","width":2000},{"alt":null,"id":23877454102627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afd8cf6147e476a56d7790b411497181540637ae_f84e92e4-b54a-457f-abcf-c56bc48fcaca.webp?v=1714722402"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afd8cf6147e476a56d7790b411497181540637ae_f84e92e4-b54a-457f-abcf-c56bc48fcaca.webp?v=1714722402","width":2000},{"alt":null,"id":23877454528611,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c8092b1b098af01b3e4c257b8082eec4c2fe9ce_a15a8d04-b9cc-4009-9509-c250fdf66fa5.webp?v=1714722404"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c8092b1b098af01b3e4c257b8082eec4c2fe9ce_a15a8d04-b9cc-4009-9509-c250fdf66fa5.webp?v=1714722404","width":2000},{"alt":null,"id":23877454987363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5eb1c2dc6cdb37299e39f8d81a1f9349f246d1e_7f5d52bc-8d0e-435b-b6d2-dd1174dbd730.webp?v=1714722406"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5eb1c2dc6cdb37299e39f8d81a1f9349f246d1e_7f5d52bc-8d0e-435b-b6d2-dd1174dbd730.webp?v=1714722406","width":2000},{"alt":null,"id":23877455708259,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/905ea965b075088bf59181127bd6264c7268ef8e_c04d3abe-95d9-4ffb-8031-cf7c78c618f2.webp?v=1714722409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/905ea965b075088bf59181127bd6264c7268ef8e_c04d3abe-95d9-4ffb-8031-cf7c78c618f2.webp?v=1714722409","width":2000},{"alt":null,"id":23877456560227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf397abb380bc8497e8fc2136ee4842bdcb39f79_93a7d18d-0b55-448c-831b-b26d41799f35.webp?v=1714722411"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf397abb380bc8497e8fc2136ee4842bdcb39f79_93a7d18d-0b55-448c-831b-b26d41799f35.webp?v=1714722411","width":2000},{"alt":null,"id":23877456986211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122f39b604d556b97250fe2202bf862023d953ae_947f286b-79cf-4e92-bc38-4c1b4509f59b.webp?v=1714722413"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122f39b604d556b97250fe2202bf862023d953ae_947f286b-79cf-4e92-bc38-4c1b4509f59b.webp?v=1714722413","width":2000},{"alt":null,"id":23877457543267,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5de50cbe265e33ed9d4dcbb09d89d3ebd38a7b2c_f79d70a3-51e4-4a70-a1cf-468aa897f72d.webp?v=1714722416"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5de50cbe265e33ed9d4dcbb09d89d3ebd38a7b2c_f79d70a3-51e4-4a70-a1cf-468aa897f72d.webp?v=1714722416","width":2000},{"alt":null,"id":23877457903715,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bd9e7b5d30452c8aaa83d0865714cd68ddfcb7f_b4d82c28-1e11-46b0-a9a0-bb2185f442c5.webp?v=1714722418"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bd9e7b5d30452c8aaa83d0865714cd68ddfcb7f_b4d82c28-1e11-46b0-a9a0-bb2185f442c5.webp?v=1714722418","width":2000},{"alt":null,"id":23877458493539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c032d15cda88b14f0d4ab59b75909e52a553cb2_95bea598-8fc5-4764-a7a2-901967bc0571.webp?v=1714722420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c032d15cda88b14f0d4ab59b75909e52a553cb2_95bea598-8fc5-4764-a7a2-901967bc0571.webp?v=1714722420","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886644338787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-IV03","requires_shipping":true,"taxable":true,"featured_image":{"id":31472539730019,"product_id":7408540352611,"position":8,"created_at":"2024-05-03T15:46:53+08:00","updated_at":"2024-05-03T15:46:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122f39b604d556b97250fe2202bf862023d953ae_947f286b-79cf-4e92-bc38-4c1b4509f59b.webp?v=1714722413","variant_ids":[41886644338787]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 1G - 抱一個 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-IV03","featured_media":{"alt":null,"id":23877456986211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122f39b604d556b97250fe2202bf862023d953ae_947f286b-79cf-4e92-bc38-4c1b4509f59b.webp?v=1714722413"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886644338787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-IV03","requires_shipping":true,"taxable":true,"featured_image":{"id":31472539730019,"product_id":7408540352611,"position":8,"created_at":"2024-05-03T15:46:53+08:00","updated_at":"2024-05-03T15:46:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122f39b604d556b97250fe2202bf862023d953ae_947f286b-79cf-4e92-bc38-4c1b4509f59b.webp?v=1714722413","variant_ids":[41886644338787]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 1G - 抱一個 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-IV03","featured_media":{"alt":null,"id":23877456986211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122f39b604d556b97250fe2202bf862023d953ae_947f286b-79cf-4e92-bc38-4c1b4509f59b.webp?v=1714722413"}},"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: "停產" }