$product = {"id":7414636216419,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 小丑與蝙蝠俠撲克牌","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sb15","description":null,"published_at":"2024-06-11T17:52:42+08:00","created_at":"2024-05-05T14:35:06+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-batman","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":41907939541091,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31485923655779,"product_id":7414636216419,"position":9,"created_at":"2024-05-05T14:35:28+08:00","updated_at":"2024-05-05T14:35:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dbb69bff42f80e396e25f43f873eb84b28f7b3a_c5054c1d-16f7-4007-acdc-87e1ad213887.webp?v=1714890928","variant_ids":[41907939541091]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 小丑與蝙蝠俠撲克牌 - 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-SB15","featured_media":{"alt":null,"id":23891258998883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dbb69bff42f80e396e25f43f873eb84b28f7b3a_c5054c1d-16f7-4007-acdc-87e1ad213887.webp?v=1714890928"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907940655203,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31485912776803,"product_id":7414636216419,"position":1,"created_at":"2024-05-05T14:35:09+08:00","updated_at":"2024-05-05T14:35:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3c1b9e938da8f76c7de56d080d4f256a71fcbd_87a8ea56-849c-4dbe-89c9-4d84e8712ba6.webp?v=1714890909","variant_ids":[41907940655203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 小丑與蝙蝠俠撲克牌 - 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-SB15","featured_media":{"alt":null,"id":23891248152675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3c1b9e938da8f76c7de56d080d4f256a71fcbd_87a8ea56-849c-4dbe-89c9-4d84e8712ba6.webp?v=1714890909"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3c1b9e938da8f76c7de56d080d4f256a71fcbd_87a8ea56-849c-4dbe-89c9-4d84e8712ba6.webp?v=1714890909","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cc4bb384f6d4727b5c5aafb7bd067e28d7e398a_f49e3df4-2d0b-4019-8004-ec15faf3c217.webp?v=1714890911","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/783b3695a53635080f29b606473fc9efe703eb53_ccb04afb-293e-4a5d-a0d5-20b4977011c3.webp?v=1714890913","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f9bc4e21f4c9fec1c6b2691f5bd8a9422196470_334c195c-1ee8-49b8-8c17-3ac1894e5b78.webp?v=1714890916","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c55850826093ae4bfb6f12e40160a9427b9a685_0b83bf3b-08ef-4fe7-a4d2-634cc80b8c32.webp?v=1714890918","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2997c8ab9e0beaf4fec6d8675d956218a9112ecc_3fd65ce6-4be8-49c3-84a8-0e0e5ff5f1cc.webp?v=1714890920","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/021aa3694366c99bef83bfcb8cd0efaf7788b3af_aeb52866-719c-4022-97d9-ecca8bc47305.webp?v=1714890923","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13938838e4257bdf9d8b14c7b9e54a954e7a3dba_47bf0654-0451-4a98-bd27-8caef8395f2d.webp?v=1714890925","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dbb69bff42f80e396e25f43f873eb84b28f7b3a_c5054c1d-16f7-4007-acdc-87e1ad213887.webp?v=1714890928","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fe5ce95c03f3a5b5fbac30ae2c678e9283d181a_b427b852-da84-4dcd-8f51-ea8a7a4f3f5c.webp?v=1714890930","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e3e2c739362031d616afa2d77b690866fed5e41_aae92763-e586-4e4c-9fae-61486109b922.webp?v=1714890933"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3c1b9e938da8f76c7de56d080d4f256a71fcbd_87a8ea56-849c-4dbe-89c9-4d84e8712ba6.webp?v=1714890909","options":["color"],"media":[{"alt":null,"id":23891248152675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3c1b9e938da8f76c7de56d080d4f256a71fcbd_87a8ea56-849c-4dbe-89c9-4d84e8712ba6.webp?v=1714890909"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3c1b9e938da8f76c7de56d080d4f256a71fcbd_87a8ea56-849c-4dbe-89c9-4d84e8712ba6.webp?v=1714890909","width":2000},{"alt":null,"id":23891249234019,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cc4bb384f6d4727b5c5aafb7bd067e28d7e398a_f49e3df4-2d0b-4019-8004-ec15faf3c217.webp?v=1714890911"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cc4bb384f6d4727b5c5aafb7bd067e28d7e398a_f49e3df4-2d0b-4019-8004-ec15faf3c217.webp?v=1714890911","width":2000},{"alt":null,"id":23891250282595,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/783b3695a53635080f29b606473fc9efe703eb53_ccb04afb-293e-4a5d-a0d5-20b4977011c3.webp?v=1714890913"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/783b3695a53635080f29b606473fc9efe703eb53_ccb04afb-293e-4a5d-a0d5-20b4977011c3.webp?v=1714890913","width":2000},{"alt":null,"id":23891251757155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f9bc4e21f4c9fec1c6b2691f5bd8a9422196470_334c195c-1ee8-49b8-8c17-3ac1894e5b78.webp?v=1714890916"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f9bc4e21f4c9fec1c6b2691f5bd8a9422196470_334c195c-1ee8-49b8-8c17-3ac1894e5b78.webp?v=1714890916","width":2000},{"alt":null,"id":23891252969571,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c55850826093ae4bfb6f12e40160a9427b9a685_0b83bf3b-08ef-4fe7-a4d2-634cc80b8c32.webp?v=1714890918"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c55850826093ae4bfb6f12e40160a9427b9a685_0b83bf3b-08ef-4fe7-a4d2-634cc80b8c32.webp?v=1714890918","width":2000},{"alt":null,"id":23891254673507,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2997c8ab9e0beaf4fec6d8675d956218a9112ecc_3fd65ce6-4be8-49c3-84a8-0e0e5ff5f1cc.webp?v=1714890920"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2997c8ab9e0beaf4fec6d8675d956218a9112ecc_3fd65ce6-4be8-49c3-84a8-0e0e5ff5f1cc.webp?v=1714890920","width":2000},{"alt":null,"id":23891256115299,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/021aa3694366c99bef83bfcb8cd0efaf7788b3af_aeb52866-719c-4022-97d9-ecca8bc47305.webp?v=1714890923"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/021aa3694366c99bef83bfcb8cd0efaf7788b3af_aeb52866-719c-4022-97d9-ecca8bc47305.webp?v=1714890923","width":2000},{"alt":null,"id":23891257458787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13938838e4257bdf9d8b14c7b9e54a954e7a3dba_47bf0654-0451-4a98-bd27-8caef8395f2d.webp?v=1714890925"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13938838e4257bdf9d8b14c7b9e54a954e7a3dba_47bf0654-0451-4a98-bd27-8caef8395f2d.webp?v=1714890925","width":2000},{"alt":null,"id":23891258998883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dbb69bff42f80e396e25f43f873eb84b28f7b3a_c5054c1d-16f7-4007-acdc-87e1ad213887.webp?v=1714890928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dbb69bff42f80e396e25f43f873eb84b28f7b3a_c5054c1d-16f7-4007-acdc-87e1ad213887.webp?v=1714890928","width":2000},{"alt":null,"id":23891260538979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fe5ce95c03f3a5b5fbac30ae2c678e9283d181a_b427b852-da84-4dcd-8f51-ea8a7a4f3f5c.webp?v=1714890930"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fe5ce95c03f3a5b5fbac30ae2c678e9283d181a_b427b852-da84-4dcd-8f51-ea8a7a4f3f5c.webp?v=1714890930","width":2000},{"alt":null,"id":23891262046307,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e3e2c739362031d616afa2d77b690866fed5e41_aae92763-e586-4e4c-9fae-61486109b922.webp?v=1714890933"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e3e2c739362031d616afa2d77b690866fed5e41_aae92763-e586-4e4c-9fae-61486109b922.webp?v=1714890933","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907939541091,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31485923655779,"product_id":7414636216419,"position":9,"created_at":"2024-05-05T14:35:28+08:00","updated_at":"2024-05-05T14:35:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dbb69bff42f80e396e25f43f873eb84b28f7b3a_c5054c1d-16f7-4007-acdc-87e1ad213887.webp?v=1714890928","variant_ids":[41907939541091]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 小丑與蝙蝠俠撲克牌 - 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-SB15","featured_media":{"alt":null,"id":23891258998883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dbb69bff42f80e396e25f43f873eb84b28f7b3a_c5054c1d-16f7-4007-acdc-87e1ad213887.webp?v=1714890928"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907940655203,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31485912776803,"product_id":7414636216419,"position":1,"created_at":"2024-05-05T14:35:09+08:00","updated_at":"2024-05-05T14:35:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3c1b9e938da8f76c7de56d080d4f256a71fcbd_87a8ea56-849c-4dbe-89c9-4d84e8712ba6.webp?v=1714890909","variant_ids":[41907940655203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 小丑與蝙蝠俠撲克牌 - 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-SB15","featured_media":{"alt":null,"id":23891248152675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3c1b9e938da8f76c7de56d080d4f256a71fcbd_87a8ea56-849c-4dbe-89c9-4d84e8712ba6.webp?v=1714890909"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907939541091,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31485923655779,"product_id":7414636216419,"position":9,"created_at":"2024-05-05T14:35:28+08:00","updated_at":"2024-05-05T14:35:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dbb69bff42f80e396e25f43f873eb84b28f7b3a_c5054c1d-16f7-4007-acdc-87e1ad213887.webp?v=1714890928","variant_ids":[41907939541091]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 小丑與蝙蝠俠撲克牌 - 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-SB15","featured_media":{"alt":null,"id":23891258998883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dbb69bff42f80e396e25f43f873eb84b28f7b3a_c5054c1d-16f7-4007-acdc-87e1ad213887.webp?v=1714890928"}},"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: "停產"
}