$product = {"id":7414068117603,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb66","description":null,"published_at":"2024-06-11T17:48:41+08:00","created_at":"2024-05-05T14:07:56+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":41903864479843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31484610183267,"product_id":7414068117603,"position":10,"created_at":"2024-05-05T14:08:20+08:00","updated_at":"2024-05-05T14:08:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/534777bd5fc812fc4b9046867c7af70679d9c9eb_844f6268-5280-471a-b3c0-a278f4cbcacf.webp?v=1714889300","variant_ids":[41903864479843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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-PB66","featured_media":{"alt":null,"id":23889905680483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/534777bd5fc812fc4b9046867c7af70679d9c9eb_844f6268-5280-471a-b3c0-a278f4cbcacf.webp?v=1714889300"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903865036899,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31484603695203,"product_id":7414068117603,"position":6,"created_at":"2024-05-05T14:08:10+08:00","updated_at":"2024-05-05T14:08:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01d26018c4fd0fff74f54c9ac68a770ac7f40be6_a46c199c-e010-4fba-9cc7-8abebc3f031f.webp?v=1714889290","variant_ids":[41903865036899]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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-PB66","featured_media":{"alt":null,"id":23889898930275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01d26018c4fd0fff74f54c9ac68a770ac7f40be6_a46c199c-e010-4fba-9cc7-8abebc3f031f.webp?v=1714889290"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f8fb3df5d38d050f010bd1afb5911ff0142ff5d_d88f1211-7ca5-4439-9663-9a176838c1c7.webp?v=1714889278","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fbd3bdde3dc68b6464660f9e1117ef1c12c70e4_53786c10-2aab-49f7-b188-099be1237fd1.webp?v=1714889281","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9537f32fa81481fca5f0651e2cdf4cc82fc9329c_37158b30-1e37-44c9-80b2-97ddc3d260e2.webp?v=1714889283","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e92af8dcefe10733a0f91116680638598815b948_8dc056b5-8b8e-4d89-a800-61d14095779a.webp?v=1714889285","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ce36488c4f52ae0cd16285eb6ab2c886d31052e_13ce897f-473c-4a5d-be63-3df4e953b026.webp?v=1714889288","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01d26018c4fd0fff74f54c9ac68a770ac7f40be6_a46c199c-e010-4fba-9cc7-8abebc3f031f.webp?v=1714889290","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ec83242591f605b618a24ec2fc06964f9e86584_2486e1da-df97-4c11-9be8-9e1741e14e94.webp?v=1714889292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc482e667f8be7147ca40a4912d4ae0eebe603e5_81b037fa-5589-4d9c-b621-2b1825ae1f22.webp?v=1714889295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f3f07d6ad1a20253944a6248fa4567fa6f2cb1b_9eaac78b-06ee-49fd-b5b2-1b559f8d6616.webp?v=1714889297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/534777bd5fc812fc4b9046867c7af70679d9c9eb_844f6268-5280-471a-b3c0-a278f4cbcacf.webp?v=1714889300","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ff6e673a83e7bc5d255b9e514e0a922bfe1d703_8b7dcfe5-4f13-4989-9f95-aca28f18b330.webp?v=1714889302"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f8fb3df5d38d050f010bd1afb5911ff0142ff5d_d88f1211-7ca5-4439-9663-9a176838c1c7.webp?v=1714889278","options":["color"],"media":[{"alt":null,"id":23889891524707,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f8fb3df5d38d050f010bd1afb5911ff0142ff5d_d88f1211-7ca5-4439-9663-9a176838c1c7.webp?v=1714889278"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f8fb3df5d38d050f010bd1afb5911ff0142ff5d_d88f1211-7ca5-4439-9663-9a176838c1c7.webp?v=1714889278","width":2000},{"alt":null,"id":23889893195875,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fbd3bdde3dc68b6464660f9e1117ef1c12c70e4_53786c10-2aab-49f7-b188-099be1237fd1.webp?v=1714889281"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fbd3bdde3dc68b6464660f9e1117ef1c12c70e4_53786c10-2aab-49f7-b188-099be1237fd1.webp?v=1714889281","width":2000},{"alt":null,"id":23889894572131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9537f32fa81481fca5f0651e2cdf4cc82fc9329c_37158b30-1e37-44c9-80b2-97ddc3d260e2.webp?v=1714889283"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9537f32fa81481fca5f0651e2cdf4cc82fc9329c_37158b30-1e37-44c9-80b2-97ddc3d260e2.webp?v=1714889283","width":2000},{"alt":null,"id":23889896079459,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e92af8dcefe10733a0f91116680638598815b948_8dc056b5-8b8e-4d89-a800-61d14095779a.webp?v=1714889285"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e92af8dcefe10733a0f91116680638598815b948_8dc056b5-8b8e-4d89-a800-61d14095779a.webp?v=1714889285","width":2000},{"alt":null,"id":23889897324643,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ce36488c4f52ae0cd16285eb6ab2c886d31052e_13ce897f-473c-4a5d-be63-3df4e953b026.webp?v=1714889288"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ce36488c4f52ae0cd16285eb6ab2c886d31052e_13ce897f-473c-4a5d-be63-3df4e953b026.webp?v=1714889288","width":2000},{"alt":null,"id":23889898930275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01d26018c4fd0fff74f54c9ac68a770ac7f40be6_a46c199c-e010-4fba-9cc7-8abebc3f031f.webp?v=1714889290"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01d26018c4fd0fff74f54c9ac68a770ac7f40be6_a46c199c-e010-4fba-9cc7-8abebc3f031f.webp?v=1714889290","width":2000},{"alt":null,"id":23889900535907,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ec83242591f605b618a24ec2fc06964f9e86584_2486e1da-df97-4c11-9be8-9e1741e14e94.webp?v=1714889292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ec83242591f605b618a24ec2fc06964f9e86584_2486e1da-df97-4c11-9be8-9e1741e14e94.webp?v=1714889292","width":2000},{"alt":null,"id":23889902403683,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc482e667f8be7147ca40a4912d4ae0eebe603e5_81b037fa-5589-4d9c-b621-2b1825ae1f22.webp?v=1714889295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc482e667f8be7147ca40a4912d4ae0eebe603e5_81b037fa-5589-4d9c-b621-2b1825ae1f22.webp?v=1714889295","width":2000},{"alt":null,"id":23889904009315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f3f07d6ad1a20253944a6248fa4567fa6f2cb1b_9eaac78b-06ee-49fd-b5b2-1b559f8d6616.webp?v=1714889297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f3f07d6ad1a20253944a6248fa4567fa6f2cb1b_9eaac78b-06ee-49fd-b5b2-1b559f8d6616.webp?v=1714889297","width":2000},{"alt":null,"id":23889905680483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/534777bd5fc812fc4b9046867c7af70679d9c9eb_844f6268-5280-471a-b3c0-a278f4cbcacf.webp?v=1714889300"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/534777bd5fc812fc4b9046867c7af70679d9c9eb_844f6268-5280-471a-b3c0-a278f4cbcacf.webp?v=1714889300","width":2000},{"alt":null,"id":23889907122275,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ff6e673a83e7bc5d255b9e514e0a922bfe1d703_8b7dcfe5-4f13-4989-9f95-aca28f18b330.webp?v=1714889302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ff6e673a83e7bc5d255b9e514e0a922bfe1d703_8b7dcfe5-4f13-4989-9f95-aca28f18b330.webp?v=1714889302","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903864479843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31484610183267,"product_id":7414068117603,"position":10,"created_at":"2024-05-05T14:08:20+08:00","updated_at":"2024-05-05T14:08:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/534777bd5fc812fc4b9046867c7af70679d9c9eb_844f6268-5280-471a-b3c0-a278f4cbcacf.webp?v=1714889300","variant_ids":[41903864479843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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-PB66","featured_media":{"alt":null,"id":23889905680483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/534777bd5fc812fc4b9046867c7af70679d9c9eb_844f6268-5280-471a-b3c0-a278f4cbcacf.webp?v=1714889300"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903865036899,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31484603695203,"product_id":7414068117603,"position":6,"created_at":"2024-05-05T14:08:10+08:00","updated_at":"2024-05-05T14:08:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01d26018c4fd0fff74f54c9ac68a770ac7f40be6_a46c199c-e010-4fba-9cc7-8abebc3f031f.webp?v=1714889290","variant_ids":[41903865036899]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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-PB66","featured_media":{"alt":null,"id":23889898930275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01d26018c4fd0fff74f54c9ac68a770ac7f40be6_a46c199c-e010-4fba-9cc7-8abebc3f031f.webp?v=1714889290"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903864479843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31484610183267,"product_id":7414068117603,"position":10,"created_at":"2024-05-05T14:08:20+08:00","updated_at":"2024-05-05T14:08:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/534777bd5fc812fc4b9046867c7af70679d9c9eb_844f6268-5280-471a-b3c0-a278f4cbcacf.webp?v=1714889300","variant_ids":[41903864479843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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-PB66","featured_media":{"alt":null,"id":23889905680483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/534777bd5fc812fc4b9046867c7af70679d9c9eb_844f6268-5280-471a-b3c0-a278f4cbcacf.webp?v=1714889300"}},"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: "停產"
}