$product = {"id":7415962730595,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Pixel Jeff 皮傑 - Work Day","handle":"iphone-xs-max-mod-nx-printable-hq03","description":null,"published_at":"2024-06-11T16:49:03+08:00","created_at":"2024-05-06T12:32:54+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone XS Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-pixeljeff","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":41915981725795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-HQ03","requires_shipping":true,"taxable":true,"featured_image":{"id":31490847998051,"product_id":7415962730595,"position":4,"created_at":"2024-05-06T12:33:04+08:00","updated_at":"2024-05-06T12:33:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/340e31881ef98d40cbd6e9ff76f2972257ad574a_1b3cb77e-b443-4e1d-a1af-b1a435a03516.webp?v=1714969984","variant_ids":[41915981725795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Pixel Jeff 皮傑 - Work Day - 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":"NPB0108624-HQ03","featured_media":{"alt":null,"id":23896254840931,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/340e31881ef98d40cbd6e9ff76f2972257ad574a_1b3cb77e-b443-4e1d-a1af-b1a435a03516.webp?v=1714969984"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c46356f2fd31620b7cf6aa1ff71e9bb2ea65cd0f_cc7bd716-0c87-45c4-b811-3b3083ace615.webp?v=1714969976","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4b675a557665f1f282f686d61dcfbd84d156e05_e08bd9cc-5a21-4f1d-aa01-1c2344c61174.webp?v=1714969978","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eefba8d2cd20061fc328992fbeea8ce6f5dd2a13_a50e6e08-bf51-4331-84ba-72e095a5151b.webp?v=1714969981","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/340e31881ef98d40cbd6e9ff76f2972257ad574a_1b3cb77e-b443-4e1d-a1af-b1a435a03516.webp?v=1714969984","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00522fff43b9dbc4a9d989e0a6a0fc0090bf7190_86e5afec-085d-43da-9d8b-c3e94ac61453.webp?v=1714969986","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84094fd910693572352cccf2c5306d092c2022b6_3e1b6f8f-c176-4e21-93f3-81628b19b307.webp?v=1714969989","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/673d4404b4a8cc6ff187f6117a7e09235b697f11_2fcea9d5-1233-4e1a-a7af-59c5252f61b8.webp?v=1714969991","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9dc624c83cb1beb9e1e4e8b2739b26f25892913_5186f17d-ce79-4bb6-bf4c-d2077e7edf85.webp?v=1714969993","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf365fc6eb8964ff917d2e0131f70d08378784b_54d35f8f-bb5c-4c3a-9aa8-07c0f253c7d5.webp?v=1714969996","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d3acf2c0312627799c7edbfab4cc0845be5ef3_4c977c71-c36f-48f0-a180-504de70edbd0.webp?v=1714969998"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c46356f2fd31620b7cf6aa1ff71e9bb2ea65cd0f_cc7bd716-0c87-45c4-b811-3b3083ace615.webp?v=1714969976","options":["color"],"media":[{"alt":null,"id":23896252383331,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c46356f2fd31620b7cf6aa1ff71e9bb2ea65cd0f_cc7bd716-0c87-45c4-b811-3b3083ace615.webp?v=1714969976"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c46356f2fd31620b7cf6aa1ff71e9bb2ea65cd0f_cc7bd716-0c87-45c4-b811-3b3083ace615.webp?v=1714969976","width":2000},{"alt":null,"id":23896253792355,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4b675a557665f1f282f686d61dcfbd84d156e05_e08bd9cc-5a21-4f1d-aa01-1c2344c61174.webp?v=1714969978"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4b675a557665f1f282f686d61dcfbd84d156e05_e08bd9cc-5a21-4f1d-aa01-1c2344c61174.webp?v=1714969978","width":2000},{"alt":null,"id":23896254414947,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eefba8d2cd20061fc328992fbeea8ce6f5dd2a13_a50e6e08-bf51-4331-84ba-72e095a5151b.webp?v=1714969981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eefba8d2cd20061fc328992fbeea8ce6f5dd2a13_a50e6e08-bf51-4331-84ba-72e095a5151b.webp?v=1714969981","width":2000},{"alt":null,"id":23896254840931,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/340e31881ef98d40cbd6e9ff76f2972257ad574a_1b3cb77e-b443-4e1d-a1af-b1a435a03516.webp?v=1714969984"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/340e31881ef98d40cbd6e9ff76f2972257ad574a_1b3cb77e-b443-4e1d-a1af-b1a435a03516.webp?v=1714969984","width":2000},{"alt":null,"id":23896255332451,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00522fff43b9dbc4a9d989e0a6a0fc0090bf7190_86e5afec-085d-43da-9d8b-c3e94ac61453.webp?v=1714969986"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00522fff43b9dbc4a9d989e0a6a0fc0090bf7190_86e5afec-085d-43da-9d8b-c3e94ac61453.webp?v=1714969986","width":2000},{"alt":null,"id":23896256086115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84094fd910693572352cccf2c5306d092c2022b6_3e1b6f8f-c176-4e21-93f3-81628b19b307.webp?v=1714969989"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84094fd910693572352cccf2c5306d092c2022b6_3e1b6f8f-c176-4e21-93f3-81628b19b307.webp?v=1714969989","width":2000},{"alt":null,"id":23896256610403,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/673d4404b4a8cc6ff187f6117a7e09235b697f11_2fcea9d5-1233-4e1a-a7af-59c5252f61b8.webp?v=1714969991"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/673d4404b4a8cc6ff187f6117a7e09235b697f11_2fcea9d5-1233-4e1a-a7af-59c5252f61b8.webp?v=1714969991","width":2000},{"alt":null,"id":23896256938083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9dc624c83cb1beb9e1e4e8b2739b26f25892913_5186f17d-ce79-4bb6-bf4c-d2077e7edf85.webp?v=1714969993"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9dc624c83cb1beb9e1e4e8b2739b26f25892913_5186f17d-ce79-4bb6-bf4c-d2077e7edf85.webp?v=1714969993","width":2000},{"alt":null,"id":23896257691747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf365fc6eb8964ff917d2e0131f70d08378784b_54d35f8f-bb5c-4c3a-9aa8-07c0f253c7d5.webp?v=1714969996"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf365fc6eb8964ff917d2e0131f70d08378784b_54d35f8f-bb5c-4c3a-9aa8-07c0f253c7d5.webp?v=1714969996","width":2000},{"alt":null,"id":23896258347107,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d3acf2c0312627799c7edbfab4cc0845be5ef3_4c977c71-c36f-48f0-a180-504de70edbd0.webp?v=1714969998"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d3acf2c0312627799c7edbfab4cc0845be5ef3_4c977c71-c36f-48f0-a180-504de70edbd0.webp?v=1714969998","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41915981725795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-HQ03","requires_shipping":true,"taxable":true,"featured_image":{"id":31490847998051,"product_id":7415962730595,"position":4,"created_at":"2024-05-06T12:33:04+08:00","updated_at":"2024-05-06T12:33:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/340e31881ef98d40cbd6e9ff76f2972257ad574a_1b3cb77e-b443-4e1d-a1af-b1a435a03516.webp?v=1714969984","variant_ids":[41915981725795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Pixel Jeff 皮傑 - Work Day - 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":"NPB0108624-HQ03","featured_media":{"alt":null,"id":23896254840931,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/340e31881ef98d40cbd6e9ff76f2972257ad574a_1b3cb77e-b443-4e1d-a1af-b1a435a03516.webp?v=1714969984"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41915981725795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-HQ03","requires_shipping":true,"taxable":true,"featured_image":{"id":31490847998051,"product_id":7415962730595,"position":4,"created_at":"2024-05-06T12:33:04+08:00","updated_at":"2024-05-06T12:33:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/340e31881ef98d40cbd6e9ff76f2972257ad574a_1b3cb77e-b443-4e1d-a1af-b1a435a03516.webp?v=1714969984","variant_ids":[41915981725795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Pixel Jeff 皮傑 - Work Day - 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":"NPB0108624-HQ03","featured_media":{"alt":null,"id":23896254840931,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/340e31881ef98d40cbd6e9ff76f2972257ad574a_1b3cb77e-b443-4e1d-a1af-b1a435a03516.webp?v=1714969984"}},"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: "停產"
}