$product = {"id":7414507012195,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 加納利群島在看","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-af08","description":null,"published_at":"2024-06-11T17:51:44+08:00","created_at":"2024-05-05T14:28:24+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41907032260707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485654237283,"product_id":7414507012195,"position":5,"created_at":"2024-05-05T14:28:37+08:00","updated_at":"2024-05-05T14:28:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60641fecaf19e59b0c2c6d6aa5cc334df3bc498_d5b330c0-aec9-43ec-900a-56d87734e5ae.webp?v=1714890517","variant_ids":[41907032260707]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 加納利群島在看 - 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":"MPB0123224-AF08","featured_media":{"alt":null,"id":23890971066467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60641fecaf19e59b0c2c6d6aa5cc334df3bc498_d5b330c0-aec9-43ec-900a-56d87734e5ae.webp?v=1714890517"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907032883299,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485661118563,"product_id":7414507012195,"position":8,"created_at":"2024-05-05T14:28:44+08:00","updated_at":"2024-05-05T14:28:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bd25c08b785667a6f9a9334f5bc33cc571d914_4101e20c-caab-4f7f-aa51-d1d8cc7e4efb.webp?v=1714890524","variant_ids":[41907032883299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 加納利群島在看 - 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":"MPB01232J5-AF08","featured_media":{"alt":null,"id":23890978209891,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bd25c08b785667a6f9a9334f5bc33cc571d914_4101e20c-caab-4f7f-aa51-d1d8cc7e4efb.webp?v=1714890524"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d5483cdaa6fd9102021e90c17172224d8b3bdc9_b6f7b022-5c78-4646-803f-dac745e0d9e4.webp?v=1714890507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/069713c88a73e5485fc03920537e88d5752ea5a5_154198c6-9a8d-4ba2-98d5-ddd24cd57c1f.webp?v=1714890509","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04106a89a182fdc816c065dbd77ea5d48ec68f50_ce4a8c72-0fba-4b31-b8db-d4b5b47f3220.webp?v=1714890512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76bcdde9c9e576d9dd384022ceb771ba180321db_86869c3e-25f0-4791-9647-2e5fce0137ae.webp?v=1714890514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60641fecaf19e59b0c2c6d6aa5cc334df3bc498_d5b330c0-aec9-43ec-900a-56d87734e5ae.webp?v=1714890517","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d92198020ae2369ef3abcdb123d977510df8fc8_251cf7ca-549d-44c1-842b-8751dd647aa7.webp?v=1714890519","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd1b8216b94c4c188849ec51df4b2e8c22a22e8b_8787a4cf-94d7-4ad3-a1ea-4561837ea57d.webp?v=1714890521","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bd25c08b785667a6f9a9334f5bc33cc571d914_4101e20c-caab-4f7f-aa51-d1d8cc7e4efb.webp?v=1714890524","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a12339c539f07aff4d48418975a5d7a44da04290_9a9cab31-b379-4495-b6bc-6f1bc658f798.webp?v=1714890526","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1240618b8666dc40333c9ffdad268d3b113bada_46e70863-91b0-465e-9c95-5a0cf1524d86.webp?v=1714890528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d94e821d2a08b5d6180ac6d7c8d7df4a1bfa9277_68f09b57-161e-44f3-9f27-bc4612745b68.webp?v=1714890531"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d5483cdaa6fd9102021e90c17172224d8b3bdc9_b6f7b022-5c78-4646-803f-dac745e0d9e4.webp?v=1714890507","options":["color"],"media":[{"alt":null,"id":23890962088035,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d5483cdaa6fd9102021e90c17172224d8b3bdc9_b6f7b022-5c78-4646-803f-dac745e0d9e4.webp?v=1714890507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d5483cdaa6fd9102021e90c17172224d8b3bdc9_b6f7b022-5c78-4646-803f-dac745e0d9e4.webp?v=1714890507","width":2000},{"alt":null,"id":23890964119651,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/069713c88a73e5485fc03920537e88d5752ea5a5_154198c6-9a8d-4ba2-98d5-ddd24cd57c1f.webp?v=1714890509"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/069713c88a73e5485fc03920537e88d5752ea5a5_154198c6-9a8d-4ba2-98d5-ddd24cd57c1f.webp?v=1714890509","width":2000},{"alt":null,"id":23890966151267,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04106a89a182fdc816c065dbd77ea5d48ec68f50_ce4a8c72-0fba-4b31-b8db-d4b5b47f3220.webp?v=1714890512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04106a89a182fdc816c065dbd77ea5d48ec68f50_ce4a8c72-0fba-4b31-b8db-d4b5b47f3220.webp?v=1714890512","width":2000},{"alt":null,"id":23890968346723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76bcdde9c9e576d9dd384022ceb771ba180321db_86869c3e-25f0-4791-9647-2e5fce0137ae.webp?v=1714890514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76bcdde9c9e576d9dd384022ceb771ba180321db_86869c3e-25f0-4791-9647-2e5fce0137ae.webp?v=1714890514","width":2000},{"alt":null,"id":23890971066467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60641fecaf19e59b0c2c6d6aa5cc334df3bc498_d5b330c0-aec9-43ec-900a-56d87734e5ae.webp?v=1714890517"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60641fecaf19e59b0c2c6d6aa5cc334df3bc498_d5b330c0-aec9-43ec-900a-56d87734e5ae.webp?v=1714890517","width":2000},{"alt":null,"id":23890973491299,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d92198020ae2369ef3abcdb123d977510df8fc8_251cf7ca-549d-44c1-842b-8751dd647aa7.webp?v=1714890519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d92198020ae2369ef3abcdb123d977510df8fc8_251cf7ca-549d-44c1-842b-8751dd647aa7.webp?v=1714890519","width":2000},{"alt":null,"id":23890976047203,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd1b8216b94c4c188849ec51df4b2e8c22a22e8b_8787a4cf-94d7-4ad3-a1ea-4561837ea57d.webp?v=1714890521"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd1b8216b94c4c188849ec51df4b2e8c22a22e8b_8787a4cf-94d7-4ad3-a1ea-4561837ea57d.webp?v=1714890521","width":2000},{"alt":null,"id":23890978209891,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bd25c08b785667a6f9a9334f5bc33cc571d914_4101e20c-caab-4f7f-aa51-d1d8cc7e4efb.webp?v=1714890524"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bd25c08b785667a6f9a9334f5bc33cc571d914_4101e20c-caab-4f7f-aa51-d1d8cc7e4efb.webp?v=1714890524","width":2000},{"alt":null,"id":23890980700259,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a12339c539f07aff4d48418975a5d7a44da04290_9a9cab31-b379-4495-b6bc-6f1bc658f798.webp?v=1714890526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a12339c539f07aff4d48418975a5d7a44da04290_9a9cab31-b379-4495-b6bc-6f1bc658f798.webp?v=1714890526","width":2000},{"alt":null,"id":23890983125091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1240618b8666dc40333c9ffdad268d3b113bada_46e70863-91b0-465e-9c95-5a0cf1524d86.webp?v=1714890528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1240618b8666dc40333c9ffdad268d3b113bada_46e70863-91b0-465e-9c95-5a0cf1524d86.webp?v=1714890528","width":2000},{"alt":null,"id":23890985975907,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d94e821d2a08b5d6180ac6d7c8d7df4a1bfa9277_68f09b57-161e-44f3-9f27-bc4612745b68.webp?v=1714890531"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d94e821d2a08b5d6180ac6d7c8d7df4a1bfa9277_68f09b57-161e-44f3-9f27-bc4612745b68.webp?v=1714890531","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907032260707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485654237283,"product_id":7414507012195,"position":5,"created_at":"2024-05-05T14:28:37+08:00","updated_at":"2024-05-05T14:28:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60641fecaf19e59b0c2c6d6aa5cc334df3bc498_d5b330c0-aec9-43ec-900a-56d87734e5ae.webp?v=1714890517","variant_ids":[41907032260707]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 加納利群島在看 - 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":"MPB0123224-AF08","featured_media":{"alt":null,"id":23890971066467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60641fecaf19e59b0c2c6d6aa5cc334df3bc498_d5b330c0-aec9-43ec-900a-56d87734e5ae.webp?v=1714890517"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907032883299,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485661118563,"product_id":7414507012195,"position":8,"created_at":"2024-05-05T14:28:44+08:00","updated_at":"2024-05-05T14:28:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bd25c08b785667a6f9a9334f5bc33cc571d914_4101e20c-caab-4f7f-aa51-d1d8cc7e4efb.webp?v=1714890524","variant_ids":[41907032883299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 加納利群島在看 - 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":"MPB01232J5-AF08","featured_media":{"alt":null,"id":23890978209891,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bd25c08b785667a6f9a9334f5bc33cc571d914_4101e20c-caab-4f7f-aa51-d1d8cc7e4efb.webp?v=1714890524"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907032260707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485654237283,"product_id":7414507012195,"position":5,"created_at":"2024-05-05T14:28:37+08:00","updated_at":"2024-05-05T14:28:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60641fecaf19e59b0c2c6d6aa5cc334df3bc498_d5b330c0-aec9-43ec-900a-56d87734e5ae.webp?v=1714890517","variant_ids":[41907032260707]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 加納利群島在看 - 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":"MPB0123224-AF08","featured_media":{"alt":null,"id":23890971066467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60641fecaf19e59b0c2c6d6aa5cc334df3bc498_d5b330c0-aec9-43ec-900a-56d87734e5ae.webp?v=1714890517"}},"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: "停產"
}