$product = {"id":7408465576035,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Care Bears - 抱一個","handle":"iphone-12-mini-mod-nx-printable-yb01","description":null,"published_at":"2024-06-11T16:38:00+08:00","created_at":"2024-05-03T15:32:02+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":41885792796771,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-YB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472348430435,"product_id":7408465576035,"position":2,"created_at":"2024-05-03T15:32:07+08:00","updated_at":"2024-05-03T15:32:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b75616dc58e4b306f3d2bf71fdc494a57a763f9_f925e33b-4d44-4b15-994e-9ac173cd4859.webp?v=1714721527","variant_ids":[41885792796771]},"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-YB01","featured_media":{"alt":null,"id":23877265031267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b75616dc58e4b306f3d2bf71fdc494a57a763f9_f925e33b-4d44-4b15-994e-9ac173cd4859.webp?v=1714721527"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d9f89c301aa997db856bc1d22cc3e79f26ee8f9_f48cd72c-82ac-4541-b3d5-3a71e0a05776.webp?v=1714721525","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b75616dc58e4b306f3d2bf71fdc494a57a763f9_f925e33b-4d44-4b15-994e-9ac173cd4859.webp?v=1714721527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b22d85961e45d9f6ce18ab88db9fd0b1a319569_58610889-778f-4b4c-ae6a-c1a73b6d05d8.webp?v=1714721530","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/297749835ad5624a4582d4fc4e8a9f3365ca55ef_c38924ab-af72-4e52-b52c-488c753798f9.webp?v=1714721532","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b41d0bf25bba8dacd661a9fe2b0f060907e65159_0f1fa07c-60f1-419f-bdea-90cbd862a0c2.webp?v=1714721534","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d85576d923f0f3a9fd55aae8325a9de8652c88b_f8b20d35-e7e4-40f9-820d-12760855acea.webp?v=1714721537","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4de982f8ac5079c8d4231b9b5cad67ba7679b8b_fa77db24-1e40-4288-a6a5-151664a008cd.webp?v=1714721539","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/551f121dcc0a07fb8fadee7597ba197d1aae2197_25a3842f-43dc-4c4b-ad66-2908394b1aa5.webp?v=1714721542","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aad1d06f2b327747b705713ac11ab366e5ee547b_7ef8cad3-17cd-4e43-8e4e-621a652e14fe.webp?v=1714721544","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bc3e0b01c12c3ce9fd1b65fc50cfebc90709d51_5e623319-e417-4bb2-a813-68596388a396.webp?v=1714721547","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/288655198119b3917988ea69220c4d50375317f2_1024bcac-d6e5-44a3-8f68-6ea15cd310ab.webp?v=1714721549"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d9f89c301aa997db856bc1d22cc3e79f26ee8f9_f48cd72c-82ac-4541-b3d5-3a71e0a05776.webp?v=1714721525","options":["color"],"media":[{"alt":null,"id":23877264736355,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d9f89c301aa997db856bc1d22cc3e79f26ee8f9_f48cd72c-82ac-4541-b3d5-3a71e0a05776.webp?v=1714721525"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d9f89c301aa997db856bc1d22cc3e79f26ee8f9_f48cd72c-82ac-4541-b3d5-3a71e0a05776.webp?v=1714721525","width":2000},{"alt":null,"id":23877265031267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b75616dc58e4b306f3d2bf71fdc494a57a763f9_f925e33b-4d44-4b15-994e-9ac173cd4859.webp?v=1714721527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b75616dc58e4b306f3d2bf71fdc494a57a763f9_f925e33b-4d44-4b15-994e-9ac173cd4859.webp?v=1714721527","width":2000},{"alt":null,"id":23877265653859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b22d85961e45d9f6ce18ab88db9fd0b1a319569_58610889-778f-4b4c-ae6a-c1a73b6d05d8.webp?v=1714721530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b22d85961e45d9f6ce18ab88db9fd0b1a319569_58610889-778f-4b4c-ae6a-c1a73b6d05d8.webp?v=1714721530","width":2000},{"alt":null,"id":23877265883235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/297749835ad5624a4582d4fc4e8a9f3365ca55ef_c38924ab-af72-4e52-b52c-488c753798f9.webp?v=1714721532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/297749835ad5624a4582d4fc4e8a9f3365ca55ef_c38924ab-af72-4e52-b52c-488c753798f9.webp?v=1714721532","width":2000},{"alt":null,"id":23877266571363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b41d0bf25bba8dacd661a9fe2b0f060907e65159_0f1fa07c-60f1-419f-bdea-90cbd862a0c2.webp?v=1714721534"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b41d0bf25bba8dacd661a9fe2b0f060907e65159_0f1fa07c-60f1-419f-bdea-90cbd862a0c2.webp?v=1714721534","width":2000},{"alt":null,"id":23877266899043,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d85576d923f0f3a9fd55aae8325a9de8652c88b_f8b20d35-e7e4-40f9-820d-12760855acea.webp?v=1714721537"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d85576d923f0f3a9fd55aae8325a9de8652c88b_f8b20d35-e7e4-40f9-820d-12760855acea.webp?v=1714721537","width":2000},{"alt":null,"id":23877267456099,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4de982f8ac5079c8d4231b9b5cad67ba7679b8b_fa77db24-1e40-4288-a6a5-151664a008cd.webp?v=1714721539"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4de982f8ac5079c8d4231b9b5cad67ba7679b8b_fa77db24-1e40-4288-a6a5-151664a008cd.webp?v=1714721539","width":2000},{"alt":null,"id":23877267914851,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/551f121dcc0a07fb8fadee7597ba197d1aae2197_25a3842f-43dc-4c4b-ad66-2908394b1aa5.webp?v=1714721542"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/551f121dcc0a07fb8fadee7597ba197d1aae2197_25a3842f-43dc-4c4b-ad66-2908394b1aa5.webp?v=1714721542","width":2000},{"alt":null,"id":23877268373603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aad1d06f2b327747b705713ac11ab366e5ee547b_7ef8cad3-17cd-4e43-8e4e-621a652e14fe.webp?v=1714721544"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aad1d06f2b327747b705713ac11ab366e5ee547b_7ef8cad3-17cd-4e43-8e4e-621a652e14fe.webp?v=1714721544","width":2000},{"alt":null,"id":23877268766819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bc3e0b01c12c3ce9fd1b65fc50cfebc90709d51_5e623319-e417-4bb2-a813-68596388a396.webp?v=1714721547"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bc3e0b01c12c3ce9fd1b65fc50cfebc90709d51_5e623319-e417-4bb2-a813-68596388a396.webp?v=1714721547","width":2000},{"alt":null,"id":23877269192803,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/288655198119b3917988ea69220c4d50375317f2_1024bcac-d6e5-44a3-8f68-6ea15cd310ab.webp?v=1714721549"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/288655198119b3917988ea69220c4d50375317f2_1024bcac-d6e5-44a3-8f68-6ea15cd310ab.webp?v=1714721549","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885792796771,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-YB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472348430435,"product_id":7408465576035,"position":2,"created_at":"2024-05-03T15:32:07+08:00","updated_at":"2024-05-03T15:32:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b75616dc58e4b306f3d2bf71fdc494a57a763f9_f925e33b-4d44-4b15-994e-9ac173cd4859.webp?v=1714721527","variant_ids":[41885792796771]},"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-YB01","featured_media":{"alt":null,"id":23877265031267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b75616dc58e4b306f3d2bf71fdc494a57a763f9_f925e33b-4d44-4b15-994e-9ac173cd4859.webp?v=1714721527"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885792796771,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-YB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472348430435,"product_id":7408465576035,"position":2,"created_at":"2024-05-03T15:32:07+08:00","updated_at":"2024-05-03T15:32:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b75616dc58e4b306f3d2bf71fdc494a57a763f9_f925e33b-4d44-4b15-994e-9ac173cd4859.webp?v=1714721527","variant_ids":[41885792796771]},"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-YB01","featured_media":{"alt":null,"id":23877265031267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b75616dc58e4b306f3d2bf71fdc494a57a763f9_f925e33b-4d44-4b15-994e-9ac173cd4859.webp?v=1714721527"}},"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: "停產" }