$product = {"id":7414034890851,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(斯瓦爾巴冰川)","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-af10","description":null,"published_at":"2024-06-11T17:48:20+08:00","created_at":"2024-05-05T14:05:21+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41903575400547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31484512960611,"product_id":7414034890851,"position":1,"created_at":"2024-05-05T14:05:24+08:00","updated_at":"2024-05-05T14:05:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a062fb9cdf61ca8e6fa273357a506e0353c3d2a_a0a8a756-48d9-4d2b-9fdc-92e1b4585be1.webp?v=1714889124","variant_ids":[41903575400547]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-AF10","featured_media":{"alt":null,"id":23889807081571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a062fb9cdf61ca8e6fa273357a506e0353c3d2a_a0a8a756-48d9-4d2b-9fdc-92e1b4585be1.webp?v=1714889124"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903575695459,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31484514959459,"product_id":7414034890851,"position":5,"created_at":"2024-05-05T14:05:34+08:00","updated_at":"2024-05-05T14:05:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f3c63739790a7088ac9ddff1273cb8c34529a3_20bd9515-4496-4f3d-8542-619e6e04b70d.webp?v=1714889134","variant_ids":[41903575695459]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-AF10","featured_media":{"alt":null,"id":23889809113187,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f3c63739790a7088ac9ddff1273cb8c34529a3_20bd9515-4496-4f3d-8542-619e6e04b70d.webp?v=1714889134"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a062fb9cdf61ca8e6fa273357a506e0353c3d2a_a0a8a756-48d9-4d2b-9fdc-92e1b4585be1.webp?v=1714889124","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39b4143d1dfe87c2c29de7653732de28b9ed974a_406304b5-f217-4327-a712-a386bafca694.webp?v=1714889126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdbe40741c6ef88a8add73bad9747f6cd08068c4_f18d0be3-80b2-4d87-807b-bb583855bf6b.webp?v=1714889129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b96ea68c0b92b9388feeb1147bd106b5a62431e1_b1e24c09-e280-484a-a9e5-cea3d49ee137.webp?v=1714889132","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f3c63739790a7088ac9ddff1273cb8c34529a3_20bd9515-4496-4f3d-8542-619e6e04b70d.webp?v=1714889134","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85fab47f1b09e45ca1abbe2df2a337af702c0d42_a160a911-d798-4db9-9fe2-3c954f648796.webp?v=1714889137","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddf3a2c96c5aa1712841bd5a281bd85d5c1c72e2_dba51743-d703-4120-bbc7-b9291fa9e3ea.webp?v=1714889139","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9ac1e28633538388ba07884289aeff487bc5af_18052bcf-e87a-4a4f-8aba-d56e9e51cf69.webp?v=1714889141","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6342b8b20ed212ddd3c41648fc319d7ff769746_fc7cbcb3-9403-46d9-9f5a-8ce2116cd61f.webp?v=1714889144","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/189f313ef7b1f5f1889136224cdc2b9f4ded6378_efd7f768-dc77-403d-890e-112227aa794e.webp?v=1714889146","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6903c5716c37a9097872d4a5dd997430d924363a_e863f32f-9fd3-4b25-9b14-bb200ea05e61.webp?v=1714889148"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a062fb9cdf61ca8e6fa273357a506e0353c3d2a_a0a8a756-48d9-4d2b-9fdc-92e1b4585be1.webp?v=1714889124","options":["color"],"media":[{"alt":null,"id":23889807081571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a062fb9cdf61ca8e6fa273357a506e0353c3d2a_a0a8a756-48d9-4d2b-9fdc-92e1b4585be1.webp?v=1714889124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a062fb9cdf61ca8e6fa273357a506e0353c3d2a_a0a8a756-48d9-4d2b-9fdc-92e1b4585be1.webp?v=1714889124","width":2000},{"alt":null,"id":23889807573091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39b4143d1dfe87c2c29de7653732de28b9ed974a_406304b5-f217-4327-a712-a386bafca694.webp?v=1714889126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39b4143d1dfe87c2c29de7653732de28b9ed974a_406304b5-f217-4327-a712-a386bafca694.webp?v=1714889126","width":2000},{"alt":null,"id":23889808064611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdbe40741c6ef88a8add73bad9747f6cd08068c4_f18d0be3-80b2-4d87-807b-bb583855bf6b.webp?v=1714889129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdbe40741c6ef88a8add73bad9747f6cd08068c4_f18d0be3-80b2-4d87-807b-bb583855bf6b.webp?v=1714889129","width":2000},{"alt":null,"id":23889808687203,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b96ea68c0b92b9388feeb1147bd106b5a62431e1_b1e24c09-e280-484a-a9e5-cea3d49ee137.webp?v=1714889132"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b96ea68c0b92b9388feeb1147bd106b5a62431e1_b1e24c09-e280-484a-a9e5-cea3d49ee137.webp?v=1714889132","width":2000},{"alt":null,"id":23889809113187,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f3c63739790a7088ac9ddff1273cb8c34529a3_20bd9515-4496-4f3d-8542-619e6e04b70d.webp?v=1714889134"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f3c63739790a7088ac9ddff1273cb8c34529a3_20bd9515-4496-4f3d-8542-619e6e04b70d.webp?v=1714889134","width":2000},{"alt":null,"id":23889809571939,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85fab47f1b09e45ca1abbe2df2a337af702c0d42_a160a911-d798-4db9-9fe2-3c954f648796.webp?v=1714889137"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85fab47f1b09e45ca1abbe2df2a337af702c0d42_a160a911-d798-4db9-9fe2-3c954f648796.webp?v=1714889137","width":2000},{"alt":null,"id":23889809932387,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddf3a2c96c5aa1712841bd5a281bd85d5c1c72e2_dba51743-d703-4120-bbc7-b9291fa9e3ea.webp?v=1714889139"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddf3a2c96c5aa1712841bd5a281bd85d5c1c72e2_dba51743-d703-4120-bbc7-b9291fa9e3ea.webp?v=1714889139","width":2000},{"alt":null,"id":23889810227299,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9ac1e28633538388ba07884289aeff487bc5af_18052bcf-e87a-4a4f-8aba-d56e9e51cf69.webp?v=1714889141"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9ac1e28633538388ba07884289aeff487bc5af_18052bcf-e87a-4a4f-8aba-d56e9e51cf69.webp?v=1714889141","width":2000},{"alt":null,"id":23889810554979,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6342b8b20ed212ddd3c41648fc319d7ff769746_fc7cbcb3-9403-46d9-9f5a-8ce2116cd61f.webp?v=1714889144"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6342b8b20ed212ddd3c41648fc319d7ff769746_fc7cbcb3-9403-46d9-9f5a-8ce2116cd61f.webp?v=1714889144","width":2000},{"alt":null,"id":23889810948195,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/189f313ef7b1f5f1889136224cdc2b9f4ded6378_efd7f768-dc77-403d-890e-112227aa794e.webp?v=1714889146"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/189f313ef7b1f5f1889136224cdc2b9f4ded6378_efd7f768-dc77-403d-890e-112227aa794e.webp?v=1714889146","width":2000},{"alt":null,"id":23889811374179,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6903c5716c37a9097872d4a5dd997430d924363a_e863f32f-9fd3-4b25-9b14-bb200ea05e61.webp?v=1714889148"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6903c5716c37a9097872d4a5dd997430d924363a_e863f32f-9fd3-4b25-9b14-bb200ea05e61.webp?v=1714889148","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903575400547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31484512960611,"product_id":7414034890851,"position":1,"created_at":"2024-05-05T14:05:24+08:00","updated_at":"2024-05-05T14:05:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a062fb9cdf61ca8e6fa273357a506e0353c3d2a_a0a8a756-48d9-4d2b-9fdc-92e1b4585be1.webp?v=1714889124","variant_ids":[41903575400547]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-AF10","featured_media":{"alt":null,"id":23889807081571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a062fb9cdf61ca8e6fa273357a506e0353c3d2a_a0a8a756-48d9-4d2b-9fdc-92e1b4585be1.webp?v=1714889124"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903575695459,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31484514959459,"product_id":7414034890851,"position":5,"created_at":"2024-05-05T14:05:34+08:00","updated_at":"2024-05-05T14:05:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f3c63739790a7088ac9ddff1273cb8c34529a3_20bd9515-4496-4f3d-8542-619e6e04b70d.webp?v=1714889134","variant_ids":[41903575695459]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-AF10","featured_media":{"alt":null,"id":23889809113187,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f3c63739790a7088ac9ddff1273cb8c34529a3_20bd9515-4496-4f3d-8542-619e6e04b70d.webp?v=1714889134"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903575400547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31484512960611,"product_id":7414034890851,"position":1,"created_at":"2024-05-05T14:05:24+08:00","updated_at":"2024-05-05T14:05:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a062fb9cdf61ca8e6fa273357a506e0353c3d2a_a0a8a756-48d9-4d2b-9fdc-92e1b4585be1.webp?v=1714889124","variant_ids":[41903575400547]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-AF10","featured_media":{"alt":null,"id":23889807081571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a062fb9cdf61ca8e6fa273357a506e0353c3d2a_a0a8a756-48d9-4d2b-9fdc-92e1b4585be1.webp?v=1714889124"}},"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: "停產"
}