$product = {"id":7408425828451,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【獨家設計款】 - 來自空中的情書(明信片版)","handle":"iphone-12-mini-mod-nx-printable-ae06","description":null,"published_at":"2024-06-11T16:36:54+08:00","created_at":"2024-05-03T15:24:23+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 12 mini","discountable-item","member","merge","mod-nx-printable","new-modnx-sku","reseller","reseller-modnx-chi-po-lin-series","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":41885349806179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472245997667,"product_id":7408425828451,"position":7,"created_at":"2024-05-03T15:24:41+08:00","updated_at":"2024-05-03T15:24:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fbd4eea142c35f60468174d647591bf91aba5bc_71ad9f33-5472-48b0-bdd6-1493b450c7ce.webp?v=1714721081","variant_ids":[41885349806179]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【獨家設計款】 - 來自空中的情書(明信片版) - 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-AE06","featured_media":{"alt":null,"id":23877162172515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fbd4eea142c35f60468174d647591bf91aba5bc_71ad9f33-5472-48b0-bdd6-1493b450c7ce.webp?v=1714721081"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60d0dd2163f02a80099289796b26fec4cd57d181_f4d24a94-eaca-4e2f-8f40-461ba1e42c10.webp?v=1714721066","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50fa34b852da1de42a0053886b0a5333d077f1dc_7a4dff79-1586-4b47-a8d6-d254063ba21e.webp?v=1714721069","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cbb0ee3307dd4e8fafb12b827ab14beb0fbf422_81a8ffce-a27c-46ee-b836-0c77c2c0988c.webp?v=1714721071","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0b9b1edf0d6201749e5a54cd5bccd0308e13848_4af634ef-776f-4600-8a31-e5e9f75950aa.webp?v=1714721074","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf946caa4da545c19da21b18111ea651aa8e0470_98edc37b-bce7-4756-87ee-aec6445430ce.webp?v=1714721076","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34f55a5b951db1fd540ae1c9b1561a614971448d_e9062158-478c-4428-8aeb-4e35a1d0c9bd.webp?v=1714721079","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fbd4eea142c35f60468174d647591bf91aba5bc_71ad9f33-5472-48b0-bdd6-1493b450c7ce.webp?v=1714721081","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47f61993d6433281e965742fc39d8a6ab6812d8_855ff17f-f5e2-4c76-a442-b46fa8e5d0ef.webp?v=1714721084","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53c0c3b1757648d0408128e29243236bbcf71756_707d6263-0fe8-464c-8018-d4988e2d133e.webp?v=1714721086","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbe3b002d8ab3f1643f0f68e32106d09e5ce1259_da23d8f3-418e-4b5d-8369-c9a8d9664f32.webp?v=1714721089","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8ea7180ab148b1c653367d3705a31ad9205c4b_1c60c6e7-4f6d-4bf0-b29b-f6c2866c61c7.webp?v=1714721091"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60d0dd2163f02a80099289796b26fec4cd57d181_f4d24a94-eaca-4e2f-8f40-461ba1e42c10.webp?v=1714721066","options":["color"],"media":[{"alt":null,"id":23877158961251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60d0dd2163f02a80099289796b26fec4cd57d181_f4d24a94-eaca-4e2f-8f40-461ba1e42c10.webp?v=1714721066"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60d0dd2163f02a80099289796b26fec4cd57d181_f4d24a94-eaca-4e2f-8f40-461ba1e42c10.webp?v=1714721066","width":2000},{"alt":null,"id":23877159485539,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50fa34b852da1de42a0053886b0a5333d077f1dc_7a4dff79-1586-4b47-a8d6-d254063ba21e.webp?v=1714721069"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50fa34b852da1de42a0053886b0a5333d077f1dc_7a4dff79-1586-4b47-a8d6-d254063ba21e.webp?v=1714721069","width":2000},{"alt":null,"id":23877160337507,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cbb0ee3307dd4e8fafb12b827ab14beb0fbf422_81a8ffce-a27c-46ee-b836-0c77c2c0988c.webp?v=1714721071"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cbb0ee3307dd4e8fafb12b827ab14beb0fbf422_81a8ffce-a27c-46ee-b836-0c77c2c0988c.webp?v=1714721071","width":2000},{"alt":null,"id":23877160960099,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0b9b1edf0d6201749e5a54cd5bccd0308e13848_4af634ef-776f-4600-8a31-e5e9f75950aa.webp?v=1714721074"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0b9b1edf0d6201749e5a54cd5bccd0308e13848_4af634ef-776f-4600-8a31-e5e9f75950aa.webp?v=1714721074","width":2000},{"alt":null,"id":23877161255011,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf946caa4da545c19da21b18111ea651aa8e0470_98edc37b-bce7-4756-87ee-aec6445430ce.webp?v=1714721076"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf946caa4da545c19da21b18111ea651aa8e0470_98edc37b-bce7-4756-87ee-aec6445430ce.webp?v=1714721076","width":2000},{"alt":null,"id":23877161746531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34f55a5b951db1fd540ae1c9b1561a614971448d_e9062158-478c-4428-8aeb-4e35a1d0c9bd.webp?v=1714721079"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34f55a5b951db1fd540ae1c9b1561a614971448d_e9062158-478c-4428-8aeb-4e35a1d0c9bd.webp?v=1714721079","width":2000},{"alt":null,"id":23877162172515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fbd4eea142c35f60468174d647591bf91aba5bc_71ad9f33-5472-48b0-bdd6-1493b450c7ce.webp?v=1714721081"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fbd4eea142c35f60468174d647591bf91aba5bc_71ad9f33-5472-48b0-bdd6-1493b450c7ce.webp?v=1714721081","width":2000},{"alt":null,"id":23877162893411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47f61993d6433281e965742fc39d8a6ab6812d8_855ff17f-f5e2-4c76-a442-b46fa8e5d0ef.webp?v=1714721084"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47f61993d6433281e965742fc39d8a6ab6812d8_855ff17f-f5e2-4c76-a442-b46fa8e5d0ef.webp?v=1714721084","width":2000},{"alt":null,"id":23877163352163,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53c0c3b1757648d0408128e29243236bbcf71756_707d6263-0fe8-464c-8018-d4988e2d133e.webp?v=1714721086"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53c0c3b1757648d0408128e29243236bbcf71756_707d6263-0fe8-464c-8018-d4988e2d133e.webp?v=1714721086","width":2000},{"alt":null,"id":23877163843683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbe3b002d8ab3f1643f0f68e32106d09e5ce1259_da23d8f3-418e-4b5d-8369-c9a8d9664f32.webp?v=1714721089"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbe3b002d8ab3f1643f0f68e32106d09e5ce1259_da23d8f3-418e-4b5d-8369-c9a8d9664f32.webp?v=1714721089","width":2000},{"alt":null,"id":23877164138595,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8ea7180ab148b1c653367d3705a31ad9205c4b_1c60c6e7-4f6d-4bf0-b29b-f6c2866c61c7.webp?v=1714721091"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8ea7180ab148b1c653367d3705a31ad9205c4b_1c60c6e7-4f6d-4bf0-b29b-f6c2866c61c7.webp?v=1714721091","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885349806179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472245997667,"product_id":7408425828451,"position":7,"created_at":"2024-05-03T15:24:41+08:00","updated_at":"2024-05-03T15:24:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fbd4eea142c35f60468174d647591bf91aba5bc_71ad9f33-5472-48b0-bdd6-1493b450c7ce.webp?v=1714721081","variant_ids":[41885349806179]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【獨家設計款】 - 來自空中的情書(明信片版) - 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-AE06","featured_media":{"alt":null,"id":23877162172515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fbd4eea142c35f60468174d647591bf91aba5bc_71ad9f33-5472-48b0-bdd6-1493b450c7ce.webp?v=1714721081"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885349806179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472245997667,"product_id":7408425828451,"position":7,"created_at":"2024-05-03T15:24:41+08:00","updated_at":"2024-05-03T15:24:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fbd4eea142c35f60468174d647591bf91aba5bc_71ad9f33-5472-48b0-bdd6-1493b450c7ce.webp?v=1714721081","variant_ids":[41885349806179]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【獨家設計款】 - 來自空中的情書(明信片版) - 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-AE06","featured_media":{"alt":null,"id":23877162172515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fbd4eea142c35f60468174d647591bf91aba5bc_71ad9f33-5472-48b0-bdd6-1493b450c7ce.webp?v=1714721081"}},"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: "停產" }