$product = {"id":7408542580835,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴菲特-剪紙系列","handle":"iphone-12-pro-max-mod-nx-printable-pb58","description":null,"published_at":"2024-06-11T16:40:12+08:00","created_at":"2024-05-03T15:47:09+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":41886674387043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB58","requires_shipping":true,"taxable":true,"featured_image":{"id":31472548905059,"product_id":7408542580835,"position":10,"created_at":"2024-05-03T15:47:33+08:00","updated_at":"2024-05-03T15:47:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/120d259dc47df26a48386367aa1e5f7518a960ad_83d0e49f-8420-4f0b-b62f-77534644477e.webp?v=1714722453","variant_ids":[41886674387043]},"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-PB58","featured_media":{"alt":null,"id":23877466292323,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/120d259dc47df26a48386367aa1e5f7518a960ad_83d0e49f-8420-4f0b-b62f-77534644477e.webp?v=1714722453"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1320d5f8ac4d326876ecfa8a238426c9d914f611_6f6dc660-7128-4786-9e77-d3cca24f8e7a.webp?v=1714722431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4c21b265672543f45caffca77190b53727e5ea9_2e21e396-51a4-4454-8f39-63b120c7959c.webp?v=1714722433","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1d67ada8ac8cb83e45f84f822f9ebdeef5bc271_b66016ad-41c0-4a0f-9ebb-da684d7fbddd.webp?v=1714722436","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06a98f2b4f3c68ccd081f3350e8674740972a705_1c64dcae-0490-4ab2-89ce-d92c1e67f856.webp?v=1714722438","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87dac7e9d37c8c173a4bd1f9c8a591edfbfa8876_b7fbf6b1-38e6-4882-9130-381a9302e4a6.webp?v=1714722441","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b9926b9f8264530d71418cd67c3e97b2ddca68f_08b5b14e-9ecc-4f76-aa21-2804394a179b.webp?v=1714722443","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/789f173a1555eb212fd6abab2d8295dbfdc6db53_3ce7e292-e3c7-4e78-8213-77ad625d891f.webp?v=1714722445","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7265d29ac36eb7be4370067cc0cd8c5022bb4b4c_5b3463ce-eb08-4fdd-91f2-f757cd48a333.webp?v=1714722448","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edb54408987f330274e10178c62defd0ef1cf8cb_19003dc6-5239-44e8-af88-bd566c03dba9.webp?v=1714722451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/120d259dc47df26a48386367aa1e5f7518a960ad_83d0e49f-8420-4f0b-b62f-77534644477e.webp?v=1714722453"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1320d5f8ac4d326876ecfa8a238426c9d914f611_6f6dc660-7128-4786-9e77-d3cca24f8e7a.webp?v=1714722431","options":["color"],"media":[{"alt":null,"id":23877461180515,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1320d5f8ac4d326876ecfa8a238426c9d914f611_6f6dc660-7128-4786-9e77-d3cca24f8e7a.webp?v=1714722431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1320d5f8ac4d326876ecfa8a238426c9d914f611_6f6dc660-7128-4786-9e77-d3cca24f8e7a.webp?v=1714722431","width":2000},{"alt":null,"id":23877461540963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4c21b265672543f45caffca77190b53727e5ea9_2e21e396-51a4-4454-8f39-63b120c7959c.webp?v=1714722433"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4c21b265672543f45caffca77190b53727e5ea9_2e21e396-51a4-4454-8f39-63b120c7959c.webp?v=1714722433","width":2000},{"alt":null,"id":23877462065251,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1d67ada8ac8cb83e45f84f822f9ebdeef5bc271_b66016ad-41c0-4a0f-9ebb-da684d7fbddd.webp?v=1714722436"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1d67ada8ac8cb83e45f84f822f9ebdeef5bc271_b66016ad-41c0-4a0f-9ebb-da684d7fbddd.webp?v=1714722436","width":2000},{"alt":null,"id":23877463015523,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06a98f2b4f3c68ccd081f3350e8674740972a705_1c64dcae-0490-4ab2-89ce-d92c1e67f856.webp?v=1714722438"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06a98f2b4f3c68ccd081f3350e8674740972a705_1c64dcae-0490-4ab2-89ce-d92c1e67f856.webp?v=1714722438","width":2000},{"alt":null,"id":23877463507043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87dac7e9d37c8c173a4bd1f9c8a591edfbfa8876_b7fbf6b1-38e6-4882-9130-381a9302e4a6.webp?v=1714722441"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87dac7e9d37c8c173a4bd1f9c8a591edfbfa8876_b7fbf6b1-38e6-4882-9130-381a9302e4a6.webp?v=1714722441","width":2000},{"alt":null,"id":23877463998563,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b9926b9f8264530d71418cd67c3e97b2ddca68f_08b5b14e-9ecc-4f76-aa21-2804394a179b.webp?v=1714722443"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b9926b9f8264530d71418cd67c3e97b2ddca68f_08b5b14e-9ecc-4f76-aa21-2804394a179b.webp?v=1714722443","width":2000},{"alt":null,"id":23877464621155,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/789f173a1555eb212fd6abab2d8295dbfdc6db53_3ce7e292-e3c7-4e78-8213-77ad625d891f.webp?v=1714722445"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/789f173a1555eb212fd6abab2d8295dbfdc6db53_3ce7e292-e3c7-4e78-8213-77ad625d891f.webp?v=1714722445","width":2000},{"alt":null,"id":23877465210979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7265d29ac36eb7be4370067cc0cd8c5022bb4b4c_5b3463ce-eb08-4fdd-91f2-f757cd48a333.webp?v=1714722448"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7265d29ac36eb7be4370067cc0cd8c5022bb4b4c_5b3463ce-eb08-4fdd-91f2-f757cd48a333.webp?v=1714722448","width":2000},{"alt":null,"id":23877465669731,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edb54408987f330274e10178c62defd0ef1cf8cb_19003dc6-5239-44e8-af88-bd566c03dba9.webp?v=1714722451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edb54408987f330274e10178c62defd0ef1cf8cb_19003dc6-5239-44e8-af88-bd566c03dba9.webp?v=1714722451","width":2000},{"alt":null,"id":23877466292323,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/120d259dc47df26a48386367aa1e5f7518a960ad_83d0e49f-8420-4f0b-b62f-77534644477e.webp?v=1714722453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/120d259dc47df26a48386367aa1e5f7518a960ad_83d0e49f-8420-4f0b-b62f-77534644477e.webp?v=1714722453","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41886674387043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB58","requires_shipping":true,"taxable":true,"featured_image":{"id":31472548905059,"product_id":7408542580835,"position":10,"created_at":"2024-05-03T15:47:33+08:00","updated_at":"2024-05-03T15:47:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/120d259dc47df26a48386367aa1e5f7518a960ad_83d0e49f-8420-4f0b-b62f-77534644477e.webp?v=1714722453","variant_ids":[41886674387043]},"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-PB58","featured_media":{"alt":null,"id":23877466292323,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/120d259dc47df26a48386367aa1e5f7518a960ad_83d0e49f-8420-4f0b-b62f-77534644477e.webp?v=1714722453"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41886674387043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB58","requires_shipping":true,"taxable":true,"featured_image":{"id":31472548905059,"product_id":7408542580835,"position":10,"created_at":"2024-05-03T15:47:33+08:00","updated_at":"2024-05-03T15:47:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/120d259dc47df26a48386367aa1e5f7518a960ad_83d0e49f-8420-4f0b-b62f-77534644477e.webp?v=1714722453","variant_ids":[41886674387043]},"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-PB58","featured_media":{"alt":null,"id":23877466292323,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/120d259dc47df26a48386367aa1e5f7518a960ad_83d0e49f-8420-4f0b-b62f-77534644477e.webp?v=1714722453"}},"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: "停產"
}