$product = {"id":7415006232675,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Care Bears - Bedtime Bear","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-yb04","description":null,"published_at":"2024-06-11T17:55:26+08:00","created_at":"2024-05-05T20:04:57+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 12 pro max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-carebears","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41910867066979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31487904219235,"product_id":7415006232675,"position":1,"created_at":"2024-05-05T20:05:00+08:00","updated_at":"2024-05-05T20:05:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c812ec92da0d2d8aa05d948cbb6889a1b61fdb_293e2fb0-0fe2-4e57-bb6b-c63b3e1e1a6f.webp?v=1714910700","variant_ids":[41910867066979]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Care Bears - Bedtime Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-YB04","featured_media":{"alt":null,"id":23893248213091,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c812ec92da0d2d8aa05d948cbb6889a1b61fdb_293e2fb0-0fe2-4e57-bb6b-c63b3e1e1a6f.webp?v=1714910700"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c812ec92da0d2d8aa05d948cbb6889a1b61fdb_293e2fb0-0fe2-4e57-bb6b-c63b3e1e1a6f.webp?v=1714910700","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d7f209f97f59a9831947d4f29c14a429ebad696_8bec34ae-7da9-438a-90a0-54540cd37332.webp?v=1714910702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23a8c976d64671814317bb3d5806d16e3e14af9f_22997e72-adfa-493c-8d94-71e31c289e6c.webp?v=1714910705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c906ae04531ab7aea56dcb604120c7dbf0e596_d4a8761b-9c60-4b4b-a923-216b4ed324c6.webp?v=1714910708","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e02b74821c006267086a69cd6a07a58885f25ba_a07a7713-3aee-4f76-992b-cccfc674d6ec.webp?v=1714910710","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/264b0ce328db063eb9fb1bccc0fff717548516f6_ab78e2e3-6741-4f95-bbcf-ca0572597573.webp?v=1714910712","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96640110672f53cfb54ff65bf08d424df9e277dd_b77be031-8f1e-4883-afc1-5e6c3c7375e6.webp?v=1714910715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d314fd42e12496e49dc85cfb044f21eaed9f23_36afd1d0-f8d4-497b-93e4-61c4149d67b4.webp?v=1714910717","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb92ffc26505ec8b5da1c70774d3b155fdc57bd2_61f8d90d-d892-4494-a64f-88bef34a297a.webp?v=1714910720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f68ed3548c6c97a1c3561e16b4c5110e494d793f_48e89a65-3411-4825-82e3-e46616a715c5.webp?v=1714910722"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c812ec92da0d2d8aa05d948cbb6889a1b61fdb_293e2fb0-0fe2-4e57-bb6b-c63b3e1e1a6f.webp?v=1714910700","options":["color"],"media":[{"alt":null,"id":23893248213091,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c812ec92da0d2d8aa05d948cbb6889a1b61fdb_293e2fb0-0fe2-4e57-bb6b-c63b3e1e1a6f.webp?v=1714910700"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c812ec92da0d2d8aa05d948cbb6889a1b61fdb_293e2fb0-0fe2-4e57-bb6b-c63b3e1e1a6f.webp?v=1714910700","width":2000},{"alt":null,"id":23893248671843,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d7f209f97f59a9831947d4f29c14a429ebad696_8bec34ae-7da9-438a-90a0-54540cd37332.webp?v=1714910702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d7f209f97f59a9831947d4f29c14a429ebad696_8bec34ae-7da9-438a-90a0-54540cd37332.webp?v=1714910702","width":2000},{"alt":null,"id":23893249327203,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23a8c976d64671814317bb3d5806d16e3e14af9f_22997e72-adfa-493c-8d94-71e31c289e6c.webp?v=1714910705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23a8c976d64671814317bb3d5806d16e3e14af9f_22997e72-adfa-493c-8d94-71e31c289e6c.webp?v=1714910705","width":2000},{"alt":null,"id":23893249982563,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c906ae04531ab7aea56dcb604120c7dbf0e596_d4a8761b-9c60-4b4b-a923-216b4ed324c6.webp?v=1714910708"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c906ae04531ab7aea56dcb604120c7dbf0e596_d4a8761b-9c60-4b4b-a923-216b4ed324c6.webp?v=1714910708","width":2000},{"alt":null,"id":23893250375779,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e02b74821c006267086a69cd6a07a58885f25ba_a07a7713-3aee-4f76-992b-cccfc674d6ec.webp?v=1714910710"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e02b74821c006267086a69cd6a07a58885f25ba_a07a7713-3aee-4f76-992b-cccfc674d6ec.webp?v=1714910710","width":2000},{"alt":null,"id":23893250867299,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/264b0ce328db063eb9fb1bccc0fff717548516f6_ab78e2e3-6741-4f95-bbcf-ca0572597573.webp?v=1714910712"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/264b0ce328db063eb9fb1bccc0fff717548516f6_ab78e2e3-6741-4f95-bbcf-ca0572597573.webp?v=1714910712","width":2000},{"alt":null,"id":23893251588195,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96640110672f53cfb54ff65bf08d424df9e277dd_b77be031-8f1e-4883-afc1-5e6c3c7375e6.webp?v=1714910715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96640110672f53cfb54ff65bf08d424df9e277dd_b77be031-8f1e-4883-afc1-5e6c3c7375e6.webp?v=1714910715","width":2000},{"alt":null,"id":23893252046947,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d314fd42e12496e49dc85cfb044f21eaed9f23_36afd1d0-f8d4-497b-93e4-61c4149d67b4.webp?v=1714910717"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d314fd42e12496e49dc85cfb044f21eaed9f23_36afd1d0-f8d4-497b-93e4-61c4149d67b4.webp?v=1714910717","width":2000},{"alt":null,"id":23893252538467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb92ffc26505ec8b5da1c70774d3b155fdc57bd2_61f8d90d-d892-4494-a64f-88bef34a297a.webp?v=1714910720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb92ffc26505ec8b5da1c70774d3b155fdc57bd2_61f8d90d-d892-4494-a64f-88bef34a297a.webp?v=1714910720","width":2000},{"alt":null,"id":23893253029987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f68ed3548c6c97a1c3561e16b4c5110e494d793f_48e89a65-3411-4825-82e3-e46616a715c5.webp?v=1714910722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f68ed3548c6c97a1c3561e16b4c5110e494d793f_48e89a65-3411-4825-82e3-e46616a715c5.webp?v=1714910722","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41910867066979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31487904219235,"product_id":7415006232675,"position":1,"created_at":"2024-05-05T20:05:00+08:00","updated_at":"2024-05-05T20:05:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c812ec92da0d2d8aa05d948cbb6889a1b61fdb_293e2fb0-0fe2-4e57-bb6b-c63b3e1e1a6f.webp?v=1714910700","variant_ids":[41910867066979]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Care Bears - Bedtime Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-YB04","featured_media":{"alt":null,"id":23893248213091,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c812ec92da0d2d8aa05d948cbb6889a1b61fdb_293e2fb0-0fe2-4e57-bb6b-c63b3e1e1a6f.webp?v=1714910700"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41910867066979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31487904219235,"product_id":7415006232675,"position":1,"created_at":"2024-05-05T20:05:00+08:00","updated_at":"2024-05-05T20:05:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c812ec92da0d2d8aa05d948cbb6889a1b61fdb_293e2fb0-0fe2-4e57-bb6b-c63b3e1e1a6f.webp?v=1714910700","variant_ids":[41910867066979]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Care Bears - Bedtime Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-YB04","featured_media":{"alt":null,"id":23893248213091,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c812ec92da0d2d8aa05d948cbb6889a1b61fdb_293e2fb0-0fe2-4e57-bb6b-c63b3e1e1a6f.webp?v=1714910700"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(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: "停產"
}