$product = {"id":7415069081699,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Look - 願傷疤 有天開出花(加州野火)","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-af03","description":null,"published_at":"2024-06-11T17:57:08+08:00","created_at":"2024-05-05T20:16:50+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 12 pro max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41911537860707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-AF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31488073171043,"product_id":7415069081699,"position":3,"created_at":"2024-05-05T20:16:58+08:00","updated_at":"2024-05-05T20:16:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38172c7acb5d52655bb94c7f6968e7c7bd26adb5_b9a74d28-93aa-4c07-95d7-d7611b0cec48.webp?v=1714911418","variant_ids":[41911537860707]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Look - 願傷疤 有天開出花(加州野火) - 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-AF03","featured_media":{"alt":null,"id":23893417623651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38172c7acb5d52655bb94c7f6968e7c7bd26adb5_b9a74d28-93aa-4c07-95d7-d7611b0cec48.webp?v=1714911418"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9eb515c12e2304d938bc7bdbca11633e4dcdef_cd6719fd-f1d3-4710-8dd6-c4c32d28c5ff.webp?v=1714911413","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c4fa64f3268d86ac8ea7129fdb5ad3609aba76c_1c61cf43-2ecf-4e75-a303-0f3bc8c05971.webp?v=1714911415","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38172c7acb5d52655bb94c7f6968e7c7bd26adb5_b9a74d28-93aa-4c07-95d7-d7611b0cec48.webp?v=1714911418","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f2006930d0cfbf6104456c221bd7c2965d4e4d_2896a783-4a6c-4884-9a53-62644e5abbff.webp?v=1714911420","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3c1e407cccc679bdf68f5b3d3ccac4de9a8eab1_b71eee0d-b0a6-4246-8167-97f12aad52cd.webp?v=1714911423","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e81b8be802830369fa9ada1e2d5c10b2534644_000365c0-4eea-4d93-a7ab-b0a13c5f344a.webp?v=1714911425","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bad4644c6e31a350bef6d0eaf5ba8f1369132eae_6c779b46-0ca4-4765-b5ca-ea4eb77062e7.webp?v=1714911428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f993419b3883486e07f01299bcffddf96700eccd_f76c2d05-acac-4e13-9dea-fa19514950e1.webp?v=1714911430","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfd73aa32e2e2ba6806e0e59f9cf630615733980_96601852-3d2e-4c1c-ab21-f63b7affa480.webp?v=1714911433","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5df49ff618ec5c2c4db3cb10379f72cec3dd8034_f011f395-c38e-47c9-bccd-d2922dc5ee2b.webp?v=1714911435"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9eb515c12e2304d938bc7bdbca11633e4dcdef_cd6719fd-f1d3-4710-8dd6-c4c32d28c5ff.webp?v=1714911413","options":["color"],"media":[{"alt":null,"id":23893416411235,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9eb515c12e2304d938bc7bdbca11633e4dcdef_cd6719fd-f1d3-4710-8dd6-c4c32d28c5ff.webp?v=1714911413"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9eb515c12e2304d938bc7bdbca11633e4dcdef_cd6719fd-f1d3-4710-8dd6-c4c32d28c5ff.webp?v=1714911413","width":2000},{"alt":null,"id":23893416869987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c4fa64f3268d86ac8ea7129fdb5ad3609aba76c_1c61cf43-2ecf-4e75-a303-0f3bc8c05971.webp?v=1714911415"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c4fa64f3268d86ac8ea7129fdb5ad3609aba76c_1c61cf43-2ecf-4e75-a303-0f3bc8c05971.webp?v=1714911415","width":2000},{"alt":null,"id":23893417623651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38172c7acb5d52655bb94c7f6968e7c7bd26adb5_b9a74d28-93aa-4c07-95d7-d7611b0cec48.webp?v=1714911418"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38172c7acb5d52655bb94c7f6968e7c7bd26adb5_b9a74d28-93aa-4c07-95d7-d7611b0cec48.webp?v=1714911418","width":2000},{"alt":null,"id":23893418279011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f2006930d0cfbf6104456c221bd7c2965d4e4d_2896a783-4a6c-4884-9a53-62644e5abbff.webp?v=1714911420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f2006930d0cfbf6104456c221bd7c2965d4e4d_2896a783-4a6c-4884-9a53-62644e5abbff.webp?v=1714911420","width":2000},{"alt":null,"id":23893418836067,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3c1e407cccc679bdf68f5b3d3ccac4de9a8eab1_b71eee0d-b0a6-4246-8167-97f12aad52cd.webp?v=1714911423"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3c1e407cccc679bdf68f5b3d3ccac4de9a8eab1_b71eee0d-b0a6-4246-8167-97f12aad52cd.webp?v=1714911423","width":2000},{"alt":null,"id":23893419229283,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e81b8be802830369fa9ada1e2d5c10b2534644_000365c0-4eea-4d93-a7ab-b0a13c5f344a.webp?v=1714911425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e81b8be802830369fa9ada1e2d5c10b2534644_000365c0-4eea-4d93-a7ab-b0a13c5f344a.webp?v=1714911425","width":2000},{"alt":null,"id":23893420146787,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bad4644c6e31a350bef6d0eaf5ba8f1369132eae_6c779b46-0ca4-4765-b5ca-ea4eb77062e7.webp?v=1714911428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bad4644c6e31a350bef6d0eaf5ba8f1369132eae_6c779b46-0ca4-4765-b5ca-ea4eb77062e7.webp?v=1714911428","width":2000},{"alt":null,"id":23893421031523,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f993419b3883486e07f01299bcffddf96700eccd_f76c2d05-acac-4e13-9dea-fa19514950e1.webp?v=1714911430"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f993419b3883486e07f01299bcffddf96700eccd_f76c2d05-acac-4e13-9dea-fa19514950e1.webp?v=1714911430","width":2000},{"alt":null,"id":23893421621347,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfd73aa32e2e2ba6806e0e59f9cf630615733980_96601852-3d2e-4c1c-ab21-f63b7affa480.webp?v=1714911433"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfd73aa32e2e2ba6806e0e59f9cf630615733980_96601852-3d2e-4c1c-ab21-f63b7affa480.webp?v=1714911433","width":2000},{"alt":null,"id":23893422211171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5df49ff618ec5c2c4db3cb10379f72cec3dd8034_f011f395-c38e-47c9-bccd-d2922dc5ee2b.webp?v=1714911435"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5df49ff618ec5c2c4db3cb10379f72cec3dd8034_f011f395-c38e-47c9-bccd-d2922dc5ee2b.webp?v=1714911435","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41911537860707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-AF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31488073171043,"product_id":7415069081699,"position":3,"created_at":"2024-05-05T20:16:58+08:00","updated_at":"2024-05-05T20:16:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38172c7acb5d52655bb94c7f6968e7c7bd26adb5_b9a74d28-93aa-4c07-95d7-d7611b0cec48.webp?v=1714911418","variant_ids":[41911537860707]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Look - 願傷疤 有天開出花(加州野火) - 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-AF03","featured_media":{"alt":null,"id":23893417623651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38172c7acb5d52655bb94c7f6968e7c7bd26adb5_b9a74d28-93aa-4c07-95d7-d7611b0cec48.webp?v=1714911418"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41911537860707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-AF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31488073171043,"product_id":7415069081699,"position":3,"created_at":"2024-05-05T20:16:58+08:00","updated_at":"2024-05-05T20:16:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38172c7acb5d52655bb94c7f6968e7c7bd26adb5_b9a74d28-93aa-4c07-95d7-d7611b0cec48.webp?v=1714911418","variant_ids":[41911537860707]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Look - 願傷疤 有天開出花(加州野火) - 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-AF03","featured_media":{"alt":null,"id":23893417623651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38172c7acb5d52655bb94c7f6968e7c7bd26adb5_b9a74d28-93aa-4c07-95d7-d7611b0cec48.webp?v=1714911418"}},"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: "停產"
}