$product = {"id":7408215195747,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列","handle":"iphone-13-pro-max-mod-nx-printable-pb48","description":null,"published_at":"2024-06-11T16:34:28+08:00","created_at":"2024-05-03T12:22:27+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":41883942420579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31471494561891,"product_id":7408215195747,"position":4,"created_at":"2024-05-03T12:22:37+08:00","updated_at":"2024-05-03T12:22:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906cbcbda5970033b92c6886381af20aa49d7add_621aa919-0875-489f-b860-dd72b50a79d9.webp?v=1714710157","variant_ids":[41883942420579]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23876401037411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906cbcbda5970033b92c6886381af20aa49d7add_621aa919-0875-489f-b860-dd72b50a79d9.webp?v=1714710157"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883942912099,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31471496888419,"product_id":7408215195747,"position":8,"created_at":"2024-05-03T12:22:48+08:00","updated_at":"2024-05-03T12:22:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7660bea62bc8856e7f379a0f44250620afc20025_e2ea1f6d-b9ea-423a-9a3e-c8f88523e048.webp?v=1714710168","variant_ids":[41883942912099]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23876403363939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7660bea62bc8856e7f379a0f44250620afc20025_e2ea1f6d-b9ea-423a-9a3e-c8f88523e048.webp?v=1714710168"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c852b5eeda6b75f24a01a0ec2118d79403fc7592_4c10b73c-cd3e-49de-8d89-d0f4a43040a7.webp?v=1714710150","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/279ddd0e0a4fc522f34f8f7dc7fc56606acb5bc5_a2a81a72-4b13-4d22-ac03-65c8919e5120.webp?v=1714710152","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b64130c975c6f2023b1b60ca23ca42260193a95_34de9a19-faef-4559-b589-fbc0160954af.webp?v=1714710155","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906cbcbda5970033b92c6886381af20aa49d7add_621aa919-0875-489f-b860-dd72b50a79d9.webp?v=1714710157","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b1e0513758caaf44fd7b934c21f194ef8e69c4f_7083adaa-e170-4099-9a98-e64278ebd125.webp?v=1714710160","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6adfa9a05ad703adfede3ec801eb2dda67ee2606_de813fb5-a804-47f4-beac-81dd48a687b6.webp?v=1714710162","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df5a15d93c641abbf7ec083439890617c1b7e255_310d4bb3-3e6d-4883-b15b-5d912ff15c85.webp?v=1714710165","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7660bea62bc8856e7f379a0f44250620afc20025_e2ea1f6d-b9ea-423a-9a3e-c8f88523e048.webp?v=1714710168","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca88604832e8c9cbe6e45e99272803f3b6efff70_fd9b2718-021c-4a02-a86e-e9aa39b0ced3.webp?v=1714710170","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2f828a9ec85768d6f353aaf69051d79bdbbda2_1339deef-198b-4820-bfeb-b24da09c7fde.webp?v=1714710172"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c852b5eeda6b75f24a01a0ec2118d79403fc7592_4c10b73c-cd3e-49de-8d89-d0f4a43040a7.webp?v=1714710150","options":["color"],"media":[{"alt":null,"id":23876398907491,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c852b5eeda6b75f24a01a0ec2118d79403fc7592_4c10b73c-cd3e-49de-8d89-d0f4a43040a7.webp?v=1714710150"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c852b5eeda6b75f24a01a0ec2118d79403fc7592_4c10b73c-cd3e-49de-8d89-d0f4a43040a7.webp?v=1714710150","width":2000},{"alt":null,"id":23876399530083,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/279ddd0e0a4fc522f34f8f7dc7fc56606acb5bc5_a2a81a72-4b13-4d22-ac03-65c8919e5120.webp?v=1714710152"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/279ddd0e0a4fc522f34f8f7dc7fc56606acb5bc5_a2a81a72-4b13-4d22-ac03-65c8919e5120.webp?v=1714710152","width":2000},{"alt":null,"id":23876400185443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b64130c975c6f2023b1b60ca23ca42260193a95_34de9a19-faef-4559-b589-fbc0160954af.webp?v=1714710155"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b64130c975c6f2023b1b60ca23ca42260193a95_34de9a19-faef-4559-b589-fbc0160954af.webp?v=1714710155","width":2000},{"alt":null,"id":23876401037411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906cbcbda5970033b92c6886381af20aa49d7add_621aa919-0875-489f-b860-dd72b50a79d9.webp?v=1714710157"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906cbcbda5970033b92c6886381af20aa49d7add_621aa919-0875-489f-b860-dd72b50a79d9.webp?v=1714710157","width":2000},{"alt":null,"id":23876401627235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b1e0513758caaf44fd7b934c21f194ef8e69c4f_7083adaa-e170-4099-9a98-e64278ebd125.webp?v=1714710160"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b1e0513758caaf44fd7b934c21f194ef8e69c4f_7083adaa-e170-4099-9a98-e64278ebd125.webp?v=1714710160","width":2000},{"alt":null,"id":23876402184291,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6adfa9a05ad703adfede3ec801eb2dda67ee2606_de813fb5-a804-47f4-beac-81dd48a687b6.webp?v=1714710162"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6adfa9a05ad703adfede3ec801eb2dda67ee2606_de813fb5-a804-47f4-beac-81dd48a687b6.webp?v=1714710162","width":2000},{"alt":null,"id":23876402675811,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df5a15d93c641abbf7ec083439890617c1b7e255_310d4bb3-3e6d-4883-b15b-5d912ff15c85.webp?v=1714710165"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df5a15d93c641abbf7ec083439890617c1b7e255_310d4bb3-3e6d-4883-b15b-5d912ff15c85.webp?v=1714710165","width":2000},{"alt":null,"id":23876403363939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7660bea62bc8856e7f379a0f44250620afc20025_e2ea1f6d-b9ea-423a-9a3e-c8f88523e048.webp?v=1714710168"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7660bea62bc8856e7f379a0f44250620afc20025_e2ea1f6d-b9ea-423a-9a3e-c8f88523e048.webp?v=1714710168","width":2000},{"alt":null,"id":23876403986531,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca88604832e8c9cbe6e45e99272803f3b6efff70_fd9b2718-021c-4a02-a86e-e9aa39b0ced3.webp?v=1714710170"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca88604832e8c9cbe6e45e99272803f3b6efff70_fd9b2718-021c-4a02-a86e-e9aa39b0ced3.webp?v=1714710170","width":2000},{"alt":null,"id":23876404838499,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2f828a9ec85768d6f353aaf69051d79bdbbda2_1339deef-198b-4820-bfeb-b24da09c7fde.webp?v=1714710172"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2f828a9ec85768d6f353aaf69051d79bdbbda2_1339deef-198b-4820-bfeb-b24da09c7fde.webp?v=1714710172","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41883942420579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31471494561891,"product_id":7408215195747,"position":4,"created_at":"2024-05-03T12:22:37+08:00","updated_at":"2024-05-03T12:22:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906cbcbda5970033b92c6886381af20aa49d7add_621aa919-0875-489f-b860-dd72b50a79d9.webp?v=1714710157","variant_ids":[41883942420579]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23876401037411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906cbcbda5970033b92c6886381af20aa49d7add_621aa919-0875-489f-b860-dd72b50a79d9.webp?v=1714710157"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883942912099,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31471496888419,"product_id":7408215195747,"position":8,"created_at":"2024-05-03T12:22:48+08:00","updated_at":"2024-05-03T12:22:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7660bea62bc8856e7f379a0f44250620afc20025_e2ea1f6d-b9ea-423a-9a3e-c8f88523e048.webp?v=1714710168","variant_ids":[41883942912099]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23876403363939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7660bea62bc8856e7f379a0f44250620afc20025_e2ea1f6d-b9ea-423a-9a3e-c8f88523e048.webp?v=1714710168"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41883942420579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31471494561891,"product_id":7408215195747,"position":4,"created_at":"2024-05-03T12:22:37+08:00","updated_at":"2024-05-03T12:22:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906cbcbda5970033b92c6886381af20aa49d7add_621aa919-0875-489f-b860-dd72b50a79d9.webp?v=1714710157","variant_ids":[41883942420579]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23876401037411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906cbcbda5970033b92c6886381af20aa49d7add_621aa919-0875-489f-b860-dd72b50a79d9.webp?v=1714710157"}},"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: "停產"
}