$product = {"id":7415050829923,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - Pixel Jeff 皮傑 - Lille","handle":"iphone-12-mini-mod-nx-magsafe-printable-hq05","description":null,"published_at":"2024-06-11T17:56:39+08:00","created_at":"2024-05-05T20:13:30+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone 12 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-pixeljeff","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":41911346757731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-HQ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31488027459683,"product_id":7415050829923,"position":8,"created_at":"2024-05-05T20:13:50+08:00","updated_at":"2024-05-05T20:13:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcdb676dc88e0a32d8d94367321681324e9578c6_c9a85ce8-cfbf-4415-bb7c-566bb953f799.webp?v=1714911230","variant_ids":[41911346757731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - Pixel Jeff 皮傑 - Lille - 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":"MPB0118424-HQ05","featured_media":{"alt":null,"id":23893371781219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcdb676dc88e0a32d8d94367321681324e9578c6_c9a85ce8-cfbf-4415-bb7c-566bb953f799.webp?v=1714911230"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6e54e861a4e85449951424e42357c86b26393c2_4b176bba-98a9-434c-8b4a-18aa90e26083.webp?v=1714911213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee68cb471aba88053e0cc2ad6f4e9e211bc39d80_5f4c78a5-9e86-42ca-8451-643738460fd1.webp?v=1714911216","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6256449dbb565276f15bc75701424c3d59d346b7_ead1f669-3a6e-4304-91bc-071472f9fafc.webp?v=1714911218","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7a1be1c41a74d269255bad99a88193e5d9ee562_37e73448-7c84-4655-9277-6c458cf427c6.webp?v=1714911221","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a20036e468122c658160bc9621332816b06e3372_678c87de-042b-42b9-82b6-405b67604033.webp?v=1714911223","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93de03e3ab610aabf8a46aafa1090ee6081c01d2_abef60b5-10d0-4355-a5ed-a063d74a2fb8.webp?v=1714911225","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50b05aa1583ace56eca3ec10b8fb04a4480a2297_791ae5b6-90a6-49b2-bb11-a9e53c814d21.webp?v=1714911228","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcdb676dc88e0a32d8d94367321681324e9578c6_c9a85ce8-cfbf-4415-bb7c-566bb953f799.webp?v=1714911230","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22474796d7184eca36aa51941c4c867aa4e09158_c0e2390b-85fa-4c99-9aca-a7b0a7954aa9.webp?v=1714911233","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e173a9e74bbdf34fb5cdadf8ba4a02cc0a7a03d7_118a251e-4a9c-4213-b5da-95e2d5a4aa22.webp?v=1714911235","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b5434f1b86e1ddd8efb2a9e981612cd96f7ae14_7a0f377f-6090-451f-ac7c-15f8cd41f427.webp?v=1714911238"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6e54e861a4e85449951424e42357c86b26393c2_4b176bba-98a9-434c-8b4a-18aa90e26083.webp?v=1714911213","options":["color"],"media":[{"alt":null,"id":23893367554147,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6e54e861a4e85449951424e42357c86b26393c2_4b176bba-98a9-434c-8b4a-18aa90e26083.webp?v=1714911213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6e54e861a4e85449951424e42357c86b26393c2_4b176bba-98a9-434c-8b4a-18aa90e26083.webp?v=1714911213","width":2000},{"alt":null,"id":23893368471651,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee68cb471aba88053e0cc2ad6f4e9e211bc39d80_5f4c78a5-9e86-42ca-8451-643738460fd1.webp?v=1714911216"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee68cb471aba88053e0cc2ad6f4e9e211bc39d80_5f4c78a5-9e86-42ca-8451-643738460fd1.webp?v=1714911216","width":2000},{"alt":null,"id":23893369028707,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6256449dbb565276f15bc75701424c3d59d346b7_ead1f669-3a6e-4304-91bc-071472f9fafc.webp?v=1714911218"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6256449dbb565276f15bc75701424c3d59d346b7_ead1f669-3a6e-4304-91bc-071472f9fafc.webp?v=1714911218","width":2000},{"alt":null,"id":23893369487459,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7a1be1c41a74d269255bad99a88193e5d9ee562_37e73448-7c84-4655-9277-6c458cf427c6.webp?v=1714911221"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7a1be1c41a74d269255bad99a88193e5d9ee562_37e73448-7c84-4655-9277-6c458cf427c6.webp?v=1714911221","width":2000},{"alt":null,"id":23893369913443,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a20036e468122c658160bc9621332816b06e3372_678c87de-042b-42b9-82b6-405b67604033.webp?v=1714911223"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a20036e468122c658160bc9621332816b06e3372_678c87de-042b-42b9-82b6-405b67604033.webp?v=1714911223","width":2000},{"alt":null,"id":23893370765411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93de03e3ab610aabf8a46aafa1090ee6081c01d2_abef60b5-10d0-4355-a5ed-a063d74a2fb8.webp?v=1714911225"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93de03e3ab610aabf8a46aafa1090ee6081c01d2_abef60b5-10d0-4355-a5ed-a063d74a2fb8.webp?v=1714911225","width":2000},{"alt":null,"id":23893371322467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50b05aa1583ace56eca3ec10b8fb04a4480a2297_791ae5b6-90a6-49b2-bb11-a9e53c814d21.webp?v=1714911228"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50b05aa1583ace56eca3ec10b8fb04a4480a2297_791ae5b6-90a6-49b2-bb11-a9e53c814d21.webp?v=1714911228","width":2000},{"alt":null,"id":23893371781219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcdb676dc88e0a32d8d94367321681324e9578c6_c9a85ce8-cfbf-4415-bb7c-566bb953f799.webp?v=1714911230"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcdb676dc88e0a32d8d94367321681324e9578c6_c9a85ce8-cfbf-4415-bb7c-566bb953f799.webp?v=1714911230","width":2000},{"alt":null,"id":23893372239971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22474796d7184eca36aa51941c4c867aa4e09158_c0e2390b-85fa-4c99-9aca-a7b0a7954aa9.webp?v=1714911233"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22474796d7184eca36aa51941c4c867aa4e09158_c0e2390b-85fa-4c99-9aca-a7b0a7954aa9.webp?v=1714911233","width":2000},{"alt":null,"id":23893372633187,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e173a9e74bbdf34fb5cdadf8ba4a02cc0a7a03d7_118a251e-4a9c-4213-b5da-95e2d5a4aa22.webp?v=1714911235"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e173a9e74bbdf34fb5cdadf8ba4a02cc0a7a03d7_118a251e-4a9c-4213-b5da-95e2d5a4aa22.webp?v=1714911235","width":2000},{"alt":null,"id":23893373026403,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b5434f1b86e1ddd8efb2a9e981612cd96f7ae14_7a0f377f-6090-451f-ac7c-15f8cd41f427.webp?v=1714911238"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b5434f1b86e1ddd8efb2a9e981612cd96f7ae14_7a0f377f-6090-451f-ac7c-15f8cd41f427.webp?v=1714911238","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41911346757731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-HQ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31488027459683,"product_id":7415050829923,"position":8,"created_at":"2024-05-05T20:13:50+08:00","updated_at":"2024-05-05T20:13:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcdb676dc88e0a32d8d94367321681324e9578c6_c9a85ce8-cfbf-4415-bb7c-566bb953f799.webp?v=1714911230","variant_ids":[41911346757731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - Pixel Jeff 皮傑 - Lille - 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":"MPB0118424-HQ05","featured_media":{"alt":null,"id":23893371781219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcdb676dc88e0a32d8d94367321681324e9578c6_c9a85ce8-cfbf-4415-bb7c-566bb953f799.webp?v=1714911230"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41911346757731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-HQ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31488027459683,"product_id":7415050829923,"position":8,"created_at":"2024-05-05T20:13:50+08:00","updated_at":"2024-05-05T20:13:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcdb676dc88e0a32d8d94367321681324e9578c6_c9a85ce8-cfbf-4415-bb7c-566bb953f799.webp?v=1714911230","variant_ids":[41911346757731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - Pixel Jeff 皮傑 - Lille - 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":"MPB0118424-HQ05","featured_media":{"alt":null,"id":23893371781219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcdb676dc88e0a32d8d94367321681324e9578c6_c9a85ce8-cfbf-4415-bb7c-566bb953f799.webp?v=1714911230"}},"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: "停產"
}