$product = {"id":7408166142051,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-潮流系列","handle":"iphone-13-pro-max-mod-nx-printable-pb43","description":null,"published_at":"2024-06-11T16:33:10+08:00","created_at":"2024-05-03T12:12:43+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 13 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":41883416395875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB43","requires_shipping":true,"taxable":true,"featured_image":{"id":31471360999523,"product_id":7408166142051,"position":2,"created_at":"2024-05-03T12:12:48+08:00","updated_at":"2024-05-03T12:12:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e87e9db42cdd9ef68e3715e8bb3354aa4943715_f36f28b7-66a2-4f98-a74b-d12ebbb8c283.webp?v=1714709568","variant_ids":[41883416395875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB0123224-PB43","featured_media":{"alt":null,"id":23876266917987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e87e9db42cdd9ef68e3715e8bb3354aa4943715_f36f28b7-66a2-4f98-a74b-d12ebbb8c283.webp?v=1714709568"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883416690787,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB43","requires_shipping":true,"taxable":true,"featured_image":{"id":31471363850339,"product_id":7408166142051,"position":8,"created_at":"2024-05-03T12:13:04+08:00","updated_at":"2024-05-03T12:13:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc24a7e99327ff2b27d915a4d2e7437ef7cc30df_e1ece512-2354-49e5-9aef-5f619dc6406a.webp?v=1714709584","variant_ids":[41883416690787]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB01232J5-PB43","featured_media":{"alt":null,"id":23876269834339,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc24a7e99327ff2b27d915a4d2e7437ef7cc30df_e1ece512-2354-49e5-9aef-5f619dc6406a.webp?v=1714709584"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa2cf66cc79452c96bbea53fbb9cec2eeaaa464_f7fc115c-5a2c-447e-8a5b-b135d4b06afb.webp?v=1714709566","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e87e9db42cdd9ef68e3715e8bb3354aa4943715_f36f28b7-66a2-4f98-a74b-d12ebbb8c283.webp?v=1714709568","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3105eaff41ba7b9cbdff19137363fd430be6033_f88c1986-efec-4e15-968d-613a34610ade.webp?v=1714709571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c66d1fe4533c3b5d0794328dfa07b95438360ad3_5c8102d9-faec-4cef-aed8-713d954336e6.webp?v=1714709574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c7f0665b8ce1dfc0678432c430352923ad86e44_65583270-bafd-4608-941e-fbbf8acf1cd8.webp?v=1714709576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/149b5294ea601c13cf9029e8350958298e5719fb_8acc703c-00ce-4818-a148-1b0b90d75805.webp?v=1714709579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8954a83fd7a16246acb9ab054da349468e3f0042_e957dfb6-ac8f-4176-b245-d261f4faf70f.webp?v=1714709581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc24a7e99327ff2b27d915a4d2e7437ef7cc30df_e1ece512-2354-49e5-9aef-5f619dc6406a.webp?v=1714709584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c24e75da5b79fe1da0ac9a66def9c0ed60474b1f_52018ed7-0b9b-4cc0-8397-de9ef2048aeb.webp?v=1714709586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6a1eebb7f2b342caa92ca8c961acbd5f2c3d208_766817a3-da5a-491e-b95c-e10813fd1208.webp?v=1714709589"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa2cf66cc79452c96bbea53fbb9cec2eeaaa464_f7fc115c-5a2c-447e-8a5b-b135d4b06afb.webp?v=1714709566","options":["color"],"media":[{"alt":null,"id":23876266393699,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa2cf66cc79452c96bbea53fbb9cec2eeaaa464_f7fc115c-5a2c-447e-8a5b-b135d4b06afb.webp?v=1714709566"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa2cf66cc79452c96bbea53fbb9cec2eeaaa464_f7fc115c-5a2c-447e-8a5b-b135d4b06afb.webp?v=1714709566","width":2000},{"alt":null,"id":23876266917987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e87e9db42cdd9ef68e3715e8bb3354aa4943715_f36f28b7-66a2-4f98-a74b-d12ebbb8c283.webp?v=1714709568"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e87e9db42cdd9ef68e3715e8bb3354aa4943715_f36f28b7-66a2-4f98-a74b-d12ebbb8c283.webp?v=1714709568","width":2000},{"alt":null,"id":23876267442275,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3105eaff41ba7b9cbdff19137363fd430be6033_f88c1986-efec-4e15-968d-613a34610ade.webp?v=1714709571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3105eaff41ba7b9cbdff19137363fd430be6033_f88c1986-efec-4e15-968d-613a34610ade.webp?v=1714709571","width":2000},{"alt":null,"id":23876267802723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c66d1fe4533c3b5d0794328dfa07b95438360ad3_5c8102d9-faec-4cef-aed8-713d954336e6.webp?v=1714709574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c66d1fe4533c3b5d0794328dfa07b95438360ad3_5c8102d9-faec-4cef-aed8-713d954336e6.webp?v=1714709574","width":2000},{"alt":null,"id":23876268392547,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c7f0665b8ce1dfc0678432c430352923ad86e44_65583270-bafd-4608-941e-fbbf8acf1cd8.webp?v=1714709576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c7f0665b8ce1dfc0678432c430352923ad86e44_65583270-bafd-4608-941e-fbbf8acf1cd8.webp?v=1714709576","width":2000},{"alt":null,"id":23876268752995,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/149b5294ea601c13cf9029e8350958298e5719fb_8acc703c-00ce-4818-a148-1b0b90d75805.webp?v=1714709579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/149b5294ea601c13cf9029e8350958298e5719fb_8acc703c-00ce-4818-a148-1b0b90d75805.webp?v=1714709579","width":2000},{"alt":null,"id":23876269342819,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8954a83fd7a16246acb9ab054da349468e3f0042_e957dfb6-ac8f-4176-b245-d261f4faf70f.webp?v=1714709581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8954a83fd7a16246acb9ab054da349468e3f0042_e957dfb6-ac8f-4176-b245-d261f4faf70f.webp?v=1714709581","width":2000},{"alt":null,"id":23876269834339,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc24a7e99327ff2b27d915a4d2e7437ef7cc30df_e1ece512-2354-49e5-9aef-5f619dc6406a.webp?v=1714709584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc24a7e99327ff2b27d915a4d2e7437ef7cc30df_e1ece512-2354-49e5-9aef-5f619dc6406a.webp?v=1714709584","width":2000},{"alt":null,"id":23876270293091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c24e75da5b79fe1da0ac9a66def9c0ed60474b1f_52018ed7-0b9b-4cc0-8397-de9ef2048aeb.webp?v=1714709586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c24e75da5b79fe1da0ac9a66def9c0ed60474b1f_52018ed7-0b9b-4cc0-8397-de9ef2048aeb.webp?v=1714709586","width":2000},{"alt":null,"id":23876270882915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6a1eebb7f2b342caa92ca8c961acbd5f2c3d208_766817a3-da5a-491e-b95c-e10813fd1208.webp?v=1714709589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6a1eebb7f2b342caa92ca8c961acbd5f2c3d208_766817a3-da5a-491e-b95c-e10813fd1208.webp?v=1714709589","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41883416395875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB43","requires_shipping":true,"taxable":true,"featured_image":{"id":31471360999523,"product_id":7408166142051,"position":2,"created_at":"2024-05-03T12:12:48+08:00","updated_at":"2024-05-03T12:12:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e87e9db42cdd9ef68e3715e8bb3354aa4943715_f36f28b7-66a2-4f98-a74b-d12ebbb8c283.webp?v=1714709568","variant_ids":[41883416395875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB0123224-PB43","featured_media":{"alt":null,"id":23876266917987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e87e9db42cdd9ef68e3715e8bb3354aa4943715_f36f28b7-66a2-4f98-a74b-d12ebbb8c283.webp?v=1714709568"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883416690787,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB43","requires_shipping":true,"taxable":true,"featured_image":{"id":31471363850339,"product_id":7408166142051,"position":8,"created_at":"2024-05-03T12:13:04+08:00","updated_at":"2024-05-03T12:13:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc24a7e99327ff2b27d915a4d2e7437ef7cc30df_e1ece512-2354-49e5-9aef-5f619dc6406a.webp?v=1714709584","variant_ids":[41883416690787]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB01232J5-PB43","featured_media":{"alt":null,"id":23876269834339,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc24a7e99327ff2b27d915a4d2e7437ef7cc30df_e1ece512-2354-49e5-9aef-5f619dc6406a.webp?v=1714709584"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41883416395875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB43","requires_shipping":true,"taxable":true,"featured_image":{"id":31471360999523,"product_id":7408166142051,"position":2,"created_at":"2024-05-03T12:12:48+08:00","updated_at":"2024-05-03T12:12:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e87e9db42cdd9ef68e3715e8bb3354aa4943715_f36f28b7-66a2-4f98-a74b-d12ebbb8c283.webp?v=1714709568","variant_ids":[41883416395875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB0123224-PB43","featured_media":{"alt":null,"id":23876266917987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e87e9db42cdd9ef68e3715e8bb3354aa4943715_f36f28b7-66a2-4f98-a74b-d12ebbb8c283.webp?v=1714709568"}},"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: "停產"
}