$product = {"id":7414632153187,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-園丁-幽默系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pc12","description":null,"published_at":"2024-06-11T17:52:40+08:00","created_at":"2024-05-05T14:34:53+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41907915423843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485915562083,"product_id":7414632153187,"position":8,"created_at":"2024-05-05T14:35:14+08:00","updated_at":"2024-05-05T14:35:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2c78e31aaf487fde4a3a6ce549d089e5074ff6_d45055c8-bb7b-4bbd-8348-9ff7744cb5f2.webp?v=1714890914","variant_ids":[41907915423843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-園丁-幽默系列 - 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":"MPB0123224-PC12","featured_media":{"alt":null,"id":23891250741347,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2c78e31aaf487fde4a3a6ce549d089e5074ff6_d45055c8-bb7b-4bbd-8348-9ff7744cb5f2.webp?v=1714890914"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907915817059,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485905240163,"product_id":7414632153187,"position":1,"created_at":"2024-05-05T14:34:56+08:00","updated_at":"2024-05-05T14:34:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/598def8f9659c5cd21c08026cfe9610e9455e503_50bf7687-92a4-4cf4-abcc-1fde9057d22d.webp?v=1714890896","variant_ids":[41907915817059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-園丁-幽默系列 - 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":"MPB01232J5-PC12","featured_media":{"alt":null,"id":23891240353891,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/598def8f9659c5cd21c08026cfe9610e9455e503_50bf7687-92a4-4cf4-abcc-1fde9057d22d.webp?v=1714890896"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/598def8f9659c5cd21c08026cfe9610e9455e503_50bf7687-92a4-4cf4-abcc-1fde9057d22d.webp?v=1714890896","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f741f212394ce44a13abf13daaa95c60964e0d_2ca09cf0-88b0-4cde-b2e2-3a36c27ec314.webp?v=1714890899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6f90bfd1a0b247e13b35e0fd3962c66debeff5f_e35991f7-75d1-479b-b042-c18de01a8048.webp?v=1714890901","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/839ac12e7242f12f3a2d809ba3f54c5bdebd60b5_3183d6e9-a917-4485-8759-59ae60a5c40c.webp?v=1714890903","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c49fea7c4635bd05dc4525d90d541cd64cda2ba_3a9f311c-f188-44be-a54d-bb17b365f916.webp?v=1714890906","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/614dfd3298ee19d12bae6b39417c6107c6eca338_fb6b04e8-3e3e-45ac-82f2-5e316d7d4067.webp?v=1714890908","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeb69f93a0b12a78505743c263047c419e7d2583_aa4ec362-7d5e-4900-9c79-772ab564b49b.webp?v=1714890910","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2c78e31aaf487fde4a3a6ce549d089e5074ff6_d45055c8-bb7b-4bbd-8348-9ff7744cb5f2.webp?v=1714890914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20e6e811468f80c1df602c948025fc1fecd51ff1_0c5dd4a9-a05d-4952-a5b1-e67f2be2c600.webp?v=1714890916","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bd9df9f5805f161c170aab51f0b35f1abc07265_97907f6b-b7ca-4ce1-b17c-52078821b119.webp?v=1714890919","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4aed2a1f3d1b8522eb51c2ea69832d20947d1c01_270ed466-d573-4bb7-a8bf-fa52ff8d9cf8.webp?v=1714890921"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/598def8f9659c5cd21c08026cfe9610e9455e503_50bf7687-92a4-4cf4-abcc-1fde9057d22d.webp?v=1714890896","options":["color"],"media":[{"alt":null,"id":23891240353891,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/598def8f9659c5cd21c08026cfe9610e9455e503_50bf7687-92a4-4cf4-abcc-1fde9057d22d.webp?v=1714890896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/598def8f9659c5cd21c08026cfe9610e9455e503_50bf7687-92a4-4cf4-abcc-1fde9057d22d.webp?v=1714890896","width":2000},{"alt":null,"id":23891242057827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f741f212394ce44a13abf13daaa95c60964e0d_2ca09cf0-88b0-4cde-b2e2-3a36c27ec314.webp?v=1714890899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f741f212394ce44a13abf13daaa95c60964e0d_2ca09cf0-88b0-4cde-b2e2-3a36c27ec314.webp?v=1714890899","width":2000},{"alt":null,"id":23891243565155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6f90bfd1a0b247e13b35e0fd3962c66debeff5f_e35991f7-75d1-479b-b042-c18de01a8048.webp?v=1714890901"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6f90bfd1a0b247e13b35e0fd3962c66debeff5f_e35991f7-75d1-479b-b042-c18de01a8048.webp?v=1714890901","width":2000},{"alt":null,"id":23891244679267,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/839ac12e7242f12f3a2d809ba3f54c5bdebd60b5_3183d6e9-a917-4485-8759-59ae60a5c40c.webp?v=1714890903"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/839ac12e7242f12f3a2d809ba3f54c5bdebd60b5_3183d6e9-a917-4485-8759-59ae60a5c40c.webp?v=1714890903","width":2000},{"alt":null,"id":23891246317667,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c49fea7c4635bd05dc4525d90d541cd64cda2ba_3a9f311c-f188-44be-a54d-bb17b365f916.webp?v=1714890906"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c49fea7c4635bd05dc4525d90d541cd64cda2ba_3a9f311c-f188-44be-a54d-bb17b365f916.webp?v=1714890906","width":2000},{"alt":null,"id":23891247595619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/614dfd3298ee19d12bae6b39417c6107c6eca338_fb6b04e8-3e3e-45ac-82f2-5e316d7d4067.webp?v=1714890908"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/614dfd3298ee19d12bae6b39417c6107c6eca338_fb6b04e8-3e3e-45ac-82f2-5e316d7d4067.webp?v=1714890908","width":2000},{"alt":null,"id":23891248971875,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeb69f93a0b12a78505743c263047c419e7d2583_aa4ec362-7d5e-4900-9c79-772ab564b49b.webp?v=1714890910"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeb69f93a0b12a78505743c263047c419e7d2583_aa4ec362-7d5e-4900-9c79-772ab564b49b.webp?v=1714890910","width":2000},{"alt":null,"id":23891250741347,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2c78e31aaf487fde4a3a6ce549d089e5074ff6_d45055c8-bb7b-4bbd-8348-9ff7744cb5f2.webp?v=1714890914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2c78e31aaf487fde4a3a6ce549d089e5074ff6_d45055c8-bb7b-4bbd-8348-9ff7744cb5f2.webp?v=1714890914","width":2000},{"alt":null,"id":23891252215907,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20e6e811468f80c1df602c948025fc1fecd51ff1_0c5dd4a9-a05d-4952-a5b1-e67f2be2c600.webp?v=1714890916"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20e6e811468f80c1df602c948025fc1fecd51ff1_0c5dd4a9-a05d-4952-a5b1-e67f2be2c600.webp?v=1714890916","width":2000},{"alt":null,"id":23891253756003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bd9df9f5805f161c170aab51f0b35f1abc07265_97907f6b-b7ca-4ce1-b17c-52078821b119.webp?v=1714890919"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bd9df9f5805f161c170aab51f0b35f1abc07265_97907f6b-b7ca-4ce1-b17c-52078821b119.webp?v=1714890919","width":2000},{"alt":null,"id":23891255263331,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4aed2a1f3d1b8522eb51c2ea69832d20947d1c01_270ed466-d573-4bb7-a8bf-fa52ff8d9cf8.webp?v=1714890921"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4aed2a1f3d1b8522eb51c2ea69832d20947d1c01_270ed466-d573-4bb7-a8bf-fa52ff8d9cf8.webp?v=1714890921","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907915423843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485915562083,"product_id":7414632153187,"position":8,"created_at":"2024-05-05T14:35:14+08:00","updated_at":"2024-05-05T14:35:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2c78e31aaf487fde4a3a6ce549d089e5074ff6_d45055c8-bb7b-4bbd-8348-9ff7744cb5f2.webp?v=1714890914","variant_ids":[41907915423843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-園丁-幽默系列 - 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":"MPB0123224-PC12","featured_media":{"alt":null,"id":23891250741347,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2c78e31aaf487fde4a3a6ce549d089e5074ff6_d45055c8-bb7b-4bbd-8348-9ff7744cb5f2.webp?v=1714890914"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907915817059,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485905240163,"product_id":7414632153187,"position":1,"created_at":"2024-05-05T14:34:56+08:00","updated_at":"2024-05-05T14:34:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/598def8f9659c5cd21c08026cfe9610e9455e503_50bf7687-92a4-4cf4-abcc-1fde9057d22d.webp?v=1714890896","variant_ids":[41907915817059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-園丁-幽默系列 - 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":"MPB01232J5-PC12","featured_media":{"alt":null,"id":23891240353891,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/598def8f9659c5cd21c08026cfe9610e9455e503_50bf7687-92a4-4cf4-abcc-1fde9057d22d.webp?v=1714890896"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907915423843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485915562083,"product_id":7414632153187,"position":8,"created_at":"2024-05-05T14:35:14+08:00","updated_at":"2024-05-05T14:35:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2c78e31aaf487fde4a3a6ce549d089e5074ff6_d45055c8-bb7b-4bbd-8348-9ff7744cb5f2.webp?v=1714890914","variant_ids":[41907915423843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-園丁-幽默系列 - 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":"MPB0123224-PC12","featured_media":{"alt":null,"id":23891250741347,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2c78e31aaf487fde4a3a6ce549d089e5074ff6_d45055c8-bb7b-4bbd-8348-9ff7744cb5f2.webp?v=1714890914"}},"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: "停產"
}