$product = {"id":7408074817635,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰角色-漫畫系列","handle":"iphone-13-pro-max-mod-nx-printable-pb84","description":null,"published_at":"2024-06-11T16:30:42+08:00","created_at":"2024-05-03T11:54:22+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41882391380067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31471126577251,"product_id":7408074817635,"position":7,"created_at":"2024-05-03T11:54:39+08:00","updated_at":"2024-05-03T11:54:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/332032d06f45aaa5f39d6319783dd7377582c77d_ac51d0d3-2b3c-43e0-a8f9-e2c4bd042f9b.webp?v=1714708479","variant_ids":[41882391380067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰角色-漫畫系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-PB84","featured_media":{"alt":null,"id":23876031873123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/332032d06f45aaa5f39d6319783dd7377582c77d_ac51d0d3-2b3c-43e0-a8f9-e2c4bd042f9b.webp?v=1714708479"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882391674979,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31471125987427,"product_id":7408074817635,"position":5,"created_at":"2024-05-03T11:54:34+08:00","updated_at":"2024-05-03T11:54:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd11780d2cf07386a29475276d0f0912d0215fdc_79cfaf6f-77eb-4268-a20e-dd5b1eedb133.webp?v=1714708474","variant_ids":[41882391674979]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰角色-漫畫系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01232J5-PB84","featured_media":{"alt":null,"id":23876031217763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd11780d2cf07386a29475276d0f0912d0215fdc_79cfaf6f-77eb-4268-a20e-dd5b1eedb133.webp?v=1714708474"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fdc030235a6140a495049f0ba89f6e3df7be50_5c797de3-a4f4-4c12-af17-27403f4eec8b.webp?v=1714708464","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a823d77422ab01ee87896964153d7a89273cfbb_386f74d0-cc94-4144-a805-414aae7d71a2.webp?v=1714708467","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6828a530fa8f597d23d61218e3bab09e320b8f8d_9d707c9d-9a60-44ca-8e51-02323e09135b.webp?v=1714708469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43eed6e6cde9d5fb2267af72d01162268efb459c_1efd2d8c-2de0-46bb-bb22-70e283ccb122.webp?v=1714708472","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd11780d2cf07386a29475276d0f0912d0215fdc_79cfaf6f-77eb-4268-a20e-dd5b1eedb133.webp?v=1714708474","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec1f66a4f1f2869c42c806b6f72fe072d0eb897b_ca3bb567-3c47-4f31-b924-5c8e54979363.webp?v=1714708477","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/332032d06f45aaa5f39d6319783dd7377582c77d_ac51d0d3-2b3c-43e0-a8f9-e2c4bd042f9b.webp?v=1714708479","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c1d34a28fe7bddf3ed4e84073c5abf8a86c206c_5c2ee0df-8879-41a9-9cc8-41d704c8fbfa.webp?v=1714708482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e78bd2d7a2ffe44766863cefcf3e52d4678f6bd0_d3bcad4a-7b8d-420d-93cd-61b29229a743.webp?v=1714708484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2615ea663430956af5b4c1fbdc31421edeacad3b_40977c85-1e02-43c6-a928-4d32888344e7.webp?v=1714708487"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fdc030235a6140a495049f0ba89f6e3df7be50_5c797de3-a4f4-4c12-af17-27403f4eec8b.webp?v=1714708464","options":["color"],"media":[{"alt":null,"id":23876029382755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fdc030235a6140a495049f0ba89f6e3df7be50_5c797de3-a4f4-4c12-af17-27403f4eec8b.webp?v=1714708464"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fdc030235a6140a495049f0ba89f6e3df7be50_5c797de3-a4f4-4c12-af17-27403f4eec8b.webp?v=1714708464","width":2000},{"alt":null,"id":23876029743203,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a823d77422ab01ee87896964153d7a89273cfbb_386f74d0-cc94-4144-a805-414aae7d71a2.webp?v=1714708467"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a823d77422ab01ee87896964153d7a89273cfbb_386f74d0-cc94-4144-a805-414aae7d71a2.webp?v=1714708467","width":2000},{"alt":null,"id":23876030234723,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6828a530fa8f597d23d61218e3bab09e320b8f8d_9d707c9d-9a60-44ca-8e51-02323e09135b.webp?v=1714708469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6828a530fa8f597d23d61218e3bab09e320b8f8d_9d707c9d-9a60-44ca-8e51-02323e09135b.webp?v=1714708469","width":2000},{"alt":null,"id":23876030759011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43eed6e6cde9d5fb2267af72d01162268efb459c_1efd2d8c-2de0-46bb-bb22-70e283ccb122.webp?v=1714708472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43eed6e6cde9d5fb2267af72d01162268efb459c_1efd2d8c-2de0-46bb-bb22-70e283ccb122.webp?v=1714708472","width":2000},{"alt":null,"id":23876031217763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd11780d2cf07386a29475276d0f0912d0215fdc_79cfaf6f-77eb-4268-a20e-dd5b1eedb133.webp?v=1714708474"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd11780d2cf07386a29475276d0f0912d0215fdc_79cfaf6f-77eb-4268-a20e-dd5b1eedb133.webp?v=1714708474","width":2000},{"alt":null,"id":23876031512675,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec1f66a4f1f2869c42c806b6f72fe072d0eb897b_ca3bb567-3c47-4f31-b924-5c8e54979363.webp?v=1714708477"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec1f66a4f1f2869c42c806b6f72fe072d0eb897b_ca3bb567-3c47-4f31-b924-5c8e54979363.webp?v=1714708477","width":2000},{"alt":null,"id":23876031873123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/332032d06f45aaa5f39d6319783dd7377582c77d_ac51d0d3-2b3c-43e0-a8f9-e2c4bd042f9b.webp?v=1714708479"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/332032d06f45aaa5f39d6319783dd7377582c77d_ac51d0d3-2b3c-43e0-a8f9-e2c4bd042f9b.webp?v=1714708479","width":2000},{"alt":null,"id":23876032331875,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c1d34a28fe7bddf3ed4e84073c5abf8a86c206c_5c2ee0df-8879-41a9-9cc8-41d704c8fbfa.webp?v=1714708482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c1d34a28fe7bddf3ed4e84073c5abf8a86c206c_5c2ee0df-8879-41a9-9cc8-41d704c8fbfa.webp?v=1714708482","width":2000},{"alt":null,"id":23876032692323,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e78bd2d7a2ffe44766863cefcf3e52d4678f6bd0_d3bcad4a-7b8d-420d-93cd-61b29229a743.webp?v=1714708484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e78bd2d7a2ffe44766863cefcf3e52d4678f6bd0_d3bcad4a-7b8d-420d-93cd-61b29229a743.webp?v=1714708484","width":2000},{"alt":null,"id":23876033183843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2615ea663430956af5b4c1fbdc31421edeacad3b_40977c85-1e02-43c6-a928-4d32888344e7.webp?v=1714708487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2615ea663430956af5b4c1fbdc31421edeacad3b_40977c85-1e02-43c6-a928-4d32888344e7.webp?v=1714708487","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882391380067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31471126577251,"product_id":7408074817635,"position":7,"created_at":"2024-05-03T11:54:39+08:00","updated_at":"2024-05-03T11:54:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/332032d06f45aaa5f39d6319783dd7377582c77d_ac51d0d3-2b3c-43e0-a8f9-e2c4bd042f9b.webp?v=1714708479","variant_ids":[41882391380067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰角色-漫畫系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-PB84","featured_media":{"alt":null,"id":23876031873123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/332032d06f45aaa5f39d6319783dd7377582c77d_ac51d0d3-2b3c-43e0-a8f9-e2c4bd042f9b.webp?v=1714708479"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882391674979,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31471125987427,"product_id":7408074817635,"position":5,"created_at":"2024-05-03T11:54:34+08:00","updated_at":"2024-05-03T11:54:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd11780d2cf07386a29475276d0f0912d0215fdc_79cfaf6f-77eb-4268-a20e-dd5b1eedb133.webp?v=1714708474","variant_ids":[41882391674979]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰角色-漫畫系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01232J5-PB84","featured_media":{"alt":null,"id":23876031217763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd11780d2cf07386a29475276d0f0912d0215fdc_79cfaf6f-77eb-4268-a20e-dd5b1eedb133.webp?v=1714708474"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882391380067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31471126577251,"product_id":7408074817635,"position":7,"created_at":"2024-05-03T11:54:39+08:00","updated_at":"2024-05-03T11:54:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/332032d06f45aaa5f39d6319783dd7377582c77d_ac51d0d3-2b3c-43e0-a8f9-e2c4bd042f9b.webp?v=1714708479","variant_ids":[41882391380067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰角色-漫畫系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-PB84","featured_media":{"alt":null,"id":23876031873123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/332032d06f45aaa5f39d6319783dd7377582c77d_ac51d0d3-2b3c-43e0-a8f9-e2c4bd042f9b.webp?v=1714708479"}},"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: "停產"
}