$product = {"id":7407741370467,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 經典系列-不游泳但衝浪","handle":"iphone-14-plus-mod-nx-printable-yf09","description":null,"published_at":"2024-06-11T16:22:39+08:00","created_at":"2024-05-03T10:46:51+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-stitch","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":41878283419747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31470305280099,"product_id":7407741370467,"position":7,"created_at":"2024-05-03T10:47:09+08:00","updated_at":"2024-05-03T10:47:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3b1bef3315b7058421b2e303244c909bf01785_469e6e03-8851-40a7-a532-712b7c4e5513.webp?v=1714704429","variant_ids":[41878283419747]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 經典系列-不游泳但衝浪 - 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":"NPB0126124-YF09","featured_media":{"alt":null,"id":23875208544355,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3b1bef3315b7058421b2e303244c909bf01785_469e6e03-8851-40a7-a532-712b7c4e5513.webp?v=1714704429"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773eb94b030cedbebe43bdb4d5b0e561472ee771_3cf1c86b-2c14-40a1-830a-724d1f1ba2d5.webp?v=1714704414","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959c43ff0c507e02ac51a1c4fb414ced0900f734_c2715148-d224-448d-9d2d-11f18c652838.webp?v=1714704417","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4067961573a7bc0717d30223fbf91cac5ed3725b_d7dbbc8d-e053-431d-98da-30ddca9eaf76.webp?v=1714704419","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f563ae225bbf4ee9a99262cbfd722b9ff02dc58_212c936b-947c-4966-9313-aaafac631de7.webp?v=1714704421","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27ae6baa594365b237672a8302f96eda2ebb3d0d_b34e9257-0c46-4d82-9464-542cb9daf017.webp?v=1714704424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1cbf76962d25d07855472bfba23837dba2b056a_c7919fce-37fc-460d-9091-c3ea2564bded.webp?v=1714704426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3b1bef3315b7058421b2e303244c909bf01785_469e6e03-8851-40a7-a532-712b7c4e5513.webp?v=1714704429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee244ae42dd51660d65419626d66c1fc900cfdfe_34a67914-8f79-4bb3-9429-f3099e2f4af2.webp?v=1714704431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da96a10a3738641cc949bdda9cc3aaeeff3372aa_3341bd0b-1233-4d12-b913-9c3a25531e97.webp?v=1714704434","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a66b2e8a3c209549b2ac6f8cecf6854701ec10f_f7afa74b-9b21-4e61-b6cd-b2f2014bfebf.webp?v=1714704436"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773eb94b030cedbebe43bdb4d5b0e561472ee771_3cf1c86b-2c14-40a1-830a-724d1f1ba2d5.webp?v=1714704414","options":["color"],"media":[{"alt":null,"id":23875203563619,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773eb94b030cedbebe43bdb4d5b0e561472ee771_3cf1c86b-2c14-40a1-830a-724d1f1ba2d5.webp?v=1714704414"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773eb94b030cedbebe43bdb4d5b0e561472ee771_3cf1c86b-2c14-40a1-830a-724d1f1ba2d5.webp?v=1714704414","width":2000},{"alt":null,"id":23875205202019,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959c43ff0c507e02ac51a1c4fb414ced0900f734_c2715148-d224-448d-9d2d-11f18c652838.webp?v=1714704417"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959c43ff0c507e02ac51a1c4fb414ced0900f734_c2715148-d224-448d-9d2d-11f18c652838.webp?v=1714704417","width":2000},{"alt":null,"id":23875205562467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4067961573a7bc0717d30223fbf91cac5ed3725b_d7dbbc8d-e053-431d-98da-30ddca9eaf76.webp?v=1714704419"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4067961573a7bc0717d30223fbf91cac5ed3725b_d7dbbc8d-e053-431d-98da-30ddca9eaf76.webp?v=1714704419","width":2000},{"alt":null,"id":23875206414435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f563ae225bbf4ee9a99262cbfd722b9ff02dc58_212c936b-947c-4966-9313-aaafac631de7.webp?v=1714704421"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f563ae225bbf4ee9a99262cbfd722b9ff02dc58_212c936b-947c-4966-9313-aaafac631de7.webp?v=1714704421","width":2000},{"alt":null,"id":23875207200867,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27ae6baa594365b237672a8302f96eda2ebb3d0d_b34e9257-0c46-4d82-9464-542cb9daf017.webp?v=1714704424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27ae6baa594365b237672a8302f96eda2ebb3d0d_b34e9257-0c46-4d82-9464-542cb9daf017.webp?v=1714704424","width":2000},{"alt":null,"id":23875207790691,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1cbf76962d25d07855472bfba23837dba2b056a_c7919fce-37fc-460d-9091-c3ea2564bded.webp?v=1714704426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1cbf76962d25d07855472bfba23837dba2b056a_c7919fce-37fc-460d-9091-c3ea2564bded.webp?v=1714704426","width":2000},{"alt":null,"id":23875208544355,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3b1bef3315b7058421b2e303244c909bf01785_469e6e03-8851-40a7-a532-712b7c4e5513.webp?v=1714704429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3b1bef3315b7058421b2e303244c909bf01785_469e6e03-8851-40a7-a532-712b7c4e5513.webp?v=1714704429","width":2000},{"alt":null,"id":23875209330787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee244ae42dd51660d65419626d66c1fc900cfdfe_34a67914-8f79-4bb3-9429-f3099e2f4af2.webp?v=1714704431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee244ae42dd51660d65419626d66c1fc900cfdfe_34a67914-8f79-4bb3-9429-f3099e2f4af2.webp?v=1714704431","width":2000},{"alt":null,"id":23875209986147,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da96a10a3738641cc949bdda9cc3aaeeff3372aa_3341bd0b-1233-4d12-b913-9c3a25531e97.webp?v=1714704434"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da96a10a3738641cc949bdda9cc3aaeeff3372aa_3341bd0b-1233-4d12-b913-9c3a25531e97.webp?v=1714704434","width":2000},{"alt":null,"id":23875210739811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a66b2e8a3c209549b2ac6f8cecf6854701ec10f_f7afa74b-9b21-4e61-b6cd-b2f2014bfebf.webp?v=1714704436"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a66b2e8a3c209549b2ac6f8cecf6854701ec10f_f7afa74b-9b21-4e61-b6cd-b2f2014bfebf.webp?v=1714704436","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41878283419747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31470305280099,"product_id":7407741370467,"position":7,"created_at":"2024-05-03T10:47:09+08:00","updated_at":"2024-05-03T10:47:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3b1bef3315b7058421b2e303244c909bf01785_469e6e03-8851-40a7-a532-712b7c4e5513.webp?v=1714704429","variant_ids":[41878283419747]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 經典系列-不游泳但衝浪 - 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":"NPB0126124-YF09","featured_media":{"alt":null,"id":23875208544355,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3b1bef3315b7058421b2e303244c909bf01785_469e6e03-8851-40a7-a532-712b7c4e5513.webp?v=1714704429"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41878283419747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31470305280099,"product_id":7407741370467,"position":7,"created_at":"2024-05-03T10:47:09+08:00","updated_at":"2024-05-03T10:47:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3b1bef3315b7058421b2e303244c909bf01785_469e6e03-8851-40a7-a532-712b7c4e5513.webp?v=1714704429","variant_ids":[41878283419747]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 經典系列-不游泳但衝浪 - 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":"NPB0126124-YF09","featured_media":{"alt":null,"id":23875208544355,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3b1bef3315b7058421b2e303244c909bf01785_469e6e03-8851-40a7-a532-712b7c4e5513.webp?v=1714704429"}},"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: "停產" }