$product = {"id":7414018211939,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 風暴兵-潮流系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb42","description":null,"published_at":"2024-06-11T17:47:51+08:00","created_at":"2024-05-05T14:01:59+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":41903384395875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB42","requires_shipping":true,"taxable":true,"featured_image":{"id":31484469215331,"product_id":7414018211939,"position":1,"created_at":"2024-05-05T14:02:02+08:00","updated_at":"2024-05-05T14:02:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e3d3cee4324c81ec14b1022c0c7a5c912605605_8b639e10-d860-4e7d-b812-49b595f04a47.webp?v=1714888922","variant_ids":[41903384395875]},"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-PB42","featured_media":{"alt":null,"id":23889763369059,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e3d3cee4324c81ec14b1022c0c7a5c912605605_8b639e10-d860-4e7d-b812-49b595f04a47.webp?v=1714888922"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903384920163,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB42","requires_shipping":true,"taxable":true,"featured_image":{"id":31484473999459,"product_id":7414018211939,"position":9,"created_at":"2024-05-05T14:02:22+08:00","updated_at":"2024-05-05T14:02:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e60daa0bb37a87edea5120b3656e95ce83eb01e_1fba24c2-a4a0-4fe8-9773-6d980727845a.webp?v=1714888942","variant_ids":[41903384920163]},"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-PB42","featured_media":{"alt":null,"id":23889768120419,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e60daa0bb37a87edea5120b3656e95ce83eb01e_1fba24c2-a4a0-4fe8-9773-6d980727845a.webp?v=1714888942"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e3d3cee4324c81ec14b1022c0c7a5c912605605_8b639e10-d860-4e7d-b812-49b595f04a47.webp?v=1714888922","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85cb238e0b80ce28c18f9d1042f5ae12b697f14f_7cca3361-8e74-4919-9735-be43a2a4b979.webp?v=1714888924","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1429b98eebe8f5ad5c4ff42a8158fe6ffcf47dfb_fed46d93-1a90-4887-8384-ec3af12b7179.webp?v=1714888926","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2649cb152c0255af88909502169f8bf1cf155bcf_e9275cab-995e-4873-9341-f5d7791fd624.webp?v=1714888929","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6514dfcb6b26b2d5b6458b8184b107cb60ea4ad_6cec50c8-222c-4673-b6eb-08f5b97cee8f.webp?v=1714888931","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aa0736965cd245f081f8d1e8b67ce28e4a11334_dbcb7cee-3bfc-4257-b463-d4a8abd0fa37.webp?v=1714888934","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3760899d675f7bfc4b9176268a459aa069687b6_b1c9ad39-b3a5-45fd-9fc5-b9cca26e0f38.webp?v=1714888936","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e46e4de5d1c224dc5ae84b72620fda7a09de3a5c_2137c7a6-1f77-4118-877d-aaea68c38798.webp?v=1714888939","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e60daa0bb37a87edea5120b3656e95ce83eb01e_1fba24c2-a4a0-4fe8-9773-6d980727845a.webp?v=1714888942","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7403eb92b18fae42c344d93d76bd1edde981ea91_a8430b3a-8372-4f7c-bb8e-4fae3f1633c4.webp?v=1714888944","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6439efd8e14f9a466443855bbd2677794dcd4594_d784bd0f-f5a2-4030-b2b7-34c93b0cb6ce.webp?v=1714888946"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e3d3cee4324c81ec14b1022c0c7a5c912605605_8b639e10-d860-4e7d-b812-49b595f04a47.webp?v=1714888922","options":["color"],"media":[{"alt":null,"id":23889763369059,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e3d3cee4324c81ec14b1022c0c7a5c912605605_8b639e10-d860-4e7d-b812-49b595f04a47.webp?v=1714888922"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e3d3cee4324c81ec14b1022c0c7a5c912605605_8b639e10-d860-4e7d-b812-49b595f04a47.webp?v=1714888922","width":2000},{"alt":null,"id":23889763827811,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85cb238e0b80ce28c18f9d1042f5ae12b697f14f_7cca3361-8e74-4919-9735-be43a2a4b979.webp?v=1714888924"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85cb238e0b80ce28c18f9d1042f5ae12b697f14f_7cca3361-8e74-4919-9735-be43a2a4b979.webp?v=1714888924","width":2000},{"alt":null,"id":23889764319331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1429b98eebe8f5ad5c4ff42a8158fe6ffcf47dfb_fed46d93-1a90-4887-8384-ec3af12b7179.webp?v=1714888926"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1429b98eebe8f5ad5c4ff42a8158fe6ffcf47dfb_fed46d93-1a90-4887-8384-ec3af12b7179.webp?v=1714888926","width":2000},{"alt":null,"id":23889764712547,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2649cb152c0255af88909502169f8bf1cf155bcf_e9275cab-995e-4873-9341-f5d7791fd624.webp?v=1714888929"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2649cb152c0255af88909502169f8bf1cf155bcf_e9275cab-995e-4873-9341-f5d7791fd624.webp?v=1714888929","width":2000},{"alt":null,"id":23889765957731,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6514dfcb6b26b2d5b6458b8184b107cb60ea4ad_6cec50c8-222c-4673-b6eb-08f5b97cee8f.webp?v=1714888931"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6514dfcb6b26b2d5b6458b8184b107cb60ea4ad_6cec50c8-222c-4673-b6eb-08f5b97cee8f.webp?v=1714888931","width":2000},{"alt":null,"id":23889766416483,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aa0736965cd245f081f8d1e8b67ce28e4a11334_dbcb7cee-3bfc-4257-b463-d4a8abd0fa37.webp?v=1714888934"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aa0736965cd245f081f8d1e8b67ce28e4a11334_dbcb7cee-3bfc-4257-b463-d4a8abd0fa37.webp?v=1714888934","width":2000},{"alt":null,"id":23889766908003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3760899d675f7bfc4b9176268a459aa069687b6_b1c9ad39-b3a5-45fd-9fc5-b9cca26e0f38.webp?v=1714888936"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3760899d675f7bfc4b9176268a459aa069687b6_b1c9ad39-b3a5-45fd-9fc5-b9cca26e0f38.webp?v=1714888936","width":2000},{"alt":null,"id":23889767465059,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e46e4de5d1c224dc5ae84b72620fda7a09de3a5c_2137c7a6-1f77-4118-877d-aaea68c38798.webp?v=1714888939"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e46e4de5d1c224dc5ae84b72620fda7a09de3a5c_2137c7a6-1f77-4118-877d-aaea68c38798.webp?v=1714888939","width":2000},{"alt":null,"id":23889768120419,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e60daa0bb37a87edea5120b3656e95ce83eb01e_1fba24c2-a4a0-4fe8-9773-6d980727845a.webp?v=1714888942"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e60daa0bb37a87edea5120b3656e95ce83eb01e_1fba24c2-a4a0-4fe8-9773-6d980727845a.webp?v=1714888942","width":2000},{"alt":null,"id":23889768644707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7403eb92b18fae42c344d93d76bd1edde981ea91_a8430b3a-8372-4f7c-bb8e-4fae3f1633c4.webp?v=1714888944"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7403eb92b18fae42c344d93d76bd1edde981ea91_a8430b3a-8372-4f7c-bb8e-4fae3f1633c4.webp?v=1714888944","width":2000},{"alt":null,"id":23889769201763,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6439efd8e14f9a466443855bbd2677794dcd4594_d784bd0f-f5a2-4030-b2b7-34c93b0cb6ce.webp?v=1714888946"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6439efd8e14f9a466443855bbd2677794dcd4594_d784bd0f-f5a2-4030-b2b7-34c93b0cb6ce.webp?v=1714888946","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903384395875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB42","requires_shipping":true,"taxable":true,"featured_image":{"id":31484469215331,"product_id":7414018211939,"position":1,"created_at":"2024-05-05T14:02:02+08:00","updated_at":"2024-05-05T14:02:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e3d3cee4324c81ec14b1022c0c7a5c912605605_8b639e10-d860-4e7d-b812-49b595f04a47.webp?v=1714888922","variant_ids":[41903384395875]},"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-PB42","featured_media":{"alt":null,"id":23889763369059,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e3d3cee4324c81ec14b1022c0c7a5c912605605_8b639e10-d860-4e7d-b812-49b595f04a47.webp?v=1714888922"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903384920163,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB42","requires_shipping":true,"taxable":true,"featured_image":{"id":31484473999459,"product_id":7414018211939,"position":9,"created_at":"2024-05-05T14:02:22+08:00","updated_at":"2024-05-05T14:02:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e60daa0bb37a87edea5120b3656e95ce83eb01e_1fba24c2-a4a0-4fe8-9773-6d980727845a.webp?v=1714888942","variant_ids":[41903384920163]},"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-PB42","featured_media":{"alt":null,"id":23889768120419,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e60daa0bb37a87edea5120b3656e95ce83eb01e_1fba24c2-a4a0-4fe8-9773-6d980727845a.webp?v=1714888942"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903384395875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB42","requires_shipping":true,"taxable":true,"featured_image":{"id":31484469215331,"product_id":7414018211939,"position":1,"created_at":"2024-05-05T14:02:02+08:00","updated_at":"2024-05-05T14:02:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e3d3cee4324c81ec14b1022c0c7a5c912605605_8b639e10-d860-4e7d-b812-49b595f04a47.webp?v=1714888922","variant_ids":[41903384395875]},"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-PB42","featured_media":{"alt":null,"id":23889763369059,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e3d3cee4324c81ec14b1022c0c7a5c912605605_8b639e10-d860-4e7d-b812-49b595f04a47.webp?v=1714888922"}},"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: "停產"
}