$product = {"id":7411415941219,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Batman - Batman Logo","handle":"iphone-14-plus-mod-nx-magsafe-printable-sb03","description":null,"published_at":"2024-06-11T17:44:23+08:00","created_at":"2024-05-05T00:25:31+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 14 Plus","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":41898603216995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480370069603,"product_id":7411415941219,"position":1,"created_at":"2024-05-05T00:25:33+08:00","updated_at":"2024-05-05T00:25:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edd43e222439071b26716c49da7db256490e9b3_58b876dc-ede0-4bc3-a4cf-d5a968e575c8.webp?v=1714839933","variant_ids":[41898603216995]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Batman - Batman Logo - 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":"MPB0126124-SB03","featured_media":{"alt":null,"id":23885621887075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edd43e222439071b26716c49da7db256490e9b3_58b876dc-ede0-4bc3-a4cf-d5a968e575c8.webp?v=1714839933"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edd43e222439071b26716c49da7db256490e9b3_58b876dc-ede0-4bc3-a4cf-d5a968e575c8.webp?v=1714839933","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6a512f3bac94fd149e178580c142064974440e_a3d0129a-0eeb-49b1-8584-e3d0ada735dd.webp?v=1714839936","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9451d66b73dbc05e0c449db1f5f70fa489e21f54_72753659-82d0-4091-b943-3fb6d6f3e19f.webp?v=1714839938","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99b0b44945481964ff07bc4cae06098c64a3c585_ba3bad03-2e93-49d3-87c5-30994c16c1ac.webp?v=1714839940","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcf272eb7efc5b32f5a4961e7693b6c80ad7e7d0_45fd349c-ab62-4a47-ae66-fb6bcd0d0b31.webp?v=1714839943","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdedc67bee3b034e5ab8b6f8d10a92174d7bca35_634c5cd4-43da-4009-8352-233f04736b6e.webp?v=1714839945","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e2128af475c3871c23d0d904db2f694fcd739df_2d2cd3f8-4f27-4684-a20a-7a7fe939112c.webp?v=1714839947","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d7240a8256968c98d052bff0dc5c7888dc670da_4100e768-9356-4662-bfc5-543f288469da.webp?v=1714839949","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96df26c6c6ff7e1ec91f44c7cfdd68a754e9686a_42ed2263-e3f0-4c51-862f-97a28cb43a35.webp?v=1714839951","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94e9a88c3ec55fc05b04323a4459d85215b47c2f_4ab9d378-78a8-4400-883d-511da2f18263.webp?v=1714839954"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edd43e222439071b26716c49da7db256490e9b3_58b876dc-ede0-4bc3-a4cf-d5a968e575c8.webp?v=1714839933","options":["color"],"media":[{"alt":null,"id":23885621887075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edd43e222439071b26716c49da7db256490e9b3_58b876dc-ede0-4bc3-a4cf-d5a968e575c8.webp?v=1714839933"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edd43e222439071b26716c49da7db256490e9b3_58b876dc-ede0-4bc3-a4cf-d5a968e575c8.webp?v=1714839933","width":2000},{"alt":null,"id":23885622411363,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6a512f3bac94fd149e178580c142064974440e_a3d0129a-0eeb-49b1-8584-e3d0ada735dd.webp?v=1714839936"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6a512f3bac94fd149e178580c142064974440e_a3d0129a-0eeb-49b1-8584-e3d0ada735dd.webp?v=1714839936","width":2000},{"alt":null,"id":23885622771811,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9451d66b73dbc05e0c449db1f5f70fa489e21f54_72753659-82d0-4091-b943-3fb6d6f3e19f.webp?v=1714839938"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9451d66b73dbc05e0c449db1f5f70fa489e21f54_72753659-82d0-4091-b943-3fb6d6f3e19f.webp?v=1714839938","width":2000},{"alt":null,"id":23885623296099,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99b0b44945481964ff07bc4cae06098c64a3c585_ba3bad03-2e93-49d3-87c5-30994c16c1ac.webp?v=1714839940"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99b0b44945481964ff07bc4cae06098c64a3c585_ba3bad03-2e93-49d3-87c5-30994c16c1ac.webp?v=1714839940","width":2000},{"alt":null,"id":23885623722083,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcf272eb7efc5b32f5a4961e7693b6c80ad7e7d0_45fd349c-ab62-4a47-ae66-fb6bcd0d0b31.webp?v=1714839943"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcf272eb7efc5b32f5a4961e7693b6c80ad7e7d0_45fd349c-ab62-4a47-ae66-fb6bcd0d0b31.webp?v=1714839943","width":2000},{"alt":null,"id":23885624377443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdedc67bee3b034e5ab8b6f8d10a92174d7bca35_634c5cd4-43da-4009-8352-233f04736b6e.webp?v=1714839945"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdedc67bee3b034e5ab8b6f8d10a92174d7bca35_634c5cd4-43da-4009-8352-233f04736b6e.webp?v=1714839945","width":2000},{"alt":null,"id":23885624901731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e2128af475c3871c23d0d904db2f694fcd739df_2d2cd3f8-4f27-4684-a20a-7a7fe939112c.webp?v=1714839947"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e2128af475c3871c23d0d904db2f694fcd739df_2d2cd3f8-4f27-4684-a20a-7a7fe939112c.webp?v=1714839947","width":2000},{"alt":null,"id":23885625294947,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d7240a8256968c98d052bff0dc5c7888dc670da_4100e768-9356-4662-bfc5-543f288469da.webp?v=1714839949"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d7240a8256968c98d052bff0dc5c7888dc670da_4100e768-9356-4662-bfc5-543f288469da.webp?v=1714839949","width":2000},{"alt":null,"id":23885625753699,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96df26c6c6ff7e1ec91f44c7cfdd68a754e9686a_42ed2263-e3f0-4c51-862f-97a28cb43a35.webp?v=1714839951"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96df26c6c6ff7e1ec91f44c7cfdd68a754e9686a_42ed2263-e3f0-4c51-862f-97a28cb43a35.webp?v=1714839951","width":2000},{"alt":null,"id":23885626179683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94e9a88c3ec55fc05b04323a4459d85215b47c2f_4ab9d378-78a8-4400-883d-511da2f18263.webp?v=1714839954"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94e9a88c3ec55fc05b04323a4459d85215b47c2f_4ab9d378-78a8-4400-883d-511da2f18263.webp?v=1714839954","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41898603216995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480370069603,"product_id":7411415941219,"position":1,"created_at":"2024-05-05T00:25:33+08:00","updated_at":"2024-05-05T00:25:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edd43e222439071b26716c49da7db256490e9b3_58b876dc-ede0-4bc3-a4cf-d5a968e575c8.webp?v=1714839933","variant_ids":[41898603216995]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Batman - Batman Logo - 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":"MPB0126124-SB03","featured_media":{"alt":null,"id":23885621887075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edd43e222439071b26716c49da7db256490e9b3_58b876dc-ede0-4bc3-a4cf-d5a968e575c8.webp?v=1714839933"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41898603216995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480370069603,"product_id":7411415941219,"position":1,"created_at":"2024-05-05T00:25:33+08:00","updated_at":"2024-05-05T00:25:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edd43e222439071b26716c49da7db256490e9b3_58b876dc-ede0-4bc3-a4cf-d5a968e575c8.webp?v=1714839933","variant_ids":[41898603216995]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Batman - Batman Logo - 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":"MPB0126124-SB03","featured_media":{"alt":null,"id":23885621887075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9edd43e222439071b26716c49da7db256490e9b3_58b876dc-ede0-4bc3-a4cf-d5a968e575c8.webp?v=1714839933"}},"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: "停產"
}