$product = {"id":7414578872419,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-溜溜球炫技-幽默系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pc11","description":null,"published_at":"2024-06-11T17:52:14+08:00","created_at":"2024-05-05T14:31:49+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":41907493863523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485805592675,"product_id":7414578872419,"position":7,"created_at":"2024-05-05T14:32:05+08:00","updated_at":"2024-05-05T14:32:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa85da3b1232fd5b2554c82b530612418d970dbf_b675a34e-4ec3-4369-ba9e-9cc9caab9f35.webp?v=1714890725","variant_ids":[41907493863523]},"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-PC11","featured_media":{"alt":null,"id":23891138117731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa85da3b1232fd5b2554c82b530612418d970dbf_b675a34e-4ec3-4369-ba9e-9cc9caab9f35.webp?v=1714890725"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907494387811,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485807231075,"product_id":7414578872419,"position":9,"created_at":"2024-05-05T14:32:10+08:00","updated_at":"2024-05-05T14:32:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b23185e6124cf194cc889315d392b013f3519d1f_f0761037-79ef-4d35-b614-3f6339b4065b.webp?v=1714890730","variant_ids":[41907494387811]},"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-PC11","featured_media":{"alt":null,"id":23891139657827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b23185e6124cf194cc889315d392b013f3519d1f_f0761037-79ef-4d35-b614-3f6339b4065b.webp?v=1714890730"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdf66445ea810c3f44228c1558f8eb26c315e2bc_cf4c4bd6-2093-4011-b094-f338dfd8e2be.webp?v=1714890711","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b56dc30ad6ec77010850b54d55069528bb83a781_24da1e4f-0290-43e5-8f67-879d76a5e1ef.webp?v=1714890713","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cc821d5004e636b5f66e19b5729677b1e4d00bd_d37f0e61-274e-42ff-ab8a-7d61f1bb7394.webp?v=1714890716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3e04bb01e5fc38f30b392346a4a74a0dc53693_2b980d73-6330-48f7-b5ec-3650d4fe48cc.webp?v=1714890718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec5491740ae566fad46eeb46d27aa2b7508a0853_14a2971c-b867-49ea-b745-bc15acd5c4c2.webp?v=1714890720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dd9d91c3b67f24a1fba20db3e4921866c151e72_b25e19a8-e23e-4911-911e-37d2d446cce6.webp?v=1714890723","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa85da3b1232fd5b2554c82b530612418d970dbf_b675a34e-4ec3-4369-ba9e-9cc9caab9f35.webp?v=1714890725","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df99a614a050fcdf4cb6bcf1219211198855b75a_344a862e-5a8f-4db1-a376-5e479040ff5c.webp?v=1714890727","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b23185e6124cf194cc889315d392b013f3519d1f_f0761037-79ef-4d35-b614-3f6339b4065b.webp?v=1714890730","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72279a732f21fbe8ea9dd41fc898a1b71b526de7_1b7e7e75-6229-41e1-8dd4-5bd43362ff24.webp?v=1714890732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/320d15f966b48cef7d81fc96efcf2174a3ddf6fd_ef9a3dab-8998-493e-97f3-ee4e16334f3e.webp?v=1714890734"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdf66445ea810c3f44228c1558f8eb26c315e2bc_cf4c4bd6-2093-4011-b094-f338dfd8e2be.webp?v=1714890711","options":["color"],"media":[{"alt":null,"id":23891134054499,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdf66445ea810c3f44228c1558f8eb26c315e2bc_cf4c4bd6-2093-4011-b094-f338dfd8e2be.webp?v=1714890711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdf66445ea810c3f44228c1558f8eb26c315e2bc_cf4c4bd6-2093-4011-b094-f338dfd8e2be.webp?v=1714890711","width":2000},{"alt":null,"id":23891134742627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b56dc30ad6ec77010850b54d55069528bb83a781_24da1e4f-0290-43e5-8f67-879d76a5e1ef.webp?v=1714890713"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b56dc30ad6ec77010850b54d55069528bb83a781_24da1e4f-0290-43e5-8f67-879d76a5e1ef.webp?v=1714890713","width":2000},{"alt":null,"id":23891135168611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cc821d5004e636b5f66e19b5729677b1e4d00bd_d37f0e61-274e-42ff-ab8a-7d61f1bb7394.webp?v=1714890716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cc821d5004e636b5f66e19b5729677b1e4d00bd_d37f0e61-274e-42ff-ab8a-7d61f1bb7394.webp?v=1714890716","width":2000},{"alt":null,"id":23891135725667,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3e04bb01e5fc38f30b392346a4a74a0dc53693_2b980d73-6330-48f7-b5ec-3650d4fe48cc.webp?v=1714890718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad3e04bb01e5fc38f30b392346a4a74a0dc53693_2b980d73-6330-48f7-b5ec-3650d4fe48cc.webp?v=1714890718","width":2000},{"alt":null,"id":23891136544867,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec5491740ae566fad46eeb46d27aa2b7508a0853_14a2971c-b867-49ea-b745-bc15acd5c4c2.webp?v=1714890720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec5491740ae566fad46eeb46d27aa2b7508a0853_14a2971c-b867-49ea-b745-bc15acd5c4c2.webp?v=1714890720","width":2000},{"alt":null,"id":23891137364067,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dd9d91c3b67f24a1fba20db3e4921866c151e72_b25e19a8-e23e-4911-911e-37d2d446cce6.webp?v=1714890723"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dd9d91c3b67f24a1fba20db3e4921866c151e72_b25e19a8-e23e-4911-911e-37d2d446cce6.webp?v=1714890723","width":2000},{"alt":null,"id":23891138117731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa85da3b1232fd5b2554c82b530612418d970dbf_b675a34e-4ec3-4369-ba9e-9cc9caab9f35.webp?v=1714890725"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa85da3b1232fd5b2554c82b530612418d970dbf_b675a34e-4ec3-4369-ba9e-9cc9caab9f35.webp?v=1714890725","width":2000},{"alt":null,"id":23891139035235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df99a614a050fcdf4cb6bcf1219211198855b75a_344a862e-5a8f-4db1-a376-5e479040ff5c.webp?v=1714890727"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df99a614a050fcdf4cb6bcf1219211198855b75a_344a862e-5a8f-4db1-a376-5e479040ff5c.webp?v=1714890727","width":2000},{"alt":null,"id":23891139657827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b23185e6124cf194cc889315d392b013f3519d1f_f0761037-79ef-4d35-b614-3f6339b4065b.webp?v=1714890730"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b23185e6124cf194cc889315d392b013f3519d1f_f0761037-79ef-4d35-b614-3f6339b4065b.webp?v=1714890730","width":2000},{"alt":null,"id":23891140313187,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72279a732f21fbe8ea9dd41fc898a1b71b526de7_1b7e7e75-6229-41e1-8dd4-5bd43362ff24.webp?v=1714890732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72279a732f21fbe8ea9dd41fc898a1b71b526de7_1b7e7e75-6229-41e1-8dd4-5bd43362ff24.webp?v=1714890732","width":2000},{"alt":null,"id":23891141001315,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/320d15f966b48cef7d81fc96efcf2174a3ddf6fd_ef9a3dab-8998-493e-97f3-ee4e16334f3e.webp?v=1714890734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/320d15f966b48cef7d81fc96efcf2174a3ddf6fd_ef9a3dab-8998-493e-97f3-ee4e16334f3e.webp?v=1714890734","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907493863523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485805592675,"product_id":7414578872419,"position":7,"created_at":"2024-05-05T14:32:05+08:00","updated_at":"2024-05-05T14:32:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa85da3b1232fd5b2554c82b530612418d970dbf_b675a34e-4ec3-4369-ba9e-9cc9caab9f35.webp?v=1714890725","variant_ids":[41907493863523]},"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-PC11","featured_media":{"alt":null,"id":23891138117731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa85da3b1232fd5b2554c82b530612418d970dbf_b675a34e-4ec3-4369-ba9e-9cc9caab9f35.webp?v=1714890725"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907494387811,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485807231075,"product_id":7414578872419,"position":9,"created_at":"2024-05-05T14:32:10+08:00","updated_at":"2024-05-05T14:32:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b23185e6124cf194cc889315d392b013f3519d1f_f0761037-79ef-4d35-b614-3f6339b4065b.webp?v=1714890730","variant_ids":[41907494387811]},"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-PC11","featured_media":{"alt":null,"id":23891139657827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b23185e6124cf194cc889315d392b013f3519d1f_f0761037-79ef-4d35-b614-3f6339b4065b.webp?v=1714890730"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907493863523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485805592675,"product_id":7414578872419,"position":7,"created_at":"2024-05-05T14:32:05+08:00","updated_at":"2024-05-05T14:32:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa85da3b1232fd5b2554c82b530612418d970dbf_b675a34e-4ec3-4369-ba9e-9cc9caab9f35.webp?v=1714890725","variant_ids":[41907493863523]},"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-PC11","featured_media":{"alt":null,"id":23891138117731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa85da3b1232fd5b2554c82b530612418d970dbf_b675a34e-4ec3-4369-ba9e-9cc9caab9f35.webp?v=1714890725"}},"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: "停產"
}