$product = {"id":7414083321955,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Pixel Jeff 皮傑 - 街頭貓貓","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-hq01","description":null,"published_at":"2024-06-11T17:48:50+08:00","created_at":"2024-05-05T14:08:50+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 13 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":41903967699043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484640624739,"product_id":7414083321955,"position":7,"created_at":"2024-05-05T14:09:06+08:00","updated_at":"2024-05-05T14:09:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b497af96d31e32e38908902a7fe73e0968a858ed_835629e1-8a37-4bb2-bdef-837884953700.webp?v=1714889346","variant_ids":[41903967699043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB0123224-HQ01","featured_media":{"alt":null,"id":23889935663203,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b497af96d31e32e38908902a7fe73e0968a858ed_835629e1-8a37-4bb2-bdef-837884953700.webp?v=1714889346"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903968026723,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484634169443,"product_id":7414083321955,"position":4,"created_at":"2024-05-05T14:08:59+08:00","updated_at":"2024-05-05T14:08:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b142aff246b82397d2414fc1ad0ca564ebc12b3_c681fd68-3856-491f-8938-4ab84a5f6e4f.webp?v=1714889339","variant_ids":[41903968026723]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB01232J5-HQ01","featured_media":{"alt":null,"id":23889929338979,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b142aff246b82397d2414fc1ad0ca564ebc12b3_c681fd68-3856-491f-8938-4ab84a5f6e4f.webp?v=1714889339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f572ae034ce228d6d22b6e207d95a3cc6005efc8_ca1400e9-5b81-4d30-af24-53377c86ee57.webp?v=1714889332","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c73390ce648accca0c5b1432a039fafa3ef14eb4_d4b2bc01-81ed-4f0b-9b97-b427b0c05c58.webp?v=1714889335","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/793ebed86b1170a71ef6cd9332b3650d55313ee6_1cface00-b4f1-4f0e-91b8-58bb09ee2735.webp?v=1714889337","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b142aff246b82397d2414fc1ad0ca564ebc12b3_c681fd68-3856-491f-8938-4ab84a5f6e4f.webp?v=1714889339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54ac383b4232594cb7a121864c8bb3be29f6f103_09aa690a-1758-4bfa-b8fa-4d4c1dfa6a38.webp?v=1714889341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d73be3c1b2bb39d5d40d507f5f1c0dc67b09a6cd_7466dcc6-ec4c-4cc7-8cc6-c02a86c457f4.webp?v=1714889344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b497af96d31e32e38908902a7fe73e0968a858ed_835629e1-8a37-4bb2-bdef-837884953700.webp?v=1714889346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb346ca0c55a7b2f9d3418aac75b1099a224ba54_f795de5f-e918-444b-800b-c86f75cc190c.webp?v=1714889348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7caf587915b78bac6609802f9e4642f58453a5d6_8601e923-e892-4747-9ca6-ed7324697eb1.webp?v=1714889351","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3c08ded881399a258b0e962206685c478a12bf8_826b069c-3cb5-4736-9c79-3b094d71126a.webp?v=1714889353","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d243bec32010a3a5f562b7e0221137a061388a3_9b9c7696-a91a-476a-895a-bb902a65471b.webp?v=1714889355"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f572ae034ce228d6d22b6e207d95a3cc6005efc8_ca1400e9-5b81-4d30-af24-53377c86ee57.webp?v=1714889332","options":["color"],"media":[{"alt":null,"id":23889925341283,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f572ae034ce228d6d22b6e207d95a3cc6005efc8_ca1400e9-5b81-4d30-af24-53377c86ee57.webp?v=1714889332"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f572ae034ce228d6d22b6e207d95a3cc6005efc8_ca1400e9-5b81-4d30-af24-53377c86ee57.webp?v=1714889332","width":2000},{"alt":null,"id":23889926553699,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c73390ce648accca0c5b1432a039fafa3ef14eb4_d4b2bc01-81ed-4f0b-9b97-b427b0c05c58.webp?v=1714889335"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c73390ce648accca0c5b1432a039fafa3ef14eb4_d4b2bc01-81ed-4f0b-9b97-b427b0c05c58.webp?v=1714889335","width":2000},{"alt":null,"id":23889927995491,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/793ebed86b1170a71ef6cd9332b3650d55313ee6_1cface00-b4f1-4f0e-91b8-58bb09ee2735.webp?v=1714889337"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/793ebed86b1170a71ef6cd9332b3650d55313ee6_1cface00-b4f1-4f0e-91b8-58bb09ee2735.webp?v=1714889337","width":2000},{"alt":null,"id":23889929338979,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b142aff246b82397d2414fc1ad0ca564ebc12b3_c681fd68-3856-491f-8938-4ab84a5f6e4f.webp?v=1714889339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b142aff246b82397d2414fc1ad0ca564ebc12b3_c681fd68-3856-491f-8938-4ab84a5f6e4f.webp?v=1714889339","width":2000},{"alt":null,"id":23889931731043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54ac383b4232594cb7a121864c8bb3be29f6f103_09aa690a-1758-4bfa-b8fa-4d4c1dfa6a38.webp?v=1714889341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54ac383b4232594cb7a121864c8bb3be29f6f103_09aa690a-1758-4bfa-b8fa-4d4c1dfa6a38.webp?v=1714889341","width":2000},{"alt":null,"id":23889934254179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d73be3c1b2bb39d5d40d507f5f1c0dc67b09a6cd_7466dcc6-ec4c-4cc7-8cc6-c02a86c457f4.webp?v=1714889344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d73be3c1b2bb39d5d40d507f5f1c0dc67b09a6cd_7466dcc6-ec4c-4cc7-8cc6-c02a86c457f4.webp?v=1714889344","width":2000},{"alt":null,"id":23889935663203,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b497af96d31e32e38908902a7fe73e0968a858ed_835629e1-8a37-4bb2-bdef-837884953700.webp?v=1714889346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b497af96d31e32e38908902a7fe73e0968a858ed_835629e1-8a37-4bb2-bdef-837884953700.webp?v=1714889346","width":2000},{"alt":null,"id":23889937072227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb346ca0c55a7b2f9d3418aac75b1099a224ba54_f795de5f-e918-444b-800b-c86f75cc190c.webp?v=1714889348"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb346ca0c55a7b2f9d3418aac75b1099a224ba54_f795de5f-e918-444b-800b-c86f75cc190c.webp?v=1714889348","width":2000},{"alt":null,"id":23889938481251,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7caf587915b78bac6609802f9e4642f58453a5d6_8601e923-e892-4747-9ca6-ed7324697eb1.webp?v=1714889351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7caf587915b78bac6609802f9e4642f58453a5d6_8601e923-e892-4747-9ca6-ed7324697eb1.webp?v=1714889351","width":2000},{"alt":null,"id":23889939660899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3c08ded881399a258b0e962206685c478a12bf8_826b069c-3cb5-4736-9c79-3b094d71126a.webp?v=1714889353"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3c08ded881399a258b0e962206685c478a12bf8_826b069c-3cb5-4736-9c79-3b094d71126a.webp?v=1714889353","width":2000},{"alt":null,"id":23889941037155,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d243bec32010a3a5f562b7e0221137a061388a3_9b9c7696-a91a-476a-895a-bb902a65471b.webp?v=1714889355"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d243bec32010a3a5f562b7e0221137a061388a3_9b9c7696-a91a-476a-895a-bb902a65471b.webp?v=1714889355","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903967699043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484640624739,"product_id":7414083321955,"position":7,"created_at":"2024-05-05T14:09:06+08:00","updated_at":"2024-05-05T14:09:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b497af96d31e32e38908902a7fe73e0968a858ed_835629e1-8a37-4bb2-bdef-837884953700.webp?v=1714889346","variant_ids":[41903967699043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB0123224-HQ01","featured_media":{"alt":null,"id":23889935663203,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b497af96d31e32e38908902a7fe73e0968a858ed_835629e1-8a37-4bb2-bdef-837884953700.webp?v=1714889346"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903968026723,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484634169443,"product_id":7414083321955,"position":4,"created_at":"2024-05-05T14:08:59+08:00","updated_at":"2024-05-05T14:08:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b142aff246b82397d2414fc1ad0ca564ebc12b3_c681fd68-3856-491f-8938-4ab84a5f6e4f.webp?v=1714889339","variant_ids":[41903968026723]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB01232J5-HQ01","featured_media":{"alt":null,"id":23889929338979,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b142aff246b82397d2414fc1ad0ca564ebc12b3_c681fd68-3856-491f-8938-4ab84a5f6e4f.webp?v=1714889339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903967699043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484640624739,"product_id":7414083321955,"position":7,"created_at":"2024-05-05T14:09:06+08:00","updated_at":"2024-05-05T14:09:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b497af96d31e32e38908902a7fe73e0968a858ed_835629e1-8a37-4bb2-bdef-837884953700.webp?v=1714889346","variant_ids":[41903967699043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB0123224-HQ01","featured_media":{"alt":null,"id":23889935663203,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b497af96d31e32e38908902a7fe73e0968a858ed_835629e1-8a37-4bb2-bdef-837884953700.webp?v=1714889346"}},"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: "停產"
}