$product = {"id":7407647948899,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Pixel Jeff 皮傑 - Lille","handle":"iphone-14-plus-mod-nx-printable-hq05","description":null,"published_at":"2024-06-11T16:21:31+08:00","created_at":"2024-05-03T10:37:10+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 14 Plus","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":41877169700963,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-HQ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470146256995,"product_id":7407647948899,"position":3,"created_at":"2024-05-03T10:37:18+08:00","updated_at":"2024-05-03T10:37:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bffe0080ccc90cba64bd814f6e305a613e8ba21_af45d607-6ce0-4d61-9694-5474004ff2ae.webp?v=1714703838","variant_ids":[41877169700963]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Pixel Jeff 皮傑 - Lille - 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":"NPB0126124-HQ05","featured_media":{"alt":null,"id":23875049226339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bffe0080ccc90cba64bd814f6e305a613e8ba21_af45d607-6ce0-4d61-9694-5474004ff2ae.webp?v=1714703838"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd5c3baa4125dfb9b7f3820b9bed2970f947749d_00d3582e-8272-4cbf-975e-1547eabbf895.webp?v=1714703833","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5714e4eded6266fd61fcaa12aa46c0fbc76408df_d5171d10-0423-414d-9dcf-ca415be9ec96.webp?v=1714703835","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bffe0080ccc90cba64bd814f6e305a613e8ba21_af45d607-6ce0-4d61-9694-5474004ff2ae.webp?v=1714703838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab770b494e1171b420a8ba2a261867d8d4346f40_03f97a81-7761-422f-8091-4b7ec09170ee.webp?v=1714703840","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed18ee981c2daaf422ca285f85984593e908a696_46967646-c2e2-4ed5-8d05-a3f66a459e96.webp?v=1714703843","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3244c5696acee53dbacfeef363946ecd60fd03ab_46fc65c6-b7c1-4191-953b-3d7ebb864668.webp?v=1714703845","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/defc25ff9d61f53d2afc9214bed0ca4ab0b75055_1286fa48-9a69-461c-bfc6-c8b2f5a7fe84.webp?v=1714703848","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9621dbe4db56d019dbd8d24717a7159b71e1311_adcafa51-2d8d-452e-8158-9884ff58d45a.webp?v=1714703850","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8bc46b802d5250fa5d30f21e24b077aa513584c_d8837e4c-01d8-4074-8886-95bb52e9ad0f.webp?v=1714703853","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9b5964c1eb4b70471607f80146d497019bf903a_d0b29637-fdcd-4a6e-bf84-8ad6f972af4d.webp?v=1714703855"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd5c3baa4125dfb9b7f3820b9bed2970f947749d_00d3582e-8272-4cbf-975e-1547eabbf895.webp?v=1714703833","options":["color"],"media":[{"alt":null,"id":23875048407139,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd5c3baa4125dfb9b7f3820b9bed2970f947749d_00d3582e-8272-4cbf-975e-1547eabbf895.webp?v=1714703833"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd5c3baa4125dfb9b7f3820b9bed2970f947749d_00d3582e-8272-4cbf-975e-1547eabbf895.webp?v=1714703833","width":2000},{"alt":null,"id":23875048734819,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5714e4eded6266fd61fcaa12aa46c0fbc76408df_d5171d10-0423-414d-9dcf-ca415be9ec96.webp?v=1714703835"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5714e4eded6266fd61fcaa12aa46c0fbc76408df_d5171d10-0423-414d-9dcf-ca415be9ec96.webp?v=1714703835","width":2000},{"alt":null,"id":23875049226339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bffe0080ccc90cba64bd814f6e305a613e8ba21_af45d607-6ce0-4d61-9694-5474004ff2ae.webp?v=1714703838"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bffe0080ccc90cba64bd814f6e305a613e8ba21_af45d607-6ce0-4d61-9694-5474004ff2ae.webp?v=1714703838","width":2000},{"alt":null,"id":23875050242147,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab770b494e1171b420a8ba2a261867d8d4346f40_03f97a81-7761-422f-8091-4b7ec09170ee.webp?v=1714703840"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab770b494e1171b420a8ba2a261867d8d4346f40_03f97a81-7761-422f-8091-4b7ec09170ee.webp?v=1714703840","width":2000},{"alt":null,"id":23875050700899,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed18ee981c2daaf422ca285f85984593e908a696_46967646-c2e2-4ed5-8d05-a3f66a459e96.webp?v=1714703843"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed18ee981c2daaf422ca285f85984593e908a696_46967646-c2e2-4ed5-8d05-a3f66a459e96.webp?v=1714703843","width":2000},{"alt":null,"id":23875051552867,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3244c5696acee53dbacfeef363946ecd60fd03ab_46fc65c6-b7c1-4191-953b-3d7ebb864668.webp?v=1714703845"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3244c5696acee53dbacfeef363946ecd60fd03ab_46fc65c6-b7c1-4191-953b-3d7ebb864668.webp?v=1714703845","width":2000},{"alt":null,"id":23875053256803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/defc25ff9d61f53d2afc9214bed0ca4ab0b75055_1286fa48-9a69-461c-bfc6-c8b2f5a7fe84.webp?v=1714703848"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/defc25ff9d61f53d2afc9214bed0ca4ab0b75055_1286fa48-9a69-461c-bfc6-c8b2f5a7fe84.webp?v=1714703848","width":2000},{"alt":null,"id":23875054108771,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9621dbe4db56d019dbd8d24717a7159b71e1311_adcafa51-2d8d-452e-8158-9884ff58d45a.webp?v=1714703850"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9621dbe4db56d019dbd8d24717a7159b71e1311_adcafa51-2d8d-452e-8158-9884ff58d45a.webp?v=1714703850","width":2000},{"alt":null,"id":23875055124579,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8bc46b802d5250fa5d30f21e24b077aa513584c_d8837e4c-01d8-4074-8886-95bb52e9ad0f.webp?v=1714703853"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8bc46b802d5250fa5d30f21e24b077aa513584c_d8837e4c-01d8-4074-8886-95bb52e9ad0f.webp?v=1714703853","width":2000},{"alt":null,"id":23875055779939,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9b5964c1eb4b70471607f80146d497019bf903a_d0b29637-fdcd-4a6e-bf84-8ad6f972af4d.webp?v=1714703855"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9b5964c1eb4b70471607f80146d497019bf903a_d0b29637-fdcd-4a6e-bf84-8ad6f972af4d.webp?v=1714703855","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41877169700963,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-HQ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470146256995,"product_id":7407647948899,"position":3,"created_at":"2024-05-03T10:37:18+08:00","updated_at":"2024-05-03T10:37:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bffe0080ccc90cba64bd814f6e305a613e8ba21_af45d607-6ce0-4d61-9694-5474004ff2ae.webp?v=1714703838","variant_ids":[41877169700963]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Pixel Jeff 皮傑 - Lille - 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":"NPB0126124-HQ05","featured_media":{"alt":null,"id":23875049226339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bffe0080ccc90cba64bd814f6e305a613e8ba21_af45d607-6ce0-4d61-9694-5474004ff2ae.webp?v=1714703838"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41877169700963,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-HQ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470146256995,"product_id":7407647948899,"position":3,"created_at":"2024-05-03T10:37:18+08:00","updated_at":"2024-05-03T10:37:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bffe0080ccc90cba64bd814f6e305a613e8ba21_af45d607-6ce0-4d61-9694-5474004ff2ae.webp?v=1714703838","variant_ids":[41877169700963]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Pixel Jeff 皮傑 - Lille - 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":"NPB0126124-HQ05","featured_media":{"alt":null,"id":23875049226339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bffe0080ccc90cba64bd814f6e305a613e8ba21_af45d607-6ce0-4d61-9694-5474004ff2ae.webp?v=1714703838"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$brand_handle = null;
$type = "";
var sellingStatus
// 只有設計款(SKU 含 '-')才需要合圖
if ($isMerge && $defaultVariant.sku.includes('-')) {
$(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: "停產"
}