$product = {"id":7408457547875,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - 雨愛灌溉","handle":"iphone-12-pro-max-mod-nx-printable-yb08","description":null,"published_at":"2024-06-11T16:37:46+08:00","created_at":"2024-05-03T15:30:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-carebears","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":41885693706339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31472328835171,"product_id":7408457547875,"position":2,"created_at":"2024-05-03T15:30:31+08:00","updated_at":"2024-05-03T15:30:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b9048ef74b1cbb7ff6c5304fbe196ba0df917_34b76b3a-26eb-42bb-a8e5-730b510a1fa7.webp?v=1714721431","variant_ids":[41885693706339]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - 雨愛灌溉 - 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-YB08","featured_media":{"alt":null,"id":23877245272163,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b9048ef74b1cbb7ff6c5304fbe196ba0df917_34b76b3a-26eb-42bb-a8e5-730b510a1fa7.webp?v=1714721431"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0369551fde4564b47346866e08ce77f8cddfa54a_14150dde-04e5-4208-9b5e-bec8308c79bf.webp?v=1714721429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b9048ef74b1cbb7ff6c5304fbe196ba0df917_34b76b3a-26eb-42bb-a8e5-730b510a1fa7.webp?v=1714721431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec13f5436e24b4d0444662f7c92ad4d9d989a909_4eecc1e8-49ea-4b99-8eb8-e55793ed4ca7.webp?v=1714721434","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786b8ed0a75449ee3bb7d8b89d749a420fd96d9c_3ded3254-7c52-45ad-b919-8c77b0ac80c2.webp?v=1714721436","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/219a00f57abc1cdffa55311db5db840cfb638ea2_fccd8250-8ded-4928-8910-6681ee90e6f6.webp?v=1714721438","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/167e27c88279d952cb73ba174bb1a3a0d8708ec9_d5ee507e-3dba-486c-abd3-e877cd66a7c5.webp?v=1714721441","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ece411a75236fc523c57f940d691304a23c5dfd_b3b2b699-1dbf-495e-bc92-0e7787ea16a3.webp?v=1714721443","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38c046951d34ce4d76dcd0aabaf3045198d31184_d89a9cc7-4f17-4822-a03a-22f5a4f42113.webp?v=1714721446","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c508274180e2f3b5ec4c825a3db1f6f1bc7f8511_eb4f9bb9-7481-42fa-ab86-30f44b472b17.webp?v=1714721448","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28d979550da7179f134b7797e48d5c46f4c711cb_d1e3df72-87e6-40fc-bd7e-835d401fa440.webp?v=1714721450"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0369551fde4564b47346866e08ce77f8cddfa54a_14150dde-04e5-4208-9b5e-bec8308c79bf.webp?v=1714721429","options":["color"],"media":[{"alt":null,"id":23877244682339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0369551fde4564b47346866e08ce77f8cddfa54a_14150dde-04e5-4208-9b5e-bec8308c79bf.webp?v=1714721429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0369551fde4564b47346866e08ce77f8cddfa54a_14150dde-04e5-4208-9b5e-bec8308c79bf.webp?v=1714721429","width":2000},{"alt":null,"id":23877245272163,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b9048ef74b1cbb7ff6c5304fbe196ba0df917_34b76b3a-26eb-42bb-a8e5-730b510a1fa7.webp?v=1714721431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b9048ef74b1cbb7ff6c5304fbe196ba0df917_34b76b3a-26eb-42bb-a8e5-730b510a1fa7.webp?v=1714721431","width":2000},{"alt":null,"id":23877245763683,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec13f5436e24b4d0444662f7c92ad4d9d989a909_4eecc1e8-49ea-4b99-8eb8-e55793ed4ca7.webp?v=1714721434"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec13f5436e24b4d0444662f7c92ad4d9d989a909_4eecc1e8-49ea-4b99-8eb8-e55793ed4ca7.webp?v=1714721434","width":2000},{"alt":null,"id":23877246255203,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786b8ed0a75449ee3bb7d8b89d749a420fd96d9c_3ded3254-7c52-45ad-b919-8c77b0ac80c2.webp?v=1714721436"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786b8ed0a75449ee3bb7d8b89d749a420fd96d9c_3ded3254-7c52-45ad-b919-8c77b0ac80c2.webp?v=1714721436","width":2000},{"alt":null,"id":23877246845027,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/219a00f57abc1cdffa55311db5db840cfb638ea2_fccd8250-8ded-4928-8910-6681ee90e6f6.webp?v=1714721438"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/219a00f57abc1cdffa55311db5db840cfb638ea2_fccd8250-8ded-4928-8910-6681ee90e6f6.webp?v=1714721438","width":2000},{"alt":null,"id":23877247205475,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/167e27c88279d952cb73ba174bb1a3a0d8708ec9_d5ee507e-3dba-486c-abd3-e877cd66a7c5.webp?v=1714721441"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/167e27c88279d952cb73ba174bb1a3a0d8708ec9_d5ee507e-3dba-486c-abd3-e877cd66a7c5.webp?v=1714721441","width":2000},{"alt":null,"id":23877247762531,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ece411a75236fc523c57f940d691304a23c5dfd_b3b2b699-1dbf-495e-bc92-0e7787ea16a3.webp?v=1714721443"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ece411a75236fc523c57f940d691304a23c5dfd_b3b2b699-1dbf-495e-bc92-0e7787ea16a3.webp?v=1714721443","width":2000},{"alt":null,"id":23877248385123,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38c046951d34ce4d76dcd0aabaf3045198d31184_d89a9cc7-4f17-4822-a03a-22f5a4f42113.webp?v=1714721446"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38c046951d34ce4d76dcd0aabaf3045198d31184_d89a9cc7-4f17-4822-a03a-22f5a4f42113.webp?v=1714721446","width":2000},{"alt":null,"id":23877248843875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c508274180e2f3b5ec4c825a3db1f6f1bc7f8511_eb4f9bb9-7481-42fa-ab86-30f44b472b17.webp?v=1714721448"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c508274180e2f3b5ec4c825a3db1f6f1bc7f8511_eb4f9bb9-7481-42fa-ab86-30f44b472b17.webp?v=1714721448","width":2000},{"alt":null,"id":23877249237091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28d979550da7179f134b7797e48d5c46f4c711cb_d1e3df72-87e6-40fc-bd7e-835d401fa440.webp?v=1714721450"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28d979550da7179f134b7797e48d5c46f4c711cb_d1e3df72-87e6-40fc-bd7e-835d401fa440.webp?v=1714721450","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885693706339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31472328835171,"product_id":7408457547875,"position":2,"created_at":"2024-05-03T15:30:31+08:00","updated_at":"2024-05-03T15:30:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b9048ef74b1cbb7ff6c5304fbe196ba0df917_34b76b3a-26eb-42bb-a8e5-730b510a1fa7.webp?v=1714721431","variant_ids":[41885693706339]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - 雨愛灌溉 - 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-YB08","featured_media":{"alt":null,"id":23877245272163,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b9048ef74b1cbb7ff6c5304fbe196ba0df917_34b76b3a-26eb-42bb-a8e5-730b510a1fa7.webp?v=1714721431"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885693706339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31472328835171,"product_id":7408457547875,"position":2,"created_at":"2024-05-03T15:30:31+08:00","updated_at":"2024-05-03T15:30:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b9048ef74b1cbb7ff6c5304fbe196ba0df917_34b76b3a-26eb-42bb-a8e5-730b510a1fa7.webp?v=1714721431","variant_ids":[41885693706339]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - 雨愛灌溉 - 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-YB08","featured_media":{"alt":null,"id":23877245272163,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60b9048ef74b1cbb7ff6c5304fbe196ba0df917_34b76b3a-26eb-42bb-a8e5-730b510a1fa7.webp?v=1714721431"}},"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: "停產" }