$product = {"id":7414374072419,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 熊滿星空","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-yb09","description":null,"published_at":"2024-06-11T17:50:59+08:00","created_at":"2024-05-05T14:23:29+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-carebears","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":41906038800483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485297459299,"product_id":7414374072419,"position":7,"created_at":"2024-05-05T14:23:45+08:00","updated_at":"2024-05-05T14:23:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e031291fd400e7f41be3de5baef2d0bfb36a988c_d6044eb5-dd53-4801-aceb-f523eb4d4901.webp?v=1714890225","variant_ids":[41906038800483]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 熊滿星空 - 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-YB09","featured_media":{"alt":null,"id":23890614255715,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e031291fd400e7f41be3de5baef2d0bfb36a988c_d6044eb5-dd53-4801-aceb-f523eb4d4901.webp?v=1714890225"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906039324771,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485294641251,"product_id":7414374072419,"position":6,"created_at":"2024-05-05T14:23:43+08:00","updated_at":"2024-05-05T14:23:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4dc1300404d2df8980f87bc3b47d8a32d1337c1_df282b99-1062-4e9d-9804-b9177006e032.webp?v=1714890223","variant_ids":[41906039324771]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 熊滿星空 - 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-YB09","featured_media":{"alt":null,"id":23890611339363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4dc1300404d2df8980f87bc3b47d8a32d1337c1_df282b99-1062-4e9d-9804-b9177006e032.webp?v=1714890223"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c54436ac0e5b2e5f2b8ff0441276d1fac2a474e_fde78882-a061-49bb-bcb4-ed42f5df24de.webp?v=1714890211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96426ebcf7d7d8833db3b217c3431d992e495a54_0e45c5fe-221c-413c-940d-4c5a8bbddf46.webp?v=1714890213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eab9de25c22ec0f422b25677727995487624a442_d0049d72-fe59-4a9a-ada6-79691631b574.webp?v=1714890216","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cace92746d8ece279bdfd00f2673f50c64e50bec_28fbf2a0-897a-4c39-8e13-a955b6932333.webp?v=1714890218","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da10d2de8b0f4625e64f1c5395aaafbef3f0fcdb_52078f48-37c8-4b3e-9394-f4ed8ea8626d.webp?v=1714890220","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4dc1300404d2df8980f87bc3b47d8a32d1337c1_df282b99-1062-4e9d-9804-b9177006e032.webp?v=1714890223","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e031291fd400e7f41be3de5baef2d0bfb36a988c_d6044eb5-dd53-4801-aceb-f523eb4d4901.webp?v=1714890225","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f5dcd66a6c4a96fb68d596ffadd45cee51679e0_3d8739e0-9726-4b4a-88b5-f8d6155c44d8.webp?v=1714890228","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bab0a6b72febede52d84d33d12bc235c9fdc5941_3d9dd5ab-e8f7-4f1e-b814-5cc956f17f36.webp?v=1714890230","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ea1c3c3f091c0a36619e43109f249ca7ed68ced_9a4b33f8-4bf0-4486-9a39-2543aeb09799.webp?v=1714890232","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9944d82ff21229cd27e2ab1d2d6adb1b3887264a_13e2117d-b5bf-4933-b262-ee4245c80d5a.webp?v=1714890235"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c54436ac0e5b2e5f2b8ff0441276d1fac2a474e_fde78882-a061-49bb-bcb4-ed42f5df24de.webp?v=1714890211","options":["color"],"media":[{"alt":null,"id":23890596429923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c54436ac0e5b2e5f2b8ff0441276d1fac2a474e_fde78882-a061-49bb-bcb4-ed42f5df24de.webp?v=1714890211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c54436ac0e5b2e5f2b8ff0441276d1fac2a474e_fde78882-a061-49bb-bcb4-ed42f5df24de.webp?v=1714890211","width":2000},{"alt":null,"id":23890599280739,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96426ebcf7d7d8833db3b217c3431d992e495a54_0e45c5fe-221c-413c-940d-4c5a8bbddf46.webp?v=1714890213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96426ebcf7d7d8833db3b217c3431d992e495a54_0e45c5fe-221c-413c-940d-4c5a8bbddf46.webp?v=1714890213","width":2000},{"alt":null,"id":23890602360931,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eab9de25c22ec0f422b25677727995487624a442_d0049d72-fe59-4a9a-ada6-79691631b574.webp?v=1714890216"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eab9de25c22ec0f422b25677727995487624a442_d0049d72-fe59-4a9a-ada6-79691631b574.webp?v=1714890216","width":2000},{"alt":null,"id":23890605047907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cace92746d8ece279bdfd00f2673f50c64e50bec_28fbf2a0-897a-4c39-8e13-a955b6932333.webp?v=1714890218"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cace92746d8ece279bdfd00f2673f50c64e50bec_28fbf2a0-897a-4c39-8e13-a955b6932333.webp?v=1714890218","width":2000},{"alt":null,"id":23890607931491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da10d2de8b0f4625e64f1c5395aaafbef3f0fcdb_52078f48-37c8-4b3e-9394-f4ed8ea8626d.webp?v=1714890220"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da10d2de8b0f4625e64f1c5395aaafbef3f0fcdb_52078f48-37c8-4b3e-9394-f4ed8ea8626d.webp?v=1714890220","width":2000},{"alt":null,"id":23890611339363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4dc1300404d2df8980f87bc3b47d8a32d1337c1_df282b99-1062-4e9d-9804-b9177006e032.webp?v=1714890223"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4dc1300404d2df8980f87bc3b47d8a32d1337c1_df282b99-1062-4e9d-9804-b9177006e032.webp?v=1714890223","width":2000},{"alt":null,"id":23890614255715,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e031291fd400e7f41be3de5baef2d0bfb36a988c_d6044eb5-dd53-4801-aceb-f523eb4d4901.webp?v=1714890225"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e031291fd400e7f41be3de5baef2d0bfb36a988c_d6044eb5-dd53-4801-aceb-f523eb4d4901.webp?v=1714890225","width":2000},{"alt":null,"id":23890617270371,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f5dcd66a6c4a96fb68d596ffadd45cee51679e0_3d8739e0-9726-4b4a-88b5-f8d6155c44d8.webp?v=1714890228"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f5dcd66a6c4a96fb68d596ffadd45cee51679e0_3d8739e0-9726-4b4a-88b5-f8d6155c44d8.webp?v=1714890228","width":2000},{"alt":null,"id":23890620121187,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bab0a6b72febede52d84d33d12bc235c9fdc5941_3d9dd5ab-e8f7-4f1e-b814-5cc956f17f36.webp?v=1714890230"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bab0a6b72febede52d84d33d12bc235c9fdc5941_3d9dd5ab-e8f7-4f1e-b814-5cc956f17f36.webp?v=1714890230","width":2000},{"alt":null,"id":23890623299683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ea1c3c3f091c0a36619e43109f249ca7ed68ced_9a4b33f8-4bf0-4486-9a39-2543aeb09799.webp?v=1714890232"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ea1c3c3f091c0a36619e43109f249ca7ed68ced_9a4b33f8-4bf0-4486-9a39-2543aeb09799.webp?v=1714890232","width":2000},{"alt":null,"id":23890626445411,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9944d82ff21229cd27e2ab1d2d6adb1b3887264a_13e2117d-b5bf-4933-b262-ee4245c80d5a.webp?v=1714890235"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9944d82ff21229cd27e2ab1d2d6adb1b3887264a_13e2117d-b5bf-4933-b262-ee4245c80d5a.webp?v=1714890235","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41906038800483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485297459299,"product_id":7414374072419,"position":7,"created_at":"2024-05-05T14:23:45+08:00","updated_at":"2024-05-05T14:23:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e031291fd400e7f41be3de5baef2d0bfb36a988c_d6044eb5-dd53-4801-aceb-f523eb4d4901.webp?v=1714890225","variant_ids":[41906038800483]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 熊滿星空 - 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-YB09","featured_media":{"alt":null,"id":23890614255715,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e031291fd400e7f41be3de5baef2d0bfb36a988c_d6044eb5-dd53-4801-aceb-f523eb4d4901.webp?v=1714890225"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906039324771,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485294641251,"product_id":7414374072419,"position":6,"created_at":"2024-05-05T14:23:43+08:00","updated_at":"2024-05-05T14:23:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4dc1300404d2df8980f87bc3b47d8a32d1337c1_df282b99-1062-4e9d-9804-b9177006e032.webp?v=1714890223","variant_ids":[41906039324771]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 熊滿星空 - 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-YB09","featured_media":{"alt":null,"id":23890611339363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4dc1300404d2df8980f87bc3b47d8a32d1337c1_df282b99-1062-4e9d-9804-b9177006e032.webp?v=1714890223"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41906038800483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485297459299,"product_id":7414374072419,"position":7,"created_at":"2024-05-05T14:23:45+08:00","updated_at":"2024-05-05T14:23:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e031291fd400e7f41be3de5baef2d0bfb36a988c_d6044eb5-dd53-4801-aceb-f523eb4d4901.webp?v=1714890225","variant_ids":[41906038800483]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 熊滿星空 - 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-YB09","featured_media":{"alt":null,"id":23890614255715,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e031291fd400e7f41be3de5baef2d0bfb36a988c_d6044eb5-dd53-4801-aceb-f523eb4d4901.webp?v=1714890225"}},"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: "停產"
}