$product = {"id":7408463282275,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - 抱一個","handle":"iphone-12-pro-max-mod-nx-printable-yb01","description":null,"published_at":"2024-06-11T16:37:56+08:00","created_at":"2024-05-03T15:31: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 pro max","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":41885764223075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472344137827,"product_id":7408463282275,"position":4,"created_at":"2024-05-03T15:31:47+08:00","updated_at":"2024-05-03T15:31:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abe5c7a70964d5d5c0ae874d2d20ad57ca3b677f_3a3acdce-c913-4668-8ac0-26316a418ab9.webp?v=1714721507","variant_ids":[41885764223075]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-YB01","featured_media":{"alt":null,"id":23877260738659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abe5c7a70964d5d5c0ae874d2d20ad57ca3b677f_3a3acdce-c913-4668-8ac0-26316a418ab9.webp?v=1714721507"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a821d7e47ec1cfbe4f70480d88ce270a261555c_03ffb314-57d6-4e52-8715-710928e08c6d.webp?v=1714721499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65acd48c1c98c4f68d3e143842f92391f6253665_be1aab6c-4c44-4e98-a9ca-44c40ef3486d.webp?v=1714721502","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b9a81d846fcd43377ba5602f456bbc33e7daaba_d4c000cb-2c62-46e8-abaf-65bc6de4c740.webp?v=1714721504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abe5c7a70964d5d5c0ae874d2d20ad57ca3b677f_3a3acdce-c913-4668-8ac0-26316a418ab9.webp?v=1714721507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e92c5063a05d5c8b474f939d2f2ea0ca0115458c_fdd864ad-abeb-4402-8153-9aba4a473372.webp?v=1714721509","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c689a963840d9421ee1df150db9ce39bc950b78_2c18d1f9-4025-41a8-834b-c95b08886451.webp?v=1714721512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/518d6df2ad73528e73e7907976f63bdbdb9087f3_49616c5b-0f3b-40a4-82cc-e81b550c26f6.webp?v=1714721514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2afc2d1475e158ef1085782d650f7f7fe8435521_fad6a62a-05ba-49ef-8588-5f15bb60e862.webp?v=1714721517","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e123d11fce1a7cf8a3d21ff5d94e0989e1f5b23_cb01e837-b3bd-4d5c-a91f-0effaf6e73c3.webp?v=1714721519","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8103b0fc4b4cdf2c5c4f8a1afa9ac929f8d6d504_bf71c04b-ae39-452a-8bb1-94ed7602b2c3.webp?v=1714721521"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a821d7e47ec1cfbe4f70480d88ce270a261555c_03ffb314-57d6-4e52-8715-710928e08c6d.webp?v=1714721499","options":["color"],"media":[{"alt":null,"id":23877259231331,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a821d7e47ec1cfbe4f70480d88ce270a261555c_03ffb314-57d6-4e52-8715-710928e08c6d.webp?v=1714721499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a821d7e47ec1cfbe4f70480d88ce270a261555c_03ffb314-57d6-4e52-8715-710928e08c6d.webp?v=1714721499","width":2000},{"alt":null,"id":23877259690083,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65acd48c1c98c4f68d3e143842f92391f6253665_be1aab6c-4c44-4e98-a9ca-44c40ef3486d.webp?v=1714721502"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65acd48c1c98c4f68d3e143842f92391f6253665_be1aab6c-4c44-4e98-a9ca-44c40ef3486d.webp?v=1714721502","width":2000},{"alt":null,"id":23877260345443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b9a81d846fcd43377ba5602f456bbc33e7daaba_d4c000cb-2c62-46e8-abaf-65bc6de4c740.webp?v=1714721504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b9a81d846fcd43377ba5602f456bbc33e7daaba_d4c000cb-2c62-46e8-abaf-65bc6de4c740.webp?v=1714721504","width":2000},{"alt":null,"id":23877260738659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abe5c7a70964d5d5c0ae874d2d20ad57ca3b677f_3a3acdce-c913-4668-8ac0-26316a418ab9.webp?v=1714721507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abe5c7a70964d5d5c0ae874d2d20ad57ca3b677f_3a3acdce-c913-4668-8ac0-26316a418ab9.webp?v=1714721507","width":2000},{"alt":null,"id":23877261426787,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e92c5063a05d5c8b474f939d2f2ea0ca0115458c_fdd864ad-abeb-4402-8153-9aba4a473372.webp?v=1714721509"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e92c5063a05d5c8b474f939d2f2ea0ca0115458c_fdd864ad-abeb-4402-8153-9aba4a473372.webp?v=1714721509","width":2000},{"alt":null,"id":23877262114915,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c689a963840d9421ee1df150db9ce39bc950b78_2c18d1f9-4025-41a8-834b-c95b08886451.webp?v=1714721512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c689a963840d9421ee1df150db9ce39bc950b78_2c18d1f9-4025-41a8-834b-c95b08886451.webp?v=1714721512","width":2000},{"alt":null,"id":23877262639203,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/518d6df2ad73528e73e7907976f63bdbdb9087f3_49616c5b-0f3b-40a4-82cc-e81b550c26f6.webp?v=1714721514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/518d6df2ad73528e73e7907976f63bdbdb9087f3_49616c5b-0f3b-40a4-82cc-e81b550c26f6.webp?v=1714721514","width":2000},{"alt":null,"id":23877263065187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2afc2d1475e158ef1085782d650f7f7fe8435521_fad6a62a-05ba-49ef-8588-5f15bb60e862.webp?v=1714721517"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2afc2d1475e158ef1085782d650f7f7fe8435521_fad6a62a-05ba-49ef-8588-5f15bb60e862.webp?v=1714721517","width":2000},{"alt":null,"id":23877263720547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e123d11fce1a7cf8a3d21ff5d94e0989e1f5b23_cb01e837-b3bd-4d5c-a91f-0effaf6e73c3.webp?v=1714721519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e123d11fce1a7cf8a3d21ff5d94e0989e1f5b23_cb01e837-b3bd-4d5c-a91f-0effaf6e73c3.webp?v=1714721519","width":2000},{"alt":null,"id":23877264048227,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8103b0fc4b4cdf2c5c4f8a1afa9ac929f8d6d504_bf71c04b-ae39-452a-8bb1-94ed7602b2c3.webp?v=1714721521"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8103b0fc4b4cdf2c5c4f8a1afa9ac929f8d6d504_bf71c04b-ae39-452a-8bb1-94ed7602b2c3.webp?v=1714721521","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41885764223075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472344137827,"product_id":7408463282275,"position":4,"created_at":"2024-05-03T15:31:47+08:00","updated_at":"2024-05-03T15:31:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abe5c7a70964d5d5c0ae874d2d20ad57ca3b677f_3a3acdce-c913-4668-8ac0-26316a418ab9.webp?v=1714721507","variant_ids":[41885764223075]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-YB01","featured_media":{"alt":null,"id":23877260738659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abe5c7a70964d5d5c0ae874d2d20ad57ca3b677f_3a3acdce-c913-4668-8ac0-26316a418ab9.webp?v=1714721507"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41885764223075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472344137827,"product_id":7408463282275,"position":4,"created_at":"2024-05-03T15:31:47+08:00","updated_at":"2024-05-03T15:31:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abe5c7a70964d5d5c0ae874d2d20ad57ca3b677f_3a3acdce-c913-4668-8ac0-26316a418ab9.webp?v=1714721507","variant_ids":[41885764223075]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-YB01","featured_media":{"alt":null,"id":23877260738659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abe5c7a70964d5d5c0ae874d2d20ad57ca3b677f_3a3acdce-c913-4668-8ac0-26316a418ab9.webp?v=1714721507"}},"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: "停產"
}