$product = {"id":7414940565603,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 迪士尼-星際大戰 Star Wars - 千年鷹-美式復古","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-pb99","description":null,"published_at":"2024-06-11T17:53:39+08:00","created_at":"2024-05-05T19:52:47+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 12 pro max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41910158622819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31487738675299,"product_id":7414940565603,"position":10,"created_at":"2024-05-05T19:53:12+08:00","updated_at":"2024-05-05T19:53:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63d976117cd10522d7b675b133f33ac26ddd01bc_a1c8f08c-09c0-409b-9fe8-8c2101eae160.webp?v=1714909992","variant_ids":[41910158622819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 迪士尼-星際大戰 Star Wars - 千年鷹-美式復古 - 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-PB99","featured_media":{"alt":null,"id":23893082636387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63d976117cd10522d7b675b133f33ac26ddd01bc_a1c8f08c-09c0-409b-9fe8-8c2101eae160.webp?v=1714909992"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc00fdeda76ab9e2fdf060e2fa39dfa02aa652de_000383cb-7a26-4577-a793-49efaf08cd13.webp?v=1714909970","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56b5e307f2bff52788b61f13eb622df382522ffa_cc9e4802-8025-41fe-868c-f7298ec81161.webp?v=1714909972","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2200caf831d641890f3ee16ea4497d1cf50313fc_6125d108-c9c7-4b8d-a859-1eedda93efe8.webp?v=1714909975","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2da251544e1486f7061d4bb1cfac5e85d46e8f6d_75123dbb-fe5a-4561-8066-791551aa1d89.webp?v=1714909977","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48cdd9f3fcfa6bacba981446f708c9718de7677d_98cb8f01-099b-4cd7-bbf4-1bc78de166bf.webp?v=1714909980","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd683790791b6f6175d93d49717a74b662236c36_06ec7a58-5e89-4e6e-a884-cbc4ade29a3f.webp?v=1714909982","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daf36d1345c4b019c48901b46db6e61ed130039f_e4bbff87-717a-4292-9767-2220c004608b.webp?v=1714909984","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1acc008f722e09cdfab0b751792b910069e08bea_ef9d431c-80aa-46c9-9ccb-1e2fd59c1cf1.webp?v=1714909987","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7fc188b98e7699061a34445883f1f17c17a91fb_89a8d45a-e02a-4e24-bd44-9f33d0d1b146.webp?v=1714909989","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63d976117cd10522d7b675b133f33ac26ddd01bc_a1c8f08c-09c0-409b-9fe8-8c2101eae160.webp?v=1714909992"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc00fdeda76ab9e2fdf060e2fa39dfa02aa652de_000383cb-7a26-4577-a793-49efaf08cd13.webp?v=1714909970","options":["color"],"media":[{"alt":null,"id":23893077622883,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc00fdeda76ab9e2fdf060e2fa39dfa02aa652de_000383cb-7a26-4577-a793-49efaf08cd13.webp?v=1714909970"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc00fdeda76ab9e2fdf060e2fa39dfa02aa652de_000383cb-7a26-4577-a793-49efaf08cd13.webp?v=1714909970","width":2000},{"alt":null,"id":23893078245475,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56b5e307f2bff52788b61f13eb622df382522ffa_cc9e4802-8025-41fe-868c-f7298ec81161.webp?v=1714909972"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56b5e307f2bff52788b61f13eb622df382522ffa_cc9e4802-8025-41fe-868c-f7298ec81161.webp?v=1714909972","width":2000},{"alt":null,"id":23893078736995,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2200caf831d641890f3ee16ea4497d1cf50313fc_6125d108-c9c7-4b8d-a859-1eedda93efe8.webp?v=1714909975"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2200caf831d641890f3ee16ea4497d1cf50313fc_6125d108-c9c7-4b8d-a859-1eedda93efe8.webp?v=1714909975","width":2000},{"alt":null,"id":23893079130211,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2da251544e1486f7061d4bb1cfac5e85d46e8f6d_75123dbb-fe5a-4561-8066-791551aa1d89.webp?v=1714909977"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2da251544e1486f7061d4bb1cfac5e85d46e8f6d_75123dbb-fe5a-4561-8066-791551aa1d89.webp?v=1714909977","width":2000},{"alt":null,"id":23893079851107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48cdd9f3fcfa6bacba981446f708c9718de7677d_98cb8f01-099b-4cd7-bbf4-1bc78de166bf.webp?v=1714909980"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48cdd9f3fcfa6bacba981446f708c9718de7677d_98cb8f01-099b-4cd7-bbf4-1bc78de166bf.webp?v=1714909980","width":2000},{"alt":null,"id":23893080506467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd683790791b6f6175d93d49717a74b662236c36_06ec7a58-5e89-4e6e-a884-cbc4ade29a3f.webp?v=1714909982"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd683790791b6f6175d93d49717a74b662236c36_06ec7a58-5e89-4e6e-a884-cbc4ade29a3f.webp?v=1714909982","width":2000},{"alt":null,"id":23893081030755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daf36d1345c4b019c48901b46db6e61ed130039f_e4bbff87-717a-4292-9767-2220c004608b.webp?v=1714909984"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daf36d1345c4b019c48901b46db6e61ed130039f_e4bbff87-717a-4292-9767-2220c004608b.webp?v=1714909984","width":2000},{"alt":null,"id":23893081423971,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1acc008f722e09cdfab0b751792b910069e08bea_ef9d431c-80aa-46c9-9ccb-1e2fd59c1cf1.webp?v=1714909987"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1acc008f722e09cdfab0b751792b910069e08bea_ef9d431c-80aa-46c9-9ccb-1e2fd59c1cf1.webp?v=1714909987","width":2000},{"alt":null,"id":23893081915491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7fc188b98e7699061a34445883f1f17c17a91fb_89a8d45a-e02a-4e24-bd44-9f33d0d1b146.webp?v=1714909989"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7fc188b98e7699061a34445883f1f17c17a91fb_89a8d45a-e02a-4e24-bd44-9f33d0d1b146.webp?v=1714909989","width":2000},{"alt":null,"id":23893082636387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63d976117cd10522d7b675b133f33ac26ddd01bc_a1c8f08c-09c0-409b-9fe8-8c2101eae160.webp?v=1714909992"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63d976117cd10522d7b675b133f33ac26ddd01bc_a1c8f08c-09c0-409b-9fe8-8c2101eae160.webp?v=1714909992","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41910158622819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31487738675299,"product_id":7414940565603,"position":10,"created_at":"2024-05-05T19:53:12+08:00","updated_at":"2024-05-05T19:53:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63d976117cd10522d7b675b133f33ac26ddd01bc_a1c8f08c-09c0-409b-9fe8-8c2101eae160.webp?v=1714909992","variant_ids":[41910158622819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 迪士尼-星際大戰 Star Wars - 千年鷹-美式復古 - 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-PB99","featured_media":{"alt":null,"id":23893082636387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63d976117cd10522d7b675b133f33ac26ddd01bc_a1c8f08c-09c0-409b-9fe8-8c2101eae160.webp?v=1714909992"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41910158622819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31487738675299,"product_id":7414940565603,"position":10,"created_at":"2024-05-05T19:53:12+08:00","updated_at":"2024-05-05T19:53:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63d976117cd10522d7b675b133f33ac26ddd01bc_a1c8f08c-09c0-409b-9fe8-8c2101eae160.webp?v=1714909992","variant_ids":[41910158622819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 迪士尼-星際大戰 Star Wars - 千年鷹-美式復古 - 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-PB99","featured_media":{"alt":null,"id":23893082636387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63d976117cd10522d7b675b133f33ac26ddd01bc_a1c8f08c-09c0-409b-9fe8-8c2101eae160.webp?v=1714909992"}},"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: "停產"
}