$product = {"id":7407443017827,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo","handle":"iphone-15-plus-mod-nx-printable-pb100","description":null,"published_at":"2024-06-11T16:16:12+08:00","created_at":"2024-05-03T09:50:24+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":41875201949795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31469587398755,"product_id":7407443017827,"position":2,"created_at":"2024-05-03T09:50:29+08:00","updated_at":"2024-05-03T09:50:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55f4dc6d9cec5682a9b2d3e168ee7f4d3f8666e1_76df9231-4f34-4efe-ade5-b069953877a7.webp?v=1714701029","variant_ids":[41875201949795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23874488598627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55f4dc6d9cec5682a9b2d3e168ee7f4d3f8666e1_76df9231-4f34-4efe-ade5-b069953877a7.webp?v=1714701029"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41875202113635,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31469590839395,"product_id":7407443017827,"position":8,"created_at":"2024-05-03T09:50:43+08:00","updated_at":"2024-05-03T09:50:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00d8ab5b824e95a956aef8f1284a283e1605673a_4ec39850-b209-4c42-89d9-7c4e8af2c6ac.webp?v=1714701043","variant_ids":[41875202113635]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23874491973731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00d8ab5b824e95a956aef8f1284a283e1605673a_4ec39850-b209-4c42-89d9-7c4e8af2c6ac.webp?v=1714701043"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e13b27c6b63bf9efc29bbf1ab3421cf278ce36d0_b06d6ff4-b926-43ad-bf4f-31f2ec04dab4.webp?v=1714701027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55f4dc6d9cec5682a9b2d3e168ee7f4d3f8666e1_76df9231-4f34-4efe-ade5-b069953877a7.webp?v=1714701029","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46522b96ae33bc363bb3d1a2dd62082536c94e92_fa533c7d-ee2d-4391-9d89-9dc0fa09c436.webp?v=1714701031","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33a18d9ba0d4191e2e094f7f11b775d84707cbcc_2bb5402a-b569-400b-9d7e-936512b26ec6.webp?v=1714701034","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/174b7098c06e20971d2f85949460613eef44745b_8ca8189a-1422-4137-b9be-0e8c4775588f.webp?v=1714701036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33103379c97a6d378f91c76bde8c3a30ed6dd772_324aa8b5-9fe1-4153-b7a2-f8ccbbb0b5f2.webp?v=1714701038","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea21dbfda17744bf420bb30733ac0f485205fe7e_02ad800c-0c7b-4052-8858-de3f12b722f3.webp?v=1714701041","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00d8ab5b824e95a956aef8f1284a283e1605673a_4ec39850-b209-4c42-89d9-7c4e8af2c6ac.webp?v=1714701043","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6853ed1356e143b1211304c0285a896ac089b94b_19762bc9-7f47-4cd6-8b21-66692bf77374.webp?v=1714701045","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/018a02ee7fbe1ede8eee10386347f2de8336c7c8_306cd4e8-8e20-4073-a23f-c98ec38d5b85.webp?v=1714701047"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e13b27c6b63bf9efc29bbf1ab3421cf278ce36d0_b06d6ff4-b926-43ad-bf4f-31f2ec04dab4.webp?v=1714701027","options":["color"],"media":[{"alt":null,"id":23874488041571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e13b27c6b63bf9efc29bbf1ab3421cf278ce36d0_b06d6ff4-b926-43ad-bf4f-31f2ec04dab4.webp?v=1714701027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e13b27c6b63bf9efc29bbf1ab3421cf278ce36d0_b06d6ff4-b926-43ad-bf4f-31f2ec04dab4.webp?v=1714701027","width":2000},{"alt":null,"id":23874488598627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55f4dc6d9cec5682a9b2d3e168ee7f4d3f8666e1_76df9231-4f34-4efe-ade5-b069953877a7.webp?v=1714701029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55f4dc6d9cec5682a9b2d3e168ee7f4d3f8666e1_76df9231-4f34-4efe-ade5-b069953877a7.webp?v=1714701029","width":2000},{"alt":null,"id":23874489122915,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46522b96ae33bc363bb3d1a2dd62082536c94e92_fa533c7d-ee2d-4391-9d89-9dc0fa09c436.webp?v=1714701031"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46522b96ae33bc363bb3d1a2dd62082536c94e92_fa533c7d-ee2d-4391-9d89-9dc0fa09c436.webp?v=1714701031","width":2000},{"alt":null,"id":23874489745507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33a18d9ba0d4191e2e094f7f11b775d84707cbcc_2bb5402a-b569-400b-9d7e-936512b26ec6.webp?v=1714701034"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33a18d9ba0d4191e2e094f7f11b775d84707cbcc_2bb5402a-b569-400b-9d7e-936512b26ec6.webp?v=1714701034","width":2000},{"alt":null,"id":23874490171491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/174b7098c06e20971d2f85949460613eef44745b_8ca8189a-1422-4137-b9be-0e8c4775588f.webp?v=1714701036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/174b7098c06e20971d2f85949460613eef44745b_8ca8189a-1422-4137-b9be-0e8c4775588f.webp?v=1714701036","width":2000},{"alt":null,"id":23874490564707,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33103379c97a6d378f91c76bde8c3a30ed6dd772_324aa8b5-9fe1-4153-b7a2-f8ccbbb0b5f2.webp?v=1714701038"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33103379c97a6d378f91c76bde8c3a30ed6dd772_324aa8b5-9fe1-4153-b7a2-f8ccbbb0b5f2.webp?v=1714701038","width":2000},{"alt":null,"id":23874491220067,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea21dbfda17744bf420bb30733ac0f485205fe7e_02ad800c-0c7b-4052-8858-de3f12b722f3.webp?v=1714701041"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea21dbfda17744bf420bb30733ac0f485205fe7e_02ad800c-0c7b-4052-8858-de3f12b722f3.webp?v=1714701041","width":2000},{"alt":null,"id":23874491973731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00d8ab5b824e95a956aef8f1284a283e1605673a_4ec39850-b209-4c42-89d9-7c4e8af2c6ac.webp?v=1714701043"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00d8ab5b824e95a956aef8f1284a283e1605673a_4ec39850-b209-4c42-89d9-7c4e8af2c6ac.webp?v=1714701043","width":2000},{"alt":null,"id":23874492596323,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6853ed1356e143b1211304c0285a896ac089b94b_19762bc9-7f47-4cd6-8b21-66692bf77374.webp?v=1714701045"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6853ed1356e143b1211304c0285a896ac089b94b_19762bc9-7f47-4cd6-8b21-66692bf77374.webp?v=1714701045","width":2000},{"alt":null,"id":23874493055075,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/018a02ee7fbe1ede8eee10386347f2de8336c7c8_306cd4e8-8e20-4073-a23f-c98ec38d5b85.webp?v=1714701047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/018a02ee7fbe1ede8eee10386347f2de8336c7c8_306cd4e8-8e20-4073-a23f-c98ec38d5b85.webp?v=1714701047","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41875201949795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31469587398755,"product_id":7407443017827,"position":2,"created_at":"2024-05-03T09:50:29+08:00","updated_at":"2024-05-03T09:50:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55f4dc6d9cec5682a9b2d3e168ee7f4d3f8666e1_76df9231-4f34-4efe-ade5-b069953877a7.webp?v=1714701029","variant_ids":[41875201949795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23874488598627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55f4dc6d9cec5682a9b2d3e168ee7f4d3f8666e1_76df9231-4f34-4efe-ade5-b069953877a7.webp?v=1714701029"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41875202113635,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31469590839395,"product_id":7407443017827,"position":8,"created_at":"2024-05-03T09:50:43+08:00","updated_at":"2024-05-03T09:50:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00d8ab5b824e95a956aef8f1284a283e1605673a_4ec39850-b209-4c42-89d9-7c4e8af2c6ac.webp?v=1714701043","variant_ids":[41875202113635]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23874491973731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00d8ab5b824e95a956aef8f1284a283e1605673a_4ec39850-b209-4c42-89d9-7c4e8af2c6ac.webp?v=1714701043"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41875201949795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31469587398755,"product_id":7407443017827,"position":2,"created_at":"2024-05-03T09:50:29+08:00","updated_at":"2024-05-03T09:50:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55f4dc6d9cec5682a9b2d3e168ee7f4d3f8666e1_76df9231-4f34-4efe-ade5-b069953877a7.webp?v=1714701029","variant_ids":[41875201949795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23874488598627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55f4dc6d9cec5682a9b2d3e168ee7f4d3f8666e1_76df9231-4f34-4efe-ade5-b069953877a7.webp?v=1714701029"}},"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: "停產"
}