$product = {"id":7413945368675,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 生日帽","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-iv01","description":null,"published_at":"2024-06-11T17:45:45+08:00","created_at":"2024-05-05T13:47:33+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-1chun","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":41902534197347,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484287090787,"product_id":7413945368675,"position":1,"created_at":"2024-05-05T13:47:36+08:00","updated_at":"2024-05-05T13:47:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557ed2ae3a76046b7e4181894e9a608d3b72b04b_08ad6e7f-8b7d-40d1-98b8-43a8d4fb8338.webp?v=1714888056","variant_ids":[41902534197347]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 生日帽 - 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-IV01","featured_media":{"alt":null,"id":23889580654691,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557ed2ae3a76046b7e4181894e9a608d3b72b04b_08ad6e7f-8b7d-40d1-98b8-43a8d4fb8338.webp?v=1714888056"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902534688867,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484287877219,"product_id":7413945368675,"position":2,"created_at":"2024-05-05T13:47:39+08:00","updated_at":"2024-05-05T13:47:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a32fa580a5d33a27e8e4acdcdc0291ec344820_4350f265-7dc8-4186-9fc4-4a73bd80d9d7.webp?v=1714888059","variant_ids":[41902534688867]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 生日帽 - 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-IV01","featured_media":{"alt":null,"id":23889581441123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a32fa580a5d33a27e8e4acdcdc0291ec344820_4350f265-7dc8-4186-9fc4-4a73bd80d9d7.webp?v=1714888059"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557ed2ae3a76046b7e4181894e9a608d3b72b04b_08ad6e7f-8b7d-40d1-98b8-43a8d4fb8338.webp?v=1714888056","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a32fa580a5d33a27e8e4acdcdc0291ec344820_4350f265-7dc8-4186-9fc4-4a73bd80d9d7.webp?v=1714888059","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79db3b54ded2e1ed51b9b0b450c3af4cc782572e_ed5fc495-8aaf-4882-be69-5e026c1fb607.webp?v=1714888062","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f02134d984a577a1db7a6c1e78dfaae7f73188ca_a151e49c-8a71-43a3-9dc3-505af8d1b46a.webp?v=1714888065","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/011a3e1ccc152468324b8f3e1d2e82e7169fba57_1e798290-298f-48d7-8c1f-948fbedf5a71.webp?v=1714888067","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56a27c8fb04e65583ef3d8850d7353948b9e570_6db3045c-5b49-451a-9c1a-b766b0b6ca7c.webp?v=1714888069","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291bc9042f216422258549c765439ae4adde08a0_cb609a66-b4e7-4a0e-a14d-9f3ac5d4854c.webp?v=1714888072","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74c74cc6fb001bd53e5a1b3c5985b5625609898a_8ff040b1-1663-4f78-87aa-354dd404aa56.webp?v=1714888074","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c444b715f725edf2831f6fd3071f3747bc8d3af_d3f8e508-85a7-4ccf-992d-4705ab649e01.webp?v=1714888077","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5309b174c57aa54ac198acf4b3f2711df2c836dc_2ec5d140-5305-4362-9a72-6b77acd397ba.webp?v=1714888079","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e3f88bfdeed7740c4890b6129de97914da5e2c7_9363e30a-80f3-41bf-b1ec-4d62e974b47b.webp?v=1714888082"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557ed2ae3a76046b7e4181894e9a608d3b72b04b_08ad6e7f-8b7d-40d1-98b8-43a8d4fb8338.webp?v=1714888056","options":["color"],"media":[{"alt":null,"id":23889580654691,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557ed2ae3a76046b7e4181894e9a608d3b72b04b_08ad6e7f-8b7d-40d1-98b8-43a8d4fb8338.webp?v=1714888056"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557ed2ae3a76046b7e4181894e9a608d3b72b04b_08ad6e7f-8b7d-40d1-98b8-43a8d4fb8338.webp?v=1714888056","width":2000},{"alt":null,"id":23889581441123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a32fa580a5d33a27e8e4acdcdc0291ec344820_4350f265-7dc8-4186-9fc4-4a73bd80d9d7.webp?v=1714888059"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a32fa580a5d33a27e8e4acdcdc0291ec344820_4350f265-7dc8-4186-9fc4-4a73bd80d9d7.webp?v=1714888059","width":2000},{"alt":null,"id":23889581604963,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79db3b54ded2e1ed51b9b0b450c3af4cc782572e_ed5fc495-8aaf-4882-be69-5e026c1fb607.webp?v=1714888062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79db3b54ded2e1ed51b9b0b450c3af4cc782572e_ed5fc495-8aaf-4882-be69-5e026c1fb607.webp?v=1714888062","width":2000},{"alt":null,"id":23889582162019,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f02134d984a577a1db7a6c1e78dfaae7f73188ca_a151e49c-8a71-43a3-9dc3-505af8d1b46a.webp?v=1714888065"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f02134d984a577a1db7a6c1e78dfaae7f73188ca_a151e49c-8a71-43a3-9dc3-505af8d1b46a.webp?v=1714888065","width":2000},{"alt":null,"id":23889582456931,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/011a3e1ccc152468324b8f3e1d2e82e7169fba57_1e798290-298f-48d7-8c1f-948fbedf5a71.webp?v=1714888067"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/011a3e1ccc152468324b8f3e1d2e82e7169fba57_1e798290-298f-48d7-8c1f-948fbedf5a71.webp?v=1714888067","width":2000},{"alt":null,"id":23889582653539,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56a27c8fb04e65583ef3d8850d7353948b9e570_6db3045c-5b49-451a-9c1a-b766b0b6ca7c.webp?v=1714888069"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56a27c8fb04e65583ef3d8850d7353948b9e570_6db3045c-5b49-451a-9c1a-b766b0b6ca7c.webp?v=1714888069","width":2000},{"alt":null,"id":23889583472739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291bc9042f216422258549c765439ae4adde08a0_cb609a66-b4e7-4a0e-a14d-9f3ac5d4854c.webp?v=1714888072"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291bc9042f216422258549c765439ae4adde08a0_cb609a66-b4e7-4a0e-a14d-9f3ac5d4854c.webp?v=1714888072","width":2000},{"alt":null,"id":23889583898723,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74c74cc6fb001bd53e5a1b3c5985b5625609898a_8ff040b1-1663-4f78-87aa-354dd404aa56.webp?v=1714888074"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74c74cc6fb001bd53e5a1b3c5985b5625609898a_8ff040b1-1663-4f78-87aa-354dd404aa56.webp?v=1714888074","width":2000},{"alt":null,"id":23889584259171,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c444b715f725edf2831f6fd3071f3747bc8d3af_d3f8e508-85a7-4ccf-992d-4705ab649e01.webp?v=1714888077"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c444b715f725edf2831f6fd3071f3747bc8d3af_d3f8e508-85a7-4ccf-992d-4705ab649e01.webp?v=1714888077","width":2000},{"alt":null,"id":23889584783459,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5309b174c57aa54ac198acf4b3f2711df2c836dc_2ec5d140-5305-4362-9a72-6b77acd397ba.webp?v=1714888079"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5309b174c57aa54ac198acf4b3f2711df2c836dc_2ec5d140-5305-4362-9a72-6b77acd397ba.webp?v=1714888079","width":2000},{"alt":null,"id":23889585406051,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e3f88bfdeed7740c4890b6129de97914da5e2c7_9363e30a-80f3-41bf-b1ec-4d62e974b47b.webp?v=1714888082"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e3f88bfdeed7740c4890b6129de97914da5e2c7_9363e30a-80f3-41bf-b1ec-4d62e974b47b.webp?v=1714888082","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41902534197347,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484287090787,"product_id":7413945368675,"position":1,"created_at":"2024-05-05T13:47:36+08:00","updated_at":"2024-05-05T13:47:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557ed2ae3a76046b7e4181894e9a608d3b72b04b_08ad6e7f-8b7d-40d1-98b8-43a8d4fb8338.webp?v=1714888056","variant_ids":[41902534197347]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 生日帽 - 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-IV01","featured_media":{"alt":null,"id":23889580654691,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557ed2ae3a76046b7e4181894e9a608d3b72b04b_08ad6e7f-8b7d-40d1-98b8-43a8d4fb8338.webp?v=1714888056"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902534688867,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484287877219,"product_id":7413945368675,"position":2,"created_at":"2024-05-05T13:47:39+08:00","updated_at":"2024-05-05T13:47:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a32fa580a5d33a27e8e4acdcdc0291ec344820_4350f265-7dc8-4186-9fc4-4a73bd80d9d7.webp?v=1714888059","variant_ids":[41902534688867]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 生日帽 - 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-IV01","featured_media":{"alt":null,"id":23889581441123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a32fa580a5d33a27e8e4acdcdc0291ec344820_4350f265-7dc8-4186-9fc4-4a73bd80d9d7.webp?v=1714888059"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41902534197347,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484287090787,"product_id":7413945368675,"position":1,"created_at":"2024-05-05T13:47:36+08:00","updated_at":"2024-05-05T13:47:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557ed2ae3a76046b7e4181894e9a608d3b72b04b_08ad6e7f-8b7d-40d1-98b8-43a8d4fb8338.webp?v=1714888056","variant_ids":[41902534197347]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 生日帽 - 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-IV01","featured_media":{"alt":null,"id":23889580654691,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557ed2ae3a76046b7e4181894e9a608d3b72b04b_08ad6e7f-8b7d-40d1-98b8-43a8d4fb8338.webp?v=1714888056"}},"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: "停產"
}