$product = {"id":7414134407267,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb37","description":null,"published_at":"2024-06-11T17:49:19+08:00","created_at":"2024-05-05T14:12:12+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":41904340271203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31484746727523,"product_id":7414134407267,"position":2,"created_at":"2024-05-05T14:12:17+08:00","updated_at":"2024-05-05T14:12:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2c2f9a949da97f54d96357771bad748316b0360_357a188a-5a00-4e71-80c5-c7f06de010e2.webp?v=1714889537","variant_ids":[41904340271203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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-PB37","featured_media":{"alt":null,"id":23890041176163,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2c2f9a949da97f54d96357771bad748316b0360_357a188a-5a00-4e71-80c5-c7f06de010e2.webp?v=1714889537"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904340598883,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31484749217891,"product_id":7414134407267,"position":6,"created_at":"2024-05-05T14:12:26+08:00","updated_at":"2024-05-05T14:12:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14bb7dad407d2316d7110ad42ef9eb7ac043633e_778c48b9-7950-4d4b-8f2c-a312f553a717.webp?v=1714889546","variant_ids":[41904340598883]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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-PB37","featured_media":{"alt":null,"id":23890044911715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14bb7dad407d2316d7110ad42ef9eb7ac043633e_778c48b9-7950-4d4b-8f2c-a312f553a717.webp?v=1714889546"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a2a3ffd49328f54af0d75f8f4bd4373e94e8bd1_51e5a2d9-cfb3-4275-b6bc-8b90c4ae016d.webp?v=1714889535","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2c2f9a949da97f54d96357771bad748316b0360_357a188a-5a00-4e71-80c5-c7f06de010e2.webp?v=1714889537","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/308de7ae501096c527d655f4538b5a2f26ebbe93_55a93430-7136-406c-8710-78b791c24819.webp?v=1714889539","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3af1eba7d3163abea544fc1207162a4a008bd4_7d913296-2fdd-4c7d-98e6-29e5348132d7.webp?v=1714889541","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/325de881b42a8d9e8341babfdbfe97ae33732149_61a7424f-54c1-4302-8315-a9df0c1fce07.webp?v=1714889543","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14bb7dad407d2316d7110ad42ef9eb7ac043633e_778c48b9-7950-4d4b-8f2c-a312f553a717.webp?v=1714889546","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/543ff1076f078ba70d2ca8d15f14c345f7695bfc_49e9e919-8f35-40fb-8117-9aebaaaae834.webp?v=1714889548","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbed6dd717a885d61e38bd7319be87f177ea2f74_9fe17476-a0ac-48d9-b00d-6a1eccfa7bca.webp?v=1714889551","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1baab91830053d343f6a3dfffba6dc355a1cadc6_4dfe430a-6583-4311-a67b-a13d6b4b5589.webp?v=1714889553","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/027e7363960bc7e074979744e5b643f320436f5a_0bcbd6d3-27af-4992-9508-c43691894485.webp?v=1714889555","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/804cb95183adda049c182509b5c70177b95a71a8_4c111163-77fd-47f1-9371-e98b3770aaab.webp?v=1714889557"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a2a3ffd49328f54af0d75f8f4bd4373e94e8bd1_51e5a2d9-cfb3-4275-b6bc-8b90c4ae016d.webp?v=1714889535","options":["color"],"media":[{"alt":null,"id":23890040782947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a2a3ffd49328f54af0d75f8f4bd4373e94e8bd1_51e5a2d9-cfb3-4275-b6bc-8b90c4ae016d.webp?v=1714889535"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a2a3ffd49328f54af0d75f8f4bd4373e94e8bd1_51e5a2d9-cfb3-4275-b6bc-8b90c4ae016d.webp?v=1714889535","width":2000},{"alt":null,"id":23890041176163,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2c2f9a949da97f54d96357771bad748316b0360_357a188a-5a00-4e71-80c5-c7f06de010e2.webp?v=1714889537"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2c2f9a949da97f54d96357771bad748316b0360_357a188a-5a00-4e71-80c5-c7f06de010e2.webp?v=1714889537","width":2000},{"alt":null,"id":23890041602147,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/308de7ae501096c527d655f4538b5a2f26ebbe93_55a93430-7136-406c-8710-78b791c24819.webp?v=1714889539"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/308de7ae501096c527d655f4538b5a2f26ebbe93_55a93430-7136-406c-8710-78b791c24819.webp?v=1714889539","width":2000},{"alt":null,"id":23890042191971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3af1eba7d3163abea544fc1207162a4a008bd4_7d913296-2fdd-4c7d-98e6-29e5348132d7.webp?v=1714889541"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3af1eba7d3163abea544fc1207162a4a008bd4_7d913296-2fdd-4c7d-98e6-29e5348132d7.webp?v=1714889541","width":2000},{"alt":null,"id":23890043076707,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/325de881b42a8d9e8341babfdbfe97ae33732149_61a7424f-54c1-4302-8315-a9df0c1fce07.webp?v=1714889543"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/325de881b42a8d9e8341babfdbfe97ae33732149_61a7424f-54c1-4302-8315-a9df0c1fce07.webp?v=1714889543","width":2000},{"alt":null,"id":23890044911715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14bb7dad407d2316d7110ad42ef9eb7ac043633e_778c48b9-7950-4d4b-8f2c-a312f553a717.webp?v=1714889546"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14bb7dad407d2316d7110ad42ef9eb7ac043633e_778c48b9-7950-4d4b-8f2c-a312f553a717.webp?v=1714889546","width":2000},{"alt":null,"id":23890046615651,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/543ff1076f078ba70d2ca8d15f14c345f7695bfc_49e9e919-8f35-40fb-8117-9aebaaaae834.webp?v=1714889548"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/543ff1076f078ba70d2ca8d15f14c345f7695bfc_49e9e919-8f35-40fb-8117-9aebaaaae834.webp?v=1714889548","width":2000},{"alt":null,"id":23890048581731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbed6dd717a885d61e38bd7319be87f177ea2f74_9fe17476-a0ac-48d9-b00d-6a1eccfa7bca.webp?v=1714889551"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbed6dd717a885d61e38bd7319be87f177ea2f74_9fe17476-a0ac-48d9-b00d-6a1eccfa7bca.webp?v=1714889551","width":2000},{"alt":null,"id":23890050318435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1baab91830053d343f6a3dfffba6dc355a1cadc6_4dfe430a-6583-4311-a67b-a13d6b4b5589.webp?v=1714889553"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1baab91830053d343f6a3dfffba6dc355a1cadc6_4dfe430a-6583-4311-a67b-a13d6b4b5589.webp?v=1714889553","width":2000},{"alt":null,"id":23890052218979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/027e7363960bc7e074979744e5b643f320436f5a_0bcbd6d3-27af-4992-9508-c43691894485.webp?v=1714889555"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/027e7363960bc7e074979744e5b643f320436f5a_0bcbd6d3-27af-4992-9508-c43691894485.webp?v=1714889555","width":2000},{"alt":null,"id":23890054152291,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/804cb95183adda049c182509b5c70177b95a71a8_4c111163-77fd-47f1-9371-e98b3770aaab.webp?v=1714889557"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/804cb95183adda049c182509b5c70177b95a71a8_4c111163-77fd-47f1-9371-e98b3770aaab.webp?v=1714889557","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41904340271203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31484746727523,"product_id":7414134407267,"position":2,"created_at":"2024-05-05T14:12:17+08:00","updated_at":"2024-05-05T14:12:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2c2f9a949da97f54d96357771bad748316b0360_357a188a-5a00-4e71-80c5-c7f06de010e2.webp?v=1714889537","variant_ids":[41904340271203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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-PB37","featured_media":{"alt":null,"id":23890041176163,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2c2f9a949da97f54d96357771bad748316b0360_357a188a-5a00-4e71-80c5-c7f06de010e2.webp?v=1714889537"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904340598883,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31484749217891,"product_id":7414134407267,"position":6,"created_at":"2024-05-05T14:12:26+08:00","updated_at":"2024-05-05T14:12:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14bb7dad407d2316d7110ad42ef9eb7ac043633e_778c48b9-7950-4d4b-8f2c-a312f553a717.webp?v=1714889546","variant_ids":[41904340598883]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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-PB37","featured_media":{"alt":null,"id":23890044911715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14bb7dad407d2316d7110ad42ef9eb7ac043633e_778c48b9-7950-4d4b-8f2c-a312f553a717.webp?v=1714889546"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41904340271203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31484746727523,"product_id":7414134407267,"position":2,"created_at":"2024-05-05T14:12:17+08:00","updated_at":"2024-05-05T14:12:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2c2f9a949da97f54d96357771bad748316b0360_357a188a-5a00-4e71-80c5-c7f06de010e2.webp?v=1714889537","variant_ids":[41904340271203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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-PB37","featured_media":{"alt":null,"id":23890041176163,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2c2f9a949da97f54d96357771bad748316b0360_357a188a-5a00-4e71-80c5-c7f06de010e2.webp?v=1714889537"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$brand_handle = null;
$type = "";
var sellingStatus
// 只有設計款(SKU 含 '-')才需要合圖
if ($isMerge && $defaultVariant.sku.includes('-')) {
$(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: "停產"
}