$product = {"id":7408561619043,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Look - 願傷疤 有天開出花(泰國林地濫伐)","handle":"iphone-12-pro-max-mod-nx-printable-af04","description":null,"published_at":"2024-06-11T16:40:46+08:00","created_at":"2024-05-03T15:51:02+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-look","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":41886888329315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472595664995,"product_id":7408561619043,"position":7,"created_at":"2024-05-03T15:51:18+08:00","updated_at":"2024-05-03T15:51:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90f0b4cd076ce8a4926c14e7145929e8678c1c19_ed816c4a-eae1-416b-89ff-2d636196d896.webp?v=1714722678","variant_ids":[41886888329315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Look - 願傷疤 有天開出花(泰國林地濫伐) - 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":"NPB0118724-AF04","featured_media":{"alt":null,"id":23877513117795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90f0b4cd076ce8a4926c14e7145929e8678c1c19_ed816c4a-eae1-416b-89ff-2d636196d896.webp?v=1714722678"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1873726a7e6337661041cfeab9ba2dba3a37ad0_bcd481fc-83ba-4a71-a656-21f75052a662.webp?v=1714722664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c494bb840e025e0378d5dabae686ebb3aa10f5ce_92d22fbf-d086-419f-b174-767408e16b2b.webp?v=1714722666","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76f60c2dc690f2aff648f06c1ded1256b7ff7ad9_ae4c98b6-badc-461c-a832-3680a3b084ba.webp?v=1714722669","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08e4939a0791deb048ef2203b528817c91dccf51_acac6d85-75f5-43de-a4d2-038aae926be8.webp?v=1714722671","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b889ecf0ae167637291514b6521e3cf7e3c6cd3_d76b6e7a-1f94-4d9b-b7d5-b5b31602b814.webp?v=1714722673","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f9f645290ddef6d267e3335276627c28bca4a17_1793ce1a-2c06-4047-bdb4-3f04a58caa7e.webp?v=1714722676","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90f0b4cd076ce8a4926c14e7145929e8678c1c19_ed816c4a-eae1-416b-89ff-2d636196d896.webp?v=1714722678","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15cf49c950b46df6fb12a089d30cc036b9e27833_34165723-5fe9-4105-8f38-b4481fdeac9b.webp?v=1714722680","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ee6a5c4c6fc2ec23c2766bb1f55c2d7f780d0e_22e38b1d-f880-492f-87e9-a41077e12abb.webp?v=1714722683","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4611c339df919aa22d0683c1c7d3946947137ff9_d1c9ebb6-497f-4dd1-8110-fdf0a2a3b6d1.webp?v=1714722685"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1873726a7e6337661041cfeab9ba2dba3a37ad0_bcd481fc-83ba-4a71-a656-21f75052a662.webp?v=1714722664","options":["color"],"media":[{"alt":null,"id":23877510168675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1873726a7e6337661041cfeab9ba2dba3a37ad0_bcd481fc-83ba-4a71-a656-21f75052a662.webp?v=1714722664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1873726a7e6337661041cfeab9ba2dba3a37ad0_bcd481fc-83ba-4a71-a656-21f75052a662.webp?v=1714722664","width":2000},{"alt":null,"id":23877510627427,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c494bb840e025e0378d5dabae686ebb3aa10f5ce_92d22fbf-d086-419f-b174-767408e16b2b.webp?v=1714722666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c494bb840e025e0378d5dabae686ebb3aa10f5ce_92d22fbf-d086-419f-b174-767408e16b2b.webp?v=1714722666","width":2000},{"alt":null,"id":23877511118947,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76f60c2dc690f2aff648f06c1ded1256b7ff7ad9_ae4c98b6-badc-461c-a832-3680a3b084ba.webp?v=1714722669"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76f60c2dc690f2aff648f06c1ded1256b7ff7ad9_ae4c98b6-badc-461c-a832-3680a3b084ba.webp?v=1714722669","width":2000},{"alt":null,"id":23877511643235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08e4939a0791deb048ef2203b528817c91dccf51_acac6d85-75f5-43de-a4d2-038aae926be8.webp?v=1714722671"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08e4939a0791deb048ef2203b528817c91dccf51_acac6d85-75f5-43de-a4d2-038aae926be8.webp?v=1714722671","width":2000},{"alt":null,"id":23877512134755,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b889ecf0ae167637291514b6521e3cf7e3c6cd3_d76b6e7a-1f94-4d9b-b7d5-b5b31602b814.webp?v=1714722673"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b889ecf0ae167637291514b6521e3cf7e3c6cd3_d76b6e7a-1f94-4d9b-b7d5-b5b31602b814.webp?v=1714722673","width":2000},{"alt":null,"id":23877512659043,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f9f645290ddef6d267e3335276627c28bca4a17_1793ce1a-2c06-4047-bdb4-3f04a58caa7e.webp?v=1714722676"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f9f645290ddef6d267e3335276627c28bca4a17_1793ce1a-2c06-4047-bdb4-3f04a58caa7e.webp?v=1714722676","width":2000},{"alt":null,"id":23877513117795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90f0b4cd076ce8a4926c14e7145929e8678c1c19_ed816c4a-eae1-416b-89ff-2d636196d896.webp?v=1714722678"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90f0b4cd076ce8a4926c14e7145929e8678c1c19_ed816c4a-eae1-416b-89ff-2d636196d896.webp?v=1714722678","width":2000},{"alt":null,"id":23877513773155,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15cf49c950b46df6fb12a089d30cc036b9e27833_34165723-5fe9-4105-8f38-b4481fdeac9b.webp?v=1714722680"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15cf49c950b46df6fb12a089d30cc036b9e27833_34165723-5fe9-4105-8f38-b4481fdeac9b.webp?v=1714722680","width":2000},{"alt":null,"id":23877514297443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ee6a5c4c6fc2ec23c2766bb1f55c2d7f780d0e_22e38b1d-f880-492f-87e9-a41077e12abb.webp?v=1714722683"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ee6a5c4c6fc2ec23c2766bb1f55c2d7f780d0e_22e38b1d-f880-492f-87e9-a41077e12abb.webp?v=1714722683","width":2000},{"alt":null,"id":23877514952803,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4611c339df919aa22d0683c1c7d3946947137ff9_d1c9ebb6-497f-4dd1-8110-fdf0a2a3b6d1.webp?v=1714722685"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4611c339df919aa22d0683c1c7d3946947137ff9_d1c9ebb6-497f-4dd1-8110-fdf0a2a3b6d1.webp?v=1714722685","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886888329315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472595664995,"product_id":7408561619043,"position":7,"created_at":"2024-05-03T15:51:18+08:00","updated_at":"2024-05-03T15:51:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90f0b4cd076ce8a4926c14e7145929e8678c1c19_ed816c4a-eae1-416b-89ff-2d636196d896.webp?v=1714722678","variant_ids":[41886888329315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Look - 願傷疤 有天開出花(泰國林地濫伐) - 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":"NPB0118724-AF04","featured_media":{"alt":null,"id":23877513117795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90f0b4cd076ce8a4926c14e7145929e8678c1c19_ed816c4a-eae1-416b-89ff-2d636196d896.webp?v=1714722678"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886888329315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472595664995,"product_id":7408561619043,"position":7,"created_at":"2024-05-03T15:51:18+08:00","updated_at":"2024-05-03T15:51:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90f0b4cd076ce8a4926c14e7145929e8678c1c19_ed816c4a-eae1-416b-89ff-2d636196d896.webp?v=1714722678","variant_ids":[41886888329315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Look - 願傷疤 有天開出花(泰國林地濫伐) - 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":"NPB0118724-AF04","featured_media":{"alt":null,"id":23877513117795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90f0b4cd076ce8a4926c14e7145929e8678c1c19_ed816c4a-eae1-416b-89ff-2d636196d896.webp?v=1714722678"}},"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: "停產" }