$product = {"id":7408563060835,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號","handle":"iphone-12-pro-max-mod-nx-printable-pb67","description":null,"published_at":"2024-06-11T16:40:48+08:00","created_at":"2024-05-03T15:51: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 12 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":41886908153955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31472600907875,"product_id":7408563060835,"position":8,"created_at":"2024-05-03T15:51:42+08:00","updated_at":"2024-05-03T15:51:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/948b7887f2c61f1ec9c3638a71b086aa7b3458cb_5c4e32c7-108a-437e-b108-91cdda63a8e2.webp?v=1714722702","variant_ids":[41886908153955]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - 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":"NPB0118724-PB67","featured_media":{"alt":null,"id":23877518491747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/948b7887f2c61f1ec9c3638a71b086aa7b3458cb_5c4e32c7-108a-437e-b108-91cdda63a8e2.webp?v=1714722702"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2437a95ebb21fd2e28d03cf4693709cdbba7db1_7aa86e9e-b477-4da0-8878-f9fdfab51963.webp?v=1714722685","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/878a19dbfabefffbff0a7baf6bbfa751fb956582_c004717d-aa7b-4e3e-afdc-f2f9e7e3789d.webp?v=1714722687","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e75be1c409a40111fb579557973234ddd1828520_a6d9ab35-62aa-4e04-ac47-01ce6f8d339f.webp?v=1714722690","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/110a7c01830acf6f9f2f1270dbb045700f5a5281_45aaadb8-f7ee-4ce2-adf4-ddfb60bc923e.webp?v=1714722692","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7766fc696eb4fb631ea7ab4af86536bfc1685866_12eecbaf-1a32-491e-b9a3-28dd2eabba16.webp?v=1714722694","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d9d51c0757d5d84f86d47e9f0b8f61836d2156_848a2354-07b1-4e1b-97e7-befc240c9981.webp?v=1714722697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/653dd8039f1dcb5efdcccca1a442cbca6e02e78e_36921eb4-03ac-4fc6-8d59-20a9db91ce71.webp?v=1714722699","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/948b7887f2c61f1ec9c3638a71b086aa7b3458cb_5c4e32c7-108a-437e-b108-91cdda63a8e2.webp?v=1714722702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a8761223fe7a21170b627d643ec913f824c1f67_57e5e6c3-7b4a-4830-ad69-e3051972a438.webp?v=1714722704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9937015c6b46c18e3870629dc1be28981af9dcd3_a252d3d5-4d2f-4814-b707-b5b6cd9546aa.webp?v=1714722706"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2437a95ebb21fd2e28d03cf4693709cdbba7db1_7aa86e9e-b477-4da0-8878-f9fdfab51963.webp?v=1714722685","options":["color"],"media":[{"alt":null,"id":23877514821731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2437a95ebb21fd2e28d03cf4693709cdbba7db1_7aa86e9e-b477-4da0-8878-f9fdfab51963.webp?v=1714722685"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2437a95ebb21fd2e28d03cf4693709cdbba7db1_7aa86e9e-b477-4da0-8878-f9fdfab51963.webp?v=1714722685","width":2000},{"alt":null,"id":23877515280483,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/878a19dbfabefffbff0a7baf6bbfa751fb956582_c004717d-aa7b-4e3e-afdc-f2f9e7e3789d.webp?v=1714722687"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/878a19dbfabefffbff0a7baf6bbfa751fb956582_c004717d-aa7b-4e3e-afdc-f2f9e7e3789d.webp?v=1714722687","width":2000},{"alt":null,"id":23877515837539,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e75be1c409a40111fb579557973234ddd1828520_a6d9ab35-62aa-4e04-ac47-01ce6f8d339f.webp?v=1714722690"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e75be1c409a40111fb579557973234ddd1828520_a6d9ab35-62aa-4e04-ac47-01ce6f8d339f.webp?v=1714722690","width":2000},{"alt":null,"id":23877516329059,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/110a7c01830acf6f9f2f1270dbb045700f5a5281_45aaadb8-f7ee-4ce2-adf4-ddfb60bc923e.webp?v=1714722692"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/110a7c01830acf6f9f2f1270dbb045700f5a5281_45aaadb8-f7ee-4ce2-adf4-ddfb60bc923e.webp?v=1714722692","width":2000},{"alt":null,"id":23877516722275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7766fc696eb4fb631ea7ab4af86536bfc1685866_12eecbaf-1a32-491e-b9a3-28dd2eabba16.webp?v=1714722694"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7766fc696eb4fb631ea7ab4af86536bfc1685866_12eecbaf-1a32-491e-b9a3-28dd2eabba16.webp?v=1714722694","width":2000},{"alt":null,"id":23877517541475,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d9d51c0757d5d84f86d47e9f0b8f61836d2156_848a2354-07b1-4e1b-97e7-befc240c9981.webp?v=1714722697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d9d51c0757d5d84f86d47e9f0b8f61836d2156_848a2354-07b1-4e1b-97e7-befc240c9981.webp?v=1714722697","width":2000},{"alt":null,"id":23877517967459,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/653dd8039f1dcb5efdcccca1a442cbca6e02e78e_36921eb4-03ac-4fc6-8d59-20a9db91ce71.webp?v=1714722699"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/653dd8039f1dcb5efdcccca1a442cbca6e02e78e_36921eb4-03ac-4fc6-8d59-20a9db91ce71.webp?v=1714722699","width":2000},{"alt":null,"id":23877518491747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/948b7887f2c61f1ec9c3638a71b086aa7b3458cb_5c4e32c7-108a-437e-b108-91cdda63a8e2.webp?v=1714722702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/948b7887f2c61f1ec9c3638a71b086aa7b3458cb_5c4e32c7-108a-437e-b108-91cdda63a8e2.webp?v=1714722702","width":2000},{"alt":null,"id":23877518884963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a8761223fe7a21170b627d643ec913f824c1f67_57e5e6c3-7b4a-4830-ad69-e3051972a438.webp?v=1714722704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a8761223fe7a21170b627d643ec913f824c1f67_57e5e6c3-7b4a-4830-ad69-e3051972a438.webp?v=1714722704","width":2000},{"alt":null,"id":23877519376483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9937015c6b46c18e3870629dc1be28981af9dcd3_a252d3d5-4d2f-4814-b707-b5b6cd9546aa.webp?v=1714722706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9937015c6b46c18e3870629dc1be28981af9dcd3_a252d3d5-4d2f-4814-b707-b5b6cd9546aa.webp?v=1714722706","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41886908153955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31472600907875,"product_id":7408563060835,"position":8,"created_at":"2024-05-03T15:51:42+08:00","updated_at":"2024-05-03T15:51:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/948b7887f2c61f1ec9c3638a71b086aa7b3458cb_5c4e32c7-108a-437e-b108-91cdda63a8e2.webp?v=1714722702","variant_ids":[41886908153955]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - 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":"NPB0118724-PB67","featured_media":{"alt":null,"id":23877518491747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/948b7887f2c61f1ec9c3638a71b086aa7b3458cb_5c4e32c7-108a-437e-b108-91cdda63a8e2.webp?v=1714722702"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41886908153955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31472600907875,"product_id":7408563060835,"position":8,"created_at":"2024-05-03T15:51:42+08:00","updated_at":"2024-05-03T15:51:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/948b7887f2c61f1ec9c3638a71b086aa7b3458cb_5c4e32c7-108a-437e-b108-91cdda63a8e2.webp?v=1714722702","variant_ids":[41886908153955]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - 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":"NPB0118724-PB67","featured_media":{"alt":null,"id":23877518491747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/948b7887f2c61f1ec9c3638a71b086aa7b3458cb_5c4e32c7-108a-437e-b108-91cdda63a8e2.webp?v=1714722702"}},"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: "停產"
}