$product = {"id":7408163520611,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 柴語錄 Shiba Says - 放我出去♥","handle":"iphone-13-pro-max-mod-nx-printable-fz04","description":null,"published_at":"2024-06-11T16:33:06+08:00","created_at":"2024-05-03T12:12:18+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-柴語錄 Shiba Says","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-shiba-says","device-iPhone 13 Pro Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-shiba-says","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":41883390902371,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31471357689955,"product_id":7408163520611,"position":6,"created_at":"2024-05-03T12:12:32+08:00","updated_at":"2024-05-03T12:12:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff66d1eb746228647b4a48014efe26862521a0da_a561a9d3-7f76-466e-a8cc-289911e307b7.webp?v=1714709552","variant_ids":[41883390902371]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-FZ04","featured_media":{"alt":null,"id":23876263641187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff66d1eb746228647b4a48014efe26862521a0da_a561a9d3-7f76-466e-a8cc-289911e307b7.webp?v=1714709552"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883391197283,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31471358967907,"product_id":7408163520611,"position":9,"created_at":"2024-05-03T12:12:39+08:00","updated_at":"2024-05-03T12:12:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d5d3a8e18c66796c06ce5fbd99f795a18061075_7d5e0784-db7a-4ede-aeb5-b335e9c17602.webp?v=1714709559","variant_ids":[41883391197283]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01232J5-FZ04","featured_media":{"alt":null,"id":23876264886371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d5d3a8e18c66796c06ce5fbd99f795a18061075_7d5e0784-db7a-4ede-aeb5-b335e9c17602.webp?v=1714709559"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1757164b017535cb079b5b2f30b85257afff9273_abfe51fe-c7ce-4194-9b49-9159708fa86a.webp?v=1714709540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8bcc1a4a0231781a1fbf380c33398a9b9f33eec_0f64d751-4aee-47c2-a5a4-cfcc08cfebfe.webp?v=1714709543","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b3693ed3fa917c1218b35ef49a2f4802efb3957_2713935c-f3e5-456f-b8b6-3a1f5618e1ad.webp?v=1714709545","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f92026fd57adba5011af917cd4cff3ac68da5d2_e5c2d418-8dad-4a9c-a5b7-7aaf7484b74f.webp?v=1714709547","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/271ea2f4df31f030e7f103d1a76ff86684109a7b_4a1994e6-5e40-4983-a1da-17dbd31c515f.webp?v=1714709550","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff66d1eb746228647b4a48014efe26862521a0da_a561a9d3-7f76-466e-a8cc-289911e307b7.webp?v=1714709552","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d61fdecd2060696b66cae510047ab45bfe46ee2_93d19ad7-8bab-41fc-b629-4553969a3953.webp?v=1714709554","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07a7990817372e4db74d39b978bda56322691c7a_b5ee3c5d-7601-49b8-a5a7-120c335fc038.webp?v=1714709556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d5d3a8e18c66796c06ce5fbd99f795a18061075_7d5e0784-db7a-4ede-aeb5-b335e9c17602.webp?v=1714709559","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a0105c076cc9294fc99d8876371b17b4a7d2af5_1b13ec84-1582-47cc-bffb-9cf23c9c0260.webp?v=1714709561"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1757164b017535cb079b5b2f30b85257afff9273_abfe51fe-c7ce-4194-9b49-9159708fa86a.webp?v=1714709540","options":["color"],"media":[{"alt":null,"id":23876261609571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1757164b017535cb079b5b2f30b85257afff9273_abfe51fe-c7ce-4194-9b49-9159708fa86a.webp?v=1714709540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1757164b017535cb079b5b2f30b85257afff9273_abfe51fe-c7ce-4194-9b49-9159708fa86a.webp?v=1714709540","width":2000},{"alt":null,"id":23876262002787,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8bcc1a4a0231781a1fbf380c33398a9b9f33eec_0f64d751-4aee-47c2-a5a4-cfcc08cfebfe.webp?v=1714709543"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8bcc1a4a0231781a1fbf380c33398a9b9f33eec_0f64d751-4aee-47c2-a5a4-cfcc08cfebfe.webp?v=1714709543","width":2000},{"alt":null,"id":23876262363235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b3693ed3fa917c1218b35ef49a2f4802efb3957_2713935c-f3e5-456f-b8b6-3a1f5618e1ad.webp?v=1714709545"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b3693ed3fa917c1218b35ef49a2f4802efb3957_2713935c-f3e5-456f-b8b6-3a1f5618e1ad.webp?v=1714709545","width":2000},{"alt":null,"id":23876262723683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f92026fd57adba5011af917cd4cff3ac68da5d2_e5c2d418-8dad-4a9c-a5b7-7aaf7484b74f.webp?v=1714709547"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f92026fd57adba5011af917cd4cff3ac68da5d2_e5c2d418-8dad-4a9c-a5b7-7aaf7484b74f.webp?v=1714709547","width":2000},{"alt":null,"id":23876263247971,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/271ea2f4df31f030e7f103d1a76ff86684109a7b_4a1994e6-5e40-4983-a1da-17dbd31c515f.webp?v=1714709550"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/271ea2f4df31f030e7f103d1a76ff86684109a7b_4a1994e6-5e40-4983-a1da-17dbd31c515f.webp?v=1714709550","width":2000},{"alt":null,"id":23876263641187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff66d1eb746228647b4a48014efe26862521a0da_a561a9d3-7f76-466e-a8cc-289911e307b7.webp?v=1714709552"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff66d1eb746228647b4a48014efe26862521a0da_a561a9d3-7f76-466e-a8cc-289911e307b7.webp?v=1714709552","width":2000},{"alt":null,"id":23876263968867,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d61fdecd2060696b66cae510047ab45bfe46ee2_93d19ad7-8bab-41fc-b629-4553969a3953.webp?v=1714709554"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d61fdecd2060696b66cae510047ab45bfe46ee2_93d19ad7-8bab-41fc-b629-4553969a3953.webp?v=1714709554","width":2000},{"alt":null,"id":23876264493155,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07a7990817372e4db74d39b978bda56322691c7a_b5ee3c5d-7601-49b8-a5a7-120c335fc038.webp?v=1714709556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07a7990817372e4db74d39b978bda56322691c7a_b5ee3c5d-7601-49b8-a5a7-120c335fc038.webp?v=1714709556","width":2000},{"alt":null,"id":23876264886371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d5d3a8e18c66796c06ce5fbd99f795a18061075_7d5e0784-db7a-4ede-aeb5-b335e9c17602.webp?v=1714709559"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d5d3a8e18c66796c06ce5fbd99f795a18061075_7d5e0784-db7a-4ede-aeb5-b335e9c17602.webp?v=1714709559","width":2000},{"alt":null,"id":23876265443427,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a0105c076cc9294fc99d8876371b17b4a7d2af5_1b13ec84-1582-47cc-bffb-9cf23c9c0260.webp?v=1714709561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a0105c076cc9294fc99d8876371b17b4a7d2af5_1b13ec84-1582-47cc-bffb-9cf23c9c0260.webp?v=1714709561","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41883390902371,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31471357689955,"product_id":7408163520611,"position":6,"created_at":"2024-05-03T12:12:32+08:00","updated_at":"2024-05-03T12:12:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff66d1eb746228647b4a48014efe26862521a0da_a561a9d3-7f76-466e-a8cc-289911e307b7.webp?v=1714709552","variant_ids":[41883390902371]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-FZ04","featured_media":{"alt":null,"id":23876263641187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff66d1eb746228647b4a48014efe26862521a0da_a561a9d3-7f76-466e-a8cc-289911e307b7.webp?v=1714709552"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883391197283,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31471358967907,"product_id":7408163520611,"position":9,"created_at":"2024-05-03T12:12:39+08:00","updated_at":"2024-05-03T12:12:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d5d3a8e18c66796c06ce5fbd99f795a18061075_7d5e0784-db7a-4ede-aeb5-b335e9c17602.webp?v=1714709559","variant_ids":[41883391197283]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01232J5-FZ04","featured_media":{"alt":null,"id":23876264886371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d5d3a8e18c66796c06ce5fbd99f795a18061075_7d5e0784-db7a-4ede-aeb5-b335e9c17602.webp?v=1714709559"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41883390902371,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31471357689955,"product_id":7408163520611,"position":6,"created_at":"2024-05-03T12:12:32+08:00","updated_at":"2024-05-03T12:12:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff66d1eb746228647b4a48014efe26862521a0da_a561a9d3-7f76-466e-a8cc-289911e307b7.webp?v=1714709552","variant_ids":[41883390902371]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-FZ04","featured_media":{"alt":null,"id":23876263641187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff66d1eb746228647b4a48014efe26862521a0da_a561a9d3-7f76-466e-a8cc-289911e307b7.webp?v=1714709552"}},"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: "停產"
}