$product = {"id":7407825485923,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - 抱一個","handle":"iphone-14-plus-mod-nx-printable-yb01","description":null,"published_at":"2024-06-11T16:23:53+08:00","created_at":"2024-05-03T10:57:17+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":41879291494499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470465024099,"product_id":7407825485923,"position":7,"created_at":"2024-05-03T10:57:35+08:00","updated_at":"2024-05-03T10:57:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15fc491ca1d929c1dcba306c61f9d851e00b1c8d_b7bdcd5d-e29e-4b5a-9f06-a714a568ff66.webp?v=1714705055","variant_ids":[41879291494499]},"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-YB01","featured_media":{"alt":null,"id":23875368517731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15fc491ca1d929c1dcba306c61f9d851e00b1c8d_b7bdcd5d-e29e-4b5a-9f06-a714a568ff66.webp?v=1714705055"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/990d6bc203c047cd4268e2de69718cded505e72d_11e111f1-486b-4a4a-87ff-926a548a6857.webp?v=1714705040","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7105b8acd77aaaff9a72d868401be10891eb4bc4_e9d16488-0336-4b28-9c51-6a09dfa0e987.webp?v=1714705042","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ef9c4e2a9063146e322da8d604c28aff7b29a34_b6582856-09e4-4762-a8b6-c57757fa169b.webp?v=1714705045","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3634af8e7bdce299039f2cbd622889765bed240f_f06f2f07-8cf1-45cd-9533-80710fcc152d.webp?v=1714705047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0da645550029a9df435a5b1b0eccd2b9855d7ead_21dffe96-a967-4348-857e-cdaa5f15a45f.webp?v=1714705049","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b39884f91c8ac4a704dde20dd5d33c6a82a8eb59_d4f3898f-eff3-4e81-8a75-4a38279ff9f4.webp?v=1714705052","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15fc491ca1d929c1dcba306c61f9d851e00b1c8d_b7bdcd5d-e29e-4b5a-9f06-a714a568ff66.webp?v=1714705055","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa3dae3ac4f8272e2f186c338ba73617abdf8f3e_79ae444b-bf3f-499e-bd31-b5f7b9f07b78.webp?v=1714705057","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e78e63397a4bbaebe783d0bc35c6e4706c029bd_e4b2dc60-3b8e-4085-8f6f-e0de263951af.webp?v=1714705059","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3be40e60d4a088a20f6d793983f3f4c4c9f9d232_46cf09b6-fc97-47e3-ab2b-5aefa258ced5.webp?v=1714705062"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/990d6bc203c047cd4268e2de69718cded505e72d_11e111f1-486b-4a4a-87ff-926a548a6857.webp?v=1714705040","options":["color"],"media":[{"alt":null,"id":23875365797987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/990d6bc203c047cd4268e2de69718cded505e72d_11e111f1-486b-4a4a-87ff-926a548a6857.webp?v=1714705040"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/990d6bc203c047cd4268e2de69718cded505e72d_11e111f1-486b-4a4a-87ff-926a548a6857.webp?v=1714705040","width":2000},{"alt":null,"id":23875366191203,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7105b8acd77aaaff9a72d868401be10891eb4bc4_e9d16488-0336-4b28-9c51-6a09dfa0e987.webp?v=1714705042"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7105b8acd77aaaff9a72d868401be10891eb4bc4_e9d16488-0336-4b28-9c51-6a09dfa0e987.webp?v=1714705042","width":2000},{"alt":null,"id":23875366682723,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ef9c4e2a9063146e322da8d604c28aff7b29a34_b6582856-09e4-4762-a8b6-c57757fa169b.webp?v=1714705045"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ef9c4e2a9063146e322da8d604c28aff7b29a34_b6582856-09e4-4762-a8b6-c57757fa169b.webp?v=1714705045","width":2000},{"alt":null,"id":23875366912099,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3634af8e7bdce299039f2cbd622889765bed240f_f06f2f07-8cf1-45cd-9533-80710fcc152d.webp?v=1714705047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3634af8e7bdce299039f2cbd622889765bed240f_f06f2f07-8cf1-45cd-9533-80710fcc152d.webp?v=1714705047","width":2000},{"alt":null,"id":23875367501923,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0da645550029a9df435a5b1b0eccd2b9855d7ead_21dffe96-a967-4348-857e-cdaa5f15a45f.webp?v=1714705049"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0da645550029a9df435a5b1b0eccd2b9855d7ead_21dffe96-a967-4348-857e-cdaa5f15a45f.webp?v=1714705049","width":2000},{"alt":null,"id":23875367895139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b39884f91c8ac4a704dde20dd5d33c6a82a8eb59_d4f3898f-eff3-4e81-8a75-4a38279ff9f4.webp?v=1714705052"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b39884f91c8ac4a704dde20dd5d33c6a82a8eb59_d4f3898f-eff3-4e81-8a75-4a38279ff9f4.webp?v=1714705052","width":2000},{"alt":null,"id":23875368517731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15fc491ca1d929c1dcba306c61f9d851e00b1c8d_b7bdcd5d-e29e-4b5a-9f06-a714a568ff66.webp?v=1714705055"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15fc491ca1d929c1dcba306c61f9d851e00b1c8d_b7bdcd5d-e29e-4b5a-9f06-a714a568ff66.webp?v=1714705055","width":2000},{"alt":null,"id":23875369009251,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa3dae3ac4f8272e2f186c338ba73617abdf8f3e_79ae444b-bf3f-499e-bd31-b5f7b9f07b78.webp?v=1714705057"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa3dae3ac4f8272e2f186c338ba73617abdf8f3e_79ae444b-bf3f-499e-bd31-b5f7b9f07b78.webp?v=1714705057","width":2000},{"alt":null,"id":23875369402467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e78e63397a4bbaebe783d0bc35c6e4706c029bd_e4b2dc60-3b8e-4085-8f6f-e0de263951af.webp?v=1714705059"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e78e63397a4bbaebe783d0bc35c6e4706c029bd_e4b2dc60-3b8e-4085-8f6f-e0de263951af.webp?v=1714705059","width":2000},{"alt":null,"id":23875369959523,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3be40e60d4a088a20f6d793983f3f4c4c9f9d232_46cf09b6-fc97-47e3-ab2b-5aefa258ced5.webp?v=1714705062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3be40e60d4a088a20f6d793983f3f4c4c9f9d232_46cf09b6-fc97-47e3-ab2b-5aefa258ced5.webp?v=1714705062","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41879291494499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470465024099,"product_id":7407825485923,"position":7,"created_at":"2024-05-03T10:57:35+08:00","updated_at":"2024-05-03T10:57:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15fc491ca1d929c1dcba306c61f9d851e00b1c8d_b7bdcd5d-e29e-4b5a-9f06-a714a568ff66.webp?v=1714705055","variant_ids":[41879291494499]},"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-YB01","featured_media":{"alt":null,"id":23875368517731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15fc491ca1d929c1dcba306c61f9d851e00b1c8d_b7bdcd5d-e29e-4b5a-9f06-a714a568ff66.webp?v=1714705055"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41879291494499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470465024099,"product_id":7407825485923,"position":7,"created_at":"2024-05-03T10:57:35+08:00","updated_at":"2024-05-03T10:57:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15fc491ca1d929c1dcba306c61f9d851e00b1c8d_b7bdcd5d-e29e-4b5a-9f06-a714a568ff66.webp?v=1714705055","variant_ids":[41879291494499]},"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-YB01","featured_media":{"alt":null,"id":23875368517731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15fc491ca1d929c1dcba306c61f9d851e00b1c8d_b7bdcd5d-e29e-4b5a-9f06-a714a568ff66.webp?v=1714705055"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}