$product = {"id":7414274850915,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - G本款","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-iv07","description":null,"published_at":"2024-06-11T17:50:25+08:00","created_at":"2024-05-05T14:19:40+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-1chun","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":41905356374115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485056122979,"product_id":7414274850915,"position":8,"created_at":"2024-05-05T14:19:59+08:00","updated_at":"2024-05-05T14:19:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22efad66941c2613d62131a56a49c520d46e0ec1_30972218-672b-4455-a2f2-4254402b85f4.webp?v=1714889999","variant_ids":[41905356374115]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - G本款 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-IV07","featured_media":{"alt":null,"id":23890370986083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22efad66941c2613d62131a56a49c520d46e0ec1_30972218-672b-4455-a2f2-4254402b85f4.webp?v=1714889999"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905356898403,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485057466467,"product_id":7414274850915,"position":9,"created_at":"2024-05-05T14:20:01+08:00","updated_at":"2024-05-05T14:20:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbc2b8440ef257e532fd598b23e95c48c79b0762_d576e0fe-a912-4619-bef9-9448345fabb9.webp?v=1714890001","variant_ids":[41905356898403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - G本款 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-IV07","featured_media":{"alt":null,"id":23890372264035,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbc2b8440ef257e532fd598b23e95c48c79b0762_d576e0fe-a912-4619-bef9-9448345fabb9.webp?v=1714890001"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d67d3dc535f1662826b1908f64f3e01ce5d907_c141de9a-d902-47cc-a9c4-8906eaf71491.webp?v=1714889983","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34cc720185e78275f8478a2ec3f40391655cb776_20f9b272-7d5a-4fca-b348-0c6deb39d1bc.webp?v=1714889985","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7baefd97e15f7481b173bd7d1d04342ce51c644e_d2ce430e-fdb3-4581-bee5-57943ccbefbb.webp?v=1714889988","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/120e919c12e51c346462b5d26428d3c6a8348719_2c3c9aac-7d96-4ae0-8266-a39d895dca17.webp?v=1714889990","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c67ba3c1de5f17818baa4aaea3fa8f694931dd2f_a33dec11-a4d3-4c26-a8c1-94ed34cbf208.webp?v=1714889992","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc3492b218ab4df289a33dd6ed8acc347fc9ad39_a9400562-96ad-45a9-a2b3-b3532fe789bf.webp?v=1714889994","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f47af09ee33161164453602be7efd525fffd7496_f69f70d4-b02e-4cdc-a26f-56ee4c0fa170.webp?v=1714889997","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22efad66941c2613d62131a56a49c520d46e0ec1_30972218-672b-4455-a2f2-4254402b85f4.webp?v=1714889999","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbc2b8440ef257e532fd598b23e95c48c79b0762_d576e0fe-a912-4619-bef9-9448345fabb9.webp?v=1714890001","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4141bdb2c706143fc2e616b5b4630e86e9e65900_ff029c6f-70ca-4a25-8cce-533ca0619cbd.webp?v=1714890004","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64d1ed16c3ce52c46329a8bc8fa5834826813189_7d5fd616-1fcd-4b58-9d5b-2c0d253e6e9b.webp?v=1714890006"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d67d3dc535f1662826b1908f64f3e01ce5d907_c141de9a-d902-47cc-a9c4-8906eaf71491.webp?v=1714889983","options":["color"],"media":[{"alt":null,"id":23890359812195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d67d3dc535f1662826b1908f64f3e01ce5d907_c141de9a-d902-47cc-a9c4-8906eaf71491.webp?v=1714889983"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d67d3dc535f1662826b1908f64f3e01ce5d907_c141de9a-d902-47cc-a9c4-8906eaf71491.webp?v=1714889983","width":2000},{"alt":null,"id":23890361319523,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34cc720185e78275f8478a2ec3f40391655cb776_20f9b272-7d5a-4fca-b348-0c6deb39d1bc.webp?v=1714889985"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34cc720185e78275f8478a2ec3f40391655cb776_20f9b272-7d5a-4fca-b348-0c6deb39d1bc.webp?v=1714889985","width":2000},{"alt":null,"id":23890362826851,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7baefd97e15f7481b173bd7d1d04342ce51c644e_d2ce430e-fdb3-4581-bee5-57943ccbefbb.webp?v=1714889988"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7baefd97e15f7481b173bd7d1d04342ce51c644e_d2ce430e-fdb3-4581-bee5-57943ccbefbb.webp?v=1714889988","width":2000},{"alt":null,"id":23890365153379,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/120e919c12e51c346462b5d26428d3c6a8348719_2c3c9aac-7d96-4ae0-8266-a39d895dca17.webp?v=1714889990"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/120e919c12e51c346462b5d26428d3c6a8348719_2c3c9aac-7d96-4ae0-8266-a39d895dca17.webp?v=1714889990","width":2000},{"alt":null,"id":23890366562403,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c67ba3c1de5f17818baa4aaea3fa8f694931dd2f_a33dec11-a4d3-4c26-a8c1-94ed34cbf208.webp?v=1714889992"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c67ba3c1de5f17818baa4aaea3fa8f694931dd2f_a33dec11-a4d3-4c26-a8c1-94ed34cbf208.webp?v=1714889992","width":2000},{"alt":null,"id":23890367971427,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc3492b218ab4df289a33dd6ed8acc347fc9ad39_a9400562-96ad-45a9-a2b3-b3532fe789bf.webp?v=1714889994"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc3492b218ab4df289a33dd6ed8acc347fc9ad39_a9400562-96ad-45a9-a2b3-b3532fe789bf.webp?v=1714889994","width":2000},{"alt":null,"id":23890369445987,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f47af09ee33161164453602be7efd525fffd7496_f69f70d4-b02e-4cdc-a26f-56ee4c0fa170.webp?v=1714889997"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f47af09ee33161164453602be7efd525fffd7496_f69f70d4-b02e-4cdc-a26f-56ee4c0fa170.webp?v=1714889997","width":2000},{"alt":null,"id":23890370986083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22efad66941c2613d62131a56a49c520d46e0ec1_30972218-672b-4455-a2f2-4254402b85f4.webp?v=1714889999"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22efad66941c2613d62131a56a49c520d46e0ec1_30972218-672b-4455-a2f2-4254402b85f4.webp?v=1714889999","width":2000},{"alt":null,"id":23890372264035,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbc2b8440ef257e532fd598b23e95c48c79b0762_d576e0fe-a912-4619-bef9-9448345fabb9.webp?v=1714890001"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbc2b8440ef257e532fd598b23e95c48c79b0762_d576e0fe-a912-4619-bef9-9448345fabb9.webp?v=1714890001","width":2000},{"alt":null,"id":23890374066275,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4141bdb2c706143fc2e616b5b4630e86e9e65900_ff029c6f-70ca-4a25-8cce-533ca0619cbd.webp?v=1714890004"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4141bdb2c706143fc2e616b5b4630e86e9e65900_ff029c6f-70ca-4a25-8cce-533ca0619cbd.webp?v=1714890004","width":2000},{"alt":null,"id":23890375540835,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64d1ed16c3ce52c46329a8bc8fa5834826813189_7d5fd616-1fcd-4b58-9d5b-2c0d253e6e9b.webp?v=1714890006"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64d1ed16c3ce52c46329a8bc8fa5834826813189_7d5fd616-1fcd-4b58-9d5b-2c0d253e6e9b.webp?v=1714890006","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41905356374115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485056122979,"product_id":7414274850915,"position":8,"created_at":"2024-05-05T14:19:59+08:00","updated_at":"2024-05-05T14:19:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22efad66941c2613d62131a56a49c520d46e0ec1_30972218-672b-4455-a2f2-4254402b85f4.webp?v=1714889999","variant_ids":[41905356374115]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - G本款 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-IV07","featured_media":{"alt":null,"id":23890370986083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22efad66941c2613d62131a56a49c520d46e0ec1_30972218-672b-4455-a2f2-4254402b85f4.webp?v=1714889999"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905356898403,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485057466467,"product_id":7414274850915,"position":9,"created_at":"2024-05-05T14:20:01+08:00","updated_at":"2024-05-05T14:20:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbc2b8440ef257e532fd598b23e95c48c79b0762_d576e0fe-a912-4619-bef9-9448345fabb9.webp?v=1714890001","variant_ids":[41905356898403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - G本款 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-IV07","featured_media":{"alt":null,"id":23890372264035,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbc2b8440ef257e532fd598b23e95c48c79b0762_d576e0fe-a912-4619-bef9-9448345fabb9.webp?v=1714890001"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41905356374115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485056122979,"product_id":7414274850915,"position":8,"created_at":"2024-05-05T14:19:59+08:00","updated_at":"2024-05-05T14:19:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22efad66941c2613d62131a56a49c520d46e0ec1_30972218-672b-4455-a2f2-4254402b85f4.webp?v=1714889999","variant_ids":[41905356374115]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - G本款 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-IV07","featured_media":{"alt":null,"id":23890370986083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22efad66941c2613d62131a56a49c520d46e0ec1_30972218-672b-4455-a2f2-4254402b85f4.webp?v=1714889999"}},"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: "停產"
}