$product = {"id":7407499772003,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 戰機-日文字系列","handle":"iphone-15-plus-mod-nx-printable-pb63","description":null,"published_at":"2024-06-11T16:17:32+08:00","created_at":"2024-05-03T09:59:36+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 15 Plus","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":41875719585891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB63","requires_shipping":true,"taxable":true,"featured_image":{"id":31469743177827,"product_id":7407499772003,"position":8,"created_at":"2024-05-03T09:59:57+08:00","updated_at":"2024-05-03T09:59:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/200eea96969bbfc4d7b4270102235c224c9f57c3_8829302f-addd-4717-b6c2-f54021d8755f.webp?v=1714701597","variant_ids":[41875719585891]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PB63","featured_media":{"alt":null,"id":23874644574307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/200eea96969bbfc4d7b4270102235c224c9f57c3_8829302f-addd-4717-b6c2-f54021d8755f.webp?v=1714701597"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41875719880803,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB63","requires_shipping":true,"taxable":true,"featured_image":{"id":31469743734883,"product_id":7407499772003,"position":9,"created_at":"2024-05-03T10:00:00+08:00","updated_at":"2024-05-03T10:00:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7685b7744cf8cb7cf0e578fcb5a169aec0d938_07ce0402-0c8f-4a64-8464-b48eca7cdc1d.webp?v=1714701600","variant_ids":[41875719880803]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129657-PB63","featured_media":{"alt":null,"id":23874645131363,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7685b7744cf8cb7cf0e578fcb5a169aec0d938_07ce0402-0c8f-4a64-8464-b48eca7cdc1d.webp?v=1714701600"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e50b1c25738253538e94c2129ef9b2d5a36b44_460ba000-96fc-43de-a050-8f38dc5add36.webp?v=1714701579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4e1b913f6751d83c09c1b911587584a50da84f4_c86013c9-8233-4be3-b005-501dfbb6ace2.webp?v=1714701581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09fae2ff48ceac4e45cac000b95cf7ff2b292542_96810cab-fd31-4c6f-90e7-cc2dd5e05545.webp?v=1714701584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5c2b34e4bf7c13cad0cbcdd66fb7c1b85207d6f_d6bb287c-2209-4a94-add5-13d1ff3b6c5a.webp?v=1714701586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45ae27f27663cc4a42d2b06ab327c10eb434ecba_9e9f6ce6-79be-4997-a638-266051be0b97.webp?v=1714701588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6475233653e278fb9b76ffc8de3ce3a69fc628e4_7868f03c-3cc7-47f6-818c-ec603f5186b1.webp?v=1714701593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd6a941e015617fd42496f06231065e7706a7d07_058581dd-6ecc-486f-b78f-74640c0ddd3a.webp?v=1714701595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/200eea96969bbfc4d7b4270102235c224c9f57c3_8829302f-addd-4717-b6c2-f54021d8755f.webp?v=1714701597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7685b7744cf8cb7cf0e578fcb5a169aec0d938_07ce0402-0c8f-4a64-8464-b48eca7cdc1d.webp?v=1714701600"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e50b1c25738253538e94c2129ef9b2d5a36b44_460ba000-96fc-43de-a050-8f38dc5add36.webp?v=1714701579","options":["color"],"media":[{"alt":null,"id":23874640838755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e50b1c25738253538e94c2129ef9b2d5a36b44_460ba000-96fc-43de-a050-8f38dc5add36.webp?v=1714701579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e50b1c25738253538e94c2129ef9b2d5a36b44_460ba000-96fc-43de-a050-8f38dc5add36.webp?v=1714701579","width":2000},{"alt":null,"id":23874641363043,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4e1b913f6751d83c09c1b911587584a50da84f4_c86013c9-8233-4be3-b005-501dfbb6ace2.webp?v=1714701581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4e1b913f6751d83c09c1b911587584a50da84f4_c86013c9-8233-4be3-b005-501dfbb6ace2.webp?v=1714701581","width":2000},{"alt":null,"id":23874641821795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09fae2ff48ceac4e45cac000b95cf7ff2b292542_96810cab-fd31-4c6f-90e7-cc2dd5e05545.webp?v=1714701584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09fae2ff48ceac4e45cac000b95cf7ff2b292542_96810cab-fd31-4c6f-90e7-cc2dd5e05545.webp?v=1714701584","width":2000},{"alt":null,"id":23874642444387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5c2b34e4bf7c13cad0cbcdd66fb7c1b85207d6f_d6bb287c-2209-4a94-add5-13d1ff3b6c5a.webp?v=1714701586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5c2b34e4bf7c13cad0cbcdd66fb7c1b85207d6f_d6bb287c-2209-4a94-add5-13d1ff3b6c5a.webp?v=1714701586","width":2000},{"alt":null,"id":23874642903139,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45ae27f27663cc4a42d2b06ab327c10eb434ecba_9e9f6ce6-79be-4997-a638-266051be0b97.webp?v=1714701588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45ae27f27663cc4a42d2b06ab327c10eb434ecba_9e9f6ce6-79be-4997-a638-266051be0b97.webp?v=1714701588","width":2000},{"alt":null,"id":23874643689571,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6475233653e278fb9b76ffc8de3ce3a69fc628e4_7868f03c-3cc7-47f6-818c-ec603f5186b1.webp?v=1714701593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6475233653e278fb9b76ffc8de3ce3a69fc628e4_7868f03c-3cc7-47f6-818c-ec603f5186b1.webp?v=1714701593","width":2000},{"alt":null,"id":23874644082787,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd6a941e015617fd42496f06231065e7706a7d07_058581dd-6ecc-486f-b78f-74640c0ddd3a.webp?v=1714701595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd6a941e015617fd42496f06231065e7706a7d07_058581dd-6ecc-486f-b78f-74640c0ddd3a.webp?v=1714701595","width":2000},{"alt":null,"id":23874644574307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/200eea96969bbfc4d7b4270102235c224c9f57c3_8829302f-addd-4717-b6c2-f54021d8755f.webp?v=1714701597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/200eea96969bbfc4d7b4270102235c224c9f57c3_8829302f-addd-4717-b6c2-f54021d8755f.webp?v=1714701597","width":2000},{"alt":null,"id":23874645131363,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7685b7744cf8cb7cf0e578fcb5a169aec0d938_07ce0402-0c8f-4a64-8464-b48eca7cdc1d.webp?v=1714701600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7685b7744cf8cb7cf0e578fcb5a169aec0d938_07ce0402-0c8f-4a64-8464-b48eca7cdc1d.webp?v=1714701600","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41875719585891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB63","requires_shipping":true,"taxable":true,"featured_image":{"id":31469743177827,"product_id":7407499772003,"position":8,"created_at":"2024-05-03T09:59:57+08:00","updated_at":"2024-05-03T09:59:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/200eea96969bbfc4d7b4270102235c224c9f57c3_8829302f-addd-4717-b6c2-f54021d8755f.webp?v=1714701597","variant_ids":[41875719585891]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PB63","featured_media":{"alt":null,"id":23874644574307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/200eea96969bbfc4d7b4270102235c224c9f57c3_8829302f-addd-4717-b6c2-f54021d8755f.webp?v=1714701597"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41875719880803,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB63","requires_shipping":true,"taxable":true,"featured_image":{"id":31469743734883,"product_id":7407499772003,"position":9,"created_at":"2024-05-03T10:00:00+08:00","updated_at":"2024-05-03T10:00:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7685b7744cf8cb7cf0e578fcb5a169aec0d938_07ce0402-0c8f-4a64-8464-b48eca7cdc1d.webp?v=1714701600","variant_ids":[41875719880803]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129657-PB63","featured_media":{"alt":null,"id":23874645131363,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7685b7744cf8cb7cf0e578fcb5a169aec0d938_07ce0402-0c8f-4a64-8464-b48eca7cdc1d.webp?v=1714701600"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41875719585891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB63","requires_shipping":true,"taxable":true,"featured_image":{"id":31469743177827,"product_id":7407499772003,"position":8,"created_at":"2024-05-03T09:59:57+08:00","updated_at":"2024-05-03T09:59:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/200eea96969bbfc4d7b4270102235c224c9f57c3_8829302f-addd-4717-b6c2-f54021d8755f.webp?v=1714701597","variant_ids":[41875719585891]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PB63","featured_media":{"alt":null,"id":23874644574307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/200eea96969bbfc4d7b4270102235c224c9f57c3_8829302f-addd-4717-b6c2-f54021d8755f.webp?v=1714701597"}},"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: "停產"
}