$product = {"id":7413985083491,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 尤達-塗鴉藝術","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb36","description":null,"published_at":"2024-06-11T17:46:54+08:00","created_at":"2024-05-05T13:55:33+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":41903002746979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31484390244451,"product_id":7413985083491,"position":3,"created_at":"2024-05-05T13:55:40+08:00","updated_at":"2024-05-05T13:55:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0696ac54969d24dfbd5c1cad15d366791cefbe8f_90b67b2a-6aa4-4ad4-9d79-1cabd083d776.webp?v=1714888540","variant_ids":[41903002746979]},"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-PB36","featured_media":{"alt":null,"id":23889684168803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0696ac54969d24dfbd5c1cad15d366791cefbe8f_90b67b2a-6aa4-4ad4-9d79-1cabd083d776.webp?v=1714888540"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903003074659,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31484393750627,"product_id":7413985083491,"position":11,"created_at":"2024-05-05T13:55:58+08:00","updated_at":"2024-05-05T13:55:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b257b8d1167e4aa492d23ebe4ceeda61112c6fac_2cdb6828-01a7-45b0-8bcf-e8ace3558503.webp?v=1714888558","variant_ids":[41903003074659]},"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-PB36","featured_media":{"alt":null,"id":23889687707747,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b257b8d1167e4aa492d23ebe4ceeda61112c6fac_2cdb6828-01a7-45b0-8bcf-e8ace3558503.webp?v=1714888558"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6b62b0af5264ee8cf56741ba0dce18f036eccc8_bdc26d09-e37a-4fea-b645-18c2c8086d21.webp?v=1714888536","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8791276f01998545cd066713dd212d2b16b6eb05_de950b05-4a49-4897-969e-cd80d5e08251.webp?v=1714888538","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0696ac54969d24dfbd5c1cad15d366791cefbe8f_90b67b2a-6aa4-4ad4-9d79-1cabd083d776.webp?v=1714888540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f79a27cccf911a8aee33fb27f6af6ecdf14a70f8_bed4fe3a-99ae-4d8d-826f-3f69ae660c81.webp?v=1714888542","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5baf4ffa62072715e57b842d84744b0753fbf6e6_3d85de08-fa92-421e-b964-aa82dd71bcfe.webp?v=1714888545","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4565922ca335befbf8d0ab9701a00365fd64608_5afe9701-6884-4db7-b7d4-9301fdaabe33.webp?v=1714888547","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bc060fb1749e17ab5455fdfd78fc60a80946145_838c3c4f-7349-4e5c-9d85-937ff832735d.webp?v=1714888549","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af49c7fcd46701a60c01f921e281b28aebb9a4a1_efb98c53-5e48-4ee7-bf2f-58014958b759.webp?v=1714888551","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45e780f69cc9889da08872435dc88980369ed0ad_dfc94c05-514f-4d0d-8161-b7d763f57237.webp?v=1714888553","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/591d5b3fb4767c00f5c546b565d85de33f2313df_4027439c-16f7-4f17-a247-6734716e45d7.webp?v=1714888556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b257b8d1167e4aa492d23ebe4ceeda61112c6fac_2cdb6828-01a7-45b0-8bcf-e8ace3558503.webp?v=1714888558"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6b62b0af5264ee8cf56741ba0dce18f036eccc8_bdc26d09-e37a-4fea-b645-18c2c8086d21.webp?v=1714888536","options":["color"],"media":[{"alt":null,"id":23889683284067,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6b62b0af5264ee8cf56741ba0dce18f036eccc8_bdc26d09-e37a-4fea-b645-18c2c8086d21.webp?v=1714888536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6b62b0af5264ee8cf56741ba0dce18f036eccc8_bdc26d09-e37a-4fea-b645-18c2c8086d21.webp?v=1714888536","width":2000},{"alt":null,"id":23889683775587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8791276f01998545cd066713dd212d2b16b6eb05_de950b05-4a49-4897-969e-cd80d5e08251.webp?v=1714888538"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8791276f01998545cd066713dd212d2b16b6eb05_de950b05-4a49-4897-969e-cd80d5e08251.webp?v=1714888538","width":2000},{"alt":null,"id":23889684168803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0696ac54969d24dfbd5c1cad15d366791cefbe8f_90b67b2a-6aa4-4ad4-9d79-1cabd083d776.webp?v=1714888540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0696ac54969d24dfbd5c1cad15d366791cefbe8f_90b67b2a-6aa4-4ad4-9d79-1cabd083d776.webp?v=1714888540","width":2000},{"alt":null,"id":23889684725859,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f79a27cccf911a8aee33fb27f6af6ecdf14a70f8_bed4fe3a-99ae-4d8d-826f-3f69ae660c81.webp?v=1714888542"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f79a27cccf911a8aee33fb27f6af6ecdf14a70f8_bed4fe3a-99ae-4d8d-826f-3f69ae660c81.webp?v=1714888542","width":2000},{"alt":null,"id":23889685086307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5baf4ffa62072715e57b842d84744b0753fbf6e6_3d85de08-fa92-421e-b964-aa82dd71bcfe.webp?v=1714888545"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5baf4ffa62072715e57b842d84744b0753fbf6e6_3d85de08-fa92-421e-b964-aa82dd71bcfe.webp?v=1714888545","width":2000},{"alt":null,"id":23889685413987,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4565922ca335befbf8d0ab9701a00365fd64608_5afe9701-6884-4db7-b7d4-9301fdaabe33.webp?v=1714888547"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4565922ca335befbf8d0ab9701a00365fd64608_5afe9701-6884-4db7-b7d4-9301fdaabe33.webp?v=1714888547","width":2000},{"alt":null,"id":23889685872739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bc060fb1749e17ab5455fdfd78fc60a80946145_838c3c4f-7349-4e5c-9d85-937ff832735d.webp?v=1714888549"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bc060fb1749e17ab5455fdfd78fc60a80946145_838c3c4f-7349-4e5c-9d85-937ff832735d.webp?v=1714888549","width":2000},{"alt":null,"id":23889686331491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af49c7fcd46701a60c01f921e281b28aebb9a4a1_efb98c53-5e48-4ee7-bf2f-58014958b759.webp?v=1714888551"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af49c7fcd46701a60c01f921e281b28aebb9a4a1_efb98c53-5e48-4ee7-bf2f-58014958b759.webp?v=1714888551","width":2000},{"alt":null,"id":23889686790243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45e780f69cc9889da08872435dc88980369ed0ad_dfc94c05-514f-4d0d-8161-b7d763f57237.webp?v=1714888553"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45e780f69cc9889da08872435dc88980369ed0ad_dfc94c05-514f-4d0d-8161-b7d763f57237.webp?v=1714888553","width":2000},{"alt":null,"id":23889687314531,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/591d5b3fb4767c00f5c546b565d85de33f2313df_4027439c-16f7-4f17-a247-6734716e45d7.webp?v=1714888556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/591d5b3fb4767c00f5c546b565d85de33f2313df_4027439c-16f7-4f17-a247-6734716e45d7.webp?v=1714888556","width":2000},{"alt":null,"id":23889687707747,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b257b8d1167e4aa492d23ebe4ceeda61112c6fac_2cdb6828-01a7-45b0-8bcf-e8ace3558503.webp?v=1714888558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b257b8d1167e4aa492d23ebe4ceeda61112c6fac_2cdb6828-01a7-45b0-8bcf-e8ace3558503.webp?v=1714888558","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903002746979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31484390244451,"product_id":7413985083491,"position":3,"created_at":"2024-05-05T13:55:40+08:00","updated_at":"2024-05-05T13:55:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0696ac54969d24dfbd5c1cad15d366791cefbe8f_90b67b2a-6aa4-4ad4-9d79-1cabd083d776.webp?v=1714888540","variant_ids":[41903002746979]},"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-PB36","featured_media":{"alt":null,"id":23889684168803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0696ac54969d24dfbd5c1cad15d366791cefbe8f_90b67b2a-6aa4-4ad4-9d79-1cabd083d776.webp?v=1714888540"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903003074659,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31484393750627,"product_id":7413985083491,"position":11,"created_at":"2024-05-05T13:55:58+08:00","updated_at":"2024-05-05T13:55:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b257b8d1167e4aa492d23ebe4ceeda61112c6fac_2cdb6828-01a7-45b0-8bcf-e8ace3558503.webp?v=1714888558","variant_ids":[41903003074659]},"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-PB36","featured_media":{"alt":null,"id":23889687707747,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b257b8d1167e4aa492d23ebe4ceeda61112c6fac_2cdb6828-01a7-45b0-8bcf-e8ace3558503.webp?v=1714888558"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903002746979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31484390244451,"product_id":7413985083491,"position":3,"created_at":"2024-05-05T13:55:40+08:00","updated_at":"2024-05-05T13:55:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0696ac54969d24dfbd5c1cad15d366791cefbe8f_90b67b2a-6aa4-4ad4-9d79-1cabd083d776.webp?v=1714888540","variant_ids":[41903002746979]},"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-PB36","featured_media":{"alt":null,"id":23889684168803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0696ac54969d24dfbd5c1cad15d366791cefbe8f_90b67b2a-6aa4-4ad4-9d79-1cabd083d776.webp?v=1714888540"}},"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: "停產"
}