$product = {"id":7408498245731,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Care Bears - 美食派對","handle":"iphone-12-mini-mod-nx-printable-yb11","description":null,"published_at":"2024-06-11T16:38:56+08:00","created_at":"2024-05-03T15:38:29+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 mini","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":41886168809571,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31472431857763,"product_id":7408498245731,"position":3,"created_at":"2024-05-03T15:38:37+08:00","updated_at":"2024-05-03T15:38:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8834e25b29b870623d22c97aaf7234843d2f86db_ea6e0ebf-a50f-49cf-9ebd-0c7579a17f8a.webp?v=1714721917","variant_ids":[41886168809571]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 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":"NPB0118424-YB11","featured_media":{"alt":null,"id":23877348819043,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8834e25b29b870623d22c97aaf7234843d2f86db_ea6e0ebf-a50f-49cf-9ebd-0c7579a17f8a.webp?v=1714721917"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6651d4ff1f10d8573977be5bb4f9024784162f3_57916e19-18ba-4c07-85fa-a9bffcf7924d.webp?v=1714721912","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67a0cbc235b32aaf44ebc48d653da2de985fa616_d3b118c6-a309-4eee-8b97-dfaea615ef82.webp?v=1714721915","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8834e25b29b870623d22c97aaf7234843d2f86db_ea6e0ebf-a50f-49cf-9ebd-0c7579a17f8a.webp?v=1714721917","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a719886c7d7f4fa8bfba7b369322e87861107efd_39e3b639-f500-4675-bec5-419ab8bf5d22.webp?v=1714721919","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd74304da0a00dc799c365294abb6042d3ce65c0_4932e05f-6b7c-49f0-b455-3b1ebfc3d826.webp?v=1714721922","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/881892a6f1dc63dc38031fc0a6d5e44d0278c068_946b4d98-32d5-4f42-8835-6c818b826121.webp?v=1714721924","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47695a6c62a77727ae91bc0bc8cfb8e04978004b_dcf06e1b-5aa3-4aa8-b2f3-fa481589b683.webp?v=1714721927","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a63c38b28fb4994ac8cd109796d81895233e5ee_268e0604-8a88-4b70-88cf-f28bf994fc7c.webp?v=1714721929","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cb6beec6cd14820ae1006e9ba123ddf44f8bf96_89f38e7d-cab5-4c1c-96ba-f91f3eee0f7e.webp?v=1714721932","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93588ddb114534c11659127906065ecd1c49e8d2_68119d79-1d10-4be4-a713-a2ed58a3f91a.webp?v=1714721934","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/129bf2532d8ecf1eb90a14855f6859fae2f256d5_ee10d57d-c20c-43d5-96ff-797a8caba8dd.webp?v=1714721936"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6651d4ff1f10d8573977be5bb4f9024784162f3_57916e19-18ba-4c07-85fa-a9bffcf7924d.webp?v=1714721912","options":["color"],"media":[{"alt":null,"id":23877347737699,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6651d4ff1f10d8573977be5bb4f9024784162f3_57916e19-18ba-4c07-85fa-a9bffcf7924d.webp?v=1714721912"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6651d4ff1f10d8573977be5bb4f9024784162f3_57916e19-18ba-4c07-85fa-a9bffcf7924d.webp?v=1714721912","width":2000},{"alt":null,"id":23877348294755,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67a0cbc235b32aaf44ebc48d653da2de985fa616_d3b118c6-a309-4eee-8b97-dfaea615ef82.webp?v=1714721915"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67a0cbc235b32aaf44ebc48d653da2de985fa616_d3b118c6-a309-4eee-8b97-dfaea615ef82.webp?v=1714721915","width":2000},{"alt":null,"id":23877348819043,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8834e25b29b870623d22c97aaf7234843d2f86db_ea6e0ebf-a50f-49cf-9ebd-0c7579a17f8a.webp?v=1714721917"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8834e25b29b870623d22c97aaf7234843d2f86db_ea6e0ebf-a50f-49cf-9ebd-0c7579a17f8a.webp?v=1714721917","width":2000},{"alt":null,"id":23877349212259,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a719886c7d7f4fa8bfba7b369322e87861107efd_39e3b639-f500-4675-bec5-419ab8bf5d22.webp?v=1714721919"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a719886c7d7f4fa8bfba7b369322e87861107efd_39e3b639-f500-4675-bec5-419ab8bf5d22.webp?v=1714721919","width":2000},{"alt":null,"id":23877349900387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd74304da0a00dc799c365294abb6042d3ce65c0_4932e05f-6b7c-49f0-b455-3b1ebfc3d826.webp?v=1714721922"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd74304da0a00dc799c365294abb6042d3ce65c0_4932e05f-6b7c-49f0-b455-3b1ebfc3d826.webp?v=1714721922","width":2000},{"alt":null,"id":23877350326371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/881892a6f1dc63dc38031fc0a6d5e44d0278c068_946b4d98-32d5-4f42-8835-6c818b826121.webp?v=1714721924"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/881892a6f1dc63dc38031fc0a6d5e44d0278c068_946b4d98-32d5-4f42-8835-6c818b826121.webp?v=1714721924","width":2000},{"alt":null,"id":23877350916195,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47695a6c62a77727ae91bc0bc8cfb8e04978004b_dcf06e1b-5aa3-4aa8-b2f3-fa481589b683.webp?v=1714721927"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47695a6c62a77727ae91bc0bc8cfb8e04978004b_dcf06e1b-5aa3-4aa8-b2f3-fa481589b683.webp?v=1714721927","width":2000},{"alt":null,"id":23877351243875,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a63c38b28fb4994ac8cd109796d81895233e5ee_268e0604-8a88-4b70-88cf-f28bf994fc7c.webp?v=1714721929"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a63c38b28fb4994ac8cd109796d81895233e5ee_268e0604-8a88-4b70-88cf-f28bf994fc7c.webp?v=1714721929","width":2000},{"alt":null,"id":23877351964771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cb6beec6cd14820ae1006e9ba123ddf44f8bf96_89f38e7d-cab5-4c1c-96ba-f91f3eee0f7e.webp?v=1714721932"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cb6beec6cd14820ae1006e9ba123ddf44f8bf96_89f38e7d-cab5-4c1c-96ba-f91f3eee0f7e.webp?v=1714721932","width":2000},{"alt":null,"id":23877352357987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93588ddb114534c11659127906065ecd1c49e8d2_68119d79-1d10-4be4-a713-a2ed58a3f91a.webp?v=1714721934"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93588ddb114534c11659127906065ecd1c49e8d2_68119d79-1d10-4be4-a713-a2ed58a3f91a.webp?v=1714721934","width":2000},{"alt":null,"id":23877353013347,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/129bf2532d8ecf1eb90a14855f6859fae2f256d5_ee10d57d-c20c-43d5-96ff-797a8caba8dd.webp?v=1714721936"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/129bf2532d8ecf1eb90a14855f6859fae2f256d5_ee10d57d-c20c-43d5-96ff-797a8caba8dd.webp?v=1714721936","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886168809571,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31472431857763,"product_id":7408498245731,"position":3,"created_at":"2024-05-03T15:38:37+08:00","updated_at":"2024-05-03T15:38:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8834e25b29b870623d22c97aaf7234843d2f86db_ea6e0ebf-a50f-49cf-9ebd-0c7579a17f8a.webp?v=1714721917","variant_ids":[41886168809571]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 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":"NPB0118424-YB11","featured_media":{"alt":null,"id":23877348819043,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8834e25b29b870623d22c97aaf7234843d2f86db_ea6e0ebf-a50f-49cf-9ebd-0c7579a17f8a.webp?v=1714721917"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886168809571,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31472431857763,"product_id":7408498245731,"position":3,"created_at":"2024-05-03T15:38:37+08:00","updated_at":"2024-05-03T15:38:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8834e25b29b870623d22c97aaf7234843d2f86db_ea6e0ebf-a50f-49cf-9ebd-0c7579a17f8a.webp?v=1714721917","variant_ids":[41886168809571]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 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":"NPB0118424-YB11","featured_media":{"alt":null,"id":23877348819043,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8834e25b29b870623d22c97aaf7234843d2f86db_ea6e0ebf-a50f-49cf-9ebd-0c7579a17f8a.webp?v=1714721917"}},"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: "停產" }