$product = {"id":7408556474467,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Care Bears - Good Luck Bear","handle":"iphone-12-mini-mod-nx-printable-yb05","description":null,"published_at":"2024-06-11T16:40:37+08:00","created_at":"2024-05-03T15:50:05+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":41886840029283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-YB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472586588259,"product_id":7408556474467,"position":11,"created_at":"2024-05-03T15:50:32+08:00","updated_at":"2024-05-03T15:50:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be24719d3b90d72ecbf43fa5da7eee88ad8680f_9054eebb-8225-43ee-b9c2-5df83fe4cacd.webp?v=1714722632","variant_ids":[41886840029283]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Care Bears - Good Luck 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-YB05","featured_media":{"alt":null,"id":23877503942755,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be24719d3b90d72ecbf43fa5da7eee88ad8680f_9054eebb-8225-43ee-b9c2-5df83fe4cacd.webp?v=1714722632"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebe28db508049531b649d6f5c7f4a0060e36b802_c30d3bad-fd0b-42d8-88e5-2c6aa4fe41e1.webp?v=1714722608","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d2f55d0468aed4b10217e26d54780c4687dc9b4_f1392f4c-db84-43a3-87bc-c50ea94e20cc.webp?v=1714722611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c535f1c375d9cdca53cd174c02d9b096ef6f874a_600b972f-0a0b-4834-b12f-a80cb9281d8a.webp?v=1714722613","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21949b5b3532315b2b36683f451fe5c66d9ce524_3701dae5-c9e0-443b-a64a-6701b4bed58e.webp?v=1714722616","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75655a051c243be23eb2b112275a6dcbd9bf2d34_0a2457ec-4706-49ce-a991-a9e12d431572.webp?v=1714722618","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44e8d6bdf0ce811a07d11c03e67b4ced92e6f621_a3fb2e2a-9959-4a51-afa5-97656b4950ec.webp?v=1714722620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b7e97f431d102ef1a388fd576d68ae7032d4e73_f715b20a-445c-4eeb-94a8-fbbfbfa11d73.webp?v=1714722623","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d95b6e08f7169391720be6d26721a5dc223b24_b49a481f-3242-4815-9554-2529db10133c.webp?v=1714722625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e98997c8237216603229f55254e9016448bad62_04f3a1b7-4e5b-47e9-8b4c-d7bab8218ed2.webp?v=1714722627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bf9b28fddb194adcef561d17fcfa7d0c2211bb7_574eaed2-89b6-47e5-8fd5-26ddb1c335e0.webp?v=1714722630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be24719d3b90d72ecbf43fa5da7eee88ad8680f_9054eebb-8225-43ee-b9c2-5df83fe4cacd.webp?v=1714722632"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebe28db508049531b649d6f5c7f4a0060e36b802_c30d3bad-fd0b-42d8-88e5-2c6aa4fe41e1.webp?v=1714722608","options":["color"],"media":[{"alt":null,"id":23877498962019,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebe28db508049531b649d6f5c7f4a0060e36b802_c30d3bad-fd0b-42d8-88e5-2c6aa4fe41e1.webp?v=1714722608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebe28db508049531b649d6f5c7f4a0060e36b802_c30d3bad-fd0b-42d8-88e5-2c6aa4fe41e1.webp?v=1714722608","width":2000},{"alt":null,"id":23877499453539,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d2f55d0468aed4b10217e26d54780c4687dc9b4_f1392f4c-db84-43a3-87bc-c50ea94e20cc.webp?v=1714722611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d2f55d0468aed4b10217e26d54780c4687dc9b4_f1392f4c-db84-43a3-87bc-c50ea94e20cc.webp?v=1714722611","width":2000},{"alt":null,"id":23877500272739,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c535f1c375d9cdca53cd174c02d9b096ef6f874a_600b972f-0a0b-4834-b12f-a80cb9281d8a.webp?v=1714722613"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c535f1c375d9cdca53cd174c02d9b096ef6f874a_600b972f-0a0b-4834-b12f-a80cb9281d8a.webp?v=1714722613","width":2000},{"alt":null,"id":23877500633187,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21949b5b3532315b2b36683f451fe5c66d9ce524_3701dae5-c9e0-443b-a64a-6701b4bed58e.webp?v=1714722616"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21949b5b3532315b2b36683f451fe5c66d9ce524_3701dae5-c9e0-443b-a64a-6701b4bed58e.webp?v=1714722616","width":2000},{"alt":null,"id":23877501124707,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75655a051c243be23eb2b112275a6dcbd9bf2d34_0a2457ec-4706-49ce-a991-a9e12d431572.webp?v=1714722618"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75655a051c243be23eb2b112275a6dcbd9bf2d34_0a2457ec-4706-49ce-a991-a9e12d431572.webp?v=1714722618","width":2000},{"alt":null,"id":23877501452387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44e8d6bdf0ce811a07d11c03e67b4ced92e6f621_a3fb2e2a-9959-4a51-afa5-97656b4950ec.webp?v=1714722620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44e8d6bdf0ce811a07d11c03e67b4ced92e6f621_a3fb2e2a-9959-4a51-afa5-97656b4950ec.webp?v=1714722620","width":2000},{"alt":null,"id":23877502206051,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b7e97f431d102ef1a388fd576d68ae7032d4e73_f715b20a-445c-4eeb-94a8-fbbfbfa11d73.webp?v=1714722623"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b7e97f431d102ef1a388fd576d68ae7032d4e73_f715b20a-445c-4eeb-94a8-fbbfbfa11d73.webp?v=1714722623","width":2000},{"alt":null,"id":23877502632035,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d95b6e08f7169391720be6d26721a5dc223b24_b49a481f-3242-4815-9554-2529db10133c.webp?v=1714722625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d95b6e08f7169391720be6d26721a5dc223b24_b49a481f-3242-4815-9554-2529db10133c.webp?v=1714722625","width":2000},{"alt":null,"id":23877503123555,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e98997c8237216603229f55254e9016448bad62_04f3a1b7-4e5b-47e9-8b4c-d7bab8218ed2.webp?v=1714722627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e98997c8237216603229f55254e9016448bad62_04f3a1b7-4e5b-47e9-8b4c-d7bab8218ed2.webp?v=1714722627","width":2000},{"alt":null,"id":23877503484003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bf9b28fddb194adcef561d17fcfa7d0c2211bb7_574eaed2-89b6-47e5-8fd5-26ddb1c335e0.webp?v=1714722630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bf9b28fddb194adcef561d17fcfa7d0c2211bb7_574eaed2-89b6-47e5-8fd5-26ddb1c335e0.webp?v=1714722630","width":2000},{"alt":null,"id":23877503942755,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be24719d3b90d72ecbf43fa5da7eee88ad8680f_9054eebb-8225-43ee-b9c2-5df83fe4cacd.webp?v=1714722632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be24719d3b90d72ecbf43fa5da7eee88ad8680f_9054eebb-8225-43ee-b9c2-5df83fe4cacd.webp?v=1714722632","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886840029283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-YB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472586588259,"product_id":7408556474467,"position":11,"created_at":"2024-05-03T15:50:32+08:00","updated_at":"2024-05-03T15:50:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be24719d3b90d72ecbf43fa5da7eee88ad8680f_9054eebb-8225-43ee-b9c2-5df83fe4cacd.webp?v=1714722632","variant_ids":[41886840029283]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Care Bears - Good Luck 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-YB05","featured_media":{"alt":null,"id":23877503942755,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be24719d3b90d72ecbf43fa5da7eee88ad8680f_9054eebb-8225-43ee-b9c2-5df83fe4cacd.webp?v=1714722632"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886840029283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-YB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472586588259,"product_id":7408556474467,"position":11,"created_at":"2024-05-03T15:50:32+08:00","updated_at":"2024-05-03T15:50:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be24719d3b90d72ecbf43fa5da7eee88ad8680f_9054eebb-8225-43ee-b9c2-5df83fe4cacd.webp?v=1714722632","variant_ids":[41886840029283]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Care Bears - Good Luck 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-YB05","featured_media":{"alt":null,"id":23877503942755,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be24719d3b90d72ecbf43fa5da7eee88ad8680f_9054eebb-8225-43ee-b9c2-5df83fe4cacd.webp?v=1714722632"}},"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: "停產" }