$product = {"id":7415082877027,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 經典系列-史迪奇大臉款","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-yf01","description":null,"published_at":"2024-06-11T17:57:30+08:00","created_at":"2024-05-05T20:19:30+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 12 pro max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-stitch","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":41911682728035,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31488111181923,"product_id":7415082877027,"position":1,"created_at":"2024-05-05T20:19:32+08:00","updated_at":"2024-05-05T20:19:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e450657b50c9bcb26dc4a89e82d9e792f833e772_d5679a07-3508-4a3a-ba80-8d274503454a.webp?v=1714911572","variant_ids":[41911682728035]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 經典系列-史迪奇大臉款 - 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":"MPB0118724-YF01","featured_media":{"alt":null,"id":23893455700067,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e450657b50c9bcb26dc4a89e82d9e792f833e772_d5679a07-3508-4a3a-ba80-8d274503454a.webp?v=1714911572"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e450657b50c9bcb26dc4a89e82d9e792f833e772_d5679a07-3508-4a3a-ba80-8d274503454a.webp?v=1714911572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c021bdafbb50fec91e8ee9c083f2567e34c4c6ba_0566b2ab-2fb4-4f34-9e7e-81c4da9ebbf2.webp?v=1714911574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7bd4477015baf2a163dcb37f89341652616fcbb_22005f21-a2e5-4894-b079-9cd3b85aa874.webp?v=1714911577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca0067f312bcac4f4fb0a2e16697be84de1abc37_30675732-a022-4933-8058-ab31708dc6a2.webp?v=1714911579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5a9ace3dfc7ec7a6d47120584153fccafca3e8_c1246c37-e33a-4934-ae1e-5775bf3ca295.webp?v=1714911581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b4b5179d86869ca0f2b0ca0518b9b5b0e1d1eea_94e2b813-9caf-46da-bced-d0b437eb9981.webp?v=1714911584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f51a49190a84331aa080acb73f787bbf7dde9c9c_51799bdb-d3fe-47bc-b86b-6ad298c7021a.webp?v=1714911586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2eb412e8e36720e39e0a4ef098bdb3e001c7fda_148fa812-8fd8-46a3-9ddd-3431cae4134f.webp?v=1714911589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39b6f71b3b42f7f3797fd842c4d5f92d5e6a7cc6_9508d6e3-c31c-4397-9d07-dc5baec3258a.webp?v=1714911591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ff1c649203639a5a7408a4f6a60eee7531aeb6c_0cb73a80-f623-41e5-b5c6-33567373d841.webp?v=1714911594"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e450657b50c9bcb26dc4a89e82d9e792f833e772_d5679a07-3508-4a3a-ba80-8d274503454a.webp?v=1714911572","options":["color"],"media":[{"alt":null,"id":23893455700067,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e450657b50c9bcb26dc4a89e82d9e792f833e772_d5679a07-3508-4a3a-ba80-8d274503454a.webp?v=1714911572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e450657b50c9bcb26dc4a89e82d9e792f833e772_d5679a07-3508-4a3a-ba80-8d274503454a.webp?v=1714911572","width":2000},{"alt":null,"id":23893456093283,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c021bdafbb50fec91e8ee9c083f2567e34c4c6ba_0566b2ab-2fb4-4f34-9e7e-81c4da9ebbf2.webp?v=1714911574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c021bdafbb50fec91e8ee9c083f2567e34c4c6ba_0566b2ab-2fb4-4f34-9e7e-81c4da9ebbf2.webp?v=1714911574","width":2000},{"alt":null,"id":23893456814179,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7bd4477015baf2a163dcb37f89341652616fcbb_22005f21-a2e5-4894-b079-9cd3b85aa874.webp?v=1714911577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7bd4477015baf2a163dcb37f89341652616fcbb_22005f21-a2e5-4894-b079-9cd3b85aa874.webp?v=1714911577","width":2000},{"alt":null,"id":23893457436771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca0067f312bcac4f4fb0a2e16697be84de1abc37_30675732-a022-4933-8058-ab31708dc6a2.webp?v=1714911579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca0067f312bcac4f4fb0a2e16697be84de1abc37_30675732-a022-4933-8058-ab31708dc6a2.webp?v=1714911579","width":2000},{"alt":null,"id":23893457829987,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5a9ace3dfc7ec7a6d47120584153fccafca3e8_c1246c37-e33a-4934-ae1e-5775bf3ca295.webp?v=1714911581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5a9ace3dfc7ec7a6d47120584153fccafca3e8_c1246c37-e33a-4934-ae1e-5775bf3ca295.webp?v=1714911581","width":2000},{"alt":null,"id":23893458354275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b4b5179d86869ca0f2b0ca0518b9b5b0e1d1eea_94e2b813-9caf-46da-bced-d0b437eb9981.webp?v=1714911584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b4b5179d86869ca0f2b0ca0518b9b5b0e1d1eea_94e2b813-9caf-46da-bced-d0b437eb9981.webp?v=1714911584","width":2000},{"alt":null,"id":23893458911331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f51a49190a84331aa080acb73f787bbf7dde9c9c_51799bdb-d3fe-47bc-b86b-6ad298c7021a.webp?v=1714911586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f51a49190a84331aa080acb73f787bbf7dde9c9c_51799bdb-d3fe-47bc-b86b-6ad298c7021a.webp?v=1714911586","width":2000},{"alt":null,"id":23893459402851,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2eb412e8e36720e39e0a4ef098bdb3e001c7fda_148fa812-8fd8-46a3-9ddd-3431cae4134f.webp?v=1714911589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2eb412e8e36720e39e0a4ef098bdb3e001c7fda_148fa812-8fd8-46a3-9ddd-3431cae4134f.webp?v=1714911589","width":2000},{"alt":null,"id":23893459959907,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39b6f71b3b42f7f3797fd842c4d5f92d5e6a7cc6_9508d6e3-c31c-4397-9d07-dc5baec3258a.webp?v=1714911591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39b6f71b3b42f7f3797fd842c4d5f92d5e6a7cc6_9508d6e3-c31c-4397-9d07-dc5baec3258a.webp?v=1714911591","width":2000},{"alt":null,"id":23893460648035,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ff1c649203639a5a7408a4f6a60eee7531aeb6c_0cb73a80-f623-41e5-b5c6-33567373d841.webp?v=1714911594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ff1c649203639a5a7408a4f6a60eee7531aeb6c_0cb73a80-f623-41e5-b5c6-33567373d841.webp?v=1714911594","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41911682728035,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31488111181923,"product_id":7415082877027,"position":1,"created_at":"2024-05-05T20:19:32+08:00","updated_at":"2024-05-05T20:19:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e450657b50c9bcb26dc4a89e82d9e792f833e772_d5679a07-3508-4a3a-ba80-8d274503454a.webp?v=1714911572","variant_ids":[41911682728035]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 經典系列-史迪奇大臉款 - 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":"MPB0118724-YF01","featured_media":{"alt":null,"id":23893455700067,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e450657b50c9bcb26dc4a89e82d9e792f833e772_d5679a07-3508-4a3a-ba80-8d274503454a.webp?v=1714911572"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41911682728035,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31488111181923,"product_id":7415082877027,"position":1,"created_at":"2024-05-05T20:19:32+08:00","updated_at":"2024-05-05T20:19:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e450657b50c9bcb26dc4a89e82d9e792f833e772_d5679a07-3508-4a3a-ba80-8d274503454a.webp?v=1714911572","variant_ids":[41911682728035]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 經典系列-史迪奇大臉款 - 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":"MPB0118724-YF01","featured_media":{"alt":null,"id":23893455700067,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e450657b50c9bcb26dc4a89e82d9e792f833e772_d5679a07-3508-4a3a-ba80-8d274503454a.webp?v=1714911572"}},"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: "停產"
}