$product = {"id":7407654666339,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - 愛心滿天","handle":"iphone-14-plus-mod-nx-printable-yb07","description":null,"published_at":"2024-06-11T16:21:35+08:00","created_at":"2024-05-03T10:37:57+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 14 Plus","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":41877251260515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470163099747,"product_id":7407654666339,"position":6,"created_at":"2024-05-03T10:38:13+08:00","updated_at":"2024-05-03T10:38:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e12429b12f8f6721849802059c0012f6bfb70cd_75f4c652-eaf6-4a1c-a8df-ae4101af8ab0.webp?v=1714703893","variant_ids":[41877251260515]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 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":"NPB0126124-YB07","featured_media":{"alt":null,"id":23875065970787,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e12429b12f8f6721849802059c0012f6bfb70cd_75f4c652-eaf6-4a1c-a8df-ae4101af8ab0.webp?v=1714703893"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/173ccbf3368a4447dd3950f5f58cc42d8c60b059_5e77b0f7-ecbc-4124-be6a-2549e132a5d2.webp?v=1714703880","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ab20fcd86ab73583af485ac3d6deeccfc16a289_a0a72ada-5364-42dc-a1c4-e7f59c63645a.webp?v=1714703883","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e50a25ea7cd6c1f964639b62a096cfd2f2d5cd7c_59e40188-39d7-4106-acf9-b1f506767367.webp?v=1714703885","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/192fc7f96a650f9d063c22db6a3a9d94d98e43cd_510f6834-b3bd-4eb9-9369-c081bfc6debb.webp?v=1714703888","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e620d96e60facc8205677f848c68d9fe13560bff_1ac4a486-30fe-4806-aa9b-4303bfed8807.webp?v=1714703891","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e12429b12f8f6721849802059c0012f6bfb70cd_75f4c652-eaf6-4a1c-a8df-ae4101af8ab0.webp?v=1714703893","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c5dfa380e0eee98c51f8e4f8428f5ad85d8b257_9016fc6d-a36d-4a52-a82a-45e94685a07e.webp?v=1714703896","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68a5e7850a4ee6da7c74702b49ddbe12be3ad0d0_74b11779-96a2-43e1-af3c-46ceb3ee1618.webp?v=1714703899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc04529829a490953430f477f0d1d2cff9c1a81b_c91694cc-2a66-4389-946b-31f274ce39da.webp?v=1714703901","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd7ad032895ffad2184abaf5a1493813f90c244_c83c1d61-9a30-4aec-be02-7aa51aaca512.webp?v=1714703904"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/173ccbf3368a4447dd3950f5f58cc42d8c60b059_5e77b0f7-ecbc-4124-be6a-2549e132a5d2.webp?v=1714703880","options":["color"],"media":[{"alt":null,"id":23875062988899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/173ccbf3368a4447dd3950f5f58cc42d8c60b059_5e77b0f7-ecbc-4124-be6a-2549e132a5d2.webp?v=1714703880"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/173ccbf3368a4447dd3950f5f58cc42d8c60b059_5e77b0f7-ecbc-4124-be6a-2549e132a5d2.webp?v=1714703880","width":2000},{"alt":null,"id":23875063578723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ab20fcd86ab73583af485ac3d6deeccfc16a289_a0a72ada-5364-42dc-a1c4-e7f59c63645a.webp?v=1714703883"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ab20fcd86ab73583af485ac3d6deeccfc16a289_a0a72ada-5364-42dc-a1c4-e7f59c63645a.webp?v=1714703883","width":2000},{"alt":null,"id":23875064266851,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e50a25ea7cd6c1f964639b62a096cfd2f2d5cd7c_59e40188-39d7-4106-acf9-b1f506767367.webp?v=1714703885"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e50a25ea7cd6c1f964639b62a096cfd2f2d5cd7c_59e40188-39d7-4106-acf9-b1f506767367.webp?v=1714703885","width":2000},{"alt":null,"id":23875064823907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/192fc7f96a650f9d063c22db6a3a9d94d98e43cd_510f6834-b3bd-4eb9-9369-c081bfc6debb.webp?v=1714703888"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/192fc7f96a650f9d063c22db6a3a9d94d98e43cd_510f6834-b3bd-4eb9-9369-c081bfc6debb.webp?v=1714703888","width":2000},{"alt":null,"id":23875065348195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e620d96e60facc8205677f848c68d9fe13560bff_1ac4a486-30fe-4806-aa9b-4303bfed8807.webp?v=1714703891"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e620d96e60facc8205677f848c68d9fe13560bff_1ac4a486-30fe-4806-aa9b-4303bfed8807.webp?v=1714703891","width":2000},{"alt":null,"id":23875065970787,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e12429b12f8f6721849802059c0012f6bfb70cd_75f4c652-eaf6-4a1c-a8df-ae4101af8ab0.webp?v=1714703893"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e12429b12f8f6721849802059c0012f6bfb70cd_75f4c652-eaf6-4a1c-a8df-ae4101af8ab0.webp?v=1714703893","width":2000},{"alt":null,"id":23875066495075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c5dfa380e0eee98c51f8e4f8428f5ad85d8b257_9016fc6d-a36d-4a52-a82a-45e94685a07e.webp?v=1714703896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c5dfa380e0eee98c51f8e4f8428f5ad85d8b257_9016fc6d-a36d-4a52-a82a-45e94685a07e.webp?v=1714703896","width":2000},{"alt":null,"id":23875066986595,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68a5e7850a4ee6da7c74702b49ddbe12be3ad0d0_74b11779-96a2-43e1-af3c-46ceb3ee1618.webp?v=1714703899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68a5e7850a4ee6da7c74702b49ddbe12be3ad0d0_74b11779-96a2-43e1-af3c-46ceb3ee1618.webp?v=1714703899","width":2000},{"alt":null,"id":23875067576419,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc04529829a490953430f477f0d1d2cff9c1a81b_c91694cc-2a66-4389-946b-31f274ce39da.webp?v=1714703901"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc04529829a490953430f477f0d1d2cff9c1a81b_c91694cc-2a66-4389-946b-31f274ce39da.webp?v=1714703901","width":2000},{"alt":null,"id":23875067936867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd7ad032895ffad2184abaf5a1493813f90c244_c83c1d61-9a30-4aec-be02-7aa51aaca512.webp?v=1714703904"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd7ad032895ffad2184abaf5a1493813f90c244_c83c1d61-9a30-4aec-be02-7aa51aaca512.webp?v=1714703904","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41877251260515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470163099747,"product_id":7407654666339,"position":6,"created_at":"2024-05-03T10:38:13+08:00","updated_at":"2024-05-03T10:38:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e12429b12f8f6721849802059c0012f6bfb70cd_75f4c652-eaf6-4a1c-a8df-ae4101af8ab0.webp?v=1714703893","variant_ids":[41877251260515]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 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":"NPB0126124-YB07","featured_media":{"alt":null,"id":23875065970787,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e12429b12f8f6721849802059c0012f6bfb70cd_75f4c652-eaf6-4a1c-a8df-ae4101af8ab0.webp?v=1714703893"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41877251260515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470163099747,"product_id":7407654666339,"position":6,"created_at":"2024-05-03T10:38:13+08:00","updated_at":"2024-05-03T10:38:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e12429b12f8f6721849802059c0012f6bfb70cd_75f4c652-eaf6-4a1c-a8df-ae4101af8ab0.webp?v=1714703893","variant_ids":[41877251260515]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 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":"NPB0126124-YB07","featured_media":{"alt":null,"id":23875065970787,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e12429b12f8f6721849802059c0012f6bfb70cd_75f4c652-eaf6-4a1c-a8df-ae4101af8ab0.webp?v=1714703893"}},"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: "停產" }