$product = {"id":7416362500195,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 1G - 左看看","handle":"iphone-8-mod-nx-printable-iv05","description":null,"published_at":"2024-06-11T16:56:59+08:00","created_at":"2024-05-06T14:42:14+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 8","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":41918924718179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-IV05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491947135075,"product_id":7416362500195,"position":9,"created_at":"2024-05-06T14:42:52+08:00","updated_at":"2024-05-06T14:42:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f71ab980247d911595c2ea251a59d0420b00d4_694ce5ef-362d-4480-af91-d6de6f5757f1.webp?v=1714977772","variant_ids":[41918924718179]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 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":"NPB0105424-IV05","featured_media":{"alt":null,"id":23897360203875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f71ab980247d911595c2ea251a59d0420b00d4_694ce5ef-362d-4480-af91-d6de6f5757f1.webp?v=1714977772"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/168cae1091d3119067aced620aad720d2de4adf0_1f72d993-4dc7-4929-a19f-56c2c6552e50.webp?v=1714977738","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48fac049b5ea281f96b9f854945fcb06bf7d1013_67170b5b-2d80-48d8-966f-ace29079a53d.webp?v=1714977755","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f01a0ea2406a06dcafede69fc9f6868012b3810e_960aba12-7c29-427e-ba0e-ccd89bcd33fe.webp?v=1714977757","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d711b84989c7e539717c3c4a5271184e16bfa74_ee75a749-7f94-4186-944c-6fd4e076bd3e.webp?v=1714977760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd269c0e4c05f99f2305fbbbe8a48815a8f0827_17c0b939-1248-4e70-b397-afadc3421023.webp?v=1714977762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a02b4ba4b69e05b266dcdaf8cec37061850826a_7136da43-70a5-44ad-a285-034b680da8a7.webp?v=1714977764","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fb5470332061d8003bb61bab85eccc68bc4b8f8_40ea95ad-34e3-480b-863c-1b965de02b85.webp?v=1714977767","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d1b69bc6ef2889901356b974f786aa0def6ac16_0660e264-7b00-4a5c-ab5a-d9785c9c0522.webp?v=1714977769","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f71ab980247d911595c2ea251a59d0420b00d4_694ce5ef-362d-4480-af91-d6de6f5757f1.webp?v=1714977772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4de584c35a381a39f75b8c81243503aa3fe89b2_4ac420ea-6fb8-453f-a266-a40a33144e69.webp?v=1714977774"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/168cae1091d3119067aced620aad720d2de4adf0_1f72d993-4dc7-4929-a19f-56c2c6552e50.webp?v=1714977738","options":["color"],"media":[{"alt":null,"id":23897353748579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/168cae1091d3119067aced620aad720d2de4adf0_1f72d993-4dc7-4929-a19f-56c2c6552e50.webp?v=1714977738"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/168cae1091d3119067aced620aad720d2de4adf0_1f72d993-4dc7-4929-a19f-56c2c6552e50.webp?v=1714977738","width":2000},{"alt":null,"id":23897356370019,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48fac049b5ea281f96b9f854945fcb06bf7d1013_67170b5b-2d80-48d8-966f-ace29079a53d.webp?v=1714977755"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48fac049b5ea281f96b9f854945fcb06bf7d1013_67170b5b-2d80-48d8-966f-ace29079a53d.webp?v=1714977755","width":2000},{"alt":null,"id":23897356664931,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f01a0ea2406a06dcafede69fc9f6868012b3810e_960aba12-7c29-427e-ba0e-ccd89bcd33fe.webp?v=1714977757"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f01a0ea2406a06dcafede69fc9f6868012b3810e_960aba12-7c29-427e-ba0e-ccd89bcd33fe.webp?v=1714977757","width":2000},{"alt":null,"id":23897357123683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d711b84989c7e539717c3c4a5271184e16bfa74_ee75a749-7f94-4186-944c-6fd4e076bd3e.webp?v=1714977760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d711b84989c7e539717c3c4a5271184e16bfa74_ee75a749-7f94-4186-944c-6fd4e076bd3e.webp?v=1714977760","width":2000},{"alt":null,"id":23897357844579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd269c0e4c05f99f2305fbbbe8a48815a8f0827_17c0b939-1248-4e70-b397-afadc3421023.webp?v=1714977762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd269c0e4c05f99f2305fbbbe8a48815a8f0827_17c0b939-1248-4e70-b397-afadc3421023.webp?v=1714977762","width":2000},{"alt":null,"id":23897358270563,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a02b4ba4b69e05b266dcdaf8cec37061850826a_7136da43-70a5-44ad-a285-034b680da8a7.webp?v=1714977764"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a02b4ba4b69e05b266dcdaf8cec37061850826a_7136da43-70a5-44ad-a285-034b680da8a7.webp?v=1714977764","width":2000},{"alt":null,"id":23897358729315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fb5470332061d8003bb61bab85eccc68bc4b8f8_40ea95ad-34e3-480b-863c-1b965de02b85.webp?v=1714977767"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fb5470332061d8003bb61bab85eccc68bc4b8f8_40ea95ad-34e3-480b-863c-1b965de02b85.webp?v=1714977767","width":2000},{"alt":null,"id":23897359614051,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d1b69bc6ef2889901356b974f786aa0def6ac16_0660e264-7b00-4a5c-ab5a-d9785c9c0522.webp?v=1714977769"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d1b69bc6ef2889901356b974f786aa0def6ac16_0660e264-7b00-4a5c-ab5a-d9785c9c0522.webp?v=1714977769","width":2000},{"alt":null,"id":23897360203875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f71ab980247d911595c2ea251a59d0420b00d4_694ce5ef-362d-4480-af91-d6de6f5757f1.webp?v=1714977772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f71ab980247d911595c2ea251a59d0420b00d4_694ce5ef-362d-4480-af91-d6de6f5757f1.webp?v=1714977772","width":2000},{"alt":null,"id":23897360760931,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4de584c35a381a39f75b8c81243503aa3fe89b2_4ac420ea-6fb8-453f-a266-a40a33144e69.webp?v=1714977774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4de584c35a381a39f75b8c81243503aa3fe89b2_4ac420ea-6fb8-453f-a266-a40a33144e69.webp?v=1714977774","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918924718179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-IV05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491947135075,"product_id":7416362500195,"position":9,"created_at":"2024-05-06T14:42:52+08:00","updated_at":"2024-05-06T14:42:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f71ab980247d911595c2ea251a59d0420b00d4_694ce5ef-362d-4480-af91-d6de6f5757f1.webp?v=1714977772","variant_ids":[41918924718179]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 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":"NPB0105424-IV05","featured_media":{"alt":null,"id":23897360203875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f71ab980247d911595c2ea251a59d0420b00d4_694ce5ef-362d-4480-af91-d6de6f5757f1.webp?v=1714977772"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918924718179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-IV05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491947135075,"product_id":7416362500195,"position":9,"created_at":"2024-05-06T14:42:52+08:00","updated_at":"2024-05-06T14:42:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f71ab980247d911595c2ea251a59d0420b00d4_694ce5ef-362d-4480-af91-d6de6f5757f1.webp?v=1714977772","variant_ids":[41918924718179]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 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":"NPB0105424-IV05","featured_media":{"alt":null,"id":23897360203875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f71ab980247d911595c2ea251a59d0420b00d4_694ce5ef-362d-4480-af91-d6de6f5757f1.webp?v=1714977772"}},"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: "停產" }