$product = {"id":7408399089763,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-黑","handle":"iphone-12-pro-max-mod-nx-printable-pb09","description":null,"published_at":"2024-06-11T16:36:10+08:00","created_at":"2024-05-03T15:18:51+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":41885038805091,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31472164503651,"product_id":7408399089763,"position":9,"created_at":"2024-05-03T15:19:13+08:00","updated_at":"2024-05-03T15:19:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cde3ac10ab8a4562514b5b1e9ef07db912a7c95f_a77d57c4-18f5-40df-b948-07342a39b62a.webp?v=1714720753","variant_ids":[41885038805091]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-黑 - 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-PB09","featured_media":{"alt":null,"id":23877080154211,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cde3ac10ab8a4562514b5b1e9ef07db912a7c95f_a77d57c4-18f5-40df-b948-07342a39b62a.webp?v=1714720753"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95725b4d1bbb406a6b9acbb00e76f9e85a4bed02_08a13cc8-78ff-4f04-a966-6178466c4398.webp?v=1714720734","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7d566c18f5cd25f7b1065737989eae91b9ed589_6ac32241-02cf-41f0-b0c6-345f6f1b9ce8.webp?v=1714720736","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ce86636dd51fc2e44357ebb58e8b106f19b9f1b_8ca422e9-6c13-4830-a00d-aeca6c679235.webp?v=1714720738","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8405c2338b9031311dbf6fc0053787d9fe5bcad3_929c5ebc-0c74-4e9a-a259-69283a2ffb7e.webp?v=1714720741","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fa116c3f7d2509f28901cdc2ef0848ddd7f0065_c17b8f94-914d-430a-bbfd-41a929dbf162.webp?v=1714720743","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1d69c2064637bc179aa93e5df5978886b0f660_e895f2ea-f76d-4c8a-b959-c6ff333cb765.webp?v=1714720745","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1414b3afbac82214ab579dbfcf535601065ff0b4_dcf26583-560d-4195-b174-6ce3f6069245.webp?v=1714720748","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d49eb29cbe43332d8a1b66dcfe264531a4866869_8fe98378-c2d9-4a87-b66c-d8d382e38e77.webp?v=1714720751","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cde3ac10ab8a4562514b5b1e9ef07db912a7c95f_a77d57c4-18f5-40df-b948-07342a39b62a.webp?v=1714720753","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab7e1212f921ff6b2eb45b9d97ed4fef87023aed_f3bbdd18-d4a1-415c-895e-55712c2a2ea2.webp?v=1714720755"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95725b4d1bbb406a6b9acbb00e76f9e85a4bed02_08a13cc8-78ff-4f04-a966-6178466c4398.webp?v=1714720734","options":["color"],"media":[{"alt":null,"id":23877074813027,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95725b4d1bbb406a6b9acbb00e76f9e85a4bed02_08a13cc8-78ff-4f04-a966-6178466c4398.webp?v=1714720734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95725b4d1bbb406a6b9acbb00e76f9e85a4bed02_08a13cc8-78ff-4f04-a966-6178466c4398.webp?v=1714720734","width":2000},{"alt":null,"id":23877075337315,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7d566c18f5cd25f7b1065737989eae91b9ed589_6ac32241-02cf-41f0-b0c6-345f6f1b9ce8.webp?v=1714720736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7d566c18f5cd25f7b1065737989eae91b9ed589_6ac32241-02cf-41f0-b0c6-345f6f1b9ce8.webp?v=1714720736","width":2000},{"alt":null,"id":23877075894371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ce86636dd51fc2e44357ebb58e8b106f19b9f1b_8ca422e9-6c13-4830-a00d-aeca6c679235.webp?v=1714720738"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ce86636dd51fc2e44357ebb58e8b106f19b9f1b_8ca422e9-6c13-4830-a00d-aeca6c679235.webp?v=1714720738","width":2000},{"alt":null,"id":23877076385891,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8405c2338b9031311dbf6fc0053787d9fe5bcad3_929c5ebc-0c74-4e9a-a259-69283a2ffb7e.webp?v=1714720741"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8405c2338b9031311dbf6fc0053787d9fe5bcad3_929c5ebc-0c74-4e9a-a259-69283a2ffb7e.webp?v=1714720741","width":2000},{"alt":null,"id":23877077434467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fa116c3f7d2509f28901cdc2ef0848ddd7f0065_c17b8f94-914d-430a-bbfd-41a929dbf162.webp?v=1714720743"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fa116c3f7d2509f28901cdc2ef0848ddd7f0065_c17b8f94-914d-430a-bbfd-41a929dbf162.webp?v=1714720743","width":2000},{"alt":null,"id":23877077991523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1d69c2064637bc179aa93e5df5978886b0f660_e895f2ea-f76d-4c8a-b959-c6ff333cb765.webp?v=1714720745"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1d69c2064637bc179aa93e5df5978886b0f660_e895f2ea-f76d-4c8a-b959-c6ff333cb765.webp?v=1714720745","width":2000},{"alt":null,"id":23877078876259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1414b3afbac82214ab579dbfcf535601065ff0b4_dcf26583-560d-4195-b174-6ce3f6069245.webp?v=1714720748"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1414b3afbac82214ab579dbfcf535601065ff0b4_dcf26583-560d-4195-b174-6ce3f6069245.webp?v=1714720748","width":2000},{"alt":null,"id":23877079597155,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d49eb29cbe43332d8a1b66dcfe264531a4866869_8fe98378-c2d9-4a87-b66c-d8d382e38e77.webp?v=1714720751"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d49eb29cbe43332d8a1b66dcfe264531a4866869_8fe98378-c2d9-4a87-b66c-d8d382e38e77.webp?v=1714720751","width":2000},{"alt":null,"id":23877080154211,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cde3ac10ab8a4562514b5b1e9ef07db912a7c95f_a77d57c4-18f5-40df-b948-07342a39b62a.webp?v=1714720753"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cde3ac10ab8a4562514b5b1e9ef07db912a7c95f_a77d57c4-18f5-40df-b948-07342a39b62a.webp?v=1714720753","width":2000},{"alt":null,"id":23877080580195,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab7e1212f921ff6b2eb45b9d97ed4fef87023aed_f3bbdd18-d4a1-415c-895e-55712c2a2ea2.webp?v=1714720755"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab7e1212f921ff6b2eb45b9d97ed4fef87023aed_f3bbdd18-d4a1-415c-895e-55712c2a2ea2.webp?v=1714720755","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41885038805091,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31472164503651,"product_id":7408399089763,"position":9,"created_at":"2024-05-03T15:19:13+08:00","updated_at":"2024-05-03T15:19:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cde3ac10ab8a4562514b5b1e9ef07db912a7c95f_a77d57c4-18f5-40df-b948-07342a39b62a.webp?v=1714720753","variant_ids":[41885038805091]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-黑 - 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-PB09","featured_media":{"alt":null,"id":23877080154211,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cde3ac10ab8a4562514b5b1e9ef07db912a7c95f_a77d57c4-18f5-40df-b948-07342a39b62a.webp?v=1714720753"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41885038805091,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31472164503651,"product_id":7408399089763,"position":9,"created_at":"2024-05-03T15:19:13+08:00","updated_at":"2024-05-03T15:19:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cde3ac10ab8a4562514b5b1e9ef07db912a7c95f_a77d57c4-18f5-40df-b948-07342a39b62a.webp?v=1714720753","variant_ids":[41885038805091]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-黑 - 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-PB09","featured_media":{"alt":null,"id":23877080154211,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cde3ac10ab8a4562514b5b1e9ef07db912a7c95f_a77d57c4-18f5-40df-b948-07342a39b62a.webp?v=1714720753"}},"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: "停產"
}