$product = {"id":7408396894307,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - Funshine Bear","handle":"iphone-12-pro-max-mod-nx-printable-yb06","description":null,"published_at":"2024-06-11T16:36:07+08:00","created_at":"2024-05-03T15:18:28+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":41885022945379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472155525219,"product_id":7408396894307,"position":4,"created_at":"2024-05-03T15:18:37+08:00","updated_at":"2024-05-03T15:18:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e52cd438ddad301f4dfaf467e667d57af7fbe3_9cd58ec4-ff76-49e2-aa18-b5731e413579.webp?v=1714720717","variant_ids":[41885022945379]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - Funshine 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":"NPB0118724-YB06","featured_media":{"alt":null,"id":23877071143011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e52cd438ddad301f4dfaf467e667d57af7fbe3_9cd58ec4-ff76-49e2-aa18-b5731e413579.webp?v=1714720717"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2c4d37019363fa35d7e3185f636eb4634dd1334_1ef4ba1b-e780-423a-8470-a879c771cabb.webp?v=1714720710","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208e82cadf685c1f40fe002499e38bd4522aa995_e9269d55-6f8c-428d-807d-7fb8a9250584.webp?v=1714720713","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d4423345bc6caed64cc051cb7a915ddac6a5d21_d7701f15-073e-47ac-b482-d1d680b41f1b.webp?v=1714720715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e52cd438ddad301f4dfaf467e667d57af7fbe3_9cd58ec4-ff76-49e2-aa18-b5731e413579.webp?v=1714720717","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91f092aa1b8233b14aec0cafed6a1bdd1dcda4d5_8d056bee-58ce-4bcb-85ab-883801a30534.webp?v=1714720720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad58219eb290ec6af5a7ac957e08356b13bfeae6_5e45ef3a-ffb2-4380-af21-b642dfc29ff8.webp?v=1714720722","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d06bbc8657124f099a0167bceda54c117dd3b30_a4859386-8d8c-458a-9daa-fb8f75981125.webp?v=1714720724","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e940e6d0b5003c67830759034e6b99404e7d0883_4680b7f9-3b3f-4c81-989b-d38203bcfcb1.webp?v=1714720727","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4828a9b5ea5999b6b3585f6e58c3b819885fc23_7d8a392b-3637-4927-b2e8-a6ffab75dbb1.webp?v=1714720729","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b42cb1f879562a0f91c255fb8de1df6d4792d2d8_171b35cc-0d0b-435c-8c51-5ece31ae3425.webp?v=1714720731"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2c4d37019363fa35d7e3185f636eb4634dd1334_1ef4ba1b-e780-423a-8470-a879c771cabb.webp?v=1714720710","options":["color"],"media":[{"alt":null,"id":23877069602915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2c4d37019363fa35d7e3185f636eb4634dd1334_1ef4ba1b-e780-423a-8470-a879c771cabb.webp?v=1714720710"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2c4d37019363fa35d7e3185f636eb4634dd1334_1ef4ba1b-e780-423a-8470-a879c771cabb.webp?v=1714720710","width":2000},{"alt":null,"id":23877070061667,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208e82cadf685c1f40fe002499e38bd4522aa995_e9269d55-6f8c-428d-807d-7fb8a9250584.webp?v=1714720713"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208e82cadf685c1f40fe002499e38bd4522aa995_e9269d55-6f8c-428d-807d-7fb8a9250584.webp?v=1714720713","width":2000},{"alt":null,"id":23877070717027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d4423345bc6caed64cc051cb7a915ddac6a5d21_d7701f15-073e-47ac-b482-d1d680b41f1b.webp?v=1714720715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d4423345bc6caed64cc051cb7a915ddac6a5d21_d7701f15-073e-47ac-b482-d1d680b41f1b.webp?v=1714720715","width":2000},{"alt":null,"id":23877071143011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e52cd438ddad301f4dfaf467e667d57af7fbe3_9cd58ec4-ff76-49e2-aa18-b5731e413579.webp?v=1714720717"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e52cd438ddad301f4dfaf467e667d57af7fbe3_9cd58ec4-ff76-49e2-aa18-b5731e413579.webp?v=1714720717","width":2000},{"alt":null,"id":23877071634531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91f092aa1b8233b14aec0cafed6a1bdd1dcda4d5_8d056bee-58ce-4bcb-85ab-883801a30534.webp?v=1714720720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91f092aa1b8233b14aec0cafed6a1bdd1dcda4d5_8d056bee-58ce-4bcb-85ab-883801a30534.webp?v=1714720720","width":2000},{"alt":null,"id":23877071994979,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad58219eb290ec6af5a7ac957e08356b13bfeae6_5e45ef3a-ffb2-4380-af21-b642dfc29ff8.webp?v=1714720722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad58219eb290ec6af5a7ac957e08356b13bfeae6_5e45ef3a-ffb2-4380-af21-b642dfc29ff8.webp?v=1714720722","width":2000},{"alt":null,"id":23877072584803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d06bbc8657124f099a0167bceda54c117dd3b30_a4859386-8d8c-458a-9daa-fb8f75981125.webp?v=1714720724"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d06bbc8657124f099a0167bceda54c117dd3b30_a4859386-8d8c-458a-9daa-fb8f75981125.webp?v=1714720724","width":2000},{"alt":null,"id":23877073043555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e940e6d0b5003c67830759034e6b99404e7d0883_4680b7f9-3b3f-4c81-989b-d38203bcfcb1.webp?v=1714720727"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e940e6d0b5003c67830759034e6b99404e7d0883_4680b7f9-3b3f-4c81-989b-d38203bcfcb1.webp?v=1714720727","width":2000},{"alt":null,"id":23877073567843,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4828a9b5ea5999b6b3585f6e58c3b819885fc23_7d8a392b-3637-4927-b2e8-a6ffab75dbb1.webp?v=1714720729"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4828a9b5ea5999b6b3585f6e58c3b819885fc23_7d8a392b-3637-4927-b2e8-a6ffab75dbb1.webp?v=1714720729","width":2000},{"alt":null,"id":23877074288739,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b42cb1f879562a0f91c255fb8de1df6d4792d2d8_171b35cc-0d0b-435c-8c51-5ece31ae3425.webp?v=1714720731"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b42cb1f879562a0f91c255fb8de1df6d4792d2d8_171b35cc-0d0b-435c-8c51-5ece31ae3425.webp?v=1714720731","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41885022945379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472155525219,"product_id":7408396894307,"position":4,"created_at":"2024-05-03T15:18:37+08:00","updated_at":"2024-05-03T15:18:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e52cd438ddad301f4dfaf467e667d57af7fbe3_9cd58ec4-ff76-49e2-aa18-b5731e413579.webp?v=1714720717","variant_ids":[41885022945379]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - Funshine 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":"NPB0118724-YB06","featured_media":{"alt":null,"id":23877071143011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e52cd438ddad301f4dfaf467e667d57af7fbe3_9cd58ec4-ff76-49e2-aa18-b5731e413579.webp?v=1714720717"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41885022945379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472155525219,"product_id":7408396894307,"position":4,"created_at":"2024-05-03T15:18:37+08:00","updated_at":"2024-05-03T15:18:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e52cd438ddad301f4dfaf467e667d57af7fbe3_9cd58ec4-ff76-49e2-aa18-b5731e413579.webp?v=1714720717","variant_ids":[41885022945379]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - Funshine 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":"NPB0118724-YB06","featured_media":{"alt":null,"id":23877071143011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e52cd438ddad301f4dfaf467e667d57af7fbe3_9cd58ec4-ff76-49e2-aa18-b5731e413579.webp?v=1714720717"}},"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: "停產"
}