$product = {"id":7414027583587,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pc08","description":null,"published_at":"2024-06-11T17:48:07+08:00","created_at":"2024-05-05T14:03:54+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41903493021795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484498706531,"product_id":7414027583587,"position":10,"created_at":"2024-05-05T14:04:17+08:00","updated_at":"2024-05-05T14:04:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10d17c6309e92a0e10667ae6c198a5573808afdc_deaccb76-4e1f-4dd8-aa5d-c56942ea48b5.webp?v=1714889057","variant_ids":[41903493021795]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-PC08","featured_media":{"alt":null,"id":23889792827491,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10d17c6309e92a0e10667ae6c198a5573808afdc_deaccb76-4e1f-4dd8-aa5d-c56942ea48b5.webp?v=1714889057"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903493316707,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484495233123,"product_id":7414027583587,"position":4,"created_at":"2024-05-05T14:04:04+08:00","updated_at":"2024-05-05T14:04:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/609e802eb407c871a12f44a7e02a14bae92d709c_31af21ef-ffe9-4d3a-8dec-621a6b380bb4.webp?v=1714889044","variant_ids":[41903493316707]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-PC08","featured_media":{"alt":null,"id":23889789091939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/609e802eb407c871a12f44a7e02a14bae92d709c_31af21ef-ffe9-4d3a-8dec-621a6b380bb4.webp?v=1714889044"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8714031aba93b1e992afdbab6cfbbbfe329c9140_fe2beda9-a775-4b06-9d79-3f4e63dbc0ad.webp?v=1714889037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7a679510e9feed0d29df59e5480e64feffc9796_141182d7-0311-4b78-8986-a55f85e8c974.webp?v=1714889039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39b8e4e4ab6df9ce09de579e6cfc304dd7f4d3a0_e57f70ab-680a-4092-a2f8-8ee8d6264213.webp?v=1714889042","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/609e802eb407c871a12f44a7e02a14bae92d709c_31af21ef-ffe9-4d3a-8dec-621a6b380bb4.webp?v=1714889044","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e5506e9d35d53eea30dad77d2792a526ecf43dc_b594a7aa-b0f8-4b97-b573-af67a5f693b3.webp?v=1714889046","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60907ef00fff18c941bf39c7440692a51eb35f71_3111c091-6783-455f-a6fe-221d5624301f.webp?v=1714889048","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1404db70c408c88e48d1d17c3db9d2de6c7dc2ef_efd4a386-90b3-4343-b42a-e5a61b87512e.webp?v=1714889051","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e69ef4f18466329490aa3378f2fb55f9b70539c4_d14b5c02-5c99-4e06-9339-1ba37bc2d59e.webp?v=1714889053","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7399e44239b0387981c75509a26d8b2bc180fb0_dcbbb798-60ef-4c96-9f90-3ee185d0c42d.webp?v=1714889055","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10d17c6309e92a0e10667ae6c198a5573808afdc_deaccb76-4e1f-4dd8-aa5d-c56942ea48b5.webp?v=1714889057","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e08c0f838bf0aa5488c08e4a7e6a17288eb8a05_8ef463a5-f3f8-4934-bfe4-d80c0bf6cee8.webp?v=1714889060"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8714031aba93b1e992afdbab6cfbbbfe329c9140_fe2beda9-a775-4b06-9d79-3f4e63dbc0ad.webp?v=1714889037","options":["color"],"media":[{"alt":null,"id":23889787551843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8714031aba93b1e992afdbab6cfbbbfe329c9140_fe2beda9-a775-4b06-9d79-3f4e63dbc0ad.webp?v=1714889037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8714031aba93b1e992afdbab6cfbbbfe329c9140_fe2beda9-a775-4b06-9d79-3f4e63dbc0ad.webp?v=1714889037","width":2000},{"alt":null,"id":23889788010595,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7a679510e9feed0d29df59e5480e64feffc9796_141182d7-0311-4b78-8986-a55f85e8c974.webp?v=1714889039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7a679510e9feed0d29df59e5480e64feffc9796_141182d7-0311-4b78-8986-a55f85e8c974.webp?v=1714889039","width":2000},{"alt":null,"id":23889788600419,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39b8e4e4ab6df9ce09de579e6cfc304dd7f4d3a0_e57f70ab-680a-4092-a2f8-8ee8d6264213.webp?v=1714889042"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39b8e4e4ab6df9ce09de579e6cfc304dd7f4d3a0_e57f70ab-680a-4092-a2f8-8ee8d6264213.webp?v=1714889042","width":2000},{"alt":null,"id":23889789091939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/609e802eb407c871a12f44a7e02a14bae92d709c_31af21ef-ffe9-4d3a-8dec-621a6b380bb4.webp?v=1714889044"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/609e802eb407c871a12f44a7e02a14bae92d709c_31af21ef-ffe9-4d3a-8dec-621a6b380bb4.webp?v=1714889044","width":2000},{"alt":null,"id":23889790533731,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e5506e9d35d53eea30dad77d2792a526ecf43dc_b594a7aa-b0f8-4b97-b573-af67a5f693b3.webp?v=1714889046"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e5506e9d35d53eea30dad77d2792a526ecf43dc_b594a7aa-b0f8-4b97-b573-af67a5f693b3.webp?v=1714889046","width":2000},{"alt":null,"id":23889791025251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60907ef00fff18c941bf39c7440692a51eb35f71_3111c091-6783-455f-a6fe-221d5624301f.webp?v=1714889048"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60907ef00fff18c941bf39c7440692a51eb35f71_3111c091-6783-455f-a6fe-221d5624301f.webp?v=1714889048","width":2000},{"alt":null,"id":23889791418467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1404db70c408c88e48d1d17c3db9d2de6c7dc2ef_efd4a386-90b3-4343-b42a-e5a61b87512e.webp?v=1714889051"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1404db70c408c88e48d1d17c3db9d2de6c7dc2ef_efd4a386-90b3-4343-b42a-e5a61b87512e.webp?v=1714889051","width":2000},{"alt":null,"id":23889791942755,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e69ef4f18466329490aa3378f2fb55f9b70539c4_d14b5c02-5c99-4e06-9339-1ba37bc2d59e.webp?v=1714889053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e69ef4f18466329490aa3378f2fb55f9b70539c4_d14b5c02-5c99-4e06-9339-1ba37bc2d59e.webp?v=1714889053","width":2000},{"alt":null,"id":23889792401507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7399e44239b0387981c75509a26d8b2bc180fb0_dcbbb798-60ef-4c96-9f90-3ee185d0c42d.webp?v=1714889055"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7399e44239b0387981c75509a26d8b2bc180fb0_dcbbb798-60ef-4c96-9f90-3ee185d0c42d.webp?v=1714889055","width":2000},{"alt":null,"id":23889792827491,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10d17c6309e92a0e10667ae6c198a5573808afdc_deaccb76-4e1f-4dd8-aa5d-c56942ea48b5.webp?v=1714889057"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10d17c6309e92a0e10667ae6c198a5573808afdc_deaccb76-4e1f-4dd8-aa5d-c56942ea48b5.webp?v=1714889057","width":2000},{"alt":null,"id":23889793384547,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e08c0f838bf0aa5488c08e4a7e6a17288eb8a05_8ef463a5-f3f8-4934-bfe4-d80c0bf6cee8.webp?v=1714889060"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e08c0f838bf0aa5488c08e4a7e6a17288eb8a05_8ef463a5-f3f8-4934-bfe4-d80c0bf6cee8.webp?v=1714889060","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903493021795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484498706531,"product_id":7414027583587,"position":10,"created_at":"2024-05-05T14:04:17+08:00","updated_at":"2024-05-05T14:04:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10d17c6309e92a0e10667ae6c198a5573808afdc_deaccb76-4e1f-4dd8-aa5d-c56942ea48b5.webp?v=1714889057","variant_ids":[41903493021795]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-PC08","featured_media":{"alt":null,"id":23889792827491,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10d17c6309e92a0e10667ae6c198a5573808afdc_deaccb76-4e1f-4dd8-aa5d-c56942ea48b5.webp?v=1714889057"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903493316707,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484495233123,"product_id":7414027583587,"position":4,"created_at":"2024-05-05T14:04:04+08:00","updated_at":"2024-05-05T14:04:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/609e802eb407c871a12f44a7e02a14bae92d709c_31af21ef-ffe9-4d3a-8dec-621a6b380bb4.webp?v=1714889044","variant_ids":[41903493316707]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-PC08","featured_media":{"alt":null,"id":23889789091939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/609e802eb407c871a12f44a7e02a14bae92d709c_31af21ef-ffe9-4d3a-8dec-621a6b380bb4.webp?v=1714889044"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903493021795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484498706531,"product_id":7414027583587,"position":10,"created_at":"2024-05-05T14:04:17+08:00","updated_at":"2024-05-05T14:04:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10d17c6309e92a0e10667ae6c198a5573808afdc_deaccb76-4e1f-4dd8-aa5d-c56942ea48b5.webp?v=1714889057","variant_ids":[41903493021795]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-PC08","featured_media":{"alt":null,"id":23889792827491,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10d17c6309e92a0e10667ae6c198a5573808afdc_deaccb76-4e1f-4dd8-aa5d-c56942ea48b5.webp?v=1714889057"}},"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: "停產"
}