$product = {"id":7413964406883,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-咖啡杯-幽默系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pc14","description":null,"published_at":"2024-06-11T17:46:19+08:00","created_at":"2024-05-05T13:51:30+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":41902760525923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31484338962531,"product_id":7413964406883,"position":5,"created_at":"2024-05-05T13:51:41+08:00","updated_at":"2024-05-05T13:51:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c354f15f1a2dd9b9873851a2904e6c737e23a9a3_50d5583c-dd93-45bc-a203-0dacfbbd577b.webp?v=1714888301","variant_ids":[41902760525923]},"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-PC14","featured_media":{"alt":null,"id":23889632657507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c354f15f1a2dd9b9873851a2904e6c737e23a9a3_50d5583c-dd93-45bc-a203-0dacfbbd577b.webp?v=1714888301"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902760820835,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31484337553507,"product_id":7413964406883,"position":2,"created_at":"2024-05-05T13:51:35+08:00","updated_at":"2024-05-05T13:51:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b451775cf528f8bf342ea15004c4dc492d306b10_b584e12d-474c-4548-a89d-b37f26222ef7.webp?v=1714888295","variant_ids":[41902760820835]},"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-PC14","featured_media":{"alt":null,"id":23889631281251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b451775cf528f8bf342ea15004c4dc492d306b10_b584e12d-474c-4548-a89d-b37f26222ef7.webp?v=1714888295"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c17c827483e882f7c238c3adc935c3b7228e3932_664e7474-a9b1-4d17-b016-64725015f862.webp?v=1714888293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b451775cf528f8bf342ea15004c4dc492d306b10_b584e12d-474c-4548-a89d-b37f26222ef7.webp?v=1714888295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9464b1959e3b63b9220a4a1fb40fff21c1c38c23_dadd1ebd-de44-43ee-8ae5-556324190ab3.webp?v=1714888297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89f340ff8b6019d38bacb42dcd2fd46f90271a4e_76445c89-73d8-4b0a-9468-3c5dafccb346.webp?v=1714888299","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c354f15f1a2dd9b9873851a2904e6c737e23a9a3_50d5583c-dd93-45bc-a203-0dacfbbd577b.webp?v=1714888301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b772def406aab127dd32a101b4f80c9825d95021_68990dc9-8531-4ea6-ac5b-9940842aa3c9.webp?v=1714888303","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aabc4c5a5f21012ec5df2466bade718c814fd1c_d5ae0474-e413-4812-879c-e5fe44803fc4.webp?v=1714888306","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9774b66a4b9f4f229a9f1608d93f9cbf68fb3ea0_cd1b2a5c-350f-4661-8e43-1dd5535f69f8.webp?v=1714888308","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11d2439d39cb71803e54641fd6065e190b65b6f2_62ad0642-fed9-4359-bc92-a820bcfd3b7c.webp?v=1714888310","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784257905b41b4b43134b615b8c177c8d117ab22_a5c52708-bb4d-4ab5-a0d6-91fce89ace2c.webp?v=1714888312","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b3b34627979112fbeed03e0409dde5df3b46e7_92bdb9ee-22f6-4ce6-a1fd-9d8798820d3e.webp?v=1714888314"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c17c827483e882f7c238c3adc935c3b7228e3932_664e7474-a9b1-4d17-b016-64725015f862.webp?v=1714888293","options":["color"],"media":[{"alt":null,"id":23889630756963,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c17c827483e882f7c238c3adc935c3b7228e3932_664e7474-a9b1-4d17-b016-64725015f862.webp?v=1714888293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c17c827483e882f7c238c3adc935c3b7228e3932_664e7474-a9b1-4d17-b016-64725015f862.webp?v=1714888293","width":2000},{"alt":null,"id":23889631281251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b451775cf528f8bf342ea15004c4dc492d306b10_b584e12d-474c-4548-a89d-b37f26222ef7.webp?v=1714888295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b451775cf528f8bf342ea15004c4dc492d306b10_b584e12d-474c-4548-a89d-b37f26222ef7.webp?v=1714888295","width":2000},{"alt":null,"id":23889631608931,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9464b1959e3b63b9220a4a1fb40fff21c1c38c23_dadd1ebd-de44-43ee-8ae5-556324190ab3.webp?v=1714888297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9464b1959e3b63b9220a4a1fb40fff21c1c38c23_dadd1ebd-de44-43ee-8ae5-556324190ab3.webp?v=1714888297","width":2000},{"alt":null,"id":23889632067683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89f340ff8b6019d38bacb42dcd2fd46f90271a4e_76445c89-73d8-4b0a-9468-3c5dafccb346.webp?v=1714888299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89f340ff8b6019d38bacb42dcd2fd46f90271a4e_76445c89-73d8-4b0a-9468-3c5dafccb346.webp?v=1714888299","width":2000},{"alt":null,"id":23889632657507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c354f15f1a2dd9b9873851a2904e6c737e23a9a3_50d5583c-dd93-45bc-a203-0dacfbbd577b.webp?v=1714888301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c354f15f1a2dd9b9873851a2904e6c737e23a9a3_50d5583c-dd93-45bc-a203-0dacfbbd577b.webp?v=1714888301","width":2000},{"alt":null,"id":23889633116259,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b772def406aab127dd32a101b4f80c9825d95021_68990dc9-8531-4ea6-ac5b-9940842aa3c9.webp?v=1714888303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b772def406aab127dd32a101b4f80c9825d95021_68990dc9-8531-4ea6-ac5b-9940842aa3c9.webp?v=1714888303","width":2000},{"alt":null,"id":23889633575011,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aabc4c5a5f21012ec5df2466bade718c814fd1c_d5ae0474-e413-4812-879c-e5fe44803fc4.webp?v=1714888306"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aabc4c5a5f21012ec5df2466bade718c814fd1c_d5ae0474-e413-4812-879c-e5fe44803fc4.webp?v=1714888306","width":2000},{"alt":null,"id":23889634099299,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9774b66a4b9f4f229a9f1608d93f9cbf68fb3ea0_cd1b2a5c-350f-4661-8e43-1dd5535f69f8.webp?v=1714888308"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9774b66a4b9f4f229a9f1608d93f9cbf68fb3ea0_cd1b2a5c-350f-4661-8e43-1dd5535f69f8.webp?v=1714888308","width":2000},{"alt":null,"id":23889634459747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11d2439d39cb71803e54641fd6065e190b65b6f2_62ad0642-fed9-4359-bc92-a820bcfd3b7c.webp?v=1714888310"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11d2439d39cb71803e54641fd6065e190b65b6f2_62ad0642-fed9-4359-bc92-a820bcfd3b7c.webp?v=1714888310","width":2000},{"alt":null,"id":23889634852963,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784257905b41b4b43134b615b8c177c8d117ab22_a5c52708-bb4d-4ab5-a0d6-91fce89ace2c.webp?v=1714888312"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784257905b41b4b43134b615b8c177c8d117ab22_a5c52708-bb4d-4ab5-a0d6-91fce89ace2c.webp?v=1714888312","width":2000},{"alt":null,"id":23889635410019,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b3b34627979112fbeed03e0409dde5df3b46e7_92bdb9ee-22f6-4ce6-a1fd-9d8798820d3e.webp?v=1714888314"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b3b34627979112fbeed03e0409dde5df3b46e7_92bdb9ee-22f6-4ce6-a1fd-9d8798820d3e.webp?v=1714888314","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41902760525923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31484338962531,"product_id":7413964406883,"position":5,"created_at":"2024-05-05T13:51:41+08:00","updated_at":"2024-05-05T13:51:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c354f15f1a2dd9b9873851a2904e6c737e23a9a3_50d5583c-dd93-45bc-a203-0dacfbbd577b.webp?v=1714888301","variant_ids":[41902760525923]},"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-PC14","featured_media":{"alt":null,"id":23889632657507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c354f15f1a2dd9b9873851a2904e6c737e23a9a3_50d5583c-dd93-45bc-a203-0dacfbbd577b.webp?v=1714888301"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902760820835,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31484337553507,"product_id":7413964406883,"position":2,"created_at":"2024-05-05T13:51:35+08:00","updated_at":"2024-05-05T13:51:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b451775cf528f8bf342ea15004c4dc492d306b10_b584e12d-474c-4548-a89d-b37f26222ef7.webp?v=1714888295","variant_ids":[41902760820835]},"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-PC14","featured_media":{"alt":null,"id":23889631281251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b451775cf528f8bf342ea15004c4dc492d306b10_b584e12d-474c-4548-a89d-b37f26222ef7.webp?v=1714888295"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41902760525923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31484338962531,"product_id":7413964406883,"position":5,"created_at":"2024-05-05T13:51:41+08:00","updated_at":"2024-05-05T13:51:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c354f15f1a2dd9b9873851a2904e6c737e23a9a3_50d5583c-dd93-45bc-a203-0dacfbbd577b.webp?v=1714888301","variant_ids":[41902760525923]},"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-PC14","featured_media":{"alt":null,"id":23889632657507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c354f15f1a2dd9b9873851a2904e6c737e23a9a3_50d5583c-dd93-45bc-a203-0dacfbbd577b.webp?v=1714888301"}},"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: "停產"
}