$product = {"id":7413988425827,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 小圖款-BB8","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pc04","description":null,"published_at":"2024-06-11T17:47:00+08:00","created_at":"2024-05-05T13:56:15+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":41903040266339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484402335843,"product_id":7413988425827,"position":9,"created_at":"2024-05-05T13:56:36+08:00","updated_at":"2024-05-05T13:56:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b2a8ba886c4c11c34531f947997645d70d51c25_e52c7911-a4e6-4268-b58b-44954b9828c0.webp?v=1714888596","variant_ids":[41903040266339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23889696260195,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b2a8ba886c4c11c34531f947997645d70d51c25_e52c7911-a4e6-4268-b58b-44954b9828c0.webp?v=1714888596"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903040659555,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484400369763,"product_id":7413988425827,"position":5,"created_at":"2024-05-05T13:56:27+08:00","updated_at":"2024-05-05T13:56:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a10a5936923e903a85d4b16852f72d1f28e22f5_ec5b87d0-a058-4cf5-afb6-7529f50ddbcd.webp?v=1714888587","variant_ids":[41903040659555]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23889694294115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a10a5936923e903a85d4b16852f72d1f28e22f5_ec5b87d0-a058-4cf5-afb6-7529f50ddbcd.webp?v=1714888587"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc1b73755864004ca8f8cdcb86dbb2be6e46d95b_b7acd13f-79d1-4f8c-87c5-884bfd279663.webp?v=1714888578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/475b2018aa408dfbce3031351a680e777327f2b6_1df34820-00a3-4f92-990e-dc403b9cefec.webp?v=1714888580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2af874e8ee476d868b20331c0d4060fa4fc6de34_b0812308-38a4-4494-a032-9433776cef38.webp?v=1714888582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e75b7e58a41f2cd9dacc55964eb608923da0e276_db3c01f0-4e48-4448-b9be-af26e6dd47b8.webp?v=1714888585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a10a5936923e903a85d4b16852f72d1f28e22f5_ec5b87d0-a058-4cf5-afb6-7529f50ddbcd.webp?v=1714888587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dca2f7185dc13dce93169fdc611bf2ec13483711_8da3851b-53d7-4cf8-853a-d7a213fe0f31.webp?v=1714888589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26f262772b3590e75adf06fdd200b29fdb591cef_968130da-33c2-407b-a92f-8b7df43808fb.webp?v=1714888591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d12c53970810460eef99e7c355ed7fe33141b5d_81887bf7-c581-45d8-ac2b-a84ef74c30ca.webp?v=1714888594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b2a8ba886c4c11c34531f947997645d70d51c25_e52c7911-a4e6-4268-b58b-44954b9828c0.webp?v=1714888596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a91952cf0d33a943525beeaeba33494c2f086ba_5d00bd71-2943-4356-a6b7-bc8497d3bfb2.webp?v=1714888598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b1f4cd859d18616af90122c7dde69a8ef4b8513_b644108b-d11c-4e13-838d-2f374b2fbf54.webp?v=1714888600"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc1b73755864004ca8f8cdcb86dbb2be6e46d95b_b7acd13f-79d1-4f8c-87c5-884bfd279663.webp?v=1714888578","options":["color"],"media":[{"alt":null,"id":23889692360803,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc1b73755864004ca8f8cdcb86dbb2be6e46d95b_b7acd13f-79d1-4f8c-87c5-884bfd279663.webp?v=1714888578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc1b73755864004ca8f8cdcb86dbb2be6e46d95b_b7acd13f-79d1-4f8c-87c5-884bfd279663.webp?v=1714888578","width":2000},{"alt":null,"id":23889692917859,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/475b2018aa408dfbce3031351a680e777327f2b6_1df34820-00a3-4f92-990e-dc403b9cefec.webp?v=1714888580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/475b2018aa408dfbce3031351a680e777327f2b6_1df34820-00a3-4f92-990e-dc403b9cefec.webp?v=1714888580","width":2000},{"alt":null,"id":23889693376611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2af874e8ee476d868b20331c0d4060fa4fc6de34_b0812308-38a4-4494-a032-9433776cef38.webp?v=1714888582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2af874e8ee476d868b20331c0d4060fa4fc6de34_b0812308-38a4-4494-a032-9433776cef38.webp?v=1714888582","width":2000},{"alt":null,"id":23889693933667,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e75b7e58a41f2cd9dacc55964eb608923da0e276_db3c01f0-4e48-4448-b9be-af26e6dd47b8.webp?v=1714888585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e75b7e58a41f2cd9dacc55964eb608923da0e276_db3c01f0-4e48-4448-b9be-af26e6dd47b8.webp?v=1714888585","width":2000},{"alt":null,"id":23889694294115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a10a5936923e903a85d4b16852f72d1f28e22f5_ec5b87d0-a058-4cf5-afb6-7529f50ddbcd.webp?v=1714888587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a10a5936923e903a85d4b16852f72d1f28e22f5_ec5b87d0-a058-4cf5-afb6-7529f50ddbcd.webp?v=1714888587","width":2000},{"alt":null,"id":23889694883939,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dca2f7185dc13dce93169fdc611bf2ec13483711_8da3851b-53d7-4cf8-853a-d7a213fe0f31.webp?v=1714888589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dca2f7185dc13dce93169fdc611bf2ec13483711_8da3851b-53d7-4cf8-853a-d7a213fe0f31.webp?v=1714888589","width":2000},{"alt":null,"id":23889695309923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26f262772b3590e75adf06fdd200b29fdb591cef_968130da-33c2-407b-a92f-8b7df43808fb.webp?v=1714888591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26f262772b3590e75adf06fdd200b29fdb591cef_968130da-33c2-407b-a92f-8b7df43808fb.webp?v=1714888591","width":2000},{"alt":null,"id":23889695932515,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d12c53970810460eef99e7c355ed7fe33141b5d_81887bf7-c581-45d8-ac2b-a84ef74c30ca.webp?v=1714888594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d12c53970810460eef99e7c355ed7fe33141b5d_81887bf7-c581-45d8-ac2b-a84ef74c30ca.webp?v=1714888594","width":2000},{"alt":null,"id":23889696260195,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b2a8ba886c4c11c34531f947997645d70d51c25_e52c7911-a4e6-4268-b58b-44954b9828c0.webp?v=1714888596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b2a8ba886c4c11c34531f947997645d70d51c25_e52c7911-a4e6-4268-b58b-44954b9828c0.webp?v=1714888596","width":2000},{"alt":null,"id":23889696850019,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a91952cf0d33a943525beeaeba33494c2f086ba_5d00bd71-2943-4356-a6b7-bc8497d3bfb2.webp?v=1714888598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a91952cf0d33a943525beeaeba33494c2f086ba_5d00bd71-2943-4356-a6b7-bc8497d3bfb2.webp?v=1714888598","width":2000},{"alt":null,"id":23889697144931,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b1f4cd859d18616af90122c7dde69a8ef4b8513_b644108b-d11c-4e13-838d-2f374b2fbf54.webp?v=1714888600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b1f4cd859d18616af90122c7dde69a8ef4b8513_b644108b-d11c-4e13-838d-2f374b2fbf54.webp?v=1714888600","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903040266339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484402335843,"product_id":7413988425827,"position":9,"created_at":"2024-05-05T13:56:36+08:00","updated_at":"2024-05-05T13:56:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b2a8ba886c4c11c34531f947997645d70d51c25_e52c7911-a4e6-4268-b58b-44954b9828c0.webp?v=1714888596","variant_ids":[41903040266339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23889696260195,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b2a8ba886c4c11c34531f947997645d70d51c25_e52c7911-a4e6-4268-b58b-44954b9828c0.webp?v=1714888596"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903040659555,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484400369763,"product_id":7413988425827,"position":5,"created_at":"2024-05-05T13:56:27+08:00","updated_at":"2024-05-05T13:56:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a10a5936923e903a85d4b16852f72d1f28e22f5_ec5b87d0-a058-4cf5-afb6-7529f50ddbcd.webp?v=1714888587","variant_ids":[41903040659555]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23889694294115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a10a5936923e903a85d4b16852f72d1f28e22f5_ec5b87d0-a058-4cf5-afb6-7529f50ddbcd.webp?v=1714888587"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903040266339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484402335843,"product_id":7413988425827,"position":9,"created_at":"2024-05-05T13:56:36+08:00","updated_at":"2024-05-05T13:56:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b2a8ba886c4c11c34531f947997645d70d51c25_e52c7911-a4e6-4268-b58b-44954b9828c0.webp?v=1714888596","variant_ids":[41903040266339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23889696260195,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b2a8ba886c4c11c34531f947997645d70d51c25_e52c7911-a4e6-4268-b58b-44954b9828c0.webp?v=1714888596"}},"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: "停產"
}