$product = {"id":7414419161187,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 星戰漫畫-貼紙系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb83","description":null,"published_at":"2024-06-11T17:51:12+08:00","created_at":"2024-05-05T14:24:51+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":41906374148195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31485409067107,"product_id":7414419161187,"position":4,"created_at":"2024-05-05T14:25:01+08:00","updated_at":"2024-05-05T14:25:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e64b9eb254c2867b027490a0bced41aebeb7f7a0_24b65f7d-8e46-46a7-9f34-670efc369f6b.webp?v=1714890301","variant_ids":[41906374148195]},"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-PB83","featured_media":{"alt":null,"id":23890726584419,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e64b9eb254c2867b027490a0bced41aebeb7f7a0_24b65f7d-8e46-46a7-9f34-670efc369f6b.webp?v=1714890301"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906375098467,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31485405364323,"product_id":7414419161187,"position":3,"created_at":"2024-05-05T14:24:59+08:00","updated_at":"2024-05-05T14:24:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d49f58909536992b2cfb239a968f482bbbdaa8d4_878d03fc-0a63-47db-8650-6b456966ffd6.webp?v=1714890299","variant_ids":[41906375098467]},"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-PB83","featured_media":{"alt":null,"id":23890722881635,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d49f58909536992b2cfb239a968f482bbbdaa8d4_878d03fc-0a63-47db-8650-6b456966ffd6.webp?v=1714890299"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56278850fc67574d56446ad4ce6523e485981bbb_b01a9d39-2225-487d-8f3e-7cee16e1d9d5.webp?v=1714890294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1158c66639fc015db4c068e7effd1458075d32b_baf963a5-b6f3-40fa-9618-431f532065d8.webp?v=1714890296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d49f58909536992b2cfb239a968f482bbbdaa8d4_878d03fc-0a63-47db-8650-6b456966ffd6.webp?v=1714890299","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e64b9eb254c2867b027490a0bced41aebeb7f7a0_24b65f7d-8e46-46a7-9f34-670efc369f6b.webp?v=1714890301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f02911ffff07877ef2412a80a39a05171827382_abaff6a5-e810-4c65-bf49-45c6966601b4.webp?v=1714890304","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5931de287aee247d8e31f7b092715f29ff6cfea_54231562-f34d-47eb-bd7d-fc9fe97e69a4.webp?v=1714890306","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc2362f436ed612e8257078049155c0c8a38ee3_979e3fad-a9e2-449f-a8f7-d776f278af1c.webp?v=1714890309","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21f1b608801126d9a1587164bc85764ef65cde9b_a5f5ec7f-adaa-494d-9266-d4806d8844b4.webp?v=1714890311","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e33d14b674be303acbadf1af16e13de684b7b630_b964fce5-e629-444b-90e0-b2c1729539ff.webp?v=1714890314","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b5fe9d4135a413888ee58e79c15fbca7ed7d13f_540eb108-0b71-4b9e-8090-ba8f7fad62a7.webp?v=1714890316","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a39fe64f7a0234238014ace967101eed8c93e440_34b82d21-46f0-435f-b69b-b87889bf6b09.webp?v=1714890319"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56278850fc67574d56446ad4ce6523e485981bbb_b01a9d39-2225-487d-8f3e-7cee16e1d9d5.webp?v=1714890294","options":["color"],"media":[{"alt":null,"id":23890714820707,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56278850fc67574d56446ad4ce6523e485981bbb_b01a9d39-2225-487d-8f3e-7cee16e1d9d5.webp?v=1714890294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56278850fc67574d56446ad4ce6523e485981bbb_b01a9d39-2225-487d-8f3e-7cee16e1d9d5.webp?v=1714890294","width":2000},{"alt":null,"id":23890719211619,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1158c66639fc015db4c068e7effd1458075d32b_baf963a5-b6f3-40fa-9618-431f532065d8.webp?v=1714890296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1158c66639fc015db4c068e7effd1458075d32b_baf963a5-b6f3-40fa-9618-431f532065d8.webp?v=1714890296","width":2000},{"alt":null,"id":23890722881635,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d49f58909536992b2cfb239a968f482bbbdaa8d4_878d03fc-0a63-47db-8650-6b456966ffd6.webp?v=1714890299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d49f58909536992b2cfb239a968f482bbbdaa8d4_878d03fc-0a63-47db-8650-6b456966ffd6.webp?v=1714890299","width":2000},{"alt":null,"id":23890726584419,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e64b9eb254c2867b027490a0bced41aebeb7f7a0_24b65f7d-8e46-46a7-9f34-670efc369f6b.webp?v=1714890301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e64b9eb254c2867b027490a0bced41aebeb7f7a0_24b65f7d-8e46-46a7-9f34-670efc369f6b.webp?v=1714890301","width":2000},{"alt":null,"id":23890730156131,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f02911ffff07877ef2412a80a39a05171827382_abaff6a5-e810-4c65-bf49-45c6966601b4.webp?v=1714890304"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f02911ffff07877ef2412a80a39a05171827382_abaff6a5-e810-4c65-bf49-45c6966601b4.webp?v=1714890304","width":2000},{"alt":null,"id":23890733498467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5931de287aee247d8e31f7b092715f29ff6cfea_54231562-f34d-47eb-bd7d-fc9fe97e69a4.webp?v=1714890306"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5931de287aee247d8e31f7b092715f29ff6cfea_54231562-f34d-47eb-bd7d-fc9fe97e69a4.webp?v=1714890306","width":2000},{"alt":null,"id":23890736971875,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc2362f436ed612e8257078049155c0c8a38ee3_979e3fad-a9e2-449f-a8f7-d776f278af1c.webp?v=1714890309"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc2362f436ed612e8257078049155c0c8a38ee3_979e3fad-a9e2-449f-a8f7-d776f278af1c.webp?v=1714890309","width":2000},{"alt":null,"id":23890740314211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21f1b608801126d9a1587164bc85764ef65cde9b_a5f5ec7f-adaa-494d-9266-d4806d8844b4.webp?v=1714890311"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21f1b608801126d9a1587164bc85764ef65cde9b_a5f5ec7f-adaa-494d-9266-d4806d8844b4.webp?v=1714890311","width":2000},{"alt":null,"id":23890743558243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e33d14b674be303acbadf1af16e13de684b7b630_b964fce5-e629-444b-90e0-b2c1729539ff.webp?v=1714890314"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e33d14b674be303acbadf1af16e13de684b7b630_b964fce5-e629-444b-90e0-b2c1729539ff.webp?v=1714890314","width":2000},{"alt":null,"id":23890746998883,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b5fe9d4135a413888ee58e79c15fbca7ed7d13f_540eb108-0b71-4b9e-8090-ba8f7fad62a7.webp?v=1714890316"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b5fe9d4135a413888ee58e79c15fbca7ed7d13f_540eb108-0b71-4b9e-8090-ba8f7fad62a7.webp?v=1714890316","width":2000},{"alt":null,"id":23890750242915,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a39fe64f7a0234238014ace967101eed8c93e440_34b82d21-46f0-435f-b69b-b87889bf6b09.webp?v=1714890319"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a39fe64f7a0234238014ace967101eed8c93e440_34b82d21-46f0-435f-b69b-b87889bf6b09.webp?v=1714890319","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41906374148195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31485409067107,"product_id":7414419161187,"position":4,"created_at":"2024-05-05T14:25:01+08:00","updated_at":"2024-05-05T14:25:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e64b9eb254c2867b027490a0bced41aebeb7f7a0_24b65f7d-8e46-46a7-9f34-670efc369f6b.webp?v=1714890301","variant_ids":[41906374148195]},"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-PB83","featured_media":{"alt":null,"id":23890726584419,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e64b9eb254c2867b027490a0bced41aebeb7f7a0_24b65f7d-8e46-46a7-9f34-670efc369f6b.webp?v=1714890301"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906375098467,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31485405364323,"product_id":7414419161187,"position":3,"created_at":"2024-05-05T14:24:59+08:00","updated_at":"2024-05-05T14:24:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d49f58909536992b2cfb239a968f482bbbdaa8d4_878d03fc-0a63-47db-8650-6b456966ffd6.webp?v=1714890299","variant_ids":[41906375098467]},"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-PB83","featured_media":{"alt":null,"id":23890722881635,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d49f58909536992b2cfb239a968f482bbbdaa8d4_878d03fc-0a63-47db-8650-6b456966ffd6.webp?v=1714890299"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41906374148195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31485409067107,"product_id":7414419161187,"position":4,"created_at":"2024-05-05T14:25:01+08:00","updated_at":"2024-05-05T14:25:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e64b9eb254c2867b027490a0bced41aebeb7f7a0_24b65f7d-8e46-46a7-9f34-670efc369f6b.webp?v=1714890301","variant_ids":[41906374148195]},"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-PB83","featured_media":{"alt":null,"id":23890726584419,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e64b9eb254c2867b027490a0bced41aebeb7f7a0_24b65f7d-8e46-46a7-9f34-670efc369f6b.webp?v=1714890301"}},"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: "停產"
}