$product = {"id":7415086121059,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 經典系列-Ohana是家人","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-yf10","description":null,"published_at":"2024-06-11T17:57:35+08:00","created_at":"2024-05-05T20:20:10+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 12 pro max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-stitch","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":41911721001059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31488124747875,"product_id":7415086121059,"position":8,"created_at":"2024-05-05T20:20:30+08:00","updated_at":"2024-05-05T20:20:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7354823fcf9f5c2a197777510ac78aad915f4ad_9dd6291d-09a9-403b-9447-9db19b33403a.webp?v=1714911630","variant_ids":[41911721001059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 經典系列-Ohana是家人 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-YF10","featured_media":{"alt":null,"id":23893469298787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7354823fcf9f5c2a197777510ac78aad915f4ad_9dd6291d-09a9-403b-9447-9db19b33403a.webp?v=1714911630"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16d7d63b612aa6dbaaac3fc5ae14042662bf16ba_c4e10068-b95b-4795-ae6d-8b370587c6ef.webp?v=1714911613","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9f1345060ae5f8802d33bc26140f29e292f7c95_c9ecfed9-a4b4-43d8-b042-036d699427d2.webp?v=1714911615","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d72cd4e27b2aaddb38acd2683e5f4ea375ccabe7_2ada8728-4626-4fe8-a93d-c916ee4e93ec.webp?v=1714911618","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/343cc905477456748ae349f093f12d9864cd9c39_e6a8f3a2-d799-4c92-bc84-3e282bc8549e.webp?v=1714911620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/004b09a379a8211e01e3f8b0456885092e91058e_9e17d935-80b3-4cd6-9645-5a478b71b86c.webp?v=1714911623","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27351be506d568f635dbc94d3f1d6dca86c07015_4fa77dff-5911-43ea-a110-2a338a94be75.webp?v=1714911625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/802e24af14cb811dd640023ce4d34865eedc84be_b57c02d1-a1d4-4836-b7b0-2ae8b664cfdb.webp?v=1714911627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7354823fcf9f5c2a197777510ac78aad915f4ad_9dd6291d-09a9-403b-9447-9db19b33403a.webp?v=1714911630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f46d0d4a808348415fb170c8b9ea608171d19c7e_2536f53d-3d72-4658-a217-3da0f19be7d0.webp?v=1714911632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6430a5fccac3f31415e1389fce655eb8d96406_c9c44029-1881-4d63-b201-693b30fd6de0.webp?v=1714911634"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16d7d63b612aa6dbaaac3fc5ae14042662bf16ba_c4e10068-b95b-4795-ae6d-8b370587c6ef.webp?v=1714911613","options":["color"],"media":[{"alt":null,"id":23893465399395,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16d7d63b612aa6dbaaac3fc5ae14042662bf16ba_c4e10068-b95b-4795-ae6d-8b370587c6ef.webp?v=1714911613"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16d7d63b612aa6dbaaac3fc5ae14042662bf16ba_c4e10068-b95b-4795-ae6d-8b370587c6ef.webp?v=1714911613","width":2000},{"alt":null,"id":23893466415203,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9f1345060ae5f8802d33bc26140f29e292f7c95_c9ecfed9-a4b4-43d8-b042-036d699427d2.webp?v=1714911615"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9f1345060ae5f8802d33bc26140f29e292f7c95_c9ecfed9-a4b4-43d8-b042-036d699427d2.webp?v=1714911615","width":2000},{"alt":null,"id":23893466873955,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d72cd4e27b2aaddb38acd2683e5f4ea375ccabe7_2ada8728-4626-4fe8-a93d-c916ee4e93ec.webp?v=1714911618"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d72cd4e27b2aaddb38acd2683e5f4ea375ccabe7_2ada8728-4626-4fe8-a93d-c916ee4e93ec.webp?v=1714911618","width":2000},{"alt":null,"id":23893467332707,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/343cc905477456748ae349f093f12d9864cd9c39_e6a8f3a2-d799-4c92-bc84-3e282bc8549e.webp?v=1714911620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/343cc905477456748ae349f093f12d9864cd9c39_e6a8f3a2-d799-4c92-bc84-3e282bc8549e.webp?v=1714911620","width":2000},{"alt":null,"id":23893467693155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/004b09a379a8211e01e3f8b0456885092e91058e_9e17d935-80b3-4cd6-9645-5a478b71b86c.webp?v=1714911623"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/004b09a379a8211e01e3f8b0456885092e91058e_9e17d935-80b3-4cd6-9645-5a478b71b86c.webp?v=1714911623","width":2000},{"alt":null,"id":23893468348515,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27351be506d568f635dbc94d3f1d6dca86c07015_4fa77dff-5911-43ea-a110-2a338a94be75.webp?v=1714911625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27351be506d568f635dbc94d3f1d6dca86c07015_4fa77dff-5911-43ea-a110-2a338a94be75.webp?v=1714911625","width":2000},{"alt":null,"id":23893468774499,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/802e24af14cb811dd640023ce4d34865eedc84be_b57c02d1-a1d4-4836-b7b0-2ae8b664cfdb.webp?v=1714911627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/802e24af14cb811dd640023ce4d34865eedc84be_b57c02d1-a1d4-4836-b7b0-2ae8b664cfdb.webp?v=1714911627","width":2000},{"alt":null,"id":23893469298787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7354823fcf9f5c2a197777510ac78aad915f4ad_9dd6291d-09a9-403b-9447-9db19b33403a.webp?v=1714911630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7354823fcf9f5c2a197777510ac78aad915f4ad_9dd6291d-09a9-403b-9447-9db19b33403a.webp?v=1714911630","width":2000},{"alt":null,"id":23893469888611,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f46d0d4a808348415fb170c8b9ea608171d19c7e_2536f53d-3d72-4658-a217-3da0f19be7d0.webp?v=1714911632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f46d0d4a808348415fb170c8b9ea608171d19c7e_2536f53d-3d72-4658-a217-3da0f19be7d0.webp?v=1714911632","width":2000},{"alt":null,"id":23893470871651,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6430a5fccac3f31415e1389fce655eb8d96406_c9c44029-1881-4d63-b201-693b30fd6de0.webp?v=1714911634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6430a5fccac3f31415e1389fce655eb8d96406_c9c44029-1881-4d63-b201-693b30fd6de0.webp?v=1714911634","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41911721001059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31488124747875,"product_id":7415086121059,"position":8,"created_at":"2024-05-05T20:20:30+08:00","updated_at":"2024-05-05T20:20:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7354823fcf9f5c2a197777510ac78aad915f4ad_9dd6291d-09a9-403b-9447-9db19b33403a.webp?v=1714911630","variant_ids":[41911721001059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 經典系列-Ohana是家人 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-YF10","featured_media":{"alt":null,"id":23893469298787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7354823fcf9f5c2a197777510ac78aad915f4ad_9dd6291d-09a9-403b-9447-9db19b33403a.webp?v=1714911630"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41911721001059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31488124747875,"product_id":7415086121059,"position":8,"created_at":"2024-05-05T20:20:30+08:00","updated_at":"2024-05-05T20:20:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7354823fcf9f5c2a197777510ac78aad915f4ad_9dd6291d-09a9-403b-9447-9db19b33403a.webp?v=1714911630","variant_ids":[41911721001059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 經典系列-Ohana是家人 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-YF10","featured_media":{"alt":null,"id":23893469298787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7354823fcf9f5c2a197777510ac78aad915f4ad_9dd6291d-09a9-403b-9447-9db19b33403a.webp?v=1714911630"}},"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: "停產"
}