$product = {"id":7408082518115,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 千年鷹-美式復古","handle":"iphone-13-pro-max-mod-nx-printable-pb99","description":null,"published_at":"2024-06-11T16:30:55+08:00","created_at":"2024-05-03T11:56:09+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":41882476281955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31471147024483,"product_id":7408082518115,"position":5,"created_at":"2024-05-03T11:56:21+08:00","updated_at":"2024-05-03T11:56:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0fd8ccd73954e3b21f6b99cb46acd254563291_d02112d3-8999-46b9-b6f2-9b83d0263cb7.webp?v=1714708581","variant_ids":[41882476281955]},"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-PB99","featured_media":{"alt":null,"id":23876052353123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0fd8ccd73954e3b21f6b99cb46acd254563291_d02112d3-8999-46b9-b6f2-9b83d0263cb7.webp?v=1714708581"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882476576867,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31471147581539,"product_id":7408082518115,"position":6,"created_at":"2024-05-03T11:56:24+08:00","updated_at":"2024-05-03T11:56:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40d6f765b0298a49319557b303b56ed0d5c49a33_f996ca1e-dac9-4ada-b559-67f90612b15e.webp?v=1714708584","variant_ids":[41882476576867]},"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-PB99","featured_media":{"alt":null,"id":23876052811875,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40d6f765b0298a49319557b303b56ed0d5c49a33_f996ca1e-dac9-4ada-b559-67f90612b15e.webp?v=1714708584"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5051a73ccc0832ff7bd35bd6482d6a7463c44b80_98f29a12-f8c0-497d-85c6-dbea4b584970.webp?v=1714708572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9425cd91f72095581230808f77b0119a6938d25e_437d0233-7114-46f3-a404-58e648219b6b.webp?v=1714708574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06ddf85c84fa1279ef457198e166f9c5d2f73b39_098722ae-2b79-4445-b5e8-36629181eedd.webp?v=1714708576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51909985b79df01972812998d95a0bb1d48f87bc_ab4cdbbb-c768-486a-8182-7771ccc00b14.webp?v=1714708579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0fd8ccd73954e3b21f6b99cb46acd254563291_d02112d3-8999-46b9-b6f2-9b83d0263cb7.webp?v=1714708581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40d6f765b0298a49319557b303b56ed0d5c49a33_f996ca1e-dac9-4ada-b559-67f90612b15e.webp?v=1714708584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff50e46fd4bb6037e515615f7a48fd06bc39dcd4_54f2a8e1-725e-4127-ac0e-c051489e7927.webp?v=1714708586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a1d306019a2af7929bd0e41e8b0f7a04993c655_3925ed79-f78e-4351-8718-d8811c9a1ccd.webp?v=1714708589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65268e7deb232b95ea29178720fcbf679f6ca794_949e09e4-abe0-4857-aeea-32228191499a.webp?v=1714708591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f08f065b08e0971109a7203834088cad292169_3f532229-a0c4-4511-b0e9-a0c7f5e92e53.webp?v=1714708594"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5051a73ccc0832ff7bd35bd6482d6a7463c44b80_98f29a12-f8c0-497d-85c6-dbea4b584970.webp?v=1714708572","options":["color"],"media":[{"alt":null,"id":23876050354275,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5051a73ccc0832ff7bd35bd6482d6a7463c44b80_98f29a12-f8c0-497d-85c6-dbea4b584970.webp?v=1714708572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5051a73ccc0832ff7bd35bd6482d6a7463c44b80_98f29a12-f8c0-497d-85c6-dbea4b584970.webp?v=1714708572","width":2000},{"alt":null,"id":23876050747491,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9425cd91f72095581230808f77b0119a6938d25e_437d0233-7114-46f3-a404-58e648219b6b.webp?v=1714708574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9425cd91f72095581230808f77b0119a6938d25e_437d0233-7114-46f3-a404-58e648219b6b.webp?v=1714708574","width":2000},{"alt":null,"id":23876051370083,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06ddf85c84fa1279ef457198e166f9c5d2f73b39_098722ae-2b79-4445-b5e8-36629181eedd.webp?v=1714708576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06ddf85c84fa1279ef457198e166f9c5d2f73b39_098722ae-2b79-4445-b5e8-36629181eedd.webp?v=1714708576","width":2000},{"alt":null,"id":23876051861603,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51909985b79df01972812998d95a0bb1d48f87bc_ab4cdbbb-c768-486a-8182-7771ccc00b14.webp?v=1714708579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51909985b79df01972812998d95a0bb1d48f87bc_ab4cdbbb-c768-486a-8182-7771ccc00b14.webp?v=1714708579","width":2000},{"alt":null,"id":23876052353123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0fd8ccd73954e3b21f6b99cb46acd254563291_d02112d3-8999-46b9-b6f2-9b83d0263cb7.webp?v=1714708581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0fd8ccd73954e3b21f6b99cb46acd254563291_d02112d3-8999-46b9-b6f2-9b83d0263cb7.webp?v=1714708581","width":2000},{"alt":null,"id":23876052811875,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40d6f765b0298a49319557b303b56ed0d5c49a33_f996ca1e-dac9-4ada-b559-67f90612b15e.webp?v=1714708584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40d6f765b0298a49319557b303b56ed0d5c49a33_f996ca1e-dac9-4ada-b559-67f90612b15e.webp?v=1714708584","width":2000},{"alt":null,"id":23876053074019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff50e46fd4bb6037e515615f7a48fd06bc39dcd4_54f2a8e1-725e-4127-ac0e-c051489e7927.webp?v=1714708586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff50e46fd4bb6037e515615f7a48fd06bc39dcd4_54f2a8e1-725e-4127-ac0e-c051489e7927.webp?v=1714708586","width":2000},{"alt":null,"id":23876053565539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a1d306019a2af7929bd0e41e8b0f7a04993c655_3925ed79-f78e-4351-8718-d8811c9a1ccd.webp?v=1714708589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a1d306019a2af7929bd0e41e8b0f7a04993c655_3925ed79-f78e-4351-8718-d8811c9a1ccd.webp?v=1714708589","width":2000},{"alt":null,"id":23876053893219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65268e7deb232b95ea29178720fcbf679f6ca794_949e09e4-abe0-4857-aeea-32228191499a.webp?v=1714708591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65268e7deb232b95ea29178720fcbf679f6ca794_949e09e4-abe0-4857-aeea-32228191499a.webp?v=1714708591","width":2000},{"alt":null,"id":23876054483043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f08f065b08e0971109a7203834088cad292169_3f532229-a0c4-4511-b0e9-a0c7f5e92e53.webp?v=1714708594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f08f065b08e0971109a7203834088cad292169_3f532229-a0c4-4511-b0e9-a0c7f5e92e53.webp?v=1714708594","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882476281955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31471147024483,"product_id":7408082518115,"position":5,"created_at":"2024-05-03T11:56:21+08:00","updated_at":"2024-05-03T11:56:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0fd8ccd73954e3b21f6b99cb46acd254563291_d02112d3-8999-46b9-b6f2-9b83d0263cb7.webp?v=1714708581","variant_ids":[41882476281955]},"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-PB99","featured_media":{"alt":null,"id":23876052353123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0fd8ccd73954e3b21f6b99cb46acd254563291_d02112d3-8999-46b9-b6f2-9b83d0263cb7.webp?v=1714708581"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882476576867,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31471147581539,"product_id":7408082518115,"position":6,"created_at":"2024-05-03T11:56:24+08:00","updated_at":"2024-05-03T11:56:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40d6f765b0298a49319557b303b56ed0d5c49a33_f996ca1e-dac9-4ada-b559-67f90612b15e.webp?v=1714708584","variant_ids":[41882476576867]},"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-PB99","featured_media":{"alt":null,"id":23876052811875,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40d6f765b0298a49319557b303b56ed0d5c49a33_f996ca1e-dac9-4ada-b559-67f90612b15e.webp?v=1714708584"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882476281955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31471147024483,"product_id":7408082518115,"position":5,"created_at":"2024-05-03T11:56:21+08:00","updated_at":"2024-05-03T11:56:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0fd8ccd73954e3b21f6b99cb46acd254563291_d02112d3-8999-46b9-b6f2-9b83d0263cb7.webp?v=1714708581","variant_ids":[41882476281955]},"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-PB99","featured_media":{"alt":null,"id":23876052353123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0fd8ccd73954e3b21f6b99cb46acd254563291_d02112d3-8999-46b9-b6f2-9b83d0263cb7.webp?v=1714708581"}},"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: "停產"
}