$product = {"id":7414514745443,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 夜空星語","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-yb12","description":null,"published_at":"2024-06-11T17:51:46+08:00","created_at":"2024-05-05T14:28:37+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-carebears","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":41907076989027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485670457443,"product_id":7414514745443,"position":7,"created_at":"2024-05-05T14:28:53+08:00","updated_at":"2024-05-05T14:28:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c29560a88cddfe90f6b906f67ece93f07f8e2037_dda98522-c7a5-432f-8213-8bfa7da3ec2c.webp?v=1714890533","variant_ids":[41907076989027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 夜空星語 - 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-YB12","featured_media":{"alt":null,"id":23890988630115,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c29560a88cddfe90f6b906f67ece93f07f8e2037_dda98522-c7a5-432f-8213-8bfa7da3ec2c.webp?v=1714890533"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907077316707,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485680189539,"product_id":7414514745443,"position":11,"created_at":"2024-05-05T14:29:02+08:00","updated_at":"2024-05-05T14:29:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ecdc1336cb2f147efdc764b0f3ed2817010b38_3174d9b2-a881-4adf-90df-d5bc2d67c2cd.webp?v=1714890542","variant_ids":[41907077316707]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 夜空星語 - 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-YB12","featured_media":{"alt":null,"id":23890999279715,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ecdc1336cb2f147efdc764b0f3ed2817010b38_3174d9b2-a881-4adf-90df-d5bc2d67c2cd.webp?v=1714890542"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0e5d351ce3e3e745c6765431a89a637ec06ecfa_1c8d9b00-4174-4f5b-9dd4-7ec9b31fe529.webp?v=1714890520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14d92d0c1f837a0acf700fdf4a95457732d7c073_504fca1c-bad8-411b-957b-975679823134.webp?v=1714890522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9d64d21c195d21d642d636f367917564221085f_bdde64b2-e467-4f07-a5a0-38e5b812c679.webp?v=1714890524","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40c639e62809012d423885fe3e6a4f900fd70331_cb7613e0-00d0-4fdf-ae9d-32ecb3f6c770.webp?v=1714890526","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f04f312287d322d35d48173d24dcb0e2ad80cc45_442870bb-9878-40a3-9ba7-4786bf013b5b.webp?v=1714890529","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96711c3481293a9943fe5d49d4b3e282bd87dc4e_26b0da8c-ee34-492d-84b9-47cdf11acbf5.webp?v=1714890531","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c29560a88cddfe90f6b906f67ece93f07f8e2037_dda98522-c7a5-432f-8213-8bfa7da3ec2c.webp?v=1714890533","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c72913e9b08e91f7b812311500dbaabc089b10_de418dae-f3cf-423a-8595-7bcce57040a5.webp?v=1714890535","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff2121159bc99e8508a70e405de60ce676acabee_8a2d134b-03e7-40bd-8853-1c10aa844575.webp?v=1714890538","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14ba7b273a69fed5673bb636393f5c1e2696e5ba_6b9aa250-7acd-4614-bd15-d4b6a0e5e9d2.webp?v=1714890540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ecdc1336cb2f147efdc764b0f3ed2817010b38_3174d9b2-a881-4adf-90df-d5bc2d67c2cd.webp?v=1714890542"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0e5d351ce3e3e745c6765431a89a637ec06ecfa_1c8d9b00-4174-4f5b-9dd4-7ec9b31fe529.webp?v=1714890520","options":["color"],"media":[{"alt":null,"id":23890974277731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0e5d351ce3e3e745c6765431a89a637ec06ecfa_1c8d9b00-4174-4f5b-9dd4-7ec9b31fe529.webp?v=1714890520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0e5d351ce3e3e745c6765431a89a637ec06ecfa_1c8d9b00-4174-4f5b-9dd4-7ec9b31fe529.webp?v=1714890520","width":2000},{"alt":null,"id":23890976473187,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14d92d0c1f837a0acf700fdf4a95457732d7c073_504fca1c-bad8-411b-957b-975679823134.webp?v=1714890522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14d92d0c1f837a0acf700fdf4a95457732d7c073_504fca1c-bad8-411b-957b-975679823134.webp?v=1714890522","width":2000},{"alt":null,"id":23890978701411,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9d64d21c195d21d642d636f367917564221085f_bdde64b2-e467-4f07-a5a0-38e5b812c679.webp?v=1714890524"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9d64d21c195d21d642d636f367917564221085f_bdde64b2-e467-4f07-a5a0-38e5b812c679.webp?v=1714890524","width":2000},{"alt":null,"id":23890981093475,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40c639e62809012d423885fe3e6a4f900fd70331_cb7613e0-00d0-4fdf-ae9d-32ecb3f6c770.webp?v=1714890526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40c639e62809012d423885fe3e6a4f900fd70331_cb7613e0-00d0-4fdf-ae9d-32ecb3f6c770.webp?v=1714890526","width":2000},{"alt":null,"id":23890983518307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f04f312287d322d35d48173d24dcb0e2ad80cc45_442870bb-9878-40a3-9ba7-4786bf013b5b.webp?v=1714890529"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f04f312287d322d35d48173d24dcb0e2ad80cc45_442870bb-9878-40a3-9ba7-4786bf013b5b.webp?v=1714890529","width":2000},{"alt":null,"id":23890986369123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96711c3481293a9943fe5d49d4b3e282bd87dc4e_26b0da8c-ee34-492d-84b9-47cdf11acbf5.webp?v=1714890531"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96711c3481293a9943fe5d49d4b3e282bd87dc4e_26b0da8c-ee34-492d-84b9-47cdf11acbf5.webp?v=1714890531","width":2000},{"alt":null,"id":23890988630115,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c29560a88cddfe90f6b906f67ece93f07f8e2037_dda98522-c7a5-432f-8213-8bfa7da3ec2c.webp?v=1714890533"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c29560a88cddfe90f6b906f67ece93f07f8e2037_dda98522-c7a5-432f-8213-8bfa7da3ec2c.webp?v=1714890533","width":2000},{"alt":null,"id":23890991644771,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c72913e9b08e91f7b812311500dbaabc089b10_de418dae-f3cf-423a-8595-7bcce57040a5.webp?v=1714890535"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c72913e9b08e91f7b812311500dbaabc089b10_de418dae-f3cf-423a-8595-7bcce57040a5.webp?v=1714890535","width":2000},{"alt":null,"id":23890994135139,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff2121159bc99e8508a70e405de60ce676acabee_8a2d134b-03e7-40bd-8853-1c10aa844575.webp?v=1714890538"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff2121159bc99e8508a70e405de60ce676acabee_8a2d134b-03e7-40bd-8853-1c10aa844575.webp?v=1714890538","width":2000},{"alt":null,"id":23890996920419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14ba7b273a69fed5673bb636393f5c1e2696e5ba_6b9aa250-7acd-4614-bd15-d4b6a0e5e9d2.webp?v=1714890540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14ba7b273a69fed5673bb636393f5c1e2696e5ba_6b9aa250-7acd-4614-bd15-d4b6a0e5e9d2.webp?v=1714890540","width":2000},{"alt":null,"id":23890999279715,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ecdc1336cb2f147efdc764b0f3ed2817010b38_3174d9b2-a881-4adf-90df-d5bc2d67c2cd.webp?v=1714890542"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ecdc1336cb2f147efdc764b0f3ed2817010b38_3174d9b2-a881-4adf-90df-d5bc2d67c2cd.webp?v=1714890542","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907076989027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485670457443,"product_id":7414514745443,"position":7,"created_at":"2024-05-05T14:28:53+08:00","updated_at":"2024-05-05T14:28:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c29560a88cddfe90f6b906f67ece93f07f8e2037_dda98522-c7a5-432f-8213-8bfa7da3ec2c.webp?v=1714890533","variant_ids":[41907076989027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 夜空星語 - 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-YB12","featured_media":{"alt":null,"id":23890988630115,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c29560a88cddfe90f6b906f67ece93f07f8e2037_dda98522-c7a5-432f-8213-8bfa7da3ec2c.webp?v=1714890533"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907077316707,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485680189539,"product_id":7414514745443,"position":11,"created_at":"2024-05-05T14:29:02+08:00","updated_at":"2024-05-05T14:29:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ecdc1336cb2f147efdc764b0f3ed2817010b38_3174d9b2-a881-4adf-90df-d5bc2d67c2cd.webp?v=1714890542","variant_ids":[41907077316707]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 夜空星語 - 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-YB12","featured_media":{"alt":null,"id":23890999279715,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ecdc1336cb2f147efdc764b0f3ed2817010b38_3174d9b2-a881-4adf-90df-d5bc2d67c2cd.webp?v=1714890542"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907076989027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485670457443,"product_id":7414514745443,"position":7,"created_at":"2024-05-05T14:28:53+08:00","updated_at":"2024-05-05T14:28:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c29560a88cddfe90f6b906f67ece93f07f8e2037_dda98522-c7a5-432f-8213-8bfa7da3ec2c.webp?v=1714890533","variant_ids":[41907076989027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 夜空星語 - 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-YB12","featured_media":{"alt":null,"id":23890988630115,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c29560a88cddfe90f6b906f67ece93f07f8e2037_dda98522-c7a5-432f-8213-8bfa7da3ec2c.webp?v=1714890533"}},"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: "停產"
}