$product = {"id":7414327148643,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - K2SO 1-俠盜一號","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb68","description":null,"published_at":"2024-06-11T17:50:48+08:00","created_at":"2024-05-05T14:22:08+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":41905757782115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB68","requires_shipping":true,"taxable":true,"featured_image":{"id":31485178511459,"product_id":7414327148643,"position":4,"created_at":"2024-05-05T14:22:17+08:00","updated_at":"2024-05-05T14:22:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ae1f93217f451790f02441235ded7a00f57e14_ecd6daf0-ff9c-4ab6-9c30-356a02c419b3.webp?v=1714890137","variant_ids":[41905757782115]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - K2SO 1-俠盜一號 - 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-PB68","featured_media":{"alt":null,"id":23890494783587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ae1f93217f451790f02441235ded7a00f57e14_ecd6daf0-ff9c-4ab6-9c30-356a02c419b3.webp?v=1714890137"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905758404707,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB68","requires_shipping":true,"taxable":true,"featured_image":{"id":31485199843427,"product_id":7414327148643,"position":10,"created_at":"2024-05-05T14:22:32+08:00","updated_at":"2024-05-05T14:22:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b14c77ccb84d7a6c89d757d51646ed2c75c0edf5_3dbbd7fa-1b6b-4ecc-90ed-467d94c40c84.webp?v=1714890152","variant_ids":[41905758404707]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - K2SO 1-俠盜一號 - 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-PB68","featured_media":{"alt":null,"id":23890516377699,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b14c77ccb84d7a6c89d757d51646ed2c75c0edf5_3dbbd7fa-1b6b-4ecc-90ed-467d94c40c84.webp?v=1714890152"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b3c8a31e6dfe4839be2dc948ac0aedf6b3064b_a6d9f9bb-03d5-433c-b3bb-a2079a12526a.webp?v=1714890131","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/023ecaf63d18801bfd90c79576cab9065c57fa45_dc489462-aef5-46c9-8d22-42ff207b2a7d.webp?v=1714890133","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a2d070ce550b5e8765c77817c5bad800089c4d8_951d6d50-0983-4db6-a01c-708e52704a73.webp?v=1714890135","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ae1f93217f451790f02441235ded7a00f57e14_ecd6daf0-ff9c-4ab6-9c30-356a02c419b3.webp?v=1714890137","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cacc1f5821a7bae03c7d75b8b2e59ec953b0f132_0367e7a2-5b3b-413a-b0d2-3c755fb664db.webp?v=1714890140","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4847ef0bafd2c2142a5031804ce2c635e2e600ef_4cd5dd22-4763-473c-bb5d-01a7056ff3f2.webp?v=1714890142","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8fef52df3280af3f381bc3a5f2847ddedc089d_fffba7a9-908c-4295-9bf9-1d7b8874af9b.webp?v=1714890145","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3000beaa1f3a54b570588866f0fc5e3d9306190d_00f1bf57-7e96-4bbc-b34c-679646766770.webp?v=1714890147","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/217ff4e2528356f67670b6bf8f146a682f638317_c19ce5ba-aa82-4eb5-b45e-cdd2048ca570.webp?v=1714890149","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b14c77ccb84d7a6c89d757d51646ed2c75c0edf5_3dbbd7fa-1b6b-4ecc-90ed-467d94c40c84.webp?v=1714890152","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f935fd52b69fca36d864cc3b8779b1c67bc3d3c8_bce23bec-ab9f-4a24-a059-39d4a01335cd.webp?v=1714890154"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b3c8a31e6dfe4839be2dc948ac0aedf6b3064b_a6d9f9bb-03d5-433c-b3bb-a2079a12526a.webp?v=1714890131","options":["color"],"media":[{"alt":null,"id":23890485543011,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b3c8a31e6dfe4839be2dc948ac0aedf6b3064b_a6d9f9bb-03d5-433c-b3bb-a2079a12526a.webp?v=1714890131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b3c8a31e6dfe4839be2dc948ac0aedf6b3064b_a6d9f9bb-03d5-433c-b3bb-a2079a12526a.webp?v=1714890131","width":2000},{"alt":null,"id":23890488885347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/023ecaf63d18801bfd90c79576cab9065c57fa45_dc489462-aef5-46c9-8d22-42ff207b2a7d.webp?v=1714890133"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/023ecaf63d18801bfd90c79576cab9065c57fa45_dc489462-aef5-46c9-8d22-42ff207b2a7d.webp?v=1714890133","width":2000},{"alt":null,"id":23890491867235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a2d070ce550b5e8765c77817c5bad800089c4d8_951d6d50-0983-4db6-a01c-708e52704a73.webp?v=1714890135"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a2d070ce550b5e8765c77817c5bad800089c4d8_951d6d50-0983-4db6-a01c-708e52704a73.webp?v=1714890135","width":2000},{"alt":null,"id":23890494783587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ae1f93217f451790f02441235ded7a00f57e14_ecd6daf0-ff9c-4ab6-9c30-356a02c419b3.webp?v=1714890137"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ae1f93217f451790f02441235ded7a00f57e14_ecd6daf0-ff9c-4ab6-9c30-356a02c419b3.webp?v=1714890137","width":2000},{"alt":null,"id":23890498420835,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cacc1f5821a7bae03c7d75b8b2e59ec953b0f132_0367e7a2-5b3b-413a-b0d2-3c755fb664db.webp?v=1714890140"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cacc1f5821a7bae03c7d75b8b2e59ec953b0f132_0367e7a2-5b3b-413a-b0d2-3c755fb664db.webp?v=1714890140","width":2000},{"alt":null,"id":23890502058083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4847ef0bafd2c2142a5031804ce2c635e2e600ef_4cd5dd22-4763-473c-bb5d-01a7056ff3f2.webp?v=1714890142"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4847ef0bafd2c2142a5031804ce2c635e2e600ef_4cd5dd22-4763-473c-bb5d-01a7056ff3f2.webp?v=1714890142","width":2000},{"alt":null,"id":23890506023011,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8fef52df3280af3f381bc3a5f2847ddedc089d_fffba7a9-908c-4295-9bf9-1d7b8874af9b.webp?v=1714890145"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8fef52df3280af3f381bc3a5f2847ddedc089d_fffba7a9-908c-4295-9bf9-1d7b8874af9b.webp?v=1714890145","width":2000},{"alt":null,"id":23890509070435,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3000beaa1f3a54b570588866f0fc5e3d9306190d_00f1bf57-7e96-4bbc-b34c-679646766770.webp?v=1714890147"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3000beaa1f3a54b570588866f0fc5e3d9306190d_00f1bf57-7e96-4bbc-b34c-679646766770.webp?v=1714890147","width":2000},{"alt":null,"id":23890512838755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/217ff4e2528356f67670b6bf8f146a682f638317_c19ce5ba-aa82-4eb5-b45e-cdd2048ca570.webp?v=1714890149"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/217ff4e2528356f67670b6bf8f146a682f638317_c19ce5ba-aa82-4eb5-b45e-cdd2048ca570.webp?v=1714890149","width":2000},{"alt":null,"id":23890516377699,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b14c77ccb84d7a6c89d757d51646ed2c75c0edf5_3dbbd7fa-1b6b-4ecc-90ed-467d94c40c84.webp?v=1714890152"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b14c77ccb84d7a6c89d757d51646ed2c75c0edf5_3dbbd7fa-1b6b-4ecc-90ed-467d94c40c84.webp?v=1714890152","width":2000},{"alt":null,"id":23890519687267,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f935fd52b69fca36d864cc3b8779b1c67bc3d3c8_bce23bec-ab9f-4a24-a059-39d4a01335cd.webp?v=1714890154"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f935fd52b69fca36d864cc3b8779b1c67bc3d3c8_bce23bec-ab9f-4a24-a059-39d4a01335cd.webp?v=1714890154","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41905757782115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB68","requires_shipping":true,"taxable":true,"featured_image":{"id":31485178511459,"product_id":7414327148643,"position":4,"created_at":"2024-05-05T14:22:17+08:00","updated_at":"2024-05-05T14:22:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ae1f93217f451790f02441235ded7a00f57e14_ecd6daf0-ff9c-4ab6-9c30-356a02c419b3.webp?v=1714890137","variant_ids":[41905757782115]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - K2SO 1-俠盜一號 - 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-PB68","featured_media":{"alt":null,"id":23890494783587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ae1f93217f451790f02441235ded7a00f57e14_ecd6daf0-ff9c-4ab6-9c30-356a02c419b3.webp?v=1714890137"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905758404707,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB68","requires_shipping":true,"taxable":true,"featured_image":{"id":31485199843427,"product_id":7414327148643,"position":10,"created_at":"2024-05-05T14:22:32+08:00","updated_at":"2024-05-05T14:22:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b14c77ccb84d7a6c89d757d51646ed2c75c0edf5_3dbbd7fa-1b6b-4ecc-90ed-467d94c40c84.webp?v=1714890152","variant_ids":[41905758404707]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - K2SO 1-俠盜一號 - 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-PB68","featured_media":{"alt":null,"id":23890516377699,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b14c77ccb84d7a6c89d757d51646ed2c75c0edf5_3dbbd7fa-1b6b-4ecc-90ed-467d94c40c84.webp?v=1714890152"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41905757782115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB68","requires_shipping":true,"taxable":true,"featured_image":{"id":31485178511459,"product_id":7414327148643,"position":4,"created_at":"2024-05-05T14:22:17+08:00","updated_at":"2024-05-05T14:22:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ae1f93217f451790f02441235ded7a00f57e14_ecd6daf0-ff9c-4ab6-9c30-356a02c419b3.webp?v=1714890137","variant_ids":[41905757782115]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - K2SO 1-俠盜一號 - 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-PB68","featured_media":{"alt":null,"id":23890494783587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ae1f93217f451790f02441235ded7a00f57e14_ecd6daf0-ff9c-4ab6-9c30-356a02c419b3.webp?v=1714890137"}},"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: "停產"
}