$product = {"id":7408075735139,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 千年鷹-線條白","handle":"iphone-13-pro-max-mod-nx-printable-pb14","description":null,"published_at":"2024-06-11T16:30:44+08:00","created_at":"2024-05-03T11:54:33+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":41882398883939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31471128281187,"product_id":7408075735139,"position":6,"created_at":"2024-05-03T11:54:49+08:00","updated_at":"2024-05-03T11:54:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282090dfe1f8d2b946359a1cf6f151d931c31df6_f32d016d-9a78-4fe8-95a7-27508669e245.webp?v=1714708489","variant_ids":[41882398883939]},"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-PB14","featured_media":{"alt":null,"id":23876033511523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282090dfe1f8d2b946359a1cf6f151d931c31df6_f32d016d-9a78-4fe8-95a7-27508669e245.webp?v=1714708489"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882399178851,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31471126184035,"product_id":7408075735139,"position":1,"created_at":"2024-05-03T11:54:36+08:00","updated_at":"2024-05-03T11:54:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcb555afabdc4821b91e1daf772dc41905b83dd2_3b541972-c5c6-4916-95ab-6a31e9827fa0.webp?v=1714708476","variant_ids":[41882399178851]},"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-PB14","featured_media":{"alt":null,"id":23876031414371,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcb555afabdc4821b91e1daf772dc41905b83dd2_3b541972-c5c6-4916-95ab-6a31e9827fa0.webp?v=1714708476"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcb555afabdc4821b91e1daf772dc41905b83dd2_3b541972-c5c6-4916-95ab-6a31e9827fa0.webp?v=1714708476","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/103cc661e40b9d93e8259313b8bbab23bc533b57_bf2c4032-7351-4a79-8c4a-a4e98cf32fda.webp?v=1714708478","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc5e819b0bfdb01d5f027c79105a56e156868eaf_c327ffb0-6428-4321-9733-a049a8728824.webp?v=1714708481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79c5ea5f60d532422613a1e5e9a66461007ee744_128b27ac-23b7-4605-b541-640983df208a.webp?v=1714708483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c45b99cd9b26293fe402c7a05901b22e3719cee_0e9e2ec3-6015-42c0-9e23-c61fedac6c56.webp?v=1714708486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282090dfe1f8d2b946359a1cf6f151d931c31df6_f32d016d-9a78-4fe8-95a7-27508669e245.webp?v=1714708489","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/363ec71d417f06fd369eace36e625d0d2a273349_6b7942e3-0cc5-4573-b578-f40728c1615d.webp?v=1714708491","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c766873b4acbe21b6a02045b6ba01c03936b6dd_e62b344e-6511-4680-b39f-ffb1e2f681c1.webp?v=1714708494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78d51d48b8b1dd5a8c8cbfa5366237de87d525cf_1953e98c-bb72-4bfb-a898-35aa732e71f5.webp?v=1714708496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a576ef6e79fec50950b0a82437f316d89417a8e1_25062e24-7053-48a0-b3c5-d1d2473cd558.webp?v=1714708499"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcb555afabdc4821b91e1daf772dc41905b83dd2_3b541972-c5c6-4916-95ab-6a31e9827fa0.webp?v=1714708476","options":["color"],"media":[{"alt":null,"id":23876031414371,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcb555afabdc4821b91e1daf772dc41905b83dd2_3b541972-c5c6-4916-95ab-6a31e9827fa0.webp?v=1714708476"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcb555afabdc4821b91e1daf772dc41905b83dd2_3b541972-c5c6-4916-95ab-6a31e9827fa0.webp?v=1714708476","width":2000},{"alt":null,"id":23876031643747,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/103cc661e40b9d93e8259313b8bbab23bc533b57_bf2c4032-7351-4a79-8c4a-a4e98cf32fda.webp?v=1714708478"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/103cc661e40b9d93e8259313b8bbab23bc533b57_bf2c4032-7351-4a79-8c4a-a4e98cf32fda.webp?v=1714708478","width":2000},{"alt":null,"id":23876032233571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc5e819b0bfdb01d5f027c79105a56e156868eaf_c327ffb0-6428-4321-9733-a049a8728824.webp?v=1714708481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc5e819b0bfdb01d5f027c79105a56e156868eaf_c327ffb0-6428-4321-9733-a049a8728824.webp?v=1714708481","width":2000},{"alt":null,"id":23876032561251,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79c5ea5f60d532422613a1e5e9a66461007ee744_128b27ac-23b7-4605-b541-640983df208a.webp?v=1714708483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79c5ea5f60d532422613a1e5e9a66461007ee744_128b27ac-23b7-4605-b541-640983df208a.webp?v=1714708483","width":2000},{"alt":null,"id":23876033085539,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c45b99cd9b26293fe402c7a05901b22e3719cee_0e9e2ec3-6015-42c0-9e23-c61fedac6c56.webp?v=1714708486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c45b99cd9b26293fe402c7a05901b22e3719cee_0e9e2ec3-6015-42c0-9e23-c61fedac6c56.webp?v=1714708486","width":2000},{"alt":null,"id":23876033511523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282090dfe1f8d2b946359a1cf6f151d931c31df6_f32d016d-9a78-4fe8-95a7-27508669e245.webp?v=1714708489"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282090dfe1f8d2b946359a1cf6f151d931c31df6_f32d016d-9a78-4fe8-95a7-27508669e245.webp?v=1714708489","width":2000},{"alt":null,"id":23876033839203,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/363ec71d417f06fd369eace36e625d0d2a273349_6b7942e3-0cc5-4573-b578-f40728c1615d.webp?v=1714708491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/363ec71d417f06fd369eace36e625d0d2a273349_6b7942e3-0cc5-4573-b578-f40728c1615d.webp?v=1714708491","width":2000},{"alt":null,"id":23876034396259,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c766873b4acbe21b6a02045b6ba01c03936b6dd_e62b344e-6511-4680-b39f-ffb1e2f681c1.webp?v=1714708494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c766873b4acbe21b6a02045b6ba01c03936b6dd_e62b344e-6511-4680-b39f-ffb1e2f681c1.webp?v=1714708494","width":2000},{"alt":null,"id":23876034625635,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78d51d48b8b1dd5a8c8cbfa5366237de87d525cf_1953e98c-bb72-4bfb-a898-35aa732e71f5.webp?v=1714708496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78d51d48b8b1dd5a8c8cbfa5366237de87d525cf_1953e98c-bb72-4bfb-a898-35aa732e71f5.webp?v=1714708496","width":2000},{"alt":null,"id":23876036264035,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a576ef6e79fec50950b0a82437f316d89417a8e1_25062e24-7053-48a0-b3c5-d1d2473cd558.webp?v=1714708499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a576ef6e79fec50950b0a82437f316d89417a8e1_25062e24-7053-48a0-b3c5-d1d2473cd558.webp?v=1714708499","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882398883939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31471128281187,"product_id":7408075735139,"position":6,"created_at":"2024-05-03T11:54:49+08:00","updated_at":"2024-05-03T11:54:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282090dfe1f8d2b946359a1cf6f151d931c31df6_f32d016d-9a78-4fe8-95a7-27508669e245.webp?v=1714708489","variant_ids":[41882398883939]},"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-PB14","featured_media":{"alt":null,"id":23876033511523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282090dfe1f8d2b946359a1cf6f151d931c31df6_f32d016d-9a78-4fe8-95a7-27508669e245.webp?v=1714708489"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882399178851,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31471126184035,"product_id":7408075735139,"position":1,"created_at":"2024-05-03T11:54:36+08:00","updated_at":"2024-05-03T11:54:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcb555afabdc4821b91e1daf772dc41905b83dd2_3b541972-c5c6-4916-95ab-6a31e9827fa0.webp?v=1714708476","variant_ids":[41882399178851]},"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-PB14","featured_media":{"alt":null,"id":23876031414371,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcb555afabdc4821b91e1daf772dc41905b83dd2_3b541972-c5c6-4916-95ab-6a31e9827fa0.webp?v=1714708476"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882398883939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31471128281187,"product_id":7408075735139,"position":6,"created_at":"2024-05-03T11:54:49+08:00","updated_at":"2024-05-03T11:54:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282090dfe1f8d2b946359a1cf6f151d931c31df6_f32d016d-9a78-4fe8-95a7-27508669e245.webp?v=1714708489","variant_ids":[41882398883939]},"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-PB14","featured_media":{"alt":null,"id":23876033511523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282090dfe1f8d2b946359a1cf6f151d931c31df6_f32d016d-9a78-4fe8-95a7-27508669e245.webp?v=1714708489"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(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: "停產"
}