$product = {"id":7414618783843,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 絕地武士-光劍系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb71","description":null,"published_at":"2024-06-11T17:52:34+08:00","created_at":"2024-05-05T14:34: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":41907817775203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31485881352291,"product_id":7414618783843,"position":4,"created_at":"2024-05-05T14:34:21+08:00","updated_at":"2024-05-05T14:34:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91867957013c9795114ab2ac51288951cc4145d0_9a00bb0c-79b7-4f18-9071-08b1c2c43c07.webp?v=1714890861","variant_ids":[41907817775203]},"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-PB71","featured_media":{"alt":null,"id":23891216531555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91867957013c9795114ab2ac51288951cc4145d0_9a00bb0c-79b7-4f18-9071-08b1c2c43c07.webp?v=1714890861"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907818201187,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31485888462947,"product_id":7414618783843,"position":9,"created_at":"2024-05-05T14:34:32+08:00","updated_at":"2024-05-05T14:34:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7256d89a65b089e6ad5310840d53e3c9aa58b1b_94db4b86-07d1-4dff-8cde-4023a918ab02.webp?v=1714890872","variant_ids":[41907818201187]},"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-PB71","featured_media":{"alt":null,"id":23891223707747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7256d89a65b089e6ad5310840d53e3c9aa58b1b_94db4b86-07d1-4dff-8cde-4023a918ab02.webp?v=1714890872"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83f314e4e0d659e94fb5779df6170d33aee98304_2fc1860a-0771-4381-805d-ae551fe28309.webp?v=1714890854","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f23007236ddc97f1b8148525bf0715c19fa88dc_4408ba19-f0d0-44d0-b650-29e9b80836aa.webp?v=1714890856","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cf0b141c6544eefff516c9bcc551c48d0350b66_019658ae-b1cc-4ee2-800a-8d480db7fab6.webp?v=1714890859","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91867957013c9795114ab2ac51288951cc4145d0_9a00bb0c-79b7-4f18-9071-08b1c2c43c07.webp?v=1714890861","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/763fba0db3296d82d1e3c443ef3cdf42766cef21_033b7d79-7dd1-4e85-a287-148bc59a577b.webp?v=1714890863","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39743481cd8b79d3f42584bccc821e90aeb24284_b2a57a3e-cdee-4515-8ba7-d67fbed5846e.webp?v=1714890865","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f44efd2d8ba398016080fc87456bf418773478e7_1678b8f1-878b-4520-836e-8249d4129739.webp?v=1714890868","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/056b8d4d5cdc82110c163566f00eae97fe8f534e_50b0b9fb-de48-4efd-aa12-bb589de17cf4.webp?v=1714890870","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7256d89a65b089e6ad5310840d53e3c9aa58b1b_94db4b86-07d1-4dff-8cde-4023a918ab02.webp?v=1714890872","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02dec22af0b78aebee3c98d294f7bfbc58175131_6578c30b-0193-4db7-a81f-7b0078f0bb00.webp?v=1714890874","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b2f8473a90cb8bbe792680231044ea09d0e27c_490997da-d6bc-46b2-8586-380833bfd5fb.webp?v=1714890876"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83f314e4e0d659e94fb5779df6170d33aee98304_2fc1860a-0771-4381-805d-ae551fe28309.webp?v=1714890854","options":["color"],"media":[{"alt":null,"id":23891212501091,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83f314e4e0d659e94fb5779df6170d33aee98304_2fc1860a-0771-4381-805d-ae551fe28309.webp?v=1714890854"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83f314e4e0d659e94fb5779df6170d33aee98304_2fc1860a-0771-4381-805d-ae551fe28309.webp?v=1714890854","width":2000},{"alt":null,"id":23891213844579,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f23007236ddc97f1b8148525bf0715c19fa88dc_4408ba19-f0d0-44d0-b650-29e9b80836aa.webp?v=1714890856"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f23007236ddc97f1b8148525bf0715c19fa88dc_4408ba19-f0d0-44d0-b650-29e9b80836aa.webp?v=1714890856","width":2000},{"alt":null,"id":23891215122531,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cf0b141c6544eefff516c9bcc551c48d0350b66_019658ae-b1cc-4ee2-800a-8d480db7fab6.webp?v=1714890859"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cf0b141c6544eefff516c9bcc551c48d0350b66_019658ae-b1cc-4ee2-800a-8d480db7fab6.webp?v=1714890859","width":2000},{"alt":null,"id":23891216531555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91867957013c9795114ab2ac51288951cc4145d0_9a00bb0c-79b7-4f18-9071-08b1c2c43c07.webp?v=1714890861"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91867957013c9795114ab2ac51288951cc4145d0_9a00bb0c-79b7-4f18-9071-08b1c2c43c07.webp?v=1714890861","width":2000},{"alt":null,"id":23891217973347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/763fba0db3296d82d1e3c443ef3cdf42766cef21_033b7d79-7dd1-4e85-a287-148bc59a577b.webp?v=1714890863"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/763fba0db3296d82d1e3c443ef3cdf42766cef21_033b7d79-7dd1-4e85-a287-148bc59a577b.webp?v=1714890863","width":2000},{"alt":null,"id":23891219284067,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39743481cd8b79d3f42584bccc821e90aeb24284_b2a57a3e-cdee-4515-8ba7-d67fbed5846e.webp?v=1714890865"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39743481cd8b79d3f42584bccc821e90aeb24284_b2a57a3e-cdee-4515-8ba7-d67fbed5846e.webp?v=1714890865","width":2000},{"alt":null,"id":23891220988003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f44efd2d8ba398016080fc87456bf418773478e7_1678b8f1-878b-4520-836e-8249d4129739.webp?v=1714890868"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f44efd2d8ba398016080fc87456bf418773478e7_1678b8f1-878b-4520-836e-8249d4129739.webp?v=1714890868","width":2000},{"alt":null,"id":23891222265955,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/056b8d4d5cdc82110c163566f00eae97fe8f534e_50b0b9fb-de48-4efd-aa12-bb589de17cf4.webp?v=1714890870"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/056b8d4d5cdc82110c163566f00eae97fe8f534e_50b0b9fb-de48-4efd-aa12-bb589de17cf4.webp?v=1714890870","width":2000},{"alt":null,"id":23891223707747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7256d89a65b089e6ad5310840d53e3c9aa58b1b_94db4b86-07d1-4dff-8cde-4023a918ab02.webp?v=1714890872"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7256d89a65b089e6ad5310840d53e3c9aa58b1b_94db4b86-07d1-4dff-8cde-4023a918ab02.webp?v=1714890872","width":2000},{"alt":null,"id":23891225444451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02dec22af0b78aebee3c98d294f7bfbc58175131_6578c30b-0193-4db7-a81f-7b0078f0bb00.webp?v=1714890874"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02dec22af0b78aebee3c98d294f7bfbc58175131_6578c30b-0193-4db7-a81f-7b0078f0bb00.webp?v=1714890874","width":2000},{"alt":null,"id":23891226820707,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b2f8473a90cb8bbe792680231044ea09d0e27c_490997da-d6bc-46b2-8586-380833bfd5fb.webp?v=1714890876"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b2f8473a90cb8bbe792680231044ea09d0e27c_490997da-d6bc-46b2-8586-380833bfd5fb.webp?v=1714890876","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907817775203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31485881352291,"product_id":7414618783843,"position":4,"created_at":"2024-05-05T14:34:21+08:00","updated_at":"2024-05-05T14:34:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91867957013c9795114ab2ac51288951cc4145d0_9a00bb0c-79b7-4f18-9071-08b1c2c43c07.webp?v=1714890861","variant_ids":[41907817775203]},"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-PB71","featured_media":{"alt":null,"id":23891216531555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91867957013c9795114ab2ac51288951cc4145d0_9a00bb0c-79b7-4f18-9071-08b1c2c43c07.webp?v=1714890861"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907818201187,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31485888462947,"product_id":7414618783843,"position":9,"created_at":"2024-05-05T14:34:32+08:00","updated_at":"2024-05-05T14:34:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7256d89a65b089e6ad5310840d53e3c9aa58b1b_94db4b86-07d1-4dff-8cde-4023a918ab02.webp?v=1714890872","variant_ids":[41907818201187]},"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-PB71","featured_media":{"alt":null,"id":23891223707747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7256d89a65b089e6ad5310840d53e3c9aa58b1b_94db4b86-07d1-4dff-8cde-4023a918ab02.webp?v=1714890872"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907817775203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31485881352291,"product_id":7414618783843,"position":4,"created_at":"2024-05-05T14:34:21+08:00","updated_at":"2024-05-05T14:34:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91867957013c9795114ab2ac51288951cc4145d0_9a00bb0c-79b7-4f18-9071-08b1c2c43c07.webp?v=1714890861","variant_ids":[41907817775203]},"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-PB71","featured_media":{"alt":null,"id":23891216531555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91867957013c9795114ab2ac51288951cc4145d0_9a00bb0c-79b7-4f18-9071-08b1c2c43c07.webp?v=1714890861"}},"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: "停產"
}