$product = {"id":7369203318883,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - Chill moment","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pl58","description":null,"published_at":"2024-06-11T17:31:23+08:00","created_at":"2024-04-23T15:44:02+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Snoopy 史努比","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-snoopy","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-snoopy","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":41793570373731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PL58","requires_shipping":true,"taxable":true,"featured_image":{"id":31387056668771,"product_id":7369203318883,"position":3,"created_at":"2024-04-23T15:44:09+08:00","updated_at":"2024-04-23T15:44:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18750cef992468d9ee0a24936c7e8c08d61b9b33_2cc32373-5330-41c8-b13f-d52236358cbd.webp?v=1713858249","variant_ids":[41793570373731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - Chill moment - 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-PL58","featured_media":{"alt":null,"id":23789295337571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18750cef992468d9ee0a24936c7e8c08d61b9b33_2cc32373-5330-41c8-b13f-d52236358cbd.webp?v=1713858249"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41793570668643,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PL58","requires_shipping":true,"taxable":true,"featured_image":{"id":31387060240483,"product_id":7369203318883,"position":8,"created_at":"2024-04-23T15:44:22+08:00","updated_at":"2024-04-23T15:44:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acee2fcdd4074404b90ea68d3f1dac9853622d19_d8be2f5c-b781-4e21-8fdf-ee4d0ad6b9b1.webp?v=1713858262","variant_ids":[41793570668643]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - Chill moment - 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-PL58","featured_media":{"alt":null,"id":23789298876515,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acee2fcdd4074404b90ea68d3f1dac9853622d19_d8be2f5c-b781-4e21-8fdf-ee4d0ad6b9b1.webp?v=1713858262"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e46a840fb72ace1b1b2ca232d8f3996ceea46c6e_f449d44c-2233-4a3a-9bc8-72cf51cc24f9.webp?v=1713858245","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d5a308be782a2e6fc0b001a5b054689cf9b0ba9_6d1d2372-700f-458e-96dd-b2f4ab7d28fe.webp?v=1713858247","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18750cef992468d9ee0a24936c7e8c08d61b9b33_2cc32373-5330-41c8-b13f-d52236358cbd.webp?v=1713858249","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/574b2bc0062112f94359d9fe51c13f7cb38a435a_b53ac45c-7dc8-4970-a2d3-914f755d8750.webp?v=1713858252","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b41f1979092115682545dfdc1c1a4c7824a9525_99fdc3b6-3c8e-44a1-a45a-cbb53a351035.webp?v=1713858255","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2df93c018ad78cffce0c794a3310eccea279bbf4_c5e7f20a-71c4-4bf3-9867-d37b1df4116d.webp?v=1713858258","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae3b46e8bd42facfbe1aa6f5fa3bdce16716de4_1d8a77ad-f282-4808-bcac-dc498ab90ac3.webp?v=1713858260","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acee2fcdd4074404b90ea68d3f1dac9853622d19_d8be2f5c-b781-4e21-8fdf-ee4d0ad6b9b1.webp?v=1713858262","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e202f4b15565679d8ac9632e0074685715e88dcd_110471d1-efaf-4bf5-aada-f16e08aaad1e.webp?v=1713858265","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c62af45e9db93d771375d79f314315298fb1cc_0e6a65d6-fb05-41c5-9f28-12d6194ff287.webp?v=1713858267","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28578a7c56a5616e746a03110d53daee4d2ead78_91698d49-565f-4a0b-b140-ea2fe44df80a.webp?v=1713858269"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e46a840fb72ace1b1b2ca232d8f3996ceea46c6e_f449d44c-2233-4a3a-9bc8-72cf51cc24f9.webp?v=1713858245","options":["color"],"media":[{"alt":null,"id":23789294190691,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e46a840fb72ace1b1b2ca232d8f3996ceea46c6e_f449d44c-2233-4a3a-9bc8-72cf51cc24f9.webp?v=1713858245"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e46a840fb72ace1b1b2ca232d8f3996ceea46c6e_f449d44c-2233-4a3a-9bc8-72cf51cc24f9.webp?v=1713858245","width":2000},{"alt":null,"id":23789294714979,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d5a308be782a2e6fc0b001a5b054689cf9b0ba9_6d1d2372-700f-458e-96dd-b2f4ab7d28fe.webp?v=1713858247"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d5a308be782a2e6fc0b001a5b054689cf9b0ba9_6d1d2372-700f-458e-96dd-b2f4ab7d28fe.webp?v=1713858247","width":2000},{"alt":null,"id":23789295337571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18750cef992468d9ee0a24936c7e8c08d61b9b33_2cc32373-5330-41c8-b13f-d52236358cbd.webp?v=1713858249"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18750cef992468d9ee0a24936c7e8c08d61b9b33_2cc32373-5330-41c8-b13f-d52236358cbd.webp?v=1713858249","width":2000},{"alt":null,"id":23789296025699,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/574b2bc0062112f94359d9fe51c13f7cb38a435a_b53ac45c-7dc8-4970-a2d3-914f755d8750.webp?v=1713858252"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/574b2bc0062112f94359d9fe51c13f7cb38a435a_b53ac45c-7dc8-4970-a2d3-914f755d8750.webp?v=1713858252","width":2000},{"alt":null,"id":23789296844899,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b41f1979092115682545dfdc1c1a4c7824a9525_99fdc3b6-3c8e-44a1-a45a-cbb53a351035.webp?v=1713858255"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b41f1979092115682545dfdc1c1a4c7824a9525_99fdc3b6-3c8e-44a1-a45a-cbb53a351035.webp?v=1713858255","width":2000},{"alt":null,"id":23789297533027,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2df93c018ad78cffce0c794a3310eccea279bbf4_c5e7f20a-71c4-4bf3-9867-d37b1df4116d.webp?v=1713858258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2df93c018ad78cffce0c794a3310eccea279bbf4_c5e7f20a-71c4-4bf3-9867-d37b1df4116d.webp?v=1713858258","width":2000},{"alt":null,"id":23789298319459,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae3b46e8bd42facfbe1aa6f5fa3bdce16716de4_1d8a77ad-f282-4808-bcac-dc498ab90ac3.webp?v=1713858260"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae3b46e8bd42facfbe1aa6f5fa3bdce16716de4_1d8a77ad-f282-4808-bcac-dc498ab90ac3.webp?v=1713858260","width":2000},{"alt":null,"id":23789298876515,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acee2fcdd4074404b90ea68d3f1dac9853622d19_d8be2f5c-b781-4e21-8fdf-ee4d0ad6b9b1.webp?v=1713858262"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acee2fcdd4074404b90ea68d3f1dac9853622d19_d8be2f5c-b781-4e21-8fdf-ee4d0ad6b9b1.webp?v=1713858262","width":2000},{"alt":null,"id":23789299564643,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e202f4b15565679d8ac9632e0074685715e88dcd_110471d1-efaf-4bf5-aada-f16e08aaad1e.webp?v=1713858265"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e202f4b15565679d8ac9632e0074685715e88dcd_110471d1-efaf-4bf5-aada-f16e08aaad1e.webp?v=1713858265","width":2000},{"alt":null,"id":23789300088931,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c62af45e9db93d771375d79f314315298fb1cc_0e6a65d6-fb05-41c5-9f28-12d6194ff287.webp?v=1713858267"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c62af45e9db93d771375d79f314315298fb1cc_0e6a65d6-fb05-41c5-9f28-12d6194ff287.webp?v=1713858267","width":2000},{"alt":null,"id":23789300678755,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28578a7c56a5616e746a03110d53daee4d2ead78_91698d49-565f-4a0b-b140-ea2fe44df80a.webp?v=1713858269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28578a7c56a5616e746a03110d53daee4d2ead78_91698d49-565f-4a0b-b140-ea2fe44df80a.webp?v=1713858269","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41793570373731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PL58","requires_shipping":true,"taxable":true,"featured_image":{"id":31387056668771,"product_id":7369203318883,"position":3,"created_at":"2024-04-23T15:44:09+08:00","updated_at":"2024-04-23T15:44:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18750cef992468d9ee0a24936c7e8c08d61b9b33_2cc32373-5330-41c8-b13f-d52236358cbd.webp?v=1713858249","variant_ids":[41793570373731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - Chill moment - 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-PL58","featured_media":{"alt":null,"id":23789295337571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18750cef992468d9ee0a24936c7e8c08d61b9b33_2cc32373-5330-41c8-b13f-d52236358cbd.webp?v=1713858249"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41793570668643,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PL58","requires_shipping":true,"taxable":true,"featured_image":{"id":31387060240483,"product_id":7369203318883,"position":8,"created_at":"2024-04-23T15:44:22+08:00","updated_at":"2024-04-23T15:44:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acee2fcdd4074404b90ea68d3f1dac9853622d19_d8be2f5c-b781-4e21-8fdf-ee4d0ad6b9b1.webp?v=1713858262","variant_ids":[41793570668643]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - Chill moment - 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-PL58","featured_media":{"alt":null,"id":23789298876515,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acee2fcdd4074404b90ea68d3f1dac9853622d19_d8be2f5c-b781-4e21-8fdf-ee4d0ad6b9b1.webp?v=1713858262"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41793570373731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PL58","requires_shipping":true,"taxable":true,"featured_image":{"id":31387056668771,"product_id":7369203318883,"position":3,"created_at":"2024-04-23T15:44:09+08:00","updated_at":"2024-04-23T15:44:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18750cef992468d9ee0a24936c7e8c08d61b9b33_2cc32373-5330-41c8-b13f-d52236358cbd.webp?v=1713858249","variant_ids":[41793570373731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - Chill moment - 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-PL58","featured_media":{"alt":null,"id":23789295337571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18750cef992468d9ee0a24936c7e8c08d61b9b33_2cc32373-5330-41c8-b13f-d52236358cbd.webp?v=1713858249"}},"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: "停產"
}