$product = {"id":7414070050915,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(黃石國家公園)","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-af12","description":null,"published_at":"2024-06-11T17:48:43+08:00","created_at":"2024-05-05T14:08:02+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":41903874572387,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":31484600385635,"product_id":7414070050915,"position":1,"created_at":"2024-05-05T14:08:04+08:00","updated_at":"2024-05-05T14:08:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6298eef19a3df9851fc94d31f7f809621f8ca57e_05f4dd4f-9479-49a9-82a8-312f7af922a1.webp?v=1714889284","variant_ids":[41903874572387]},"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-AF12","featured_media":{"alt":null,"id":23889895587939,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6298eef19a3df9851fc94d31f7f809621f8ca57e_05f4dd4f-9479-49a9-82a8-312f7af922a1.webp?v=1714889284"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903875063907,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":31484612640867,"product_id":7414070050915,"position":9,"created_at":"2024-05-05T14:08:23+08:00","updated_at":"2024-05-05T14:08:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/274c353bb87cb134d10780b2b5f4b792a3e4aa82_a0011a16-6898-4451-9bf7-b9fdec95a0da.webp?v=1714889303","variant_ids":[41903875063907]},"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-AF12","featured_media":{"alt":null,"id":23889907908707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/274c353bb87cb134d10780b2b5f4b792a3e4aa82_a0011a16-6898-4451-9bf7-b9fdec95a0da.webp?v=1714889303"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6298eef19a3df9851fc94d31f7f809621f8ca57e_05f4dd4f-9479-49a9-82a8-312f7af922a1.webp?v=1714889284","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be1fbd5fc73af09e84801230c46b45c9a05f55b1_92b299da-5ce7-4c88-95c3-f6baf75c51f5.webp?v=1714889287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14c8da2d310e8dd8279bab4413a755921cf95f21_763df622-8ce2-47f3-8696-4e03abdf682f.webp?v=1714889289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/974431155ab62b476f52f2f32527475024c1f599_804b9cbc-8545-44e2-a699-abce0a639f65.webp?v=1714889292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66aafbae054dec8c2dfda81994aa3b839c99e01e_871c9ad6-aa81-49af-acab-ce159ca54b6f.webp?v=1714889294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8994370adcf117e29737a280a2d8f739f415ca4_11f8b642-b8fe-4d7e-a4ae-ee717569baaa.webp?v=1714889296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7218145ad9fed4a95f748d39b34a9ad620897ab8_cc800f3c-ae3d-4a3c-a22e-54886a67184b.webp?v=1714889299","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80eec508db4f5d17d4a72c8a0a024494087f85ef_105e3960-96ac-475c-8f6b-495bc0a7c299.webp?v=1714889301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/274c353bb87cb134d10780b2b5f4b792a3e4aa82_a0011a16-6898-4451-9bf7-b9fdec95a0da.webp?v=1714889303","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e88a28a8dd8d4a9a2755e2f6307f353f5554a3_67974754-bec1-44f5-88de-e5ca38a08314.webp?v=1714889306","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1aafbd3d77703aedd273dd8477afe6debb15e1c2_639d973b-058a-47d5-bdf7-46e1aa80c420.webp?v=1714889309"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6298eef19a3df9851fc94d31f7f809621f8ca57e_05f4dd4f-9479-49a9-82a8-312f7af922a1.webp?v=1714889284","options":["color"],"media":[{"alt":null,"id":23889895587939,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6298eef19a3df9851fc94d31f7f809621f8ca57e_05f4dd4f-9479-49a9-82a8-312f7af922a1.webp?v=1714889284"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6298eef19a3df9851fc94d31f7f809621f8ca57e_05f4dd4f-9479-49a9-82a8-312f7af922a1.webp?v=1714889284","width":2000},{"alt":null,"id":23889896996963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be1fbd5fc73af09e84801230c46b45c9a05f55b1_92b299da-5ce7-4c88-95c3-f6baf75c51f5.webp?v=1714889287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be1fbd5fc73af09e84801230c46b45c9a05f55b1_92b299da-5ce7-4c88-95c3-f6baf75c51f5.webp?v=1714889287","width":2000},{"alt":null,"id":23889898668131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14c8da2d310e8dd8279bab4413a755921cf95f21_763df622-8ce2-47f3-8696-4e03abdf682f.webp?v=1714889289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14c8da2d310e8dd8279bab4413a755921cf95f21_763df622-8ce2-47f3-8696-4e03abdf682f.webp?v=1714889289","width":2000},{"alt":null,"id":23889900175459,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/974431155ab62b476f52f2f32527475024c1f599_804b9cbc-8545-44e2-a699-abce0a639f65.webp?v=1714889292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/974431155ab62b476f52f2f32527475024c1f599_804b9cbc-8545-44e2-a699-abce0a639f65.webp?v=1714889292","width":2000},{"alt":null,"id":23889901748323,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66aafbae054dec8c2dfda81994aa3b839c99e01e_871c9ad6-aa81-49af-acab-ce159ca54b6f.webp?v=1714889294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66aafbae054dec8c2dfda81994aa3b839c99e01e_871c9ad6-aa81-49af-acab-ce159ca54b6f.webp?v=1714889294","width":2000},{"alt":null,"id":23889903091811,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8994370adcf117e29737a280a2d8f739f415ca4_11f8b642-b8fe-4d7e-a4ae-ee717569baaa.webp?v=1714889296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8994370adcf117e29737a280a2d8f739f415ca4_11f8b642-b8fe-4d7e-a4ae-ee717569baaa.webp?v=1714889296","width":2000},{"alt":null,"id":23889904959587,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7218145ad9fed4a95f748d39b34a9ad620897ab8_cc800f3c-ae3d-4a3c-a22e-54886a67184b.webp?v=1714889299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7218145ad9fed4a95f748d39b34a9ad620897ab8_cc800f3c-ae3d-4a3c-a22e-54886a67184b.webp?v=1714889299","width":2000},{"alt":null,"id":23889906434147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80eec508db4f5d17d4a72c8a0a024494087f85ef_105e3960-96ac-475c-8f6b-495bc0a7c299.webp?v=1714889301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80eec508db4f5d17d4a72c8a0a024494087f85ef_105e3960-96ac-475c-8f6b-495bc0a7c299.webp?v=1714889301","width":2000},{"alt":null,"id":23889907908707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/274c353bb87cb134d10780b2b5f4b792a3e4aa82_a0011a16-6898-4451-9bf7-b9fdec95a0da.webp?v=1714889303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/274c353bb87cb134d10780b2b5f4b792a3e4aa82_a0011a16-6898-4451-9bf7-b9fdec95a0da.webp?v=1714889303","width":2000},{"alt":null,"id":23889909153891,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e88a28a8dd8d4a9a2755e2f6307f353f5554a3_67974754-bec1-44f5-88de-e5ca38a08314.webp?v=1714889306"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e88a28a8dd8d4a9a2755e2f6307f353f5554a3_67974754-bec1-44f5-88de-e5ca38a08314.webp?v=1714889306","width":2000},{"alt":null,"id":23889910825059,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1aafbd3d77703aedd273dd8477afe6debb15e1c2_639d973b-058a-47d5-bdf7-46e1aa80c420.webp?v=1714889309"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1aafbd3d77703aedd273dd8477afe6debb15e1c2_639d973b-058a-47d5-bdf7-46e1aa80c420.webp?v=1714889309","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903874572387,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":31484600385635,"product_id":7414070050915,"position":1,"created_at":"2024-05-05T14:08:04+08:00","updated_at":"2024-05-05T14:08:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6298eef19a3df9851fc94d31f7f809621f8ca57e_05f4dd4f-9479-49a9-82a8-312f7af922a1.webp?v=1714889284","variant_ids":[41903874572387]},"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-AF12","featured_media":{"alt":null,"id":23889895587939,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6298eef19a3df9851fc94d31f7f809621f8ca57e_05f4dd4f-9479-49a9-82a8-312f7af922a1.webp?v=1714889284"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903875063907,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":31484612640867,"product_id":7414070050915,"position":9,"created_at":"2024-05-05T14:08:23+08:00","updated_at":"2024-05-05T14:08:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/274c353bb87cb134d10780b2b5f4b792a3e4aa82_a0011a16-6898-4451-9bf7-b9fdec95a0da.webp?v=1714889303","variant_ids":[41903875063907]},"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-AF12","featured_media":{"alt":null,"id":23889907908707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/274c353bb87cb134d10780b2b5f4b792a3e4aa82_a0011a16-6898-4451-9bf7-b9fdec95a0da.webp?v=1714889303"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903874572387,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":31484600385635,"product_id":7414070050915,"position":1,"created_at":"2024-05-05T14:08:04+08:00","updated_at":"2024-05-05T14:08:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6298eef19a3df9851fc94d31f7f809621f8ca57e_05f4dd4f-9479-49a9-82a8-312f7af922a1.webp?v=1714889284","variant_ids":[41903874572387]},"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-AF12","featured_media":{"alt":null,"id":23889895587939,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6298eef19a3df9851fc94d31f7f809621f8ca57e_05f4dd4f-9479-49a9-82a8-312f7af922a1.webp?v=1714889284"}},"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: "停產"
}