$product = {"id":7408461119587,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 史迪奇 - 經典系列-不游泳但衝浪","handle":"iphone-12-pro-max-mod-nx-printable-yf09","description":null,"published_at":"2024-06-11T16:37:52+08:00","created_at":"2024-05-03T15:31:09+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-stitch","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":41885734895715,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31472340467811,"product_id":7408461119587,"position":8,"created_at":"2024-05-03T15:31:28+08:00","updated_at":"2024-05-03T15:31:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8751c2cfae436a62f2ecf31d9f6234cbaa6df4f0_98f73ce0-c710-42ae-9d1e-159928318ce4.webp?v=1714721488","variant_ids":[41885734895715]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 史迪奇 - 經典系列-不游泳但衝浪 - 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-YF09","featured_media":{"alt":null,"id":23877257068643,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8751c2cfae436a62f2ecf31d9f6234cbaa6df4f0_98f73ce0-c710-42ae-9d1e-159928318ce4.webp?v=1714721488"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73b42d53c8d2fb5d48d8a35495fdd3c5713fafc4_9942f03c-b868-4dae-a0ce-8bea14831e1c.webp?v=1714721472","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cdedeb49efb97b28c07f2ebe223a0a4f7ba7972_f127f05b-fd16-4906-a89f-399a5e9c85da.webp?v=1714721474","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5387605db45c0250c71f95fe42659ec8766c59ef_15c3537d-3e5a-433d-a6e6-90536e9c6c5e.webp?v=1714721476","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48d05e1c5eea57fff95f39b599f3e33169cca197_a2998d15-0492-4f9b-b36a-7fbcb20da5c1.webp?v=1714721478","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aacc24009ff4778622128c4789d6aa2a46e71e86_e4590ead-2fc4-4fa3-aa85-84749d8fef88.webp?v=1714721481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fb544945f683013a6d62ca9e417986b51a74d2f_a0529bca-1c4b-4bdc-b1ac-326f25b9a74b.webp?v=1714721483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c36e229f3e236fffb646a0f6ed7448ffe1d0c1_1c351912-e458-4474-94e1-e031910c4a25.webp?v=1714721486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8751c2cfae436a62f2ecf31d9f6234cbaa6df4f0_98f73ce0-c710-42ae-9d1e-159928318ce4.webp?v=1714721488","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16671c7b92c5da045efe153bdb68b0f8883e76a_2ffb35ec-efc4-4ad9-a65c-089d5d1c37ef.webp?v=1714721490","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee0ca8c0cc58600f234bd7ad0398c01393101c22_ec9a1260-41fa-4401-b906-29af8fd02799.webp?v=1714721493"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73b42d53c8d2fb5d48d8a35495fdd3c5713fafc4_9942f03c-b868-4dae-a0ce-8bea14831e1c.webp?v=1714721472","options":["color"],"media":[{"alt":null,"id":23877253398627,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73b42d53c8d2fb5d48d8a35495fdd3c5713fafc4_9942f03c-b868-4dae-a0ce-8bea14831e1c.webp?v=1714721472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73b42d53c8d2fb5d48d8a35495fdd3c5713fafc4_9942f03c-b868-4dae-a0ce-8bea14831e1c.webp?v=1714721472","width":2000},{"alt":null,"id":23877254021219,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cdedeb49efb97b28c07f2ebe223a0a4f7ba7972_f127f05b-fd16-4906-a89f-399a5e9c85da.webp?v=1714721474"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cdedeb49efb97b28c07f2ebe223a0a4f7ba7972_f127f05b-fd16-4906-a89f-399a5e9c85da.webp?v=1714721474","width":2000},{"alt":null,"id":23877254479971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5387605db45c0250c71f95fe42659ec8766c59ef_15c3537d-3e5a-433d-a6e6-90536e9c6c5e.webp?v=1714721476"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5387605db45c0250c71f95fe42659ec8766c59ef_15c3537d-3e5a-433d-a6e6-90536e9c6c5e.webp?v=1714721476","width":2000},{"alt":null,"id":23877255037027,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48d05e1c5eea57fff95f39b599f3e33169cca197_a2998d15-0492-4f9b-b36a-7fbcb20da5c1.webp?v=1714721478"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48d05e1c5eea57fff95f39b599f3e33169cca197_a2998d15-0492-4f9b-b36a-7fbcb20da5c1.webp?v=1714721478","width":2000},{"alt":null,"id":23877255659619,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aacc24009ff4778622128c4789d6aa2a46e71e86_e4590ead-2fc4-4fa3-aa85-84749d8fef88.webp?v=1714721481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aacc24009ff4778622128c4789d6aa2a46e71e86_e4590ead-2fc4-4fa3-aa85-84749d8fef88.webp?v=1714721481","width":2000},{"alt":null,"id":23877256216675,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fb544945f683013a6d62ca9e417986b51a74d2f_a0529bca-1c4b-4bdc-b1ac-326f25b9a74b.webp?v=1714721483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fb544945f683013a6d62ca9e417986b51a74d2f_a0529bca-1c4b-4bdc-b1ac-326f25b9a74b.webp?v=1714721483","width":2000},{"alt":null,"id":23877256511587,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c36e229f3e236fffb646a0f6ed7448ffe1d0c1_1c351912-e458-4474-94e1-e031910c4a25.webp?v=1714721486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c36e229f3e236fffb646a0f6ed7448ffe1d0c1_1c351912-e458-4474-94e1-e031910c4a25.webp?v=1714721486","width":2000},{"alt":null,"id":23877257068643,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8751c2cfae436a62f2ecf31d9f6234cbaa6df4f0_98f73ce0-c710-42ae-9d1e-159928318ce4.webp?v=1714721488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8751c2cfae436a62f2ecf31d9f6234cbaa6df4f0_98f73ce0-c710-42ae-9d1e-159928318ce4.webp?v=1714721488","width":2000},{"alt":null,"id":23877257625699,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16671c7b92c5da045efe153bdb68b0f8883e76a_2ffb35ec-efc4-4ad9-a65c-089d5d1c37ef.webp?v=1714721490"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16671c7b92c5da045efe153bdb68b0f8883e76a_2ffb35ec-efc4-4ad9-a65c-089d5d1c37ef.webp?v=1714721490","width":2000},{"alt":null,"id":23877258051683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee0ca8c0cc58600f234bd7ad0398c01393101c22_ec9a1260-41fa-4401-b906-29af8fd02799.webp?v=1714721493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee0ca8c0cc58600f234bd7ad0398c01393101c22_ec9a1260-41fa-4401-b906-29af8fd02799.webp?v=1714721493","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41885734895715,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31472340467811,"product_id":7408461119587,"position":8,"created_at":"2024-05-03T15:31:28+08:00","updated_at":"2024-05-03T15:31:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8751c2cfae436a62f2ecf31d9f6234cbaa6df4f0_98f73ce0-c710-42ae-9d1e-159928318ce4.webp?v=1714721488","variant_ids":[41885734895715]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 史迪奇 - 經典系列-不游泳但衝浪 - 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-YF09","featured_media":{"alt":null,"id":23877257068643,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8751c2cfae436a62f2ecf31d9f6234cbaa6df4f0_98f73ce0-c710-42ae-9d1e-159928318ce4.webp?v=1714721488"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41885734895715,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31472340467811,"product_id":7408461119587,"position":8,"created_at":"2024-05-03T15:31:28+08:00","updated_at":"2024-05-03T15:31:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8751c2cfae436a62f2ecf31d9f6234cbaa6df4f0_98f73ce0-c710-42ae-9d1e-159928318ce4.webp?v=1714721488","variant_ids":[41885734895715]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 史迪奇 - 經典系列-不游泳但衝浪 - 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-YF09","featured_media":{"alt":null,"id":23877257068643,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8751c2cfae436a62f2ecf31d9f6234cbaa6df4f0_98f73ce0-c710-42ae-9d1e-159928318ce4.webp?v=1714721488"}},"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: "停產"
}