$product = {"id":7414437478499,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub!","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb81","description":null,"published_at":"2024-06-11T17:51:18+08:00","created_at":"2024-05-05T14:25:29+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":41906492407907,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31485464281187,"product_id":7414437478499,"position":5,"created_at":"2024-05-05T14:25:41+08:00","updated_at":"2024-05-05T14:25:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd81c39e599f81d79b262db89cc7c22aa1f8f55_454bbc06-caae-434b-b2b4-ab338b6254f1.webp?v=1714890341","variant_ids":[41906492407907]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23890781569123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd81c39e599f81d79b262db89cc7c22aa1f8f55_454bbc06-caae-434b-b2b4-ab338b6254f1.webp?v=1714890341"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906492899427,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31485479518307,"product_id":7414437478499,"position":10,"created_at":"2024-05-05T14:25:52+08:00","updated_at":"2024-05-05T14:25:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6530220030f865c25a36166cb7ba8dbbfa765e91_8319f8e6-f3d3-466f-a72f-e5b73b7ed632.webp?v=1714890352","variant_ids":[41906492899427]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23890796937315,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6530220030f865c25a36166cb7ba8dbbfa765e91_8319f8e6-f3d3-466f-a72f-e5b73b7ed632.webp?v=1714890352"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb95d6c020f1230f70822fdd3a957c8a06316428_13e8674c-b8fc-42d8-a504-e4c917a92605.webp?v=1714890331","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/347971821d80fdf2080c9e4e761e9343da3b6d82_524c9900-afe4-47af-9896-07affca78ef0.webp?v=1714890334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a25e8bdb011af413d02b5cbc49657c007da99929_d04ac308-f253-43e9-87c4-8c355c4e99b1.webp?v=1714890336","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2158c79381a457dd0b180414b71718bab7a6ebf3_2529679c-cb58-4354-b68c-3f84a7e8b406.webp?v=1714890338","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd81c39e599f81d79b262db89cc7c22aa1f8f55_454bbc06-caae-434b-b2b4-ab338b6254f1.webp?v=1714890341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/684f0f861f44e00ff18dca42b6ac845a35b5ac9f_ecac9b7d-a24d-4846-9ed1-05467662a327.webp?v=1714890343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49a88b47a5662aaa041620c95123260dc9053eae_04721a4f-5ae2-45df-a8c2-6397a821ed74.webp?v=1714890345","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11cf4790d45a8dded8e44b00ebd13ea43f5a64f0_47064715-497f-468a-b962-8493704e393e.webp?v=1714890348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feeb684036e0ffedb2062fa7f6b73565a214cb82_b5ec8e34-512c-4611-b575-b1f502966c81.webp?v=1714890350","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6530220030f865c25a36166cb7ba8dbbfa765e91_8319f8e6-f3d3-466f-a72f-e5b73b7ed632.webp?v=1714890352","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ef8244adb4f34f88978292f7c1e9a589bd820a0_bc48d944-4d63-4974-8c88-53808997a6e4.webp?v=1714890355"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb95d6c020f1230f70822fdd3a957c8a06316428_13e8674c-b8fc-42d8-a504-e4c917a92605.webp?v=1714890331","options":["color"],"media":[{"alt":null,"id":23890768429155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb95d6c020f1230f70822fdd3a957c8a06316428_13e8674c-b8fc-42d8-a504-e4c917a92605.webp?v=1714890331"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb95d6c020f1230f70822fdd3a957c8a06316428_13e8674c-b8fc-42d8-a504-e4c917a92605.webp?v=1714890331","width":2000},{"alt":null,"id":23890771574883,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/347971821d80fdf2080c9e4e761e9343da3b6d82_524c9900-afe4-47af-9896-07affca78ef0.webp?v=1714890334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/347971821d80fdf2080c9e4e761e9343da3b6d82_524c9900-afe4-47af-9896-07affca78ef0.webp?v=1714890334","width":2000},{"alt":null,"id":23890774884451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a25e8bdb011af413d02b5cbc49657c007da99929_d04ac308-f253-43e9-87c4-8c355c4e99b1.webp?v=1714890336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a25e8bdb011af413d02b5cbc49657c007da99929_d04ac308-f253-43e9-87c4-8c355c4e99b1.webp?v=1714890336","width":2000},{"alt":null,"id":23890778095715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2158c79381a457dd0b180414b71718bab7a6ebf3_2529679c-cb58-4354-b68c-3f84a7e8b406.webp?v=1714890338"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2158c79381a457dd0b180414b71718bab7a6ebf3_2529679c-cb58-4354-b68c-3f84a7e8b406.webp?v=1714890338","width":2000},{"alt":null,"id":23890781569123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd81c39e599f81d79b262db89cc7c22aa1f8f55_454bbc06-caae-434b-b2b4-ab338b6254f1.webp?v=1714890341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd81c39e599f81d79b262db89cc7c22aa1f8f55_454bbc06-caae-434b-b2b4-ab338b6254f1.webp?v=1714890341","width":2000},{"alt":null,"id":23890784682083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/684f0f861f44e00ff18dca42b6ac845a35b5ac9f_ecac9b7d-a24d-4846-9ed1-05467662a327.webp?v=1714890343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/684f0f861f44e00ff18dca42b6ac845a35b5ac9f_ecac9b7d-a24d-4846-9ed1-05467662a327.webp?v=1714890343","width":2000},{"alt":null,"id":23890787663971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49a88b47a5662aaa041620c95123260dc9053eae_04721a4f-5ae2-45df-a8c2-6397a821ed74.webp?v=1714890345"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49a88b47a5662aaa041620c95123260dc9053eae_04721a4f-5ae2-45df-a8c2-6397a821ed74.webp?v=1714890345","width":2000},{"alt":null,"id":23890790875235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11cf4790d45a8dded8e44b00ebd13ea43f5a64f0_47064715-497f-468a-b962-8493704e393e.webp?v=1714890348"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11cf4790d45a8dded8e44b00ebd13ea43f5a64f0_47064715-497f-468a-b962-8493704e393e.webp?v=1714890348","width":2000},{"alt":null,"id":23890793562211,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feeb684036e0ffedb2062fa7f6b73565a214cb82_b5ec8e34-512c-4611-b575-b1f502966c81.webp?v=1714890350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feeb684036e0ffedb2062fa7f6b73565a214cb82_b5ec8e34-512c-4611-b575-b1f502966c81.webp?v=1714890350","width":2000},{"alt":null,"id":23890796937315,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6530220030f865c25a36166cb7ba8dbbfa765e91_8319f8e6-f3d3-466f-a72f-e5b73b7ed632.webp?v=1714890352"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6530220030f865c25a36166cb7ba8dbbfa765e91_8319f8e6-f3d3-466f-a72f-e5b73b7ed632.webp?v=1714890352","width":2000},{"alt":null,"id":23890800181347,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ef8244adb4f34f88978292f7c1e9a589bd820a0_bc48d944-4d63-4974-8c88-53808997a6e4.webp?v=1714890355"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ef8244adb4f34f88978292f7c1e9a589bd820a0_bc48d944-4d63-4974-8c88-53808997a6e4.webp?v=1714890355","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41906492407907,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31485464281187,"product_id":7414437478499,"position":5,"created_at":"2024-05-05T14:25:41+08:00","updated_at":"2024-05-05T14:25:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd81c39e599f81d79b262db89cc7c22aa1f8f55_454bbc06-caae-434b-b2b4-ab338b6254f1.webp?v=1714890341","variant_ids":[41906492407907]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23890781569123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd81c39e599f81d79b262db89cc7c22aa1f8f55_454bbc06-caae-434b-b2b4-ab338b6254f1.webp?v=1714890341"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906492899427,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31485479518307,"product_id":7414437478499,"position":10,"created_at":"2024-05-05T14:25:52+08:00","updated_at":"2024-05-05T14:25:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6530220030f865c25a36166cb7ba8dbbfa765e91_8319f8e6-f3d3-466f-a72f-e5b73b7ed632.webp?v=1714890352","variant_ids":[41906492899427]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23890796937315,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6530220030f865c25a36166cb7ba8dbbfa765e91_8319f8e6-f3d3-466f-a72f-e5b73b7ed632.webp?v=1714890352"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41906492407907,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31485464281187,"product_id":7414437478499,"position":5,"created_at":"2024-05-05T14:25:41+08:00","updated_at":"2024-05-05T14:25:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd81c39e599f81d79b262db89cc7c22aa1f8f55_454bbc06-caae-434b-b2b4-ab338b6254f1.webp?v=1714890341","variant_ids":[41906492407907]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23890781569123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd81c39e599f81d79b262db89cc7c22aa1f8f55_454bbc06-caae-434b-b2b4-ab338b6254f1.webp?v=1714890341"}},"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: "停產"
}