$product = {"id":7408111714403,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰漫畫-貼紙系列","handle":"iphone-13-pro-max-mod-nx-printable-pb83","description":null,"published_at":"2024-06-11T16:31:42+08:00","created_at":"2024-05-03T12:02:18+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":41882811072611,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31471223636067,"product_id":7408111714403,"position":6,"created_at":"2024-05-03T12:02:34+08:00","updated_at":"2024-05-03T12:02:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f8582a804b3f765ad01bd762f11b0b2e9e176ca_4b4ecfaf-9c97-473a-ad34-75591b3de5b7.webp?v=1714708954","variant_ids":[41882811072611]},"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-PB83","featured_media":{"alt":null,"id":23876128964707,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f8582a804b3f765ad01bd762f11b0b2e9e176ca_4b4ecfaf-9c97-473a-ad34-75591b3de5b7.webp?v=1714708954"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882811367523,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31471223177315,"product_id":7408111714403,"position":5,"created_at":"2024-05-03T12:02:31+08:00","updated_at":"2024-05-03T12:02:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/781c85c689ce12de0cb5141074714f3b2508ddc6_64adfb63-da44-42af-84a6-7a5c1cbad374.webp?v=1714708951","variant_ids":[41882811367523]},"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-PB83","featured_media":{"alt":null,"id":23876128440419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/781c85c689ce12de0cb5141074714f3b2508ddc6_64adfb63-da44-42af-84a6-7a5c1cbad374.webp?v=1714708951"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1e56e9fede4c75ba2ea6abacfdf6b3e66e2034e_eda367cf-6b9c-45ee-87ae-574136f406b3.webp?v=1714708941","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ca1d30e362d46e93aa44629baeb8c68f35c08d9_db34861a-c4ce-4038-914d-a011c457c056.webp?v=1714708943","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb7ed3b99e2255bcf81cfe4fd85d98464f1ce7c_35aa078c-8e6e-4743-84bf-759bd7f29e2b.webp?v=1714708946","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9122fb9cdad99b0054c67a815664abedf8aa5a03_7d66b024-5633-41f5-aac3-7bf80a5f6021.webp?v=1714708949","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/781c85c689ce12de0cb5141074714f3b2508ddc6_64adfb63-da44-42af-84a6-7a5c1cbad374.webp?v=1714708951","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f8582a804b3f765ad01bd762f11b0b2e9e176ca_4b4ecfaf-9c97-473a-ad34-75591b3de5b7.webp?v=1714708954","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b2d9e08d3cafe76a9bc1df559d371ad45c57a55_66a1ec74-1024-4b0f-a035-69dd19af1409.webp?v=1714708957","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab8eb600ef46e5fd4339b5bb0417fc199a89c56d_b62d69b7-d229-4ec5-b534-d7b7317100c9.webp?v=1714708959","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164a2c0e17b411adedca4580cf7078476cef5b78_9d03c684-bb90-437b-b089-e2b3c14f1c16.webp?v=1714708962","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/326302bbc7e99385a2ba32afd527a69eaa76a46e_45dae2dd-9af4-41c4-9723-629b11f8ae16.webp?v=1714708964"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1e56e9fede4c75ba2ea6abacfdf6b3e66e2034e_eda367cf-6b9c-45ee-87ae-574136f406b3.webp?v=1714708941","options":["color"],"media":[{"alt":null,"id":23876125818979,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1e56e9fede4c75ba2ea6abacfdf6b3e66e2034e_eda367cf-6b9c-45ee-87ae-574136f406b3.webp?v=1714708941"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1e56e9fede4c75ba2ea6abacfdf6b3e66e2034e_eda367cf-6b9c-45ee-87ae-574136f406b3.webp?v=1714708941","width":2000},{"alt":null,"id":23876126343267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ca1d30e362d46e93aa44629baeb8c68f35c08d9_db34861a-c4ce-4038-914d-a011c457c056.webp?v=1714708943"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ca1d30e362d46e93aa44629baeb8c68f35c08d9_db34861a-c4ce-4038-914d-a011c457c056.webp?v=1714708943","width":2000},{"alt":null,"id":23876126834787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb7ed3b99e2255bcf81cfe4fd85d98464f1ce7c_35aa078c-8e6e-4743-84bf-759bd7f29e2b.webp?v=1714708946"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb7ed3b99e2255bcf81cfe4fd85d98464f1ce7c_35aa078c-8e6e-4743-84bf-759bd7f29e2b.webp?v=1714708946","width":2000},{"alt":null,"id":23876127555683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9122fb9cdad99b0054c67a815664abedf8aa5a03_7d66b024-5633-41f5-aac3-7bf80a5f6021.webp?v=1714708949"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9122fb9cdad99b0054c67a815664abedf8aa5a03_7d66b024-5633-41f5-aac3-7bf80a5f6021.webp?v=1714708949","width":2000},{"alt":null,"id":23876128440419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/781c85c689ce12de0cb5141074714f3b2508ddc6_64adfb63-da44-42af-84a6-7a5c1cbad374.webp?v=1714708951"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/781c85c689ce12de0cb5141074714f3b2508ddc6_64adfb63-da44-42af-84a6-7a5c1cbad374.webp?v=1714708951","width":2000},{"alt":null,"id":23876128964707,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f8582a804b3f765ad01bd762f11b0b2e9e176ca_4b4ecfaf-9c97-473a-ad34-75591b3de5b7.webp?v=1714708954"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f8582a804b3f765ad01bd762f11b0b2e9e176ca_4b4ecfaf-9c97-473a-ad34-75591b3de5b7.webp?v=1714708954","width":2000},{"alt":null,"id":23876129423459,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b2d9e08d3cafe76a9bc1df559d371ad45c57a55_66a1ec74-1024-4b0f-a035-69dd19af1409.webp?v=1714708957"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b2d9e08d3cafe76a9bc1df559d371ad45c57a55_66a1ec74-1024-4b0f-a035-69dd19af1409.webp?v=1714708957","width":2000},{"alt":null,"id":23876129980515,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab8eb600ef46e5fd4339b5bb0417fc199a89c56d_b62d69b7-d229-4ec5-b534-d7b7317100c9.webp?v=1714708959"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab8eb600ef46e5fd4339b5bb0417fc199a89c56d_b62d69b7-d229-4ec5-b534-d7b7317100c9.webp?v=1714708959","width":2000},{"alt":null,"id":23876130799715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164a2c0e17b411adedca4580cf7078476cef5b78_9d03c684-bb90-437b-b089-e2b3c14f1c16.webp?v=1714708962"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164a2c0e17b411adedca4580cf7078476cef5b78_9d03c684-bb90-437b-b089-e2b3c14f1c16.webp?v=1714708962","width":2000},{"alt":null,"id":23876131684451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/326302bbc7e99385a2ba32afd527a69eaa76a46e_45dae2dd-9af4-41c4-9723-629b11f8ae16.webp?v=1714708964"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/326302bbc7e99385a2ba32afd527a69eaa76a46e_45dae2dd-9af4-41c4-9723-629b11f8ae16.webp?v=1714708964","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882811072611,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31471223636067,"product_id":7408111714403,"position":6,"created_at":"2024-05-03T12:02:34+08:00","updated_at":"2024-05-03T12:02:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f8582a804b3f765ad01bd762f11b0b2e9e176ca_4b4ecfaf-9c97-473a-ad34-75591b3de5b7.webp?v=1714708954","variant_ids":[41882811072611]},"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-PB83","featured_media":{"alt":null,"id":23876128964707,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f8582a804b3f765ad01bd762f11b0b2e9e176ca_4b4ecfaf-9c97-473a-ad34-75591b3de5b7.webp?v=1714708954"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882811367523,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31471223177315,"product_id":7408111714403,"position":5,"created_at":"2024-05-03T12:02:31+08:00","updated_at":"2024-05-03T12:02:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/781c85c689ce12de0cb5141074714f3b2508ddc6_64adfb63-da44-42af-84a6-7a5c1cbad374.webp?v=1714708951","variant_ids":[41882811367523]},"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-PB83","featured_media":{"alt":null,"id":23876128440419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/781c85c689ce12de0cb5141074714f3b2508ddc6_64adfb63-da44-42af-84a6-7a5c1cbad374.webp?v=1714708951"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882811072611,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31471223636067,"product_id":7408111714403,"position":6,"created_at":"2024-05-03T12:02:34+08:00","updated_at":"2024-05-03T12:02:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f8582a804b3f765ad01bd762f11b0b2e9e176ca_4b4ecfaf-9c97-473a-ad34-75591b3de5b7.webp?v=1714708954","variant_ids":[41882811072611]},"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-PB83","featured_media":{"alt":null,"id":23876128964707,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f8582a804b3f765ad01bd762f11b0b2e9e176ca_4b4ecfaf-9c97-473a-ad34-75591b3de5b7.webp?v=1714708954"}},"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: "停產"
}