$product = {"id":7416369709155,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - Funshine Bear","handle":"iphone-8-mod-nx-printable-yb06","description":null,"published_at":"2024-06-11T16:57:11+08:00","created_at":"2024-05-06T14:43:45+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 8","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":41918995267683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491961880675,"product_id":7416369709155,"position":7,"created_at":"2024-05-06T14:44:00+08:00","updated_at":"2024-05-06T14:44:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e81896c6de66c8bafa4ac000cf21d0c8606cec_ab71a148-a6c6-44dd-b9a6-665052e3f819.webp?v=1714977840","variant_ids":[41918995267683]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - Funshine Bear - 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-YB06","featured_media":{"alt":null,"id":23897375146083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e81896c6de66c8bafa4ac000cf21d0c8606cec_ab71a148-a6c6-44dd-b9a6-665052e3f819.webp?v=1714977840"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d2b82a305bfbda5bdd7df29218fba8096de71d3_1c801007-55fc-4e73-9a71-68ce0a9e58bb.webp?v=1714977827","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d694b2236a15ab79b60a26b0920d39d3500896f5_4702e9fd-fdf6-4307-b48a-5e0b5c597202.webp?v=1714977829","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e3ef3b1818f3dd3f6130393d48090f543226ea9_20175cc7-171e-4709-a5c8-afbbfa78efb9.webp?v=1714977831","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba2a707ac5f92bd25a115263b1bcb96f511e6243_65890e1d-b193-4900-a1d6-6c45727acc32.webp?v=1714977834","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d335d40daabb025956de0b61cdf67717aebbd414_4d4fa641-49ed-4bac-ba78-055a39694611.webp?v=1714977836","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9108e4eea1b3b22ae904e459344268f01381df89_7ead38d3-52f5-4ba8-9d4d-ce12bcd71a31.webp?v=1714977838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e81896c6de66c8bafa4ac000cf21d0c8606cec_ab71a148-a6c6-44dd-b9a6-665052e3f819.webp?v=1714977840","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38c0924906270eec3fb5119c4a5ae98294044cbe_fb5e019e-6ebe-4f8b-a9b2-a34a889bbeee.webp?v=1714977843","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe9beb4a1d7ea9b03668fd72e34ea8fdc913c8b1_e49613f5-1458-436b-8564-b19bc7631210.webp?v=1714977845","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e846ede00667b6321f0e7f6001ca0a0ccd9da3_c85681c6-772b-4625-a716-18f8fbb4aa8c.webp?v=1714977848"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d2b82a305bfbda5bdd7df29218fba8096de71d3_1c801007-55fc-4e73-9a71-68ce0a9e58bb.webp?v=1714977827","options":["color"],"media":[{"alt":null,"id":23897372098659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d2b82a305bfbda5bdd7df29218fba8096de71d3_1c801007-55fc-4e73-9a71-68ce0a9e58bb.webp?v=1714977827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d2b82a305bfbda5bdd7df29218fba8096de71d3_1c801007-55fc-4e73-9a71-68ce0a9e58bb.webp?v=1714977827","width":2000},{"alt":null,"id":23897372426339,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d694b2236a15ab79b60a26b0920d39d3500896f5_4702e9fd-fdf6-4307-b48a-5e0b5c597202.webp?v=1714977829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d694b2236a15ab79b60a26b0920d39d3500896f5_4702e9fd-fdf6-4307-b48a-5e0b5c597202.webp?v=1714977829","width":2000},{"alt":null,"id":23897373016163,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e3ef3b1818f3dd3f6130393d48090f543226ea9_20175cc7-171e-4709-a5c8-afbbfa78efb9.webp?v=1714977831"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e3ef3b1818f3dd3f6130393d48090f543226ea9_20175cc7-171e-4709-a5c8-afbbfa78efb9.webp?v=1714977831","width":2000},{"alt":null,"id":23897373343843,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba2a707ac5f92bd25a115263b1bcb96f511e6243_65890e1d-b193-4900-a1d6-6c45727acc32.webp?v=1714977834"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba2a707ac5f92bd25a115263b1bcb96f511e6243_65890e1d-b193-4900-a1d6-6c45727acc32.webp?v=1714977834","width":2000},{"alt":null,"id":23897374031971,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d335d40daabb025956de0b61cdf67717aebbd414_4d4fa641-49ed-4bac-ba78-055a39694611.webp?v=1714977836"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d335d40daabb025956de0b61cdf67717aebbd414_4d4fa641-49ed-4bac-ba78-055a39694611.webp?v=1714977836","width":2000},{"alt":null,"id":23897374556259,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9108e4eea1b3b22ae904e459344268f01381df89_7ead38d3-52f5-4ba8-9d4d-ce12bcd71a31.webp?v=1714977838"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9108e4eea1b3b22ae904e459344268f01381df89_7ead38d3-52f5-4ba8-9d4d-ce12bcd71a31.webp?v=1714977838","width":2000},{"alt":null,"id":23897375146083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e81896c6de66c8bafa4ac000cf21d0c8606cec_ab71a148-a6c6-44dd-b9a6-665052e3f819.webp?v=1714977840"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e81896c6de66c8bafa4ac000cf21d0c8606cec_ab71a148-a6c6-44dd-b9a6-665052e3f819.webp?v=1714977840","width":2000},{"alt":null,"id":23897375539299,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38c0924906270eec3fb5119c4a5ae98294044cbe_fb5e019e-6ebe-4f8b-a9b2-a34a889bbeee.webp?v=1714977843"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38c0924906270eec3fb5119c4a5ae98294044cbe_fb5e019e-6ebe-4f8b-a9b2-a34a889bbeee.webp?v=1714977843","width":2000},{"alt":null,"id":23897376292963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe9beb4a1d7ea9b03668fd72e34ea8fdc913c8b1_e49613f5-1458-436b-8564-b19bc7631210.webp?v=1714977845"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe9beb4a1d7ea9b03668fd72e34ea8fdc913c8b1_e49613f5-1458-436b-8564-b19bc7631210.webp?v=1714977845","width":2000},{"alt":null,"id":23897376718947,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e846ede00667b6321f0e7f6001ca0a0ccd9da3_c85681c6-772b-4625-a716-18f8fbb4aa8c.webp?v=1714977848"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e846ede00667b6321f0e7f6001ca0a0ccd9da3_c85681c6-772b-4625-a716-18f8fbb4aa8c.webp?v=1714977848","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918995267683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491961880675,"product_id":7416369709155,"position":7,"created_at":"2024-05-06T14:44:00+08:00","updated_at":"2024-05-06T14:44:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e81896c6de66c8bafa4ac000cf21d0c8606cec_ab71a148-a6c6-44dd-b9a6-665052e3f819.webp?v=1714977840","variant_ids":[41918995267683]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - Funshine Bear - 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-YB06","featured_media":{"alt":null,"id":23897375146083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e81896c6de66c8bafa4ac000cf21d0c8606cec_ab71a148-a6c6-44dd-b9a6-665052e3f819.webp?v=1714977840"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918995267683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491961880675,"product_id":7416369709155,"position":7,"created_at":"2024-05-06T14:44:00+08:00","updated_at":"2024-05-06T14:44:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e81896c6de66c8bafa4ac000cf21d0c8606cec_ab71a148-a6c6-44dd-b9a6-665052e3f819.webp?v=1714977840","variant_ids":[41918995267683]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - Funshine Bear - 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-YB06","featured_media":{"alt":null,"id":23897375146083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e81896c6de66c8bafa4ac000cf21d0c8606cec_ab71a148-a6c6-44dd-b9a6-665052e3f819.webp?v=1714977840"}},"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: "停產" }