$product = {"id":7408413278307,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X戰機-線條白","handle":"iphone-12-pro-max-mod-nx-printable-pb16","description":null,"published_at":"2024-06-11T16:36:33+08:00","created_at":"2024-05-03T15:21:37+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":41885191667811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31472208609379,"product_id":7408413278307,"position":8,"created_at":"2024-05-03T15:21:56+08:00","updated_at":"2024-05-03T15:21:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc31cf429ca5bff219c5d60bb7a47447cc3e047d_7db17f7f-bafb-41c3-8b42-969ff61b9502.webp?v=1714720916","variant_ids":[41885191667811]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X戰機-線條白 - 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-PB16","featured_media":{"alt":null,"id":23877124391011,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc31cf429ca5bff219c5d60bb7a47447cc3e047d_7db17f7f-bafb-41c3-8b42-969ff61b9502.webp?v=1714720916"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/775fc16db30e1e386cd442fc9d87f6b5af96d909_092988f4-d0a4-4cda-967d-81992d0a9f08.webp?v=1714720900","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dce194d7da6efb9693e300e54b6841704878469c_ae54e90d-35ab-4a37-a5bf-63642157a175.webp?v=1714720902","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a470df6882def9ac529eb33a2a65b610b9e2713f_fb7ea7d8-0f20-4737-b52b-def09e93009a.webp?v=1714720904","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1887668f072cfe2d19a56561483055ed110571c0_a823179b-9ed5-400e-b2c8-dbec65db436e.webp?v=1714720907","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c4a5f3d4a3b649bab4faf55196aa56c50f718a1_4cacfff0-260e-4d07-b790-cab506e08067.webp?v=1714720909","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c51327cc36ba8039739d16c31c25911fdd409a44_fe82b05f-9a70-4fae-9c9a-5d5cbb8af117.webp?v=1714720912","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9d87c91d07311c27e0c7f83c1f80af198d96c68_6913c86c-d9a4-415a-baf9-31830411e0bd.webp?v=1714720914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc31cf429ca5bff219c5d60bb7a47447cc3e047d_7db17f7f-bafb-41c3-8b42-969ff61b9502.webp?v=1714720916","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e383b26c6cf5f9b8304a2957d2a06eafb248de24_335cbc11-6266-46fc-864d-12f0e5242eab.webp?v=1714720919","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e92da764ca37b480b9bfc3fecaeb89c211b08a7_daa28979-a4a8-451b-9caf-7035f29f7f6b.webp?v=1714720921"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/775fc16db30e1e386cd442fc9d87f6b5af96d909_092988f4-d0a4-4cda-967d-81992d0a9f08.webp?v=1714720900","options":["color"],"media":[{"alt":null,"id":23877119180899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/775fc16db30e1e386cd442fc9d87f6b5af96d909_092988f4-d0a4-4cda-967d-81992d0a9f08.webp?v=1714720900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/775fc16db30e1e386cd442fc9d87f6b5af96d909_092988f4-d0a4-4cda-967d-81992d0a9f08.webp?v=1714720900","width":2000},{"alt":null,"id":23877119705187,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dce194d7da6efb9693e300e54b6841704878469c_ae54e90d-35ab-4a37-a5bf-63642157a175.webp?v=1714720902"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dce194d7da6efb9693e300e54b6841704878469c_ae54e90d-35ab-4a37-a5bf-63642157a175.webp?v=1714720902","width":2000},{"alt":null,"id":23877120327779,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a470df6882def9ac529eb33a2a65b610b9e2713f_fb7ea7d8-0f20-4737-b52b-def09e93009a.webp?v=1714720904"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a470df6882def9ac529eb33a2a65b610b9e2713f_fb7ea7d8-0f20-4737-b52b-def09e93009a.webp?v=1714720904","width":2000},{"alt":null,"id":23877120786531,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1887668f072cfe2d19a56561483055ed110571c0_a823179b-9ed5-400e-b2c8-dbec65db436e.webp?v=1714720907"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1887668f072cfe2d19a56561483055ed110571c0_a823179b-9ed5-400e-b2c8-dbec65db436e.webp?v=1714720907","width":2000},{"alt":null,"id":23877121474659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c4a5f3d4a3b649bab4faf55196aa56c50f718a1_4cacfff0-260e-4d07-b790-cab506e08067.webp?v=1714720909"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c4a5f3d4a3b649bab4faf55196aa56c50f718a1_4cacfff0-260e-4d07-b790-cab506e08067.webp?v=1714720909","width":2000},{"alt":null,"id":23877121900643,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c51327cc36ba8039739d16c31c25911fdd409a44_fe82b05f-9a70-4fae-9c9a-5d5cbb8af117.webp?v=1714720912"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c51327cc36ba8039739d16c31c25911fdd409a44_fe82b05f-9a70-4fae-9c9a-5d5cbb8af117.webp?v=1714720912","width":2000},{"alt":null,"id":23877123244131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9d87c91d07311c27e0c7f83c1f80af198d96c68_6913c86c-d9a4-415a-baf9-31830411e0bd.webp?v=1714720914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9d87c91d07311c27e0c7f83c1f80af198d96c68_6913c86c-d9a4-415a-baf9-31830411e0bd.webp?v=1714720914","width":2000},{"alt":null,"id":23877124391011,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc31cf429ca5bff219c5d60bb7a47447cc3e047d_7db17f7f-bafb-41c3-8b42-969ff61b9502.webp?v=1714720916"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc31cf429ca5bff219c5d60bb7a47447cc3e047d_7db17f7f-bafb-41c3-8b42-969ff61b9502.webp?v=1714720916","width":2000},{"alt":null,"id":23877125111907,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e383b26c6cf5f9b8304a2957d2a06eafb248de24_335cbc11-6266-46fc-864d-12f0e5242eab.webp?v=1714720919"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e383b26c6cf5f9b8304a2957d2a06eafb248de24_335cbc11-6266-46fc-864d-12f0e5242eab.webp?v=1714720919","width":2000},{"alt":null,"id":23877125472355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e92da764ca37b480b9bfc3fecaeb89c211b08a7_daa28979-a4a8-451b-9caf-7035f29f7f6b.webp?v=1714720921"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e92da764ca37b480b9bfc3fecaeb89c211b08a7_daa28979-a4a8-451b-9caf-7035f29f7f6b.webp?v=1714720921","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41885191667811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31472208609379,"product_id":7408413278307,"position":8,"created_at":"2024-05-03T15:21:56+08:00","updated_at":"2024-05-03T15:21:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc31cf429ca5bff219c5d60bb7a47447cc3e047d_7db17f7f-bafb-41c3-8b42-969ff61b9502.webp?v=1714720916","variant_ids":[41885191667811]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X戰機-線條白 - 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-PB16","featured_media":{"alt":null,"id":23877124391011,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc31cf429ca5bff219c5d60bb7a47447cc3e047d_7db17f7f-bafb-41c3-8b42-969ff61b9502.webp?v=1714720916"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41885191667811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31472208609379,"product_id":7408413278307,"position":8,"created_at":"2024-05-03T15:21:56+08:00","updated_at":"2024-05-03T15:21:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc31cf429ca5bff219c5d60bb7a47447cc3e047d_7db17f7f-bafb-41c3-8b42-969ff61b9502.webp?v=1714720916","variant_ids":[41885191667811]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X戰機-線條白 - 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-PB16","featured_media":{"alt":null,"id":23877124391011,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc31cf429ca5bff219c5d60bb7a47447cc3e047d_7db17f7f-bafb-41c3-8b42-969ff61b9502.webp?v=1714720916"}},"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: "停產"
}