$product = {"id":7408452501603,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星際大戰徽章-潮流系列","handle":"iphone-12-pro-max-mod-nx-printable-pb50","description":null,"published_at":"2024-06-11T16:37:37+08:00","created_at":"2024-05-03T15:29:16+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 12 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":41885634855011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB50","requires_shipping":true,"taxable":true,"featured_image":{"id":31472316186723,"product_id":7408452501603,"position":7,"created_at":"2024-05-03T15:29:33+08:00","updated_at":"2024-05-03T15:29:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872b1a5d410fd5f8018da62e07a22aea6d224e33_f94601cb-33dd-448a-902e-a27e411d7bc7.webp?v=1714721373","variant_ids":[41885634855011]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星際大戰徽章-潮流系列 - 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":"NPB0118724-PB50","featured_media":{"alt":null,"id":23877232590947,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872b1a5d410fd5f8018da62e07a22aea6d224e33_f94601cb-33dd-448a-902e-a27e411d7bc7.webp?v=1714721373"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18cf6bc85726165c898ecd33a16db03e04e20ae6_8da97525-a262-40e8-9a2b-18dfed2b9b5c.webp?v=1714721359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d621cc719a02a2e9e87432315164f17a208a32e6_7ef892e1-1c6f-47e0-9409-c8d36ee76022.webp?v=1714721361","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e821b82e5242c8a79aa5f4ec9698a0330c0d1dfb_4948ee6d-0e8f-4a20-9531-a21173469f66.webp?v=1714721363","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/589b3f2a55483dcd6b2e77ca77e4c8e36f752516_36e0e9de-dd6e-4c82-8e1b-636c522b871e.webp?v=1714721366","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df3049227330f2b7e24115697f6f617184a53b1f_2a0ef6d5-10d8-4a56-98a4-21d0cb313b70.webp?v=1714721368","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2999d7f2caf7d8419c0b8906bc6f4e59a7f213ce_ada87b17-3cbd-4e9e-aa50-967fef3d7451.webp?v=1714721370","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872b1a5d410fd5f8018da62e07a22aea6d224e33_f94601cb-33dd-448a-902e-a27e411d7bc7.webp?v=1714721373","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9701483174f9ffb5d2fb6ccd4d68696238e9d9d5_d7d8281a-47be-44ae-bb9a-142345057673.webp?v=1714721375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c464d7a1b89c78f0e7b5e050c25967c99d30a434_c02237ea-4739-4e54-8967-4ee0fb446195.webp?v=1714721377","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22d48bab2f09227c733b16201c77f1512a713946_daa8e3fc-a89f-4ff7-9594-2f3ed671967c.webp?v=1714721380"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18cf6bc85726165c898ecd33a16db03e04e20ae6_8da97525-a262-40e8-9a2b-18dfed2b9b5c.webp?v=1714721359","options":["color"],"media":[{"alt":null,"id":23877229477987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18cf6bc85726165c898ecd33a16db03e04e20ae6_8da97525-a262-40e8-9a2b-18dfed2b9b5c.webp?v=1714721359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18cf6bc85726165c898ecd33a16db03e04e20ae6_8da97525-a262-40e8-9a2b-18dfed2b9b5c.webp?v=1714721359","width":2000},{"alt":null,"id":23877230231651,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d621cc719a02a2e9e87432315164f17a208a32e6_7ef892e1-1c6f-47e0-9409-c8d36ee76022.webp?v=1714721361"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d621cc719a02a2e9e87432315164f17a208a32e6_7ef892e1-1c6f-47e0-9409-c8d36ee76022.webp?v=1714721361","width":2000},{"alt":null,"id":23877230559331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e821b82e5242c8a79aa5f4ec9698a0330c0d1dfb_4948ee6d-0e8f-4a20-9531-a21173469f66.webp?v=1714721363"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e821b82e5242c8a79aa5f4ec9698a0330c0d1dfb_4948ee6d-0e8f-4a20-9531-a21173469f66.webp?v=1714721363","width":2000},{"alt":null,"id":23877231116387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/589b3f2a55483dcd6b2e77ca77e4c8e36f752516_36e0e9de-dd6e-4c82-8e1b-636c522b871e.webp?v=1714721366"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/589b3f2a55483dcd6b2e77ca77e4c8e36f752516_36e0e9de-dd6e-4c82-8e1b-636c522b871e.webp?v=1714721366","width":2000},{"alt":null,"id":23877231575139,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df3049227330f2b7e24115697f6f617184a53b1f_2a0ef6d5-10d8-4a56-98a4-21d0cb313b70.webp?v=1714721368"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df3049227330f2b7e24115697f6f617184a53b1f_2a0ef6d5-10d8-4a56-98a4-21d0cb313b70.webp?v=1714721368","width":2000},{"alt":null,"id":23877232033891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2999d7f2caf7d8419c0b8906bc6f4e59a7f213ce_ada87b17-3cbd-4e9e-aa50-967fef3d7451.webp?v=1714721370"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2999d7f2caf7d8419c0b8906bc6f4e59a7f213ce_ada87b17-3cbd-4e9e-aa50-967fef3d7451.webp?v=1714721370","width":2000},{"alt":null,"id":23877232590947,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872b1a5d410fd5f8018da62e07a22aea6d224e33_f94601cb-33dd-448a-902e-a27e411d7bc7.webp?v=1714721373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872b1a5d410fd5f8018da62e07a22aea6d224e33_f94601cb-33dd-448a-902e-a27e411d7bc7.webp?v=1714721373","width":2000},{"alt":null,"id":23877233082467,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9701483174f9ffb5d2fb6ccd4d68696238e9d9d5_d7d8281a-47be-44ae-bb9a-142345057673.webp?v=1714721375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9701483174f9ffb5d2fb6ccd4d68696238e9d9d5_d7d8281a-47be-44ae-bb9a-142345057673.webp?v=1714721375","width":2000},{"alt":null,"id":23877233573987,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c464d7a1b89c78f0e7b5e050c25967c99d30a434_c02237ea-4739-4e54-8967-4ee0fb446195.webp?v=1714721377"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c464d7a1b89c78f0e7b5e050c25967c99d30a434_c02237ea-4739-4e54-8967-4ee0fb446195.webp?v=1714721377","width":2000},{"alt":null,"id":23877234098275,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22d48bab2f09227c733b16201c77f1512a713946_daa8e3fc-a89f-4ff7-9594-2f3ed671967c.webp?v=1714721380"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22d48bab2f09227c733b16201c77f1512a713946_daa8e3fc-a89f-4ff7-9594-2f3ed671967c.webp?v=1714721380","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41885634855011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB50","requires_shipping":true,"taxable":true,"featured_image":{"id":31472316186723,"product_id":7408452501603,"position":7,"created_at":"2024-05-03T15:29:33+08:00","updated_at":"2024-05-03T15:29:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872b1a5d410fd5f8018da62e07a22aea6d224e33_f94601cb-33dd-448a-902e-a27e411d7bc7.webp?v=1714721373","variant_ids":[41885634855011]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星際大戰徽章-潮流系列 - 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":"NPB0118724-PB50","featured_media":{"alt":null,"id":23877232590947,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872b1a5d410fd5f8018da62e07a22aea6d224e33_f94601cb-33dd-448a-902e-a27e411d7bc7.webp?v=1714721373"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41885634855011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB50","requires_shipping":true,"taxable":true,"featured_image":{"id":31472316186723,"product_id":7408452501603,"position":7,"created_at":"2024-05-03T15:29:33+08:00","updated_at":"2024-05-03T15:29:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872b1a5d410fd5f8018da62e07a22aea6d224e33_f94601cb-33dd-448a-902e-a27e411d7bc7.webp?v=1714721373","variant_ids":[41885634855011]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星際大戰徽章-潮流系列 - 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":"NPB0118724-PB50","featured_media":{"alt":null,"id":23877232590947,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872b1a5d410fd5f8018da62e07a22aea6d224e33_f94601cb-33dd-448a-902e-a27e411d7bc7.webp?v=1714721373"}},"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: "停產"
}