$product = {"id":7415119872099,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - Batman - 漫畫風格","handle":"iphone-12-mini-mod-nx-magsafe-printable-sb02","description":null,"published_at":"2024-06-11T17:58:29+08:00","created_at":"2024-05-05T20:26:27+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 12 mini","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":41912076927075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31488209616995,"product_id":7415119872099,"position":5,"created_at":"2024-05-05T20:26:38+08:00","updated_at":"2024-05-05T20:26:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a08c1c4f3370a2d289f8bb7209f4e2862ed8400a_00a2e2fc-3828-49c9-ae01-968c6e36097a.webp?v=1714911998","variant_ids":[41912076927075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 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":"MPB0118424-SB02","featured_media":{"alt":null,"id":23893554298979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a08c1c4f3370a2d289f8bb7209f4e2862ed8400a_00a2e2fc-3828-49c9-ae01-968c6e36097a.webp?v=1714911998"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635bc833a6f7323abed9a816ff95dc9355aeb050_c498a2df-e8e1-4eae-a253-aa1ce8e3e473.webp?v=1714911989","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ae579f6a3a2c6950b2ad5f5ced6ec60c0e3b4c_b8a5104c-22cb-49d3-a36b-8d1893b05e50.webp?v=1714911991","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97f71a932a2f07707858f65d18262a81dd621b19_4b976e9c-3f3f-448e-8abf-6d78cdfb384a.webp?v=1714911994","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dd524b1c2b995a85a78add8b73aca2adc6f39e2_8be1d5ef-b294-4db2-a100-5fa69158a43c.webp?v=1714911996","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a08c1c4f3370a2d289f8bb7209f4e2862ed8400a_00a2e2fc-3828-49c9-ae01-968c6e36097a.webp?v=1714911998","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e628629738c1eb9df171d1e27e2113eb7da8ec0c_94245a86-8b81-4408-a46e-003240285f1f.webp?v=1714912001","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eee9f54bd7b5eba3da86fc5ad8ae780837102532_87be5db3-7d34-4e0f-865c-efaf75ab4524.webp?v=1714912004","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b44b100a2f2a7e45e4d42fb066ff9a0ffd134a_e27c2991-9ef9-4118-8982-ca1c21b5ff64.webp?v=1714912006","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b77ee3f655cfb944a1b17e8f491aa0fb427d6b94_29cea4be-e858-4905-aac4-5e5dc23b35e6.webp?v=1714912008","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91a4a60072253647986d3b3da242f90367f51701_1a54bc8f-068f-4936-aea3-57a2a6dc39ff.webp?v=1714912011","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/846ed80efb75360d54544b6e3f76852ab6218572_cb2f6b24-f3dd-4aa4-87dc-3fcb362f54f5.webp?v=1714912013"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635bc833a6f7323abed9a816ff95dc9355aeb050_c498a2df-e8e1-4eae-a253-aa1ce8e3e473.webp?v=1714911989","options":["color"],"media":[{"alt":null,"id":23893552103523,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635bc833a6f7323abed9a816ff95dc9355aeb050_c498a2df-e8e1-4eae-a253-aa1ce8e3e473.webp?v=1714911989"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635bc833a6f7323abed9a816ff95dc9355aeb050_c498a2df-e8e1-4eae-a253-aa1ce8e3e473.webp?v=1714911989","width":2000},{"alt":null,"id":23893552562275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ae579f6a3a2c6950b2ad5f5ced6ec60c0e3b4c_b8a5104c-22cb-49d3-a36b-8d1893b05e50.webp?v=1714911991"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ae579f6a3a2c6950b2ad5f5ced6ec60c0e3b4c_b8a5104c-22cb-49d3-a36b-8d1893b05e50.webp?v=1714911991","width":2000},{"alt":null,"id":23893553250403,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97f71a932a2f07707858f65d18262a81dd621b19_4b976e9c-3f3f-448e-8abf-6d78cdfb384a.webp?v=1714911994"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97f71a932a2f07707858f65d18262a81dd621b19_4b976e9c-3f3f-448e-8abf-6d78cdfb384a.webp?v=1714911994","width":2000},{"alt":null,"id":23893553676387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dd524b1c2b995a85a78add8b73aca2adc6f39e2_8be1d5ef-b294-4db2-a100-5fa69158a43c.webp?v=1714911996"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dd524b1c2b995a85a78add8b73aca2adc6f39e2_8be1d5ef-b294-4db2-a100-5fa69158a43c.webp?v=1714911996","width":2000},{"alt":null,"id":23893554298979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a08c1c4f3370a2d289f8bb7209f4e2862ed8400a_00a2e2fc-3828-49c9-ae01-968c6e36097a.webp?v=1714911998"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a08c1c4f3370a2d289f8bb7209f4e2862ed8400a_00a2e2fc-3828-49c9-ae01-968c6e36097a.webp?v=1714911998","width":2000},{"alt":null,"id":23893555052643,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e628629738c1eb9df171d1e27e2113eb7da8ec0c_94245a86-8b81-4408-a46e-003240285f1f.webp?v=1714912001"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e628629738c1eb9df171d1e27e2113eb7da8ec0c_94245a86-8b81-4408-a46e-003240285f1f.webp?v=1714912001","width":2000},{"alt":null,"id":23893555544163,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eee9f54bd7b5eba3da86fc5ad8ae780837102532_87be5db3-7d34-4e0f-865c-efaf75ab4524.webp?v=1714912004"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eee9f54bd7b5eba3da86fc5ad8ae780837102532_87be5db3-7d34-4e0f-865c-efaf75ab4524.webp?v=1714912004","width":2000},{"alt":null,"id":23893556101219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b44b100a2f2a7e45e4d42fb066ff9a0ffd134a_e27c2991-9ef9-4118-8982-ca1c21b5ff64.webp?v=1714912006"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b44b100a2f2a7e45e4d42fb066ff9a0ffd134a_e27c2991-9ef9-4118-8982-ca1c21b5ff64.webp?v=1714912006","width":2000},{"alt":null,"id":23893556330595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b77ee3f655cfb944a1b17e8f491aa0fb427d6b94_29cea4be-e858-4905-aac4-5e5dc23b35e6.webp?v=1714912008"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b77ee3f655cfb944a1b17e8f491aa0fb427d6b94_29cea4be-e858-4905-aac4-5e5dc23b35e6.webp?v=1714912008","width":2000},{"alt":null,"id":23893556461667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91a4a60072253647986d3b3da242f90367f51701_1a54bc8f-068f-4936-aea3-57a2a6dc39ff.webp?v=1714912011"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91a4a60072253647986d3b3da242f90367f51701_1a54bc8f-068f-4936-aea3-57a2a6dc39ff.webp?v=1714912011","width":2000},{"alt":null,"id":23893556822115,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/846ed80efb75360d54544b6e3f76852ab6218572_cb2f6b24-f3dd-4aa4-87dc-3fcb362f54f5.webp?v=1714912013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/846ed80efb75360d54544b6e3f76852ab6218572_cb2f6b24-f3dd-4aa4-87dc-3fcb362f54f5.webp?v=1714912013","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41912076927075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31488209616995,"product_id":7415119872099,"position":5,"created_at":"2024-05-05T20:26:38+08:00","updated_at":"2024-05-05T20:26:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a08c1c4f3370a2d289f8bb7209f4e2862ed8400a_00a2e2fc-3828-49c9-ae01-968c6e36097a.webp?v=1714911998","variant_ids":[41912076927075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 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":"MPB0118424-SB02","featured_media":{"alt":null,"id":23893554298979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a08c1c4f3370a2d289f8bb7209f4e2862ed8400a_00a2e2fc-3828-49c9-ae01-968c6e36097a.webp?v=1714911998"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41912076927075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31488209616995,"product_id":7415119872099,"position":5,"created_at":"2024-05-05T20:26:38+08:00","updated_at":"2024-05-05T20:26:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a08c1c4f3370a2d289f8bb7209f4e2862ed8400a_00a2e2fc-3828-49c9-ae01-968c6e36097a.webp?v=1714911998","variant_ids":[41912076927075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 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":"MPB0118424-SB02","featured_media":{"alt":null,"id":23893554298979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a08c1c4f3370a2d289f8bb7209f4e2862ed8400a_00a2e2fc-3828-49c9-ae01-968c6e36097a.webp?v=1714911998"}},"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: "停產"
}