$product = {"id":7408513319011,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Pixel Jeff 皮傑 - Lollipop","handle":"iphone-12-pro-max-mod-nx-printable-hq04","description":null,"published_at":"2024-06-11T16:39:21+08:00","created_at":"2024-05-03T15:41:20+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 12 pro 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":41886332944483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-HQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472468263011,"product_id":7408513319011,"position":2,"created_at":"2024-05-03T15:41:25+08:00","updated_at":"2024-05-03T15:41:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cedefa1ff52ad91d3bf069f46c60c578b727c4_ed8b40b1-660a-4993-b483-3b6571d7a182.webp?v=1714722085","variant_ids":[41886332944483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Pixel Jeff 皮傑 - Lollipop - 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":"NPB0118724-HQ04","featured_media":{"alt":null,"id":23877385519203,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cedefa1ff52ad91d3bf069f46c60c578b727c4_ed8b40b1-660a-4993-b483-3b6571d7a182.webp?v=1714722085"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16dab8cf1239d8ab86100778f00ae7b881ee2252_a03f5ca0-08c5-4f86-baf4-d24b557a2871.webp?v=1714722082","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cedefa1ff52ad91d3bf069f46c60c578b727c4_ed8b40b1-660a-4993-b483-3b6571d7a182.webp?v=1714722085","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1900a9293228c7d4cf52fe196c9e06183d42e2b3_af9f9fd9-a02a-482a-a02d-9cc385ad918b.webp?v=1714722087","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17adabd62d88633da7ef4eae299886b0a33cb26c_4e8f7972-ff85-4812-92fc-e5b68d665a41.webp?v=1714722089","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e86c9ec7f7239d2c9d4bbc9526b012a563f6d026_651d3d07-fde1-4644-b696-d0c6dd37dc56.webp?v=1714722092","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7494e50ee7b27c331e80006860b70e7cec0b6119_29f7d125-1a7f-48f9-b7fc-f8113c6ca8aa.webp?v=1714722094","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec4d6bac5bdc412b2113a98ebce4bfc0db9ebe9e_7355e23e-75bf-44e9-ac03-e1675dd7091c.webp?v=1714722096","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68763cdc7e0479a26dbac8b5c15caa87845c175_12df8c22-4596-40c1-8359-c22e296efa55.webp?v=1714722099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bbc2176334ee67a2f0c85d43f5e1f93850f301e_a639fe6c-8c04-4a4f-94c5-65424dd2e150.webp?v=1714722101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95ad6b0c9ac3ca9cbd74665bf38baaf17c9d8081_384c781b-8107-42fb-b10d-15a6f3d28cb1.webp?v=1714722104"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16dab8cf1239d8ab86100778f00ae7b881ee2252_a03f5ca0-08c5-4f86-baf4-d24b557a2871.webp?v=1714722082","options":["color"],"media":[{"alt":null,"id":23877384994915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16dab8cf1239d8ab86100778f00ae7b881ee2252_a03f5ca0-08c5-4f86-baf4-d24b557a2871.webp?v=1714722082"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16dab8cf1239d8ab86100778f00ae7b881ee2252_a03f5ca0-08c5-4f86-baf4-d24b557a2871.webp?v=1714722082","width":2000},{"alt":null,"id":23877385519203,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cedefa1ff52ad91d3bf069f46c60c578b727c4_ed8b40b1-660a-4993-b483-3b6571d7a182.webp?v=1714722085"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cedefa1ff52ad91d3bf069f46c60c578b727c4_ed8b40b1-660a-4993-b483-3b6571d7a182.webp?v=1714722085","width":2000},{"alt":null,"id":23877386207331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1900a9293228c7d4cf52fe196c9e06183d42e2b3_af9f9fd9-a02a-482a-a02d-9cc385ad918b.webp?v=1714722087"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1900a9293228c7d4cf52fe196c9e06183d42e2b3_af9f9fd9-a02a-482a-a02d-9cc385ad918b.webp?v=1714722087","width":2000},{"alt":null,"id":23877386797155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17adabd62d88633da7ef4eae299886b0a33cb26c_4e8f7972-ff85-4812-92fc-e5b68d665a41.webp?v=1714722089"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17adabd62d88633da7ef4eae299886b0a33cb26c_4e8f7972-ff85-4812-92fc-e5b68d665a41.webp?v=1714722089","width":2000},{"alt":null,"id":23877387321443,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e86c9ec7f7239d2c9d4bbc9526b012a563f6d026_651d3d07-fde1-4644-b696-d0c6dd37dc56.webp?v=1714722092"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e86c9ec7f7239d2c9d4bbc9526b012a563f6d026_651d3d07-fde1-4644-b696-d0c6dd37dc56.webp?v=1714722092","width":2000},{"alt":null,"id":23877387878499,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7494e50ee7b27c331e80006860b70e7cec0b6119_29f7d125-1a7f-48f9-b7fc-f8113c6ca8aa.webp?v=1714722094"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7494e50ee7b27c331e80006860b70e7cec0b6119_29f7d125-1a7f-48f9-b7fc-f8113c6ca8aa.webp?v=1714722094","width":2000},{"alt":null,"id":23877388566627,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec4d6bac5bdc412b2113a98ebce4bfc0db9ebe9e_7355e23e-75bf-44e9-ac03-e1675dd7091c.webp?v=1714722096"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec4d6bac5bdc412b2113a98ebce4bfc0db9ebe9e_7355e23e-75bf-44e9-ac03-e1675dd7091c.webp?v=1714722096","width":2000},{"alt":null,"id":23877389025379,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68763cdc7e0479a26dbac8b5c15caa87845c175_12df8c22-4596-40c1-8359-c22e296efa55.webp?v=1714722099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c68763cdc7e0479a26dbac8b5c15caa87845c175_12df8c22-4596-40c1-8359-c22e296efa55.webp?v=1714722099","width":2000},{"alt":null,"id":23877389680739,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bbc2176334ee67a2f0c85d43f5e1f93850f301e_a639fe6c-8c04-4a4f-94c5-65424dd2e150.webp?v=1714722101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bbc2176334ee67a2f0c85d43f5e1f93850f301e_a639fe6c-8c04-4a4f-94c5-65424dd2e150.webp?v=1714722101","width":2000},{"alt":null,"id":23877390172259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95ad6b0c9ac3ca9cbd74665bf38baaf17c9d8081_384c781b-8107-42fb-b10d-15a6f3d28cb1.webp?v=1714722104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95ad6b0c9ac3ca9cbd74665bf38baaf17c9d8081_384c781b-8107-42fb-b10d-15a6f3d28cb1.webp?v=1714722104","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41886332944483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-HQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472468263011,"product_id":7408513319011,"position":2,"created_at":"2024-05-03T15:41:25+08:00","updated_at":"2024-05-03T15:41:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cedefa1ff52ad91d3bf069f46c60c578b727c4_ed8b40b1-660a-4993-b483-3b6571d7a182.webp?v=1714722085","variant_ids":[41886332944483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Pixel Jeff 皮傑 - Lollipop - 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":"NPB0118724-HQ04","featured_media":{"alt":null,"id":23877385519203,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cedefa1ff52ad91d3bf069f46c60c578b727c4_ed8b40b1-660a-4993-b483-3b6571d7a182.webp?v=1714722085"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41886332944483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-HQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472468263011,"product_id":7408513319011,"position":2,"created_at":"2024-05-03T15:41:25+08:00","updated_at":"2024-05-03T15:41:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cedefa1ff52ad91d3bf069f46c60c578b727c4_ed8b40b1-660a-4993-b483-3b6571d7a182.webp?v=1714722085","variant_ids":[41886332944483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Pixel Jeff 皮傑 - Lollipop - 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":"NPB0118724-HQ04","featured_media":{"alt":null,"id":23877385519203,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cedefa1ff52ad91d3bf069f46c60c578b727c4_ed8b40b1-660a-4993-b483-3b6571d7a182.webp?v=1714722085"}},"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: "停產"
}