$product = {"id":7408549888099,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Care Bears - Bedtime Bear","handle":"iphone-12-mini-mod-nx-printable-yb04","description":null,"published_at":"2024-06-11T16:40:25+08:00","created_at":"2024-05-03T15:48:37+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":41886757781603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472567091299,"product_id":7408549888099,"position":9,"created_at":"2024-05-03T15:49:00+08:00","updated_at":"2024-05-03T15:49:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f36a7275f566cf5afa273530830fd57024a34f91_3bb61074-7acd-49f1-aae8-744ed4e7837d.webp?v=1714722540","variant_ids":[41886757781603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Care Bears - Bedtime 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":"NPB0118424-YB04","featured_media":{"alt":null,"id":23877484413027,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f36a7275f566cf5afa273530830fd57024a34f91_3bb61074-7acd-49f1-aae8-744ed4e7837d.webp?v=1714722540"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b76507af14b4ffeb19bded227365d379bbadf5e2_aeff2396-7665-4511-99f3-17f7e8dcd1a6.webp?v=1714722520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b498dbb6dc2ee2e3a5e121dee7192f1479d1f78_ea0bc309-e240-4e46-852e-7a209111e889.webp?v=1714722523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e440d94cce7b25f8c54282706d586c4da28eba0_45a48dc0-5405-4211-82ae-005627cd959f.webp?v=1714722525","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3915c83999690db498d5c9772f4abed54a28795_2009c8d8-0ae4-4092-9662-f88ca6319455.webp?v=1714722528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dde3a97610814facd4b626b874b929a7b763171a_48b9f9f8-9f9b-4254-95d2-ea3da52c0abc.webp?v=1714722530","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9150e2616e61ff72e0f83b6b2bb87c57629bbcd4_6a3429b4-47c6-49a3-ae72-9d0022fd0263.webp?v=1714722532","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5f4f713933442b6e242cd19cb54da24872e39e4_3b9aabef-4963-4bcc-94ce-62579ca8107e.webp?v=1714722535","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62510cbe8eae207d250fbaaa346c5f02468f6d03_21b61b7c-c7b5-4271-ad2f-414f37f16574.webp?v=1714722537","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f36a7275f566cf5afa273530830fd57024a34f91_3bb61074-7acd-49f1-aae8-744ed4e7837d.webp?v=1714722540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bdd81eb55e538069a73ac0a184533ecfcaa6056_e2baa75f-6b7c-427a-8cb2-56c44ff57c6f.webp?v=1714722542","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6381792d1ccc61daa6a6092bda54e8defc2281c_eabb092c-3222-4a7b-a78b-9c066bd851ca.webp?v=1714722544"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b76507af14b4ffeb19bded227365d379bbadf5e2_aeff2396-7665-4511-99f3-17f7e8dcd1a6.webp?v=1714722520","options":["color"],"media":[{"alt":null,"id":23877480284259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b76507af14b4ffeb19bded227365d379bbadf5e2_aeff2396-7665-4511-99f3-17f7e8dcd1a6.webp?v=1714722520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b76507af14b4ffeb19bded227365d379bbadf5e2_aeff2396-7665-4511-99f3-17f7e8dcd1a6.webp?v=1714722520","width":2000},{"alt":null,"id":23877480906851,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b498dbb6dc2ee2e3a5e121dee7192f1479d1f78_ea0bc309-e240-4e46-852e-7a209111e889.webp?v=1714722523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b498dbb6dc2ee2e3a5e121dee7192f1479d1f78_ea0bc309-e240-4e46-852e-7a209111e889.webp?v=1714722523","width":2000},{"alt":null,"id":23877481398371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e440d94cce7b25f8c54282706d586c4da28eba0_45a48dc0-5405-4211-82ae-005627cd959f.webp?v=1714722525"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e440d94cce7b25f8c54282706d586c4da28eba0_45a48dc0-5405-4211-82ae-005627cd959f.webp?v=1714722525","width":2000},{"alt":null,"id":23877481857123,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3915c83999690db498d5c9772f4abed54a28795_2009c8d8-0ae4-4092-9662-f88ca6319455.webp?v=1714722528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3915c83999690db498d5c9772f4abed54a28795_2009c8d8-0ae4-4092-9662-f88ca6319455.webp?v=1714722528","width":2000},{"alt":null,"id":23877482512483,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dde3a97610814facd4b626b874b929a7b763171a_48b9f9f8-9f9b-4254-95d2-ea3da52c0abc.webp?v=1714722530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dde3a97610814facd4b626b874b929a7b763171a_48b9f9f8-9f9b-4254-95d2-ea3da52c0abc.webp?v=1714722530","width":2000},{"alt":null,"id":23877482971235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9150e2616e61ff72e0f83b6b2bb87c57629bbcd4_6a3429b4-47c6-49a3-ae72-9d0022fd0263.webp?v=1714722532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9150e2616e61ff72e0f83b6b2bb87c57629bbcd4_6a3429b4-47c6-49a3-ae72-9d0022fd0263.webp?v=1714722532","width":2000},{"alt":null,"id":23877483495523,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5f4f713933442b6e242cd19cb54da24872e39e4_3b9aabef-4963-4bcc-94ce-62579ca8107e.webp?v=1714722535"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5f4f713933442b6e242cd19cb54da24872e39e4_3b9aabef-4963-4bcc-94ce-62579ca8107e.webp?v=1714722535","width":2000},{"alt":null,"id":23877483987043,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62510cbe8eae207d250fbaaa346c5f02468f6d03_21b61b7c-c7b5-4271-ad2f-414f37f16574.webp?v=1714722537"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62510cbe8eae207d250fbaaa346c5f02468f6d03_21b61b7c-c7b5-4271-ad2f-414f37f16574.webp?v=1714722537","width":2000},{"alt":null,"id":23877484413027,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f36a7275f566cf5afa273530830fd57024a34f91_3bb61074-7acd-49f1-aae8-744ed4e7837d.webp?v=1714722540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f36a7275f566cf5afa273530830fd57024a34f91_3bb61074-7acd-49f1-aae8-744ed4e7837d.webp?v=1714722540","width":2000},{"alt":null,"id":23877484871779,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bdd81eb55e538069a73ac0a184533ecfcaa6056_e2baa75f-6b7c-427a-8cb2-56c44ff57c6f.webp?v=1714722542"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bdd81eb55e538069a73ac0a184533ecfcaa6056_e2baa75f-6b7c-427a-8cb2-56c44ff57c6f.webp?v=1714722542","width":2000},{"alt":null,"id":23877485396067,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6381792d1ccc61daa6a6092bda54e8defc2281c_eabb092c-3222-4a7b-a78b-9c066bd851ca.webp?v=1714722544"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6381792d1ccc61daa6a6092bda54e8defc2281c_eabb092c-3222-4a7b-a78b-9c066bd851ca.webp?v=1714722544","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886757781603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472567091299,"product_id":7408549888099,"position":9,"created_at":"2024-05-03T15:49:00+08:00","updated_at":"2024-05-03T15:49:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f36a7275f566cf5afa273530830fd57024a34f91_3bb61074-7acd-49f1-aae8-744ed4e7837d.webp?v=1714722540","variant_ids":[41886757781603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Care Bears - Bedtime 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":"NPB0118424-YB04","featured_media":{"alt":null,"id":23877484413027,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f36a7275f566cf5afa273530830fd57024a34f91_3bb61074-7acd-49f1-aae8-744ed4e7837d.webp?v=1714722540"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886757781603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472567091299,"product_id":7408549888099,"position":9,"created_at":"2024-05-03T15:49:00+08:00","updated_at":"2024-05-03T15:49:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f36a7275f566cf5afa273530830fd57024a34f91_3bb61074-7acd-49f1-aae8-744ed4e7837d.webp?v=1714722540","variant_ids":[41886757781603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Care Bears - Bedtime 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":"NPB0118424-YB04","featured_media":{"alt":null,"id":23877484413027,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f36a7275f566cf5afa273530830fd57024a34f91_3bb61074-7acd-49f1-aae8-744ed4e7837d.webp?v=1714722540"}},"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: "停產" }