$product = {"id":7408110534755,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP千年鷹","handle":"iphone-13-pro-max-mod-nx-printable-pb27","description":null,"published_at":"2024-06-11T16:31:40+08:00","created_at":"2024-05-03T12:02:07+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":41882798915683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB27","requires_shipping":true,"taxable":true,"featured_image":{"id":31471219277923,"product_id":7408110534755,"position":3,"created_at":"2024-05-03T12:02:14+08:00","updated_at":"2024-05-03T12:02:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d75e54ebd7992e02bd29247770fda05286e4ef5_85b9762e-4b56-4696-989f-34c78d79dae2.webp?v=1714708934","variant_ids":[41882798915683]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP千年鷹 - 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-PB27","featured_media":{"alt":null,"id":23876124606563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d75e54ebd7992e02bd29247770fda05286e4ef5_85b9762e-4b56-4696-989f-34c78d79dae2.webp?v=1714708934"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882799538275,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB27","requires_shipping":true,"taxable":true,"featured_image":{"id":31471221571683,"product_id":7408110534755,"position":8,"created_at":"2024-05-03T12:02:26+08:00","updated_at":"2024-05-03T12:02:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db129ae50e7c49a6f951490a4dafe35fe82c9b0_8943edb9-fded-4cbc-a487-f247852ea4e6.webp?v=1714708946","variant_ids":[41882799538275]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP千年鷹 - 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-PB27","featured_media":{"alt":null,"id":23876126867555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db129ae50e7c49a6f951490a4dafe35fe82c9b0_8943edb9-fded-4cbc-a487-f247852ea4e6.webp?v=1714708946"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8e740356f1b34597c45f7b3f8c46ac3567ed66f_0c935402-d6d0-4ee4-8536-1c733fa0bfd2.webp?v=1714708929","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/941496016ba7a6faae67985c1b3b33bb624cecdb_81cee82b-765a-49ad-9137-919270eb1339.webp?v=1714708932","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d75e54ebd7992e02bd29247770fda05286e4ef5_85b9762e-4b56-4696-989f-34c78d79dae2.webp?v=1714708934","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34b6a49e7639bdf25beefdd63f9f047f9918672f_aa530a07-2083-46c1-9d6c-9f591f636d2c.webp?v=1714708936","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b4bae470a7d00c61e8d0482d9fbcdab24685011_1864aaea-3bf4-4d8d-9481-435b98ce79d6.webp?v=1714708939","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1b556be22c7b939e4599ea4a0909409a8ea41e_d0e60aa2-6624-4074-bb81-081cb2a1a046.webp?v=1714708941","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3ac47ee5551bc11159f1d6ee47ffc29b1879231_5afc74ae-3506-49c1-90c2-9368f0100d02.webp?v=1714708944","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db129ae50e7c49a6f951490a4dafe35fe82c9b0_8943edb9-fded-4cbc-a487-f247852ea4e6.webp?v=1714708946","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41f1c4e0215a8f5d8e83bb0f9ee2e6cefc29b5b0_e90a9e8b-193b-44d2-96ab-a5db5c251b2e.webp?v=1714708949","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9ef65a37e9c16a622caca4dd5baceaa308f408e_814f4cb6-dee1-4b02-8598-bcfa37511b70.webp?v=1714708951"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8e740356f1b34597c45f7b3f8c46ac3567ed66f_0c935402-d6d0-4ee4-8536-1c733fa0bfd2.webp?v=1714708929","options":["color"],"media":[{"alt":null,"id":23876123033699,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8e740356f1b34597c45f7b3f8c46ac3567ed66f_0c935402-d6d0-4ee4-8536-1c733fa0bfd2.webp?v=1714708929"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8e740356f1b34597c45f7b3f8c46ac3567ed66f_0c935402-d6d0-4ee4-8536-1c733fa0bfd2.webp?v=1714708929","width":2000},{"alt":null,"id":23876123918435,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/941496016ba7a6faae67985c1b3b33bb624cecdb_81cee82b-765a-49ad-9137-919270eb1339.webp?v=1714708932"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/941496016ba7a6faae67985c1b3b33bb624cecdb_81cee82b-765a-49ad-9137-919270eb1339.webp?v=1714708932","width":2000},{"alt":null,"id":23876124606563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d75e54ebd7992e02bd29247770fda05286e4ef5_85b9762e-4b56-4696-989f-34c78d79dae2.webp?v=1714708934"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d75e54ebd7992e02bd29247770fda05286e4ef5_85b9762e-4b56-4696-989f-34c78d79dae2.webp?v=1714708934","width":2000},{"alt":null,"id":23876124967011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34b6a49e7639bdf25beefdd63f9f047f9918672f_aa530a07-2083-46c1-9d6c-9f591f636d2c.webp?v=1714708936"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34b6a49e7639bdf25beefdd63f9f047f9918672f_aa530a07-2083-46c1-9d6c-9f591f636d2c.webp?v=1714708936","width":2000},{"alt":null,"id":23876125524067,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b4bae470a7d00c61e8d0482d9fbcdab24685011_1864aaea-3bf4-4d8d-9481-435b98ce79d6.webp?v=1714708939"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b4bae470a7d00c61e8d0482d9fbcdab24685011_1864aaea-3bf4-4d8d-9481-435b98ce79d6.webp?v=1714708939","width":2000},{"alt":null,"id":23876125884515,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1b556be22c7b939e4599ea4a0909409a8ea41e_d0e60aa2-6624-4074-bb81-081cb2a1a046.webp?v=1714708941"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1b556be22c7b939e4599ea4a0909409a8ea41e_d0e60aa2-6624-4074-bb81-081cb2a1a046.webp?v=1714708941","width":2000},{"alt":null,"id":23876126507107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3ac47ee5551bc11159f1d6ee47ffc29b1879231_5afc74ae-3506-49c1-90c2-9368f0100d02.webp?v=1714708944"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3ac47ee5551bc11159f1d6ee47ffc29b1879231_5afc74ae-3506-49c1-90c2-9368f0100d02.webp?v=1714708944","width":2000},{"alt":null,"id":23876126867555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db129ae50e7c49a6f951490a4dafe35fe82c9b0_8943edb9-fded-4cbc-a487-f247852ea4e6.webp?v=1714708946"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db129ae50e7c49a6f951490a4dafe35fe82c9b0_8943edb9-fded-4cbc-a487-f247852ea4e6.webp?v=1714708946","width":2000},{"alt":null,"id":23876127391843,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41f1c4e0215a8f5d8e83bb0f9ee2e6cefc29b5b0_e90a9e8b-193b-44d2-96ab-a5db5c251b2e.webp?v=1714708949"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41f1c4e0215a8f5d8e83bb0f9ee2e6cefc29b5b0_e90a9e8b-193b-44d2-96ab-a5db5c251b2e.webp?v=1714708949","width":2000},{"alt":null,"id":23876128276579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9ef65a37e9c16a622caca4dd5baceaa308f408e_814f4cb6-dee1-4b02-8598-bcfa37511b70.webp?v=1714708951"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9ef65a37e9c16a622caca4dd5baceaa308f408e_814f4cb6-dee1-4b02-8598-bcfa37511b70.webp?v=1714708951","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882798915683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB27","requires_shipping":true,"taxable":true,"featured_image":{"id":31471219277923,"product_id":7408110534755,"position":3,"created_at":"2024-05-03T12:02:14+08:00","updated_at":"2024-05-03T12:02:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d75e54ebd7992e02bd29247770fda05286e4ef5_85b9762e-4b56-4696-989f-34c78d79dae2.webp?v=1714708934","variant_ids":[41882798915683]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP千年鷹 - 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-PB27","featured_media":{"alt":null,"id":23876124606563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d75e54ebd7992e02bd29247770fda05286e4ef5_85b9762e-4b56-4696-989f-34c78d79dae2.webp?v=1714708934"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882799538275,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB27","requires_shipping":true,"taxable":true,"featured_image":{"id":31471221571683,"product_id":7408110534755,"position":8,"created_at":"2024-05-03T12:02:26+08:00","updated_at":"2024-05-03T12:02:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db129ae50e7c49a6f951490a4dafe35fe82c9b0_8943edb9-fded-4cbc-a487-f247852ea4e6.webp?v=1714708946","variant_ids":[41882799538275]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP千年鷹 - 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-PB27","featured_media":{"alt":null,"id":23876126867555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db129ae50e7c49a6f951490a4dafe35fe82c9b0_8943edb9-fded-4cbc-a487-f247852ea4e6.webp?v=1714708946"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882798915683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB27","requires_shipping":true,"taxable":true,"featured_image":{"id":31471219277923,"product_id":7408110534755,"position":3,"created_at":"2024-05-03T12:02:14+08:00","updated_at":"2024-05-03T12:02:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d75e54ebd7992e02bd29247770fda05286e4ef5_85b9762e-4b56-4696-989f-34c78d79dae2.webp?v=1714708934","variant_ids":[41882798915683]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP千年鷹 - 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-PB27","featured_media":{"alt":null,"id":23876124606563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d75e54ebd7992e02bd29247770fda05286e4ef5_85b9762e-4b56-4696-989f-34c78d79dae2.webp?v=1714708934"}},"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: "停產"
}