$product = {"id":7414674817123,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 千年鷹-線條白","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb14","description":null,"published_at":"2024-06-11T17:53:02+08:00","created_at":"2024-05-05T14:37:25+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 13 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":41908227637347,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31486008590435,"product_id":7414674817123,"position":9,"created_at":"2024-05-05T14:37:47+08:00","updated_at":"2024-05-05T14:37:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0027e5c009b5b1ed9521a86652a65e121325f69a_44339642-474e-4b82-a0e1-c6ce1b3b269f.webp?v=1714891067","variant_ids":[41908227637347]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB0123224-PB14","featured_media":{"alt":null,"id":23891344261219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0027e5c009b5b1ed9521a86652a65e121325f69a_44339642-474e-4b82-a0e1-c6ce1b3b269f.webp?v=1714891067"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41908228030563,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31486010654819,"product_id":7414674817123,"position":10,"created_at":"2024-05-05T14:37:49+08:00","updated_at":"2024-05-05T14:37:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3846c17bcaefea13ef80d9376e27cea96b361047_3e5afa96-44c5-4b17-abc1-3e50ca5add81.webp?v=1714891069","variant_ids":[41908228030563]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB01232J5-PB14","featured_media":{"alt":null,"id":23891346489443,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3846c17bcaefea13ef80d9376e27cea96b361047_3e5afa96-44c5-4b17-abc1-3e50ca5add81.webp?v=1714891069"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66c2302a51754ee6088c549fab26386d8514b3b1_c4b0540c-19fe-4704-b65e-76b911e57b09.webp?v=1714891047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bebb554c85eeeb8ed8c2135ca718d07972dc43d0_b49143ac-fc6a-4346-ada7-1ff5c1900bb9.webp?v=1714891050","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eec32de24e6de5dfa89b523ccb0bef38e530b466_f7f947d1-3138-40a8-9bda-4f557e6f3ea4.webp?v=1714891052","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b311c251907e2b0f1e6c63ec97d2dba6f6da59a0_bda5b554-9ef0-4139-a725-488397fae78e.webp?v=1714891055","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd0b71111ea054085276c531790f674aecf1ada8_8ffb577c-e4af-4714-9be2-b48078c8c546.webp?v=1714891057","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c8c94f82e40811bc6954254b0385875a63599a_a198d4b3-ee92-4555-ac29-4083f765d2a3.webp?v=1714891059","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99a3af29ab053cac4df45fc73fee9b986437551f_a9418d0a-92a6-43fa-9b83-601e14caaefd.webp?v=1714891062","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3e4f1eaa5284a4040135bc32358ce377c12eadf_ae777c00-bd5d-4030-8ff1-e108325682a4.webp?v=1714891064","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0027e5c009b5b1ed9521a86652a65e121325f69a_44339642-474e-4b82-a0e1-c6ce1b3b269f.webp?v=1714891067","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3846c17bcaefea13ef80d9376e27cea96b361047_3e5afa96-44c5-4b17-abc1-3e50ca5add81.webp?v=1714891069","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab8dbd1a73d508e42a0cabe63afd8c1078e542dd_4b504ca5-4918-419c-928e-69accaa36f0c.webp?v=1714891072"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66c2302a51754ee6088c549fab26386d8514b3b1_c4b0540c-19fe-4704-b65e-76b911e57b09.webp?v=1714891047","options":["color"],"media":[{"alt":null,"id":23891329679459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66c2302a51754ee6088c549fab26386d8514b3b1_c4b0540c-19fe-4704-b65e-76b911e57b09.webp?v=1714891047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66c2302a51754ee6088c549fab26386d8514b3b1_c4b0540c-19fe-4704-b65e-76b911e57b09.webp?v=1714891047","width":2000},{"alt":null,"id":23891331481699,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bebb554c85eeeb8ed8c2135ca718d07972dc43d0_b49143ac-fc6a-4346-ada7-1ff5c1900bb9.webp?v=1714891050"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bebb554c85eeeb8ed8c2135ca718d07972dc43d0_b49143ac-fc6a-4346-ada7-1ff5c1900bb9.webp?v=1714891050","width":2000},{"alt":null,"id":23891333415011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eec32de24e6de5dfa89b523ccb0bef38e530b466_f7f947d1-3138-40a8-9bda-4f557e6f3ea4.webp?v=1714891052"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eec32de24e6de5dfa89b523ccb0bef38e530b466_f7f947d1-3138-40a8-9bda-4f557e6f3ea4.webp?v=1714891052","width":2000},{"alt":null,"id":23891335315555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b311c251907e2b0f1e6c63ec97d2dba6f6da59a0_bda5b554-9ef0-4139-a725-488397fae78e.webp?v=1714891055"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b311c251907e2b0f1e6c63ec97d2dba6f6da59a0_bda5b554-9ef0-4139-a725-488397fae78e.webp?v=1714891055","width":2000},{"alt":null,"id":23891337019491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd0b71111ea054085276c531790f674aecf1ada8_8ffb577c-e4af-4714-9be2-b48078c8c546.webp?v=1714891057"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd0b71111ea054085276c531790f674aecf1ada8_8ffb577c-e4af-4714-9be2-b48078c8c546.webp?v=1714891057","width":2000},{"alt":null,"id":23891338821731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c8c94f82e40811bc6954254b0385875a63599a_a198d4b3-ee92-4555-ac29-4083f765d2a3.webp?v=1714891059"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c8c94f82e40811bc6954254b0385875a63599a_a198d4b3-ee92-4555-ac29-4083f765d2a3.webp?v=1714891059","width":2000},{"alt":null,"id":23891340656739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99a3af29ab053cac4df45fc73fee9b986437551f_a9418d0a-92a6-43fa-9b83-601e14caaefd.webp?v=1714891062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99a3af29ab053cac4df45fc73fee9b986437551f_a9418d0a-92a6-43fa-9b83-601e14caaefd.webp?v=1714891062","width":2000},{"alt":null,"id":23891342426211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3e4f1eaa5284a4040135bc32358ce377c12eadf_ae777c00-bd5d-4030-8ff1-e108325682a4.webp?v=1714891064"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3e4f1eaa5284a4040135bc32358ce377c12eadf_ae777c00-bd5d-4030-8ff1-e108325682a4.webp?v=1714891064","width":2000},{"alt":null,"id":23891344261219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0027e5c009b5b1ed9521a86652a65e121325f69a_44339642-474e-4b82-a0e1-c6ce1b3b269f.webp?v=1714891067"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0027e5c009b5b1ed9521a86652a65e121325f69a_44339642-474e-4b82-a0e1-c6ce1b3b269f.webp?v=1714891067","width":2000},{"alt":null,"id":23891346489443,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3846c17bcaefea13ef80d9376e27cea96b361047_3e5afa96-44c5-4b17-abc1-3e50ca5add81.webp?v=1714891069"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3846c17bcaefea13ef80d9376e27cea96b361047_3e5afa96-44c5-4b17-abc1-3e50ca5add81.webp?v=1714891069","width":2000},{"alt":null,"id":23891348324451,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab8dbd1a73d508e42a0cabe63afd8c1078e542dd_4b504ca5-4918-419c-928e-69accaa36f0c.webp?v=1714891072"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab8dbd1a73d508e42a0cabe63afd8c1078e542dd_4b504ca5-4918-419c-928e-69accaa36f0c.webp?v=1714891072","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41908227637347,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31486008590435,"product_id":7414674817123,"position":9,"created_at":"2024-05-05T14:37:47+08:00","updated_at":"2024-05-05T14:37:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0027e5c009b5b1ed9521a86652a65e121325f69a_44339642-474e-4b82-a0e1-c6ce1b3b269f.webp?v=1714891067","variant_ids":[41908227637347]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB0123224-PB14","featured_media":{"alt":null,"id":23891344261219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0027e5c009b5b1ed9521a86652a65e121325f69a_44339642-474e-4b82-a0e1-c6ce1b3b269f.webp?v=1714891067"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41908228030563,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31486010654819,"product_id":7414674817123,"position":10,"created_at":"2024-05-05T14:37:49+08:00","updated_at":"2024-05-05T14:37:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3846c17bcaefea13ef80d9376e27cea96b361047_3e5afa96-44c5-4b17-abc1-3e50ca5add81.webp?v=1714891069","variant_ids":[41908228030563]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB01232J5-PB14","featured_media":{"alt":null,"id":23891346489443,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3846c17bcaefea13ef80d9376e27cea96b361047_3e5afa96-44c5-4b17-abc1-3e50ca5add81.webp?v=1714891069"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41908227637347,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31486008590435,"product_id":7414674817123,"position":9,"created_at":"2024-05-05T14:37:47+08:00","updated_at":"2024-05-05T14:37:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0027e5c009b5b1ed9521a86652a65e121325f69a_44339642-474e-4b82-a0e1-c6ce1b3b269f.webp?v=1714891067","variant_ids":[41908227637347]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB0123224-PB14","featured_media":{"alt":null,"id":23891344261219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0027e5c009b5b1ed9521a86652a65e121325f69a_44339642-474e-4b82-a0e1-c6ce1b3b269f.webp?v=1714891067"}},"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: "停產"
}