$product = {"id":7408005251171,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 史迪奇 - 貼紙系列-夏威夷舞蹈","handle":"iphone-13-pro-max-mod-nx-printable-yf07","description":null,"published_at":"2024-06-11T16:28:52+08:00","created_at":"2024-05-03T11:39:14+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 13 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":41881626509411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-YF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470949007459,"product_id":7408005251171,"position":10,"created_at":"2024-05-03T11:39:40+08:00","updated_at":"2024-05-03T11:39:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c95b218989a069233dd080c4b30208fb033292a_a21f09c0-7c91-4906-8b0c-cd3fffd5c8dc.webp?v=1714707580","variant_ids":[41881626509411]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB0123224-YF07","featured_media":{"alt":null,"id":23875853779043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c95b218989a069233dd080c4b30208fb033292a_a21f09c0-7c91-4906-8b0c-cd3fffd5c8dc.webp?v=1714707580"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881626804323,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-YF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470946254947,"product_id":7408005251171,"position":4,"created_at":"2024-05-03T11:39:25+08:00","updated_at":"2024-05-03T11:39:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/858d86e0661eea678ad5a6213f9f59b2ec771924_a7b00e1b-c1d9-4b2b-bb7d-6356c040bc6f.webp?v=1714707565","variant_ids":[41881626804323]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB01232J5-YF07","featured_media":{"alt":null,"id":23875850928227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/858d86e0661eea678ad5a6213f9f59b2ec771924_a7b00e1b-c1d9-4b2b-bb7d-6356c040bc6f.webp?v=1714707565"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c384f96ba2d8b7e83781c9a95c88e1583b92ecc5_94b0d156-9896-4c55-9d80-0ee9333c53fd.webp?v=1714707557","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64422515ce599489326b062927a3e09d0d3511a0_d96154f7-cba0-40b4-88d5-11ae4a8f7a32.webp?v=1714707560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c04be722aba008f40f51572550b4b8e6933741b2_c9c4cc4f-0bb9-4a83-b991-9e2c70a01e1a.webp?v=1714707562","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/858d86e0661eea678ad5a6213f9f59b2ec771924_a7b00e1b-c1d9-4b2b-bb7d-6356c040bc6f.webp?v=1714707565","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adda6e4dd6272f9324394a83bb1da5fae90d9a19_6d99c849-108c-4fa1-a0c3-83fbffd05242.webp?v=1714707567","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a81daf383d55dd4d594919206dfe92501fa232b6_b763e3a8-1236-4fdf-ae4d-fc7cbdae80cf.webp?v=1714707570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51abea9cf90a4d7db2f14f2412b02bdca3522b21_37560756-1746-47c7-a4c4-fdadf32071cf.webp?v=1714707572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db4c92d1a22091c4e8b7a20e1f05394028ced802_a1cb6e1a-9f30-4de6-88ae-f6f2451ccfe6.webp?v=1714707575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e9970fa9e432121fd9aa349f4d4225c152549be_12b5a814-17f6-4239-bddc-af66880c917c.webp?v=1714707577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c95b218989a069233dd080c4b30208fb033292a_a21f09c0-7c91-4906-8b0c-cd3fffd5c8dc.webp?v=1714707580"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c384f96ba2d8b7e83781c9a95c88e1583b92ecc5_94b0d156-9896-4c55-9d80-0ee9333c53fd.webp?v=1714707557","options":["color"],"media":[{"alt":null,"id":23875849715811,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c384f96ba2d8b7e83781c9a95c88e1583b92ecc5_94b0d156-9896-4c55-9d80-0ee9333c53fd.webp?v=1714707557"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c384f96ba2d8b7e83781c9a95c88e1583b92ecc5_94b0d156-9896-4c55-9d80-0ee9333c53fd.webp?v=1714707557","width":2000},{"alt":null,"id":23875850010723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64422515ce599489326b062927a3e09d0d3511a0_d96154f7-cba0-40b4-88d5-11ae4a8f7a32.webp?v=1714707560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64422515ce599489326b062927a3e09d0d3511a0_d96154f7-cba0-40b4-88d5-11ae4a8f7a32.webp?v=1714707560","width":2000},{"alt":null,"id":23875850600547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c04be722aba008f40f51572550b4b8e6933741b2_c9c4cc4f-0bb9-4a83-b991-9e2c70a01e1a.webp?v=1714707562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c04be722aba008f40f51572550b4b8e6933741b2_c9c4cc4f-0bb9-4a83-b991-9e2c70a01e1a.webp?v=1714707562","width":2000},{"alt":null,"id":23875850928227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/858d86e0661eea678ad5a6213f9f59b2ec771924_a7b00e1b-c1d9-4b2b-bb7d-6356c040bc6f.webp?v=1714707565"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/858d86e0661eea678ad5a6213f9f59b2ec771924_a7b00e1b-c1d9-4b2b-bb7d-6356c040bc6f.webp?v=1714707565","width":2000},{"alt":null,"id":23875851485283,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adda6e4dd6272f9324394a83bb1da5fae90d9a19_6d99c849-108c-4fa1-a0c3-83fbffd05242.webp?v=1714707567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adda6e4dd6272f9324394a83bb1da5fae90d9a19_6d99c849-108c-4fa1-a0c3-83fbffd05242.webp?v=1714707567","width":2000},{"alt":null,"id":23875851845731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a81daf383d55dd4d594919206dfe92501fa232b6_b763e3a8-1236-4fdf-ae4d-fc7cbdae80cf.webp?v=1714707570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a81daf383d55dd4d594919206dfe92501fa232b6_b763e3a8-1236-4fdf-ae4d-fc7cbdae80cf.webp?v=1714707570","width":2000},{"alt":null,"id":23875852337251,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51abea9cf90a4d7db2f14f2412b02bdca3522b21_37560756-1746-47c7-a4c4-fdadf32071cf.webp?v=1714707572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51abea9cf90a4d7db2f14f2412b02bdca3522b21_37560756-1746-47c7-a4c4-fdadf32071cf.webp?v=1714707572","width":2000},{"alt":null,"id":23875852828771,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db4c92d1a22091c4e8b7a20e1f05394028ced802_a1cb6e1a-9f30-4de6-88ae-f6f2451ccfe6.webp?v=1714707575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db4c92d1a22091c4e8b7a20e1f05394028ced802_a1cb6e1a-9f30-4de6-88ae-f6f2451ccfe6.webp?v=1714707575","width":2000},{"alt":null,"id":23875853156451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e9970fa9e432121fd9aa349f4d4225c152549be_12b5a814-17f6-4239-bddc-af66880c917c.webp?v=1714707577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e9970fa9e432121fd9aa349f4d4225c152549be_12b5a814-17f6-4239-bddc-af66880c917c.webp?v=1714707577","width":2000},{"alt":null,"id":23875853779043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c95b218989a069233dd080c4b30208fb033292a_a21f09c0-7c91-4906-8b0c-cd3fffd5c8dc.webp?v=1714707580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c95b218989a069233dd080c4b30208fb033292a_a21f09c0-7c91-4906-8b0c-cd3fffd5c8dc.webp?v=1714707580","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41881626509411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-YF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470949007459,"product_id":7408005251171,"position":10,"created_at":"2024-05-03T11:39:40+08:00","updated_at":"2024-05-03T11:39:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c95b218989a069233dd080c4b30208fb033292a_a21f09c0-7c91-4906-8b0c-cd3fffd5c8dc.webp?v=1714707580","variant_ids":[41881626509411]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB0123224-YF07","featured_media":{"alt":null,"id":23875853779043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c95b218989a069233dd080c4b30208fb033292a_a21f09c0-7c91-4906-8b0c-cd3fffd5c8dc.webp?v=1714707580"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881626804323,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-YF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470946254947,"product_id":7408005251171,"position":4,"created_at":"2024-05-03T11:39:25+08:00","updated_at":"2024-05-03T11:39:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/858d86e0661eea678ad5a6213f9f59b2ec771924_a7b00e1b-c1d9-4b2b-bb7d-6356c040bc6f.webp?v=1714707565","variant_ids":[41881626804323]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB01232J5-YF07","featured_media":{"alt":null,"id":23875850928227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/858d86e0661eea678ad5a6213f9f59b2ec771924_a7b00e1b-c1d9-4b2b-bb7d-6356c040bc6f.webp?v=1714707565"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41881626509411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-YF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470949007459,"product_id":7408005251171,"position":10,"created_at":"2024-05-03T11:39:40+08:00","updated_at":"2024-05-03T11:39:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c95b218989a069233dd080c4b30208fb033292a_a21f09c0-7c91-4906-8b0c-cd3fffd5c8dc.webp?v=1714707580","variant_ids":[41881626509411]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB0123224-YF07","featured_media":{"alt":null,"id":23875853779043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c95b218989a069233dd080c4b30208fb033292a_a21f09c0-7c91-4906-8b0c-cd3fffd5c8dc.webp?v=1714707580"}},"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: "停產"
}