$product = {"id":7415919476835,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列","handle":"iphone-xs-max-mod-nx-printable-pb54","description":null,"published_at":"2024-06-11T16:47:56+08:00","created_at":"2024-05-06T12:24:56+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 XS 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":41915530543203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31490734882915,"product_id":7415919476835,"position":3,"created_at":"2024-05-06T12:25:03+08:00","updated_at":"2024-05-06T12:25:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee7625ff2f0b9d95b5c2cbeb1a331b915d71a96_a49b1772-25b7-4c7f-96cd-69c923e5315b.webp?v=1714969503","variant_ids":[41915530543203]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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":"NPB0108624-PB54","featured_media":{"alt":null,"id":23896141693027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee7625ff2f0b9d95b5c2cbeb1a331b915d71a96_a49b1772-25b7-4c7f-96cd-69c923e5315b.webp?v=1714969503"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89ebea135b7bf482a4b1a0b6360744b4749ea82b_dab29ed4-e4dd-4537-874a-32d581b8888f.webp?v=1714969498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12f606944285dd0d25af83f019c7b8d145d604aa_9801640a-06d4-421d-ba4a-797a7166577f.webp?v=1714969501","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee7625ff2f0b9d95b5c2cbeb1a331b915d71a96_a49b1772-25b7-4c7f-96cd-69c923e5315b.webp?v=1714969503","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a947684106bd920c4acdf1cb3d1838be1b435d2b_9e76daa4-610b-4fc3-936a-129467f173ec.webp?v=1714969506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edb215672d2b5a59d8f9b25e60a561eba8426847_53a03198-307c-4842-947d-83b12fae123d.webp?v=1714969508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/949805c7d6a6e56eb222c0a095baa9fc11b48501_611247b5-adb6-4d58-8e37-edf384b3d7fa.webp?v=1714969511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b53d0790706fbf06d23bd953dbc510eae165d68_8ac61e4d-3800-47ea-b4d3-030f397723d6.webp?v=1714969513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e79b87a7e7a79d298c31a6b6486d38f96ec734f6_03b3250f-7842-4e08-9140-9013bde2a132.webp?v=1714969515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b673f3fe609b5208786f17fceccfcc4898efd71d_2cc7630c-32c7-4a2d-bab2-a33ccbf99dbd.webp?v=1714969517","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/318003c4cfddf6dd1ada2ec2c5086b8942d16720_4b85a86f-3fb2-4c11-be30-b59251cf09b6.webp?v=1714969519"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89ebea135b7bf482a4b1a0b6360744b4749ea82b_dab29ed4-e4dd-4537-874a-32d581b8888f.webp?v=1714969498","options":["color"],"media":[{"alt":null,"id":23896140316771,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89ebea135b7bf482a4b1a0b6360744b4749ea82b_dab29ed4-e4dd-4537-874a-32d581b8888f.webp?v=1714969498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89ebea135b7bf482a4b1a0b6360744b4749ea82b_dab29ed4-e4dd-4537-874a-32d581b8888f.webp?v=1714969498","width":2000},{"alt":null,"id":23896141037667,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12f606944285dd0d25af83f019c7b8d145d604aa_9801640a-06d4-421d-ba4a-797a7166577f.webp?v=1714969501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12f606944285dd0d25af83f019c7b8d145d604aa_9801640a-06d4-421d-ba4a-797a7166577f.webp?v=1714969501","width":2000},{"alt":null,"id":23896141693027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee7625ff2f0b9d95b5c2cbeb1a331b915d71a96_a49b1772-25b7-4c7f-96cd-69c923e5315b.webp?v=1714969503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee7625ff2f0b9d95b5c2cbeb1a331b915d71a96_a49b1772-25b7-4c7f-96cd-69c923e5315b.webp?v=1714969503","width":2000},{"alt":null,"id":23896142184547,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a947684106bd920c4acdf1cb3d1838be1b435d2b_9e76daa4-610b-4fc3-936a-129467f173ec.webp?v=1714969506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a947684106bd920c4acdf1cb3d1838be1b435d2b_9e76daa4-610b-4fc3-936a-129467f173ec.webp?v=1714969506","width":2000},{"alt":null,"id":23896142807139,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edb215672d2b5a59d8f9b25e60a561eba8426847_53a03198-307c-4842-947d-83b12fae123d.webp?v=1714969508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edb215672d2b5a59d8f9b25e60a561eba8426847_53a03198-307c-4842-947d-83b12fae123d.webp?v=1714969508","width":2000},{"alt":null,"id":23896143233123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/949805c7d6a6e56eb222c0a095baa9fc11b48501_611247b5-adb6-4d58-8e37-edf384b3d7fa.webp?v=1714969511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/949805c7d6a6e56eb222c0a095baa9fc11b48501_611247b5-adb6-4d58-8e37-edf384b3d7fa.webp?v=1714969511","width":2000},{"alt":null,"id":23896143757411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b53d0790706fbf06d23bd953dbc510eae165d68_8ac61e4d-3800-47ea-b4d3-030f397723d6.webp?v=1714969513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b53d0790706fbf06d23bd953dbc510eae165d68_8ac61e4d-3800-47ea-b4d3-030f397723d6.webp?v=1714969513","width":2000},{"alt":null,"id":23896144314467,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e79b87a7e7a79d298c31a6b6486d38f96ec734f6_03b3250f-7842-4e08-9140-9013bde2a132.webp?v=1714969515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e79b87a7e7a79d298c31a6b6486d38f96ec734f6_03b3250f-7842-4e08-9140-9013bde2a132.webp?v=1714969515","width":2000},{"alt":null,"id":23896144642147,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b673f3fe609b5208786f17fceccfcc4898efd71d_2cc7630c-32c7-4a2d-bab2-a33ccbf99dbd.webp?v=1714969517"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b673f3fe609b5208786f17fceccfcc4898efd71d_2cc7630c-32c7-4a2d-bab2-a33ccbf99dbd.webp?v=1714969517","width":2000},{"alt":null,"id":23896145264739,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/318003c4cfddf6dd1ada2ec2c5086b8942d16720_4b85a86f-3fb2-4c11-be30-b59251cf09b6.webp?v=1714969519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/318003c4cfddf6dd1ada2ec2c5086b8942d16720_4b85a86f-3fb2-4c11-be30-b59251cf09b6.webp?v=1714969519","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41915530543203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31490734882915,"product_id":7415919476835,"position":3,"created_at":"2024-05-06T12:25:03+08:00","updated_at":"2024-05-06T12:25:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee7625ff2f0b9d95b5c2cbeb1a331b915d71a96_a49b1772-25b7-4c7f-96cd-69c923e5315b.webp?v=1714969503","variant_ids":[41915530543203]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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":"NPB0108624-PB54","featured_media":{"alt":null,"id":23896141693027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee7625ff2f0b9d95b5c2cbeb1a331b915d71a96_a49b1772-25b7-4c7f-96cd-69c923e5315b.webp?v=1714969503"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41915530543203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31490734882915,"product_id":7415919476835,"position":3,"created_at":"2024-05-06T12:25:03+08:00","updated_at":"2024-05-06T12:25:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee7625ff2f0b9d95b5c2cbeb1a331b915d71a96_a49b1772-25b7-4c7f-96cd-69c923e5315b.webp?v=1714969503","variant_ids":[41915530543203]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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":"NPB0108624-PB54","featured_media":{"alt":null,"id":23896141693027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee7625ff2f0b9d95b5c2cbeb1a331b915d71a96_a49b1772-25b7-4c7f-96cd-69c923e5315b.webp?v=1714969503"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(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: "停產"
}