$product = {"id":7408167551075,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士","handle":"iphone-13-pro-max-mod-nx-printable-pb109","description":null,"published_at":"2024-06-11T16:33:12+08:00","created_at":"2024-05-03T12:12:58+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":41883426881635,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31471363260515,"product_id":7408167551075,"position":1,"created_at":"2024-05-03T12:13:01+08:00","updated_at":"2024-05-03T12:13:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e28ea5b28365c0a51a2061ea817eb2b746aac1_43b59bb1-5309-4f3f-a3f3-87729ee0fb75.webp?v=1714709581","variant_ids":[41883426881635]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23876269211747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e28ea5b28365c0a51a2061ea817eb2b746aac1_43b59bb1-5309-4f3f-a3f3-87729ee0fb75.webp?v=1714709581"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883427176547,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31471364178019,"product_id":7408167551075,"position":3,"created_at":"2024-05-03T12:13:05+08:00","updated_at":"2024-05-03T12:13:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a41cfc6ea607e4d0e57d581ac475baf34843bb0e_92e69da9-917f-42aa-ba63-9f6993f72778.webp?v=1714709585","variant_ids":[41883427176547]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23876270129251,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a41cfc6ea607e4d0e57d581ac475baf34843bb0e_92e69da9-917f-42aa-ba63-9f6993f72778.webp?v=1714709585"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e28ea5b28365c0a51a2061ea817eb2b746aac1_43b59bb1-5309-4f3f-a3f3-87729ee0fb75.webp?v=1714709581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f6b62bc3cd2a18e93e078d23823af010d240f9_b948961c-0073-496d-87cb-dcd752b591f6.webp?v=1714709583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a41cfc6ea607e4d0e57d581ac475baf34843bb0e_92e69da9-917f-42aa-ba63-9f6993f72778.webp?v=1714709585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8293e2f30cb66a49e6073c2a4d5fd1d1ae06c8cd_eaeb4f33-7306-4ff7-bf99-857ebacd4993.webp?v=1714709588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a7785aa57b88585f3b5c6d74513f9d9e5ec7b5_ca1aad66-3d5c-48d0-a90d-91da446ea693.webp?v=1714709590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e515aee9502fbf845a2f2995b109ac24101f1613_084472e8-3a98-49c0-8434-33dc37c5ff9e.webp?v=1714709592","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc5aece448c6bf7b7b4a22fdeb43c8cfa98c1539_d4eed2fd-021a-4439-89b9-e58443031888.webp?v=1714709594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311baae0f1190e0828227ee97a79d2f1b8d9e893_9661ce2f-877f-4222-87f0-1c27573b5a20.webp?v=1714709597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15c1b20fe4d0fa4bc3e82abb22f7a30d8e4f193a_1f4b1ff3-58f0-4457-b11e-194d01eeb7f7.webp?v=1714709599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e3157b3e53a53ba3958bdad2ceda4a26468b450_fd4f6fdf-8dfa-45e9-85f5-8b8e98afb641.webp?v=1714709601"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e28ea5b28365c0a51a2061ea817eb2b746aac1_43b59bb1-5309-4f3f-a3f3-87729ee0fb75.webp?v=1714709581","options":["color"],"media":[{"alt":null,"id":23876269211747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e28ea5b28365c0a51a2061ea817eb2b746aac1_43b59bb1-5309-4f3f-a3f3-87729ee0fb75.webp?v=1714709581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e28ea5b28365c0a51a2061ea817eb2b746aac1_43b59bb1-5309-4f3f-a3f3-87729ee0fb75.webp?v=1714709581","width":2000},{"alt":null,"id":23876269670499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f6b62bc3cd2a18e93e078d23823af010d240f9_b948961c-0073-496d-87cb-dcd752b591f6.webp?v=1714709583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f6b62bc3cd2a18e93e078d23823af010d240f9_b948961c-0073-496d-87cb-dcd752b591f6.webp?v=1714709583","width":2000},{"alt":null,"id":23876270129251,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a41cfc6ea607e4d0e57d581ac475baf34843bb0e_92e69da9-917f-42aa-ba63-9f6993f72778.webp?v=1714709585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a41cfc6ea607e4d0e57d581ac475baf34843bb0e_92e69da9-917f-42aa-ba63-9f6993f72778.webp?v=1714709585","width":2000},{"alt":null,"id":23876270620771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8293e2f30cb66a49e6073c2a4d5fd1d1ae06c8cd_eaeb4f33-7306-4ff7-bf99-857ebacd4993.webp?v=1714709588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8293e2f30cb66a49e6073c2a4d5fd1d1ae06c8cd_eaeb4f33-7306-4ff7-bf99-857ebacd4993.webp?v=1714709588","width":2000},{"alt":null,"id":23876271145059,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a7785aa57b88585f3b5c6d74513f9d9e5ec7b5_ca1aad66-3d5c-48d0-a90d-91da446ea693.webp?v=1714709590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a7785aa57b88585f3b5c6d74513f9d9e5ec7b5_ca1aad66-3d5c-48d0-a90d-91da446ea693.webp?v=1714709590","width":2000},{"alt":null,"id":23876271702115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e515aee9502fbf845a2f2995b109ac24101f1613_084472e8-3a98-49c0-8434-33dc37c5ff9e.webp?v=1714709592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e515aee9502fbf845a2f2995b109ac24101f1613_084472e8-3a98-49c0-8434-33dc37c5ff9e.webp?v=1714709592","width":2000},{"alt":null,"id":23876273340515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc5aece448c6bf7b7b4a22fdeb43c8cfa98c1539_d4eed2fd-021a-4439-89b9-e58443031888.webp?v=1714709594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc5aece448c6bf7b7b4a22fdeb43c8cfa98c1539_d4eed2fd-021a-4439-89b9-e58443031888.webp?v=1714709594","width":2000},{"alt":null,"id":23876273897571,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311baae0f1190e0828227ee97a79d2f1b8d9e893_9661ce2f-877f-4222-87f0-1c27573b5a20.webp?v=1714709597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311baae0f1190e0828227ee97a79d2f1b8d9e893_9661ce2f-877f-4222-87f0-1c27573b5a20.webp?v=1714709597","width":2000},{"alt":null,"id":23876274389091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15c1b20fe4d0fa4bc3e82abb22f7a30d8e4f193a_1f4b1ff3-58f0-4457-b11e-194d01eeb7f7.webp?v=1714709599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15c1b20fe4d0fa4bc3e82abb22f7a30d8e4f193a_1f4b1ff3-58f0-4457-b11e-194d01eeb7f7.webp?v=1714709599","width":2000},{"alt":null,"id":23876274880611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e3157b3e53a53ba3958bdad2ceda4a26468b450_fd4f6fdf-8dfa-45e9-85f5-8b8e98afb641.webp?v=1714709601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e3157b3e53a53ba3958bdad2ceda4a26468b450_fd4f6fdf-8dfa-45e9-85f5-8b8e98afb641.webp?v=1714709601","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41883426881635,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31471363260515,"product_id":7408167551075,"position":1,"created_at":"2024-05-03T12:13:01+08:00","updated_at":"2024-05-03T12:13:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e28ea5b28365c0a51a2061ea817eb2b746aac1_43b59bb1-5309-4f3f-a3f3-87729ee0fb75.webp?v=1714709581","variant_ids":[41883426881635]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23876269211747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e28ea5b28365c0a51a2061ea817eb2b746aac1_43b59bb1-5309-4f3f-a3f3-87729ee0fb75.webp?v=1714709581"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883427176547,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31471364178019,"product_id":7408167551075,"position":3,"created_at":"2024-05-03T12:13:05+08:00","updated_at":"2024-05-03T12:13:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a41cfc6ea607e4d0e57d581ac475baf34843bb0e_92e69da9-917f-42aa-ba63-9f6993f72778.webp?v=1714709585","variant_ids":[41883427176547]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23876270129251,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a41cfc6ea607e4d0e57d581ac475baf34843bb0e_92e69da9-917f-42aa-ba63-9f6993f72778.webp?v=1714709585"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41883426881635,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31471363260515,"product_id":7408167551075,"position":1,"created_at":"2024-05-03T12:13:01+08:00","updated_at":"2024-05-03T12:13:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e28ea5b28365c0a51a2061ea817eb2b746aac1_43b59bb1-5309-4f3f-a3f3-87729ee0fb75.webp?v=1714709581","variant_ids":[41883426881635]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23876269211747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e28ea5b28365c0a51a2061ea817eb2b746aac1_43b59bb1-5309-4f3f-a3f3-87729ee0fb75.webp?v=1714709581"}},"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: "停產"
}