$product = {"id":7415021502563,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Pixel Jeff 皮傑 - 街頭貓貓","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-hq01","description":null,"published_at":"2024-06-11T17:55:51+08:00","created_at":"2024-05-05T20:08:02+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 pro max","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":41911024844899,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31487947669603,"product_id":7415021502563,"position":3,"created_at":"2024-05-05T20:08:09+08:00","updated_at":"2024-05-05T20:08:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e73c7ef5a1cdcb8b9d757067fc0e794b0a4e1a0_871b762b-33c2-403b-814c-8bd348757051.webp?v=1714910889","variant_ids":[41911024844899]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Pixel Jeff 皮傑 - 街頭貓貓 - 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":"MPB0118724-HQ01","featured_media":{"alt":null,"id":23893291925603,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e73c7ef5a1cdcb8b9d757067fc0e794b0a4e1a0_871b762b-33c2-403b-814c-8bd348757051.webp?v=1714910889"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb666960164f685c1f11befdbace537de13c3037_98765158-0727-40a7-8abe-fd80390cdf00.webp?v=1714910884","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9ffc5a5cebd68e7c7c39a3eb0514fbe3707f60e_940b1fde-2652-4ffe-ac58-5d295461e502.webp?v=1714910886","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e73c7ef5a1cdcb8b9d757067fc0e794b0a4e1a0_871b762b-33c2-403b-814c-8bd348757051.webp?v=1714910889","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b13ed3dc384fb7eff82ea31c543e8817779e994f_e99555cd-33e5-4b51-a62f-d7eba4172965.webp?v=1714910891","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a9e67f18d0bd689503549596e2d0452bd357d90_39626604-9de2-416d-999c-40f0e49a728d.webp?v=1714910893","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9743e28d3e9d175849ecf6582f8d3960208cc869_99eed90f-2e12-41d7-8161-512ed4181177.webp?v=1714910895","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/499ddee4ec5d0bda96f9763b05727ebf3f225358_e251249d-3909-49b4-ad0b-2f929c173db7.webp?v=1714910897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6991b1aaf3728ec33155b612c18aaeadc2566f1_a04c79ce-b366-4453-bb53-70c2715b44d7.webp?v=1714910900","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09b6475cef40a56bda606f5554033acbeaa4113a_4aa5d046-30f5-4c76-a04e-7ff49b006ee1.webp?v=1714910902","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59a5eea34dbdfaaa981d1d7edd85ad1410aa7946_ac7fb30e-a6b9-43d5-9bb1-2026f866e5e7.webp?v=1714910904"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb666960164f685c1f11befdbace537de13c3037_98765158-0727-40a7-8abe-fd80390cdf00.webp?v=1714910884","options":["color"],"media":[{"alt":null,"id":23893290680419,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb666960164f685c1f11befdbace537de13c3037_98765158-0727-40a7-8abe-fd80390cdf00.webp?v=1714910884"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb666960164f685c1f11befdbace537de13c3037_98765158-0727-40a7-8abe-fd80390cdf00.webp?v=1714910884","width":2000},{"alt":null,"id":23893291335779,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9ffc5a5cebd68e7c7c39a3eb0514fbe3707f60e_940b1fde-2652-4ffe-ac58-5d295461e502.webp?v=1714910886"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9ffc5a5cebd68e7c7c39a3eb0514fbe3707f60e_940b1fde-2652-4ffe-ac58-5d295461e502.webp?v=1714910886","width":2000},{"alt":null,"id":23893291925603,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e73c7ef5a1cdcb8b9d757067fc0e794b0a4e1a0_871b762b-33c2-403b-814c-8bd348757051.webp?v=1714910889"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e73c7ef5a1cdcb8b9d757067fc0e794b0a4e1a0_871b762b-33c2-403b-814c-8bd348757051.webp?v=1714910889","width":2000},{"alt":null,"id":23893292515427,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b13ed3dc384fb7eff82ea31c543e8817779e994f_e99555cd-33e5-4b51-a62f-d7eba4172965.webp?v=1714910891"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b13ed3dc384fb7eff82ea31c543e8817779e994f_e99555cd-33e5-4b51-a62f-d7eba4172965.webp?v=1714910891","width":2000},{"alt":null,"id":23893292941411,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a9e67f18d0bd689503549596e2d0452bd357d90_39626604-9de2-416d-999c-40f0e49a728d.webp?v=1714910893"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a9e67f18d0bd689503549596e2d0452bd357d90_39626604-9de2-416d-999c-40f0e49a728d.webp?v=1714910893","width":2000},{"alt":null,"id":23893293432931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9743e28d3e9d175849ecf6582f8d3960208cc869_99eed90f-2e12-41d7-8161-512ed4181177.webp?v=1714910895"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9743e28d3e9d175849ecf6582f8d3960208cc869_99eed90f-2e12-41d7-8161-512ed4181177.webp?v=1714910895","width":2000},{"alt":null,"id":23893294055523,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/499ddee4ec5d0bda96f9763b05727ebf3f225358_e251249d-3909-49b4-ad0b-2f929c173db7.webp?v=1714910897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/499ddee4ec5d0bda96f9763b05727ebf3f225358_e251249d-3909-49b4-ad0b-2f929c173db7.webp?v=1714910897","width":2000},{"alt":null,"id":23893295267939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6991b1aaf3728ec33155b612c18aaeadc2566f1_a04c79ce-b366-4453-bb53-70c2715b44d7.webp?v=1714910900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6991b1aaf3728ec33155b612c18aaeadc2566f1_a04c79ce-b366-4453-bb53-70c2715b44d7.webp?v=1714910900","width":2000},{"alt":null,"id":23893295759459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09b6475cef40a56bda606f5554033acbeaa4113a_4aa5d046-30f5-4c76-a04e-7ff49b006ee1.webp?v=1714910902"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09b6475cef40a56bda606f5554033acbeaa4113a_4aa5d046-30f5-4c76-a04e-7ff49b006ee1.webp?v=1714910902","width":2000},{"alt":null,"id":23893296185443,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59a5eea34dbdfaaa981d1d7edd85ad1410aa7946_ac7fb30e-a6b9-43d5-9bb1-2026f866e5e7.webp?v=1714910904"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59a5eea34dbdfaaa981d1d7edd85ad1410aa7946_ac7fb30e-a6b9-43d5-9bb1-2026f866e5e7.webp?v=1714910904","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41911024844899,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31487947669603,"product_id":7415021502563,"position":3,"created_at":"2024-05-05T20:08:09+08:00","updated_at":"2024-05-05T20:08:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e73c7ef5a1cdcb8b9d757067fc0e794b0a4e1a0_871b762b-33c2-403b-814c-8bd348757051.webp?v=1714910889","variant_ids":[41911024844899]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Pixel Jeff 皮傑 - 街頭貓貓 - 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":"MPB0118724-HQ01","featured_media":{"alt":null,"id":23893291925603,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e73c7ef5a1cdcb8b9d757067fc0e794b0a4e1a0_871b762b-33c2-403b-814c-8bd348757051.webp?v=1714910889"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41911024844899,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31487947669603,"product_id":7415021502563,"position":3,"created_at":"2024-05-05T20:08:09+08:00","updated_at":"2024-05-05T20:08:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e73c7ef5a1cdcb8b9d757067fc0e794b0a4e1a0_871b762b-33c2-403b-814c-8bd348757051.webp?v=1714910889","variant_ids":[41911024844899]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Pixel Jeff 皮傑 - 街頭貓貓 - 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":"MPB0118724-HQ01","featured_media":{"alt":null,"id":23893291925603,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e73c7ef5a1cdcb8b9d757067fc0e794b0a4e1a0_871b762b-33c2-403b-814c-8bd348757051.webp?v=1714910889"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$brand_handle = null;
$type = "";
var sellingStatus
// 只有設計款(SKU 含 '-')才需要合圖
if ($isMerge && $defaultVariant.sku.includes('-')) {
$(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: "停產"
}