$product = {"id":7408168075363,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-氣球布置-幽默系列","handle":"iphone-13-pro-max-mod-nx-printable-pc10","description":null,"published_at":"2024-06-11T16:33:13+08:00","created_at":"2024-05-03T12:13:04+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":41883432583267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31471370109027,"product_id":7408168075363,"position":10,"created_at":"2024-05-03T12:13:28+08:00","updated_at":"2024-05-03T12:13:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fc9f17048530a1c3a5a70a7c659764ff216dd9f_98237227-f1c6-4a7e-bbc0-e8c16123b1cf.webp?v=1714709608","variant_ids":[41883432583267]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0123224-PC10","featured_media":{"alt":null,"id":23876276125795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fc9f17048530a1c3a5a70a7c659764ff216dd9f_98237227-f1c6-4a7e-bbc0-e8c16123b1cf.webp?v=1714709608"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883432910947,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31471369125987,"product_id":7408168075363,"position":8,"created_at":"2024-05-03T12:13:23+08:00","updated_at":"2024-05-03T12:13:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff8c98e1bcf25c472ccde0fd6dc0999b008dcbd4_4f1f9611-cd0f-471a-a5d3-738f5a79276a.webp?v=1714709603","variant_ids":[41883432910947]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01232J5-PC10","featured_media":{"alt":null,"id":23876275109987,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff8c98e1bcf25c472ccde0fd6dc0999b008dcbd4_4f1f9611-cd0f-471a-a5d3-738f5a79276a.webp?v=1714709603"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4919b80ae6aed1dc805547d37ef3262a9febba06_d462fc43-c397-4376-9640-f41ef9cd37fe.webp?v=1714709587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f606120940a8bba83cd91268b708eabaae89ab0_1020b1e5-3bb5-4320-ae77-1e8a56440c0e.webp?v=1714709589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5e92f3cfb42ba9beb3a4d678f46af6558daffac_bb455eb9-b594-4a6d-b17a-7989de576195.webp?v=1714709592","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42dc2b4e999429a7e7c79a3333d7039e1c37ea44_76d25eb8-18a3-44bc-87e1-df3387adc0dd.webp?v=1714709594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7977798abd8610c083f940bbbad3d187540459cc_f35ff12a-d7d8-48a6-8d39-9fb5512353b8.webp?v=1714709596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a6e73ce6059adb3d7d15f30805f9bd06511b458_afda101e-3f9b-45ef-9ebd-ded4138243ab.webp?v=1714709598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa235026e143911cc2ec7f16fcec1a591d14224_51c871d6-041d-42b7-90b0-20cebc477a3a.webp?v=1714709601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff8c98e1bcf25c472ccde0fd6dc0999b008dcbd4_4f1f9611-cd0f-471a-a5d3-738f5a79276a.webp?v=1714709603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59e5f1ac171f63185b3856576ee336f5f825cea5_6f213ffa-5a3a-4104-855b-1b1b3f4d906a.webp?v=1714709605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fc9f17048530a1c3a5a70a7c659764ff216dd9f_98237227-f1c6-4a7e-bbc0-e8c16123b1cf.webp?v=1714709608"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4919b80ae6aed1dc805547d37ef3262a9febba06_d462fc43-c397-4376-9640-f41ef9cd37fe.webp?v=1714709587","options":["color"],"media":[{"alt":null,"id":23876270522467,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4919b80ae6aed1dc805547d37ef3262a9febba06_d462fc43-c397-4376-9640-f41ef9cd37fe.webp?v=1714709587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4919b80ae6aed1dc805547d37ef3262a9febba06_d462fc43-c397-4376-9640-f41ef9cd37fe.webp?v=1714709587","width":2000},{"alt":null,"id":23876270948451,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f606120940a8bba83cd91268b708eabaae89ab0_1020b1e5-3bb5-4320-ae77-1e8a56440c0e.webp?v=1714709589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f606120940a8bba83cd91268b708eabaae89ab0_1020b1e5-3bb5-4320-ae77-1e8a56440c0e.webp?v=1714709589","width":2000},{"alt":null,"id":23876271472739,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5e92f3cfb42ba9beb3a4d678f46af6558daffac_bb455eb9-b594-4a6d-b17a-7989de576195.webp?v=1714709592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5e92f3cfb42ba9beb3a4d678f46af6558daffac_bb455eb9-b594-4a6d-b17a-7989de576195.webp?v=1714709592","width":2000},{"alt":null,"id":23876273209443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42dc2b4e999429a7e7c79a3333d7039e1c37ea44_76d25eb8-18a3-44bc-87e1-df3387adc0dd.webp?v=1714709594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42dc2b4e999429a7e7c79a3333d7039e1c37ea44_76d25eb8-18a3-44bc-87e1-df3387adc0dd.webp?v=1714709594","width":2000},{"alt":null,"id":23876273733731,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7977798abd8610c083f940bbbad3d187540459cc_f35ff12a-d7d8-48a6-8d39-9fb5512353b8.webp?v=1714709596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7977798abd8610c083f940bbbad3d187540459cc_f35ff12a-d7d8-48a6-8d39-9fb5512353b8.webp?v=1714709596","width":2000},{"alt":null,"id":23876274159715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a6e73ce6059adb3d7d15f30805f9bd06511b458_afda101e-3f9b-45ef-9ebd-ded4138243ab.webp?v=1714709598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a6e73ce6059adb3d7d15f30805f9bd06511b458_afda101e-3f9b-45ef-9ebd-ded4138243ab.webp?v=1714709598","width":2000},{"alt":null,"id":23876274684003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa235026e143911cc2ec7f16fcec1a591d14224_51c871d6-041d-42b7-90b0-20cebc477a3a.webp?v=1714709601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa235026e143911cc2ec7f16fcec1a591d14224_51c871d6-041d-42b7-90b0-20cebc477a3a.webp?v=1714709601","width":2000},{"alt":null,"id":23876275109987,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff8c98e1bcf25c472ccde0fd6dc0999b008dcbd4_4f1f9611-cd0f-471a-a5d3-738f5a79276a.webp?v=1714709603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff8c98e1bcf25c472ccde0fd6dc0999b008dcbd4_4f1f9611-cd0f-471a-a5d3-738f5a79276a.webp?v=1714709603","width":2000},{"alt":null,"id":23876275634275,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59e5f1ac171f63185b3856576ee336f5f825cea5_6f213ffa-5a3a-4104-855b-1b1b3f4d906a.webp?v=1714709605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59e5f1ac171f63185b3856576ee336f5f825cea5_6f213ffa-5a3a-4104-855b-1b1b3f4d906a.webp?v=1714709605","width":2000},{"alt":null,"id":23876276125795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fc9f17048530a1c3a5a70a7c659764ff216dd9f_98237227-f1c6-4a7e-bbc0-e8c16123b1cf.webp?v=1714709608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fc9f17048530a1c3a5a70a7c659764ff216dd9f_98237227-f1c6-4a7e-bbc0-e8c16123b1cf.webp?v=1714709608","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41883432583267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31471370109027,"product_id":7408168075363,"position":10,"created_at":"2024-05-03T12:13:28+08:00","updated_at":"2024-05-03T12:13:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fc9f17048530a1c3a5a70a7c659764ff216dd9f_98237227-f1c6-4a7e-bbc0-e8c16123b1cf.webp?v=1714709608","variant_ids":[41883432583267]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0123224-PC10","featured_media":{"alt":null,"id":23876276125795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fc9f17048530a1c3a5a70a7c659764ff216dd9f_98237227-f1c6-4a7e-bbc0-e8c16123b1cf.webp?v=1714709608"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883432910947,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31471369125987,"product_id":7408168075363,"position":8,"created_at":"2024-05-03T12:13:23+08:00","updated_at":"2024-05-03T12:13:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff8c98e1bcf25c472ccde0fd6dc0999b008dcbd4_4f1f9611-cd0f-471a-a5d3-738f5a79276a.webp?v=1714709603","variant_ids":[41883432910947]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01232J5-PC10","featured_media":{"alt":null,"id":23876275109987,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff8c98e1bcf25c472ccde0fd6dc0999b008dcbd4_4f1f9611-cd0f-471a-a5d3-738f5a79276a.webp?v=1714709603"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41883432583267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31471370109027,"product_id":7408168075363,"position":10,"created_at":"2024-05-03T12:13:28+08:00","updated_at":"2024-05-03T12:13:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fc9f17048530a1c3a5a70a7c659764ff216dd9f_98237227-f1c6-4a7e-bbc0-e8c16123b1cf.webp?v=1714709608","variant_ids":[41883432583267]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0123224-PC10","featured_media":{"alt":null,"id":23876276125795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fc9f17048530a1c3a5a70a7c659764ff216dd9f_98237227-f1c6-4a7e-bbc0-e8c16123b1cf.webp?v=1714709608"}},"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: "停產"
}