$product = {"id":7408140550243,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-黑","handle":"iphone-13-pro-max-mod-nx-printable-pb09","description":null,"published_at":"2024-06-11T16:32:29+08:00","created_at":"2024-05-03T12:07:50+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":41883128299619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31471299919971,"product_id":7408140550243,"position":10,"created_at":"2024-05-03T12:08:14+08:00","updated_at":"2024-05-03T12:08:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4019092aac9fca27277f1e8e0fb34af9343e26e6_e5fd8652-6006-4e92-9cdb-0a165afd113a.webp?v=1714709294","variant_ids":[41883128299619]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-黑 - 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-PB09","featured_media":{"alt":null,"id":23876205510755,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4019092aac9fca27277f1e8e0fb34af9343e26e6_e5fd8652-6006-4e92-9cdb-0a165afd113a.webp?v=1714709294"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883128594531,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31471295823971,"product_id":7408140550243,"position":2,"created_at":"2024-05-03T12:07:55+08:00","updated_at":"2024-05-03T12:07:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/993eb916a07d7b6e91c85c0c95208cf513e20d4c_589232ad-a02a-40f6-88ce-8836fe996e53.webp?v=1714709275","variant_ids":[41883128594531]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-黑 - 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-PB09","featured_media":{"alt":null,"id":23876201480291,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/993eb916a07d7b6e91c85c0c95208cf513e20d4c_589232ad-a02a-40f6-88ce-8836fe996e53.webp?v=1714709275"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f5ae97e1eb3fa64503e9bff3249d346d4fc0aa_e3a2bca1-b4cc-49c2-b8b1-c2bba6ac5132.webp?v=1714709273","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/993eb916a07d7b6e91c85c0c95208cf513e20d4c_589232ad-a02a-40f6-88ce-8836fe996e53.webp?v=1714709275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c5f46339790549d3c0251e8b0e4984fd5c711ec_27644acd-8455-48bf-b319-e251eea4f429.webp?v=1714709277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03fd372124cd76bf1d131e6afab905b5f29b92e_5d9d7b25-e530-4d6a-a225-acf72c153163.webp?v=1714709280","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63447e2f707096a5da02f8b62dfce16883cbf5d1_498b519d-3a06-4c3b-becc-767fdd39ffd2.webp?v=1714709282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b7597fc61639b9b5cd855a7249b0798b4bae87e_8662d3b2-a290-4595-8d7d-43dfc9c428f0.webp?v=1714709285","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf0b1bdd6af90a564fe7db1a9549cfc55ab13667_4570719a-8de0-49b3-a46b-94c78d5a560b.webp?v=1714709287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/924d74985d5778ea23ca1a6d35460133d506de00_6e5499e2-a582-4db0-840a-8c175709f40f.webp?v=1714709289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39544f15a777af58e15f91364bec7c8635b1f4dd_83faecd7-254e-4dfb-8726-fa19d89036f5.webp?v=1714709292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4019092aac9fca27277f1e8e0fb34af9343e26e6_e5fd8652-6006-4e92-9cdb-0a165afd113a.webp?v=1714709294"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f5ae97e1eb3fa64503e9bff3249d346d4fc0aa_e3a2bca1-b4cc-49c2-b8b1-c2bba6ac5132.webp?v=1714709273","options":["color"],"media":[{"alt":null,"id":23876200923235,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f5ae97e1eb3fa64503e9bff3249d346d4fc0aa_e3a2bca1-b4cc-49c2-b8b1-c2bba6ac5132.webp?v=1714709273"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f5ae97e1eb3fa64503e9bff3249d346d4fc0aa_e3a2bca1-b4cc-49c2-b8b1-c2bba6ac5132.webp?v=1714709273","width":2000},{"alt":null,"id":23876201480291,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/993eb916a07d7b6e91c85c0c95208cf513e20d4c_589232ad-a02a-40f6-88ce-8836fe996e53.webp?v=1714709275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/993eb916a07d7b6e91c85c0c95208cf513e20d4c_589232ad-a02a-40f6-88ce-8836fe996e53.webp?v=1714709275","width":2000},{"alt":null,"id":23876202037347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c5f46339790549d3c0251e8b0e4984fd5c711ec_27644acd-8455-48bf-b319-e251eea4f429.webp?v=1714709277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c5f46339790549d3c0251e8b0e4984fd5c711ec_27644acd-8455-48bf-b319-e251eea4f429.webp?v=1714709277","width":2000},{"alt":null,"id":23876202627171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03fd372124cd76bf1d131e6afab905b5f29b92e_5d9d7b25-e530-4d6a-a225-acf72c153163.webp?v=1714709280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b03fd372124cd76bf1d131e6afab905b5f29b92e_5d9d7b25-e530-4d6a-a225-acf72c153163.webp?v=1714709280","width":2000},{"alt":null,"id":23876203151459,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63447e2f707096a5da02f8b62dfce16883cbf5d1_498b519d-3a06-4c3b-becc-767fdd39ffd2.webp?v=1714709282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63447e2f707096a5da02f8b62dfce16883cbf5d1_498b519d-3a06-4c3b-becc-767fdd39ffd2.webp?v=1714709282","width":2000},{"alt":null,"id":23876203610211,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b7597fc61639b9b5cd855a7249b0798b4bae87e_8662d3b2-a290-4595-8d7d-43dfc9c428f0.webp?v=1714709285"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b7597fc61639b9b5cd855a7249b0798b4bae87e_8662d3b2-a290-4595-8d7d-43dfc9c428f0.webp?v=1714709285","width":2000},{"alt":null,"id":23876204167267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf0b1bdd6af90a564fe7db1a9549cfc55ab13667_4570719a-8de0-49b3-a46b-94c78d5a560b.webp?v=1714709287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf0b1bdd6af90a564fe7db1a9549cfc55ab13667_4570719a-8de0-49b3-a46b-94c78d5a560b.webp?v=1714709287","width":2000},{"alt":null,"id":23876204560483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/924d74985d5778ea23ca1a6d35460133d506de00_6e5499e2-a582-4db0-840a-8c175709f40f.webp?v=1714709289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/924d74985d5778ea23ca1a6d35460133d506de00_6e5499e2-a582-4db0-840a-8c175709f40f.webp?v=1714709289","width":2000},{"alt":null,"id":23876204986467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39544f15a777af58e15f91364bec7c8635b1f4dd_83faecd7-254e-4dfb-8726-fa19d89036f5.webp?v=1714709292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39544f15a777af58e15f91364bec7c8635b1f4dd_83faecd7-254e-4dfb-8726-fa19d89036f5.webp?v=1714709292","width":2000},{"alt":null,"id":23876205510755,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4019092aac9fca27277f1e8e0fb34af9343e26e6_e5fd8652-6006-4e92-9cdb-0a165afd113a.webp?v=1714709294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4019092aac9fca27277f1e8e0fb34af9343e26e6_e5fd8652-6006-4e92-9cdb-0a165afd113a.webp?v=1714709294","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41883128299619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31471299919971,"product_id":7408140550243,"position":10,"created_at":"2024-05-03T12:08:14+08:00","updated_at":"2024-05-03T12:08:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4019092aac9fca27277f1e8e0fb34af9343e26e6_e5fd8652-6006-4e92-9cdb-0a165afd113a.webp?v=1714709294","variant_ids":[41883128299619]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-黑 - 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-PB09","featured_media":{"alt":null,"id":23876205510755,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4019092aac9fca27277f1e8e0fb34af9343e26e6_e5fd8652-6006-4e92-9cdb-0a165afd113a.webp?v=1714709294"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883128594531,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31471295823971,"product_id":7408140550243,"position":2,"created_at":"2024-05-03T12:07:55+08:00","updated_at":"2024-05-03T12:07:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/993eb916a07d7b6e91c85c0c95208cf513e20d4c_589232ad-a02a-40f6-88ce-8836fe996e53.webp?v=1714709275","variant_ids":[41883128594531]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-黑 - 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-PB09","featured_media":{"alt":null,"id":23876201480291,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/993eb916a07d7b6e91c85c0c95208cf513e20d4c_589232ad-a02a-40f6-88ce-8836fe996e53.webp?v=1714709275"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41883128299619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31471299919971,"product_id":7408140550243,"position":10,"created_at":"2024-05-03T12:08:14+08:00","updated_at":"2024-05-03T12:08:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4019092aac9fca27277f1e8e0fb34af9343e26e6_e5fd8652-6006-4e92-9cdb-0a165afd113a.webp?v=1714709294","variant_ids":[41883128299619]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-黑 - 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-PB09","featured_media":{"alt":null,"id":23876205510755,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4019092aac9fca27277f1e8e0fb34af9343e26e6_e5fd8652-6006-4e92-9cdb-0a165afd113a.webp?v=1714709294"}},"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: "停產"
}