$product = {"id":7411381796963,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Twenty One Point Five - 21.5 - Mundane Everyday","handle":"iphone-14-plus-mod-nx-magsafe-printable-rl01","description":null,"published_at":"2024-06-11T17:43:26+08:00","created_at":"2024-05-05T00:18:55+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Twenty One Point Five - 21.5","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-twenty-one-point-five","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-twenty-one-point-five","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":41898175430755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480285593699,"product_id":7411381796963,"position":6,"created_at":"2024-05-05T00:19:10+08:00","updated_at":"2024-05-05T00:19:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9af6d95571a85e743fdf9cece13b5e93c8d966c_c41ecb36-4d4b-4d1f-9018-064335ea3a6e.webp?v=1714839550","variant_ids":[41898175430755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Twenty One Point Five - 21.5 - Mundane Everyday - 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":"MPB0126124-RL01","featured_media":{"alt":null,"id":23885536952419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9af6d95571a85e743fdf9cece13b5e93c8d966c_c41ecb36-4d4b-4d1f-9018-064335ea3a6e.webp?v=1714839550"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0284aa9a772b4a64a0f4fc423ceae3ec847a541e_d563a764-706e-4838-9f20-e3fae6baee37.webp?v=1714839537","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef8d69265c4c5dbd506fce1a40e86b1cab09ecb8_e89b5e7c-5d04-4f09-a698-ef6d8d09acb7.webp?v=1714839540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/190c0d7c9a6ca827a24339ee1b112ee2adaf3a4c_21d1d5f7-15b2-44f7-aa30-d5900b7b3841.webp?v=1714839542","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13424e0022d0097124ddfbb68a78a8cc8d71529d_f12d6903-ebcc-4a03-891d-337ed9536cdb.webp?v=1714839545","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94b4ca449c720ca43ca4b7dcbb773a202d97121b_c9a66e6d-b5be-495c-bb10-952c4404be9a.webp?v=1714839547","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9af6d95571a85e743fdf9cece13b5e93c8d966c_c41ecb36-4d4b-4d1f-9018-064335ea3a6e.webp?v=1714839550","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c58934afa6f322c058a6069d9ece2ef9ebb382c6_3b408259-912f-40b0-8cd3-16e92b1cf046.webp?v=1714839552","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87ffae1ab243dbd28ac901846446dbf8fa5889e7_1d8e50d6-4234-44af-a13d-8459b4b728d6.webp?v=1714839555","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90ce9f9f204ad05a251d72bd266b6dc93934f515_d5a49500-ee39-49ec-8f4b-e3e1c04bd63b.webp?v=1714839557","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e42b9696a4c8f420a960748a13f1ae3c4bb9901c_eed5be00-2300-4e9f-9e75-07542f6fc0da.webp?v=1714839560"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0284aa9a772b4a64a0f4fc423ceae3ec847a541e_d563a764-706e-4838-9f20-e3fae6baee37.webp?v=1714839537","options":["color"],"media":[{"alt":null,"id":23885534232675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0284aa9a772b4a64a0f4fc423ceae3ec847a541e_d563a764-706e-4838-9f20-e3fae6baee37.webp?v=1714839537"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0284aa9a772b4a64a0f4fc423ceae3ec847a541e_d563a764-706e-4838-9f20-e3fae6baee37.webp?v=1714839537","width":2000},{"alt":null,"id":23885534822499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef8d69265c4c5dbd506fce1a40e86b1cab09ecb8_e89b5e7c-5d04-4f09-a698-ef6d8d09acb7.webp?v=1714839540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef8d69265c4c5dbd506fce1a40e86b1cab09ecb8_e89b5e7c-5d04-4f09-a698-ef6d8d09acb7.webp?v=1714839540","width":2000},{"alt":null,"id":23885535412323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/190c0d7c9a6ca827a24339ee1b112ee2adaf3a4c_21d1d5f7-15b2-44f7-aa30-d5900b7b3841.webp?v=1714839542"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/190c0d7c9a6ca827a24339ee1b112ee2adaf3a4c_21d1d5f7-15b2-44f7-aa30-d5900b7b3841.webp?v=1714839542","width":2000},{"alt":null,"id":23885535871075,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13424e0022d0097124ddfbb68a78a8cc8d71529d_f12d6903-ebcc-4a03-891d-337ed9536cdb.webp?v=1714839545"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13424e0022d0097124ddfbb68a78a8cc8d71529d_f12d6903-ebcc-4a03-891d-337ed9536cdb.webp?v=1714839545","width":2000},{"alt":null,"id":23885536493667,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94b4ca449c720ca43ca4b7dcbb773a202d97121b_c9a66e6d-b5be-495c-bb10-952c4404be9a.webp?v=1714839547"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94b4ca449c720ca43ca4b7dcbb773a202d97121b_c9a66e6d-b5be-495c-bb10-952c4404be9a.webp?v=1714839547","width":2000},{"alt":null,"id":23885536952419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9af6d95571a85e743fdf9cece13b5e93c8d966c_c41ecb36-4d4b-4d1f-9018-064335ea3a6e.webp?v=1714839550"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9af6d95571a85e743fdf9cece13b5e93c8d966c_c41ecb36-4d4b-4d1f-9018-064335ea3a6e.webp?v=1714839550","width":2000},{"alt":null,"id":23885537509475,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c58934afa6f322c058a6069d9ece2ef9ebb382c6_3b408259-912f-40b0-8cd3-16e92b1cf046.webp?v=1714839552"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c58934afa6f322c058a6069d9ece2ef9ebb382c6_3b408259-912f-40b0-8cd3-16e92b1cf046.webp?v=1714839552","width":2000},{"alt":null,"id":23885538000995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87ffae1ab243dbd28ac901846446dbf8fa5889e7_1d8e50d6-4234-44af-a13d-8459b4b728d6.webp?v=1714839555"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87ffae1ab243dbd28ac901846446dbf8fa5889e7_1d8e50d6-4234-44af-a13d-8459b4b728d6.webp?v=1714839555","width":2000},{"alt":null,"id":23885538689123,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90ce9f9f204ad05a251d72bd266b6dc93934f515_d5a49500-ee39-49ec-8f4b-e3e1c04bd63b.webp?v=1714839557"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90ce9f9f204ad05a251d72bd266b6dc93934f515_d5a49500-ee39-49ec-8f4b-e3e1c04bd63b.webp?v=1714839557","width":2000},{"alt":null,"id":23885539147875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e42b9696a4c8f420a960748a13f1ae3c4bb9901c_eed5be00-2300-4e9f-9e75-07542f6fc0da.webp?v=1714839560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e42b9696a4c8f420a960748a13f1ae3c4bb9901c_eed5be00-2300-4e9f-9e75-07542f6fc0da.webp?v=1714839560","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41898175430755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480285593699,"product_id":7411381796963,"position":6,"created_at":"2024-05-05T00:19:10+08:00","updated_at":"2024-05-05T00:19:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9af6d95571a85e743fdf9cece13b5e93c8d966c_c41ecb36-4d4b-4d1f-9018-064335ea3a6e.webp?v=1714839550","variant_ids":[41898175430755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Twenty One Point Five - 21.5 - Mundane Everyday - 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":"MPB0126124-RL01","featured_media":{"alt":null,"id":23885536952419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9af6d95571a85e743fdf9cece13b5e93c8d966c_c41ecb36-4d4b-4d1f-9018-064335ea3a6e.webp?v=1714839550"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41898175430755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480285593699,"product_id":7411381796963,"position":6,"created_at":"2024-05-05T00:19:10+08:00","updated_at":"2024-05-05T00:19:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9af6d95571a85e743fdf9cece13b5e93c8d966c_c41ecb36-4d4b-4d1f-9018-064335ea3a6e.webp?v=1714839550","variant_ids":[41898175430755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Twenty One Point Five - 21.5 - Mundane Everyday - 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":"MPB0126124-RL01","featured_media":{"alt":null,"id":23885536952419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9af6d95571a85e743fdf9cece13b5e93c8d966c_c41ecb36-4d4b-4d1f-9018-064335ea3a6e.webp?v=1714839550"}},"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: "停產"
}