$product = {"id":7408088678499,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 柴語錄 Shiba Says - 超不穩的疊疊樂","handle":"iphone-13-pro-max-mod-nx-printable-fz05","description":null,"published_at":"2024-06-11T16:31:05+08:00","created_at":"2024-05-03T11:57:34+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":41882546176099,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31471165800547,"product_id":7408088678499,"position":7,"created_at":"2024-05-03T11:57:51+08:00","updated_at":"2024-05-03T11:57:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e1a1c00847591dc1471df3ecb485c511194b88e_e43009ec-3b53-450d-998d-8b20fafb97c5.webp?v=1714708671","variant_ids":[41882546176099]},"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-FZ05","featured_media":{"alt":null,"id":23876071063651,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e1a1c00847591dc1471df3ecb485c511194b88e_e43009ec-3b53-450d-998d-8b20fafb97c5.webp?v=1714708671"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882546471011,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31471166554211,"product_id":7408088678499,"position":9,"created_at":"2024-05-03T11:57:55+08:00","updated_at":"2024-05-03T11:57:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eda42ce11e5a4ab9ea83f1b5df5e938b5b91722_bc0f3531-fe50-4ad9-8d2c-0f2d4c4fc93b.webp?v=1714708675","variant_ids":[41882546471011]},"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-FZ05","featured_media":{"alt":null,"id":23876071850083,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eda42ce11e5a4ab9ea83f1b5df5e938b5b91722_bc0f3531-fe50-4ad9-8d2c-0f2d4c4fc93b.webp?v=1714708675"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3d36ab7c0b8fbd1f020e3582819cedd760af275_f81aa585-a1f8-4584-a1ac-09f653a31dba.webp?v=1714708657","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce7e77e4fbdf93363a35ce2e21d5285277ea80c3_4c318f3b-51a9-45eb-b81e-2484b8eb15dd.webp?v=1714708659","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62a1bd3454a42fc0c0ebbc22d6af8b5157d26482_031224d2-18b4-4c83-8f62-c986148c0242.webp?v=1714708662","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bccd1585640e22bef95f22dd38ebfc47f9bac38b_4ba595da-082e-4d77-aab2-dafd1cd6940f.webp?v=1714708664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/474dc3d2ce4c10b1a110e21264dba583c202b539_b281b95d-031f-48be-8a20-0f7a202e1090.webp?v=1714708666","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14a876e207758e5b34029b089e0aa9ae52f552d1_dccf6a6c-90fe-48b7-a06a-7973ee4b54b0.webp?v=1714708669","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e1a1c00847591dc1471df3ecb485c511194b88e_e43009ec-3b53-450d-998d-8b20fafb97c5.webp?v=1714708671","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14c031d293249712a65be4c08a564be91b8a3273_ccbdc1fd-1955-4450-b005-fa7a7ec272f2.webp?v=1714708673","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eda42ce11e5a4ab9ea83f1b5df5e938b5b91722_bc0f3531-fe50-4ad9-8d2c-0f2d4c4fc93b.webp?v=1714708675","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcc148f45e571dc35a06be10eacc9a833444325a_5b2b9610-6583-442f-98a1-6adc91f9ff1b.webp?v=1714708678"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3d36ab7c0b8fbd1f020e3582819cedd760af275_f81aa585-a1f8-4584-a1ac-09f653a31dba.webp?v=1714708657","options":["color"],"media":[{"alt":null,"id":23876068343907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3d36ab7c0b8fbd1f020e3582819cedd760af275_f81aa585-a1f8-4584-a1ac-09f653a31dba.webp?v=1714708657"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3d36ab7c0b8fbd1f020e3582819cedd760af275_f81aa585-a1f8-4584-a1ac-09f653a31dba.webp?v=1714708657","width":2000},{"alt":null,"id":23876068868195,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce7e77e4fbdf93363a35ce2e21d5285277ea80c3_4c318f3b-51a9-45eb-b81e-2484b8eb15dd.webp?v=1714708659"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce7e77e4fbdf93363a35ce2e21d5285277ea80c3_4c318f3b-51a9-45eb-b81e-2484b8eb15dd.webp?v=1714708659","width":2000},{"alt":null,"id":23876069294179,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62a1bd3454a42fc0c0ebbc22d6af8b5157d26482_031224d2-18b4-4c83-8f62-c986148c0242.webp?v=1714708662"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62a1bd3454a42fc0c0ebbc22d6af8b5157d26482_031224d2-18b4-4c83-8f62-c986148c0242.webp?v=1714708662","width":2000},{"alt":null,"id":23876069720163,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bccd1585640e22bef95f22dd38ebfc47f9bac38b_4ba595da-082e-4d77-aab2-dafd1cd6940f.webp?v=1714708664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bccd1585640e22bef95f22dd38ebfc47f9bac38b_4ba595da-082e-4d77-aab2-dafd1cd6940f.webp?v=1714708664","width":2000},{"alt":null,"id":23876070146147,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/474dc3d2ce4c10b1a110e21264dba583c202b539_b281b95d-031f-48be-8a20-0f7a202e1090.webp?v=1714708666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/474dc3d2ce4c10b1a110e21264dba583c202b539_b281b95d-031f-48be-8a20-0f7a202e1090.webp?v=1714708666","width":2000},{"alt":null,"id":23876070604899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14a876e207758e5b34029b089e0aa9ae52f552d1_dccf6a6c-90fe-48b7-a06a-7973ee4b54b0.webp?v=1714708669"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14a876e207758e5b34029b089e0aa9ae52f552d1_dccf6a6c-90fe-48b7-a06a-7973ee4b54b0.webp?v=1714708669","width":2000},{"alt":null,"id":23876071063651,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e1a1c00847591dc1471df3ecb485c511194b88e_e43009ec-3b53-450d-998d-8b20fafb97c5.webp?v=1714708671"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e1a1c00847591dc1471df3ecb485c511194b88e_e43009ec-3b53-450d-998d-8b20fafb97c5.webp?v=1714708671","width":2000},{"alt":null,"id":23876071424099,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14c031d293249712a65be4c08a564be91b8a3273_ccbdc1fd-1955-4450-b005-fa7a7ec272f2.webp?v=1714708673"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14c031d293249712a65be4c08a564be91b8a3273_ccbdc1fd-1955-4450-b005-fa7a7ec272f2.webp?v=1714708673","width":2000},{"alt":null,"id":23876071850083,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eda42ce11e5a4ab9ea83f1b5df5e938b5b91722_bc0f3531-fe50-4ad9-8d2c-0f2d4c4fc93b.webp?v=1714708675"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eda42ce11e5a4ab9ea83f1b5df5e938b5b91722_bc0f3531-fe50-4ad9-8d2c-0f2d4c4fc93b.webp?v=1714708675","width":2000},{"alt":null,"id":23876072308835,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcc148f45e571dc35a06be10eacc9a833444325a_5b2b9610-6583-442f-98a1-6adc91f9ff1b.webp?v=1714708678"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcc148f45e571dc35a06be10eacc9a833444325a_5b2b9610-6583-442f-98a1-6adc91f9ff1b.webp?v=1714708678","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882546176099,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31471165800547,"product_id":7408088678499,"position":7,"created_at":"2024-05-03T11:57:51+08:00","updated_at":"2024-05-03T11:57:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e1a1c00847591dc1471df3ecb485c511194b88e_e43009ec-3b53-450d-998d-8b20fafb97c5.webp?v=1714708671","variant_ids":[41882546176099]},"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-FZ05","featured_media":{"alt":null,"id":23876071063651,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e1a1c00847591dc1471df3ecb485c511194b88e_e43009ec-3b53-450d-998d-8b20fafb97c5.webp?v=1714708671"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882546471011,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31471166554211,"product_id":7408088678499,"position":9,"created_at":"2024-05-03T11:57:55+08:00","updated_at":"2024-05-03T11:57:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eda42ce11e5a4ab9ea83f1b5df5e938b5b91722_bc0f3531-fe50-4ad9-8d2c-0f2d4c4fc93b.webp?v=1714708675","variant_ids":[41882546471011]},"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-FZ05","featured_media":{"alt":null,"id":23876071850083,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eda42ce11e5a4ab9ea83f1b5df5e938b5b91722_bc0f3531-fe50-4ad9-8d2c-0f2d4c4fc93b.webp?v=1714708675"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882546176099,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31471165800547,"product_id":7408088678499,"position":7,"created_at":"2024-05-03T11:57:51+08:00","updated_at":"2024-05-03T11:57:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e1a1c00847591dc1471df3ecb485c511194b88e_e43009ec-3b53-450d-998d-8b20fafb97c5.webp?v=1714708671","variant_ids":[41882546176099]},"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-FZ05","featured_media":{"alt":null,"id":23876071063651,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e1a1c00847591dc1471df3ecb485c511194b88e_e43009ec-3b53-450d-998d-8b20fafb97c5.webp?v=1714708671"}},"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: "停產"
}