$product = {"id":7408524066915,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-潮流系列","handle":"iphone-12-pro-max-mod-nx-printable-pb43","description":null,"published_at":"2024-06-11T16:39:39+08:00","created_at":"2024-05-03T15:43:27+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":41886457626723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB43","requires_shipping":true,"taxable":true,"featured_image":{"id":31472497819747,"product_id":7408524066915,"position":5,"created_at":"2024-05-03T15:43:40+08:00","updated_at":"2024-05-03T15:43:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fbc24662af225b9a8667d99196be9f3077c30d8_c2ece67b-b965-4ee7-9fb9-12b3294470e3.webp?v=1714722220","variant_ids":[41886457626723]},"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-PB43","featured_media":{"alt":null,"id":23877415075939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fbc24662af225b9a8667d99196be9f3077c30d8_c2ece67b-b965-4ee7-9fb9-12b3294470e3.webp?v=1714722220"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c639eb0f3c60ce270791fd2976a0006a8c9a2d86_1a5987cd-4b39-4ea5-81db-79e25daab6df.webp?v=1714722209","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1595b5f40beb83f3eac52954aac7b046a066bef_e3b5265d-c595-437c-82a6-20769b022798.webp?v=1714722212","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/305ae973b983465e59e14ec8d1561dcc67af3763_625d73b9-06f4-46a8-b680-beaa3662cb9f.webp?v=1714722214","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/140decbb00bb487b6f31f7831eab7ffd585e59dc_bc5eb9c5-9ab6-4fdf-89b8-ec9ae34d156f.webp?v=1714722217","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fbc24662af225b9a8667d99196be9f3077c30d8_c2ece67b-b965-4ee7-9fb9-12b3294470e3.webp?v=1714722220","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f6bf65a8651e32c119a573613eecf70174b0a50_e1dffc4a-fdfd-4e82-8b8f-2c8557fb6583.webp?v=1714722222","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e949c86fc992446f78c0e87a9a6b1faaa23cc009_b3a7cbe0-b046-4916-8b30-317ce39de1c1.webp?v=1714722224","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7906be9f82572ca63e3575662e30e87758df9e59_3bdb2c7e-1438-473e-b4ed-0a5344cf1504.webp?v=1714722227","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4924e9009c85f0cfeba3d23ef6819fc866e133bf_71320c73-7b23-46da-a031-41d435ec3def.webp?v=1714722229","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161d77cd65e20f49c19cf0080d4af6b28ea2fe91_03100972-f97f-4330-a5ae-90f640522825.webp?v=1714722232"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c639eb0f3c60ce270791fd2976a0006a8c9a2d86_1a5987cd-4b39-4ea5-81db-79e25daab6df.webp?v=1714722209","options":["color"],"media":[{"alt":null,"id":23877412913251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c639eb0f3c60ce270791fd2976a0006a8c9a2d86_1a5987cd-4b39-4ea5-81db-79e25daab6df.webp?v=1714722209"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c639eb0f3c60ce270791fd2976a0006a8c9a2d86_1a5987cd-4b39-4ea5-81db-79e25daab6df.webp?v=1714722209","width":2000},{"alt":null,"id":23877413503075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1595b5f40beb83f3eac52954aac7b046a066bef_e3b5265d-c595-437c-82a6-20769b022798.webp?v=1714722212"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1595b5f40beb83f3eac52954aac7b046a066bef_e3b5265d-c595-437c-82a6-20769b022798.webp?v=1714722212","width":2000},{"alt":null,"id":23877413994595,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/305ae973b983465e59e14ec8d1561dcc67af3763_625d73b9-06f4-46a8-b680-beaa3662cb9f.webp?v=1714722214"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/305ae973b983465e59e14ec8d1561dcc67af3763_625d73b9-06f4-46a8-b680-beaa3662cb9f.webp?v=1714722214","width":2000},{"alt":null,"id":23877414420579,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/140decbb00bb487b6f31f7831eab7ffd585e59dc_bc5eb9c5-9ab6-4fdf-89b8-ec9ae34d156f.webp?v=1714722217"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/140decbb00bb487b6f31f7831eab7ffd585e59dc_bc5eb9c5-9ab6-4fdf-89b8-ec9ae34d156f.webp?v=1714722217","width":2000},{"alt":null,"id":23877415075939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fbc24662af225b9a8667d99196be9f3077c30d8_c2ece67b-b965-4ee7-9fb9-12b3294470e3.webp?v=1714722220"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fbc24662af225b9a8667d99196be9f3077c30d8_c2ece67b-b965-4ee7-9fb9-12b3294470e3.webp?v=1714722220","width":2000},{"alt":null,"id":23877415796835,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f6bf65a8651e32c119a573613eecf70174b0a50_e1dffc4a-fdfd-4e82-8b8f-2c8557fb6583.webp?v=1714722222"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f6bf65a8651e32c119a573613eecf70174b0a50_e1dffc4a-fdfd-4e82-8b8f-2c8557fb6583.webp?v=1714722222","width":2000},{"alt":null,"id":23877416452195,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e949c86fc992446f78c0e87a9a6b1faaa23cc009_b3a7cbe0-b046-4916-8b30-317ce39de1c1.webp?v=1714722224"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e949c86fc992446f78c0e87a9a6b1faaa23cc009_b3a7cbe0-b046-4916-8b30-317ce39de1c1.webp?v=1714722224","width":2000},{"alt":null,"id":23877417009251,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7906be9f82572ca63e3575662e30e87758df9e59_3bdb2c7e-1438-473e-b4ed-0a5344cf1504.webp?v=1714722227"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7906be9f82572ca63e3575662e30e87758df9e59_3bdb2c7e-1438-473e-b4ed-0a5344cf1504.webp?v=1714722227","width":2000},{"alt":null,"id":23877417500771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4924e9009c85f0cfeba3d23ef6819fc866e133bf_71320c73-7b23-46da-a031-41d435ec3def.webp?v=1714722229"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4924e9009c85f0cfeba3d23ef6819fc866e133bf_71320c73-7b23-46da-a031-41d435ec3def.webp?v=1714722229","width":2000},{"alt":null,"id":23877418188899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161d77cd65e20f49c19cf0080d4af6b28ea2fe91_03100972-f97f-4330-a5ae-90f640522825.webp?v=1714722232"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161d77cd65e20f49c19cf0080d4af6b28ea2fe91_03100972-f97f-4330-a5ae-90f640522825.webp?v=1714722232","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41886457626723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB43","requires_shipping":true,"taxable":true,"featured_image":{"id":31472497819747,"product_id":7408524066915,"position":5,"created_at":"2024-05-03T15:43:40+08:00","updated_at":"2024-05-03T15:43:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fbc24662af225b9a8667d99196be9f3077c30d8_c2ece67b-b965-4ee7-9fb9-12b3294470e3.webp?v=1714722220","variant_ids":[41886457626723]},"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-PB43","featured_media":{"alt":null,"id":23877415075939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fbc24662af225b9a8667d99196be9f3077c30d8_c2ece67b-b965-4ee7-9fb9-12b3294470e3.webp?v=1714722220"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41886457626723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB43","requires_shipping":true,"taxable":true,"featured_image":{"id":31472497819747,"product_id":7408524066915,"position":5,"created_at":"2024-05-03T15:43:40+08:00","updated_at":"2024-05-03T15:43:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fbc24662af225b9a8667d99196be9f3077c30d8_c2ece67b-b965-4ee7-9fb9-12b3294470e3.webp?v=1714722220","variant_ids":[41886457626723]},"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-PB43","featured_media":{"alt":null,"id":23877415075939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fbc24662af225b9a8667d99196be9f3077c30d8_c2ece67b-b965-4ee7-9fb9-12b3294470e3.webp?v=1714722220"}},"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: "停產"
}