$product = {"id":7413998780515,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb34","description":null,"published_at":"2024-06-11T17:47:18+08:00","created_at":"2024-05-05T13:58:15+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":41903161114723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31484424454243,"product_id":7413998780515,"position":3,"created_at":"2024-05-05T13:58:22+08:00","updated_at":"2024-05-05T13:58:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773c4e1e22697b66716ed9adbd9ccb76d1d83d14_7ef86827-3531-4ceb-8dc5-97bd13dcfa19.webp?v=1714888702","variant_ids":[41903161114723]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23889718476899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773c4e1e22697b66716ed9adbd9ccb76d1d83d14_7ef86827-3531-4ceb-8dc5-97bd13dcfa19.webp?v=1714888702"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903161475171,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31484428091491,"product_id":7413998780515,"position":10,"created_at":"2024-05-05T13:58:37+08:00","updated_at":"2024-05-05T13:58:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/405f449d0e8654e9ed4d77f754bd5a7bb13866ab_0ead80d2-a99f-437f-8735-fe6e75046b02.webp?v=1714888717","variant_ids":[41903161475171]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23889722146915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/405f449d0e8654e9ed4d77f754bd5a7bb13866ab_0ead80d2-a99f-437f-8735-fe6e75046b02.webp?v=1714888717"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726c656180ae54d06f2d7c87e76f007d59405f65_effea498-490c-483e-8841-d6f19873539b.webp?v=1714888697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b97fff78925cff4fdca0d66dea132dd6581c0ae_ae9a878d-412d-405f-922b-60699b7c2af6.webp?v=1714888699","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773c4e1e22697b66716ed9adbd9ccb76d1d83d14_7ef86827-3531-4ceb-8dc5-97bd13dcfa19.webp?v=1714888702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/353286efdd5f8036b483d7d000e02bb8665e81d1_fb11aa83-4b2f-41da-8dc9-dc7ac7257e71.webp?v=1714888704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0ee14368b59fce8e94ffa94a0c475984c4e641c_433b3eb0-0f2c-475f-9008-9f528e8cfeb4.webp?v=1714888706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c6dd2f63960f4e62d6e0fc950f4aa728b2464fb_90994c7e-6e2b-4ad6-a1ef-9d2e2dfe5851.webp?v=1714888708","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12b8dea7868f520bf1ac0d36e4b93617a40562c2_6d5ce08e-ce16-4527-96ac-5d33ddd65dac.webp?v=1714888711","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c277e3eb3145710062622acea4f0c80cffa2e0e_c2f14ff2-190b-4e99-8b72-21a6dd8bf221.webp?v=1714888713","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0568d0727876732d5061a1a3a045ae927e009c7_14890a32-974a-4087-ae01-2b76cde4b216.webp?v=1714888715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/405f449d0e8654e9ed4d77f754bd5a7bb13866ab_0ead80d2-a99f-437f-8735-fe6e75046b02.webp?v=1714888717","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71e99cc590e4e706427629d500cff325efc74dcb_a0964bb7-4c64-47a9-bdbd-4be3b10a9d44.webp?v=1714888720"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726c656180ae54d06f2d7c87e76f007d59405f65_effea498-490c-483e-8841-d6f19873539b.webp?v=1714888697","options":["color"],"media":[{"alt":null,"id":23889717526627,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726c656180ae54d06f2d7c87e76f007d59405f65_effea498-490c-483e-8841-d6f19873539b.webp?v=1714888697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726c656180ae54d06f2d7c87e76f007d59405f65_effea498-490c-483e-8841-d6f19873539b.webp?v=1714888697","width":2000},{"alt":null,"id":23889718050915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b97fff78925cff4fdca0d66dea132dd6581c0ae_ae9a878d-412d-405f-922b-60699b7c2af6.webp?v=1714888699"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b97fff78925cff4fdca0d66dea132dd6581c0ae_ae9a878d-412d-405f-922b-60699b7c2af6.webp?v=1714888699","width":2000},{"alt":null,"id":23889718476899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773c4e1e22697b66716ed9adbd9ccb76d1d83d14_7ef86827-3531-4ceb-8dc5-97bd13dcfa19.webp?v=1714888702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773c4e1e22697b66716ed9adbd9ccb76d1d83d14_7ef86827-3531-4ceb-8dc5-97bd13dcfa19.webp?v=1714888702","width":2000},{"alt":null,"id":23889718935651,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/353286efdd5f8036b483d7d000e02bb8665e81d1_fb11aa83-4b2f-41da-8dc9-dc7ac7257e71.webp?v=1714888704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/353286efdd5f8036b483d7d000e02bb8665e81d1_fb11aa83-4b2f-41da-8dc9-dc7ac7257e71.webp?v=1714888704","width":2000},{"alt":null,"id":23889719525475,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0ee14368b59fce8e94ffa94a0c475984c4e641c_433b3eb0-0f2c-475f-9008-9f528e8cfeb4.webp?v=1714888706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0ee14368b59fce8e94ffa94a0c475984c4e641c_433b3eb0-0f2c-475f-9008-9f528e8cfeb4.webp?v=1714888706","width":2000},{"alt":null,"id":23889720049763,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c6dd2f63960f4e62d6e0fc950f4aa728b2464fb_90994c7e-6e2b-4ad6-a1ef-9d2e2dfe5851.webp?v=1714888708"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c6dd2f63960f4e62d6e0fc950f4aa728b2464fb_90994c7e-6e2b-4ad6-a1ef-9d2e2dfe5851.webp?v=1714888708","width":2000},{"alt":null,"id":23889720508515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12b8dea7868f520bf1ac0d36e4b93617a40562c2_6d5ce08e-ce16-4527-96ac-5d33ddd65dac.webp?v=1714888711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12b8dea7868f520bf1ac0d36e4b93617a40562c2_6d5ce08e-ce16-4527-96ac-5d33ddd65dac.webp?v=1714888711","width":2000},{"alt":null,"id":23889721032803,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c277e3eb3145710062622acea4f0c80cffa2e0e_c2f14ff2-190b-4e99-8b72-21a6dd8bf221.webp?v=1714888713"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c277e3eb3145710062622acea4f0c80cffa2e0e_c2f14ff2-190b-4e99-8b72-21a6dd8bf221.webp?v=1714888713","width":2000},{"alt":null,"id":23889721458787,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0568d0727876732d5061a1a3a045ae927e009c7_14890a32-974a-4087-ae01-2b76cde4b216.webp?v=1714888715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0568d0727876732d5061a1a3a045ae927e009c7_14890a32-974a-4087-ae01-2b76cde4b216.webp?v=1714888715","width":2000},{"alt":null,"id":23889722146915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/405f449d0e8654e9ed4d77f754bd5a7bb13866ab_0ead80d2-a99f-437f-8735-fe6e75046b02.webp?v=1714888717"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/405f449d0e8654e9ed4d77f754bd5a7bb13866ab_0ead80d2-a99f-437f-8735-fe6e75046b02.webp?v=1714888717","width":2000},{"alt":null,"id":23889722638435,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71e99cc590e4e706427629d500cff325efc74dcb_a0964bb7-4c64-47a9-bdbd-4be3b10a9d44.webp?v=1714888720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71e99cc590e4e706427629d500cff325efc74dcb_a0964bb7-4c64-47a9-bdbd-4be3b10a9d44.webp?v=1714888720","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903161114723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31484424454243,"product_id":7413998780515,"position":3,"created_at":"2024-05-05T13:58:22+08:00","updated_at":"2024-05-05T13:58:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773c4e1e22697b66716ed9adbd9ccb76d1d83d14_7ef86827-3531-4ceb-8dc5-97bd13dcfa19.webp?v=1714888702","variant_ids":[41903161114723]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23889718476899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773c4e1e22697b66716ed9adbd9ccb76d1d83d14_7ef86827-3531-4ceb-8dc5-97bd13dcfa19.webp?v=1714888702"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903161475171,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31484428091491,"product_id":7413998780515,"position":10,"created_at":"2024-05-05T13:58:37+08:00","updated_at":"2024-05-05T13:58:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/405f449d0e8654e9ed4d77f754bd5a7bb13866ab_0ead80d2-a99f-437f-8735-fe6e75046b02.webp?v=1714888717","variant_ids":[41903161475171]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23889722146915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/405f449d0e8654e9ed4d77f754bd5a7bb13866ab_0ead80d2-a99f-437f-8735-fe6e75046b02.webp?v=1714888717"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903161114723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31484424454243,"product_id":7413998780515,"position":3,"created_at":"2024-05-05T13:58:22+08:00","updated_at":"2024-05-05T13:58:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773c4e1e22697b66716ed9adbd9ccb76d1d83d14_7ef86827-3531-4ceb-8dc5-97bd13dcfa19.webp?v=1714888702","variant_ids":[41903161114723]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23889718476899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773c4e1e22697b66716ed9adbd9ccb76d1d83d14_7ef86827-3531-4ceb-8dc5-97bd13dcfa19.webp?v=1714888702"}},"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: "停產"
}