$product = {"id":7414438592611,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb08","description":null,"published_at":"2024-06-11T17:51:19+08:00","created_at":"2024-05-05T14:25:31+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":41906497683555,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485485482083,"product_id":7414438592611,"position":11,"created_at":"2024-05-05T14:25:57+08:00","updated_at":"2024-05-05T14:25:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac8ab094e053a65b4df12be5f68bf78d0d3a1700_9a402ba7-a9c8-4e60-bff1-b7bc18ce3935.webp?v=1714890357","variant_ids":[41906497683555]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - 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-PB08","featured_media":{"alt":null,"id":23890802540643,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac8ab094e053a65b4df12be5f68bf78d0d3a1700_9a402ba7-a9c8-4e60-bff1-b7bc18ce3935.webp?v=1714890357"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906498437219,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485470802019,"product_id":7414438592611,"position":6,"created_at":"2024-05-05T14:25:45+08:00","updated_at":"2024-05-05T14:25:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d56826a45914eecb1da0d54141f7a937130de66_64fc27c5-2bf0-4669-a19f-70464053215a.webp?v=1714890346","variant_ids":[41906498437219]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - 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-PB08","featured_media":{"alt":null,"id":23890787893347,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d56826a45914eecb1da0d54141f7a937130de66_64fc27c5-2bf0-4669-a19f-70464053215a.webp?v=1714890346"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/905ffb0981bf4a6d2f5418f3e40f15a11909e402_b522fc1b-4e08-47b7-b3f1-20d3f8899ead.webp?v=1714890334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c9d963014523e53fa33fb4a9c28833a54989b39_20401b05-9783-40be-bb24-b90b5c98bc6e.webp?v=1714890336","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85ab19cd2e7e49b96c00162ecf11cef8e20df36c_67d0e707-6228-4562-a20a-8c849d56eee4.webp?v=1714890338","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b2bcea183337940bb2d49502f07a420dc959525_d4b6e652-7d21-4251-8dce-ca6908a90422.webp?v=1714890341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ebb00f8e7391c483165d24dba1515c9fddaa8ad_4e88bf06-40ff-4d7a-a667-a4726c195f8a.webp?v=1714890343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d56826a45914eecb1da0d54141f7a937130de66_64fc27c5-2bf0-4669-a19f-70464053215a.webp?v=1714890346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79c3fa6c4242a070ef1e6bac3b64096a920a59d0_910e0314-0947-40bf-9777-82088b258d9b.webp?v=1714890348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d17d5180c2c6c17972b7174be8e101d511ba522d_852cbdcc-e08d-42cb-9658-05ff08432220.webp?v=1714890350","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6fca329bc5022a3a9722c1030639fac1fc9bef0_a78d4508-2054-4734-9600-b5661780a765.webp?v=1714890353","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0aba30d1d842c7255c4d5d9d83c0c697636924d4_62ccccf4-20e0-4280-a1c7-fd00748bf226.webp?v=1714890355","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac8ab094e053a65b4df12be5f68bf78d0d3a1700_9a402ba7-a9c8-4e60-bff1-b7bc18ce3935.webp?v=1714890357"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/905ffb0981bf4a6d2f5418f3e40f15a11909e402_b522fc1b-4e08-47b7-b3f1-20d3f8899ead.webp?v=1714890334","options":["color"],"media":[{"alt":null,"id":23890771673187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/905ffb0981bf4a6d2f5418f3e40f15a11909e402_b522fc1b-4e08-47b7-b3f1-20d3f8899ead.webp?v=1714890334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/905ffb0981bf4a6d2f5418f3e40f15a11909e402_b522fc1b-4e08-47b7-b3f1-20d3f8899ead.webp?v=1714890334","width":2000},{"alt":null,"id":23890775146595,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c9d963014523e53fa33fb4a9c28833a54989b39_20401b05-9783-40be-bb24-b90b5c98bc6e.webp?v=1714890336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c9d963014523e53fa33fb4a9c28833a54989b39_20401b05-9783-40be-bb24-b90b5c98bc6e.webp?v=1714890336","width":2000},{"alt":null,"id":23890778488931,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85ab19cd2e7e49b96c00162ecf11cef8e20df36c_67d0e707-6228-4562-a20a-8c849d56eee4.webp?v=1714890338"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85ab19cd2e7e49b96c00162ecf11cef8e20df36c_67d0e707-6228-4562-a20a-8c849d56eee4.webp?v=1714890338","width":2000},{"alt":null,"id":23890781962339,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b2bcea183337940bb2d49502f07a420dc959525_d4b6e652-7d21-4251-8dce-ca6908a90422.webp?v=1714890341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b2bcea183337940bb2d49502f07a420dc959525_d4b6e652-7d21-4251-8dce-ca6908a90422.webp?v=1714890341","width":2000},{"alt":null,"id":23890784714851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ebb00f8e7391c483165d24dba1515c9fddaa8ad_4e88bf06-40ff-4d7a-a667-a4726c195f8a.webp?v=1714890343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ebb00f8e7391c483165d24dba1515c9fddaa8ad_4e88bf06-40ff-4d7a-a667-a4726c195f8a.webp?v=1714890343","width":2000},{"alt":null,"id":23890787893347,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d56826a45914eecb1da0d54141f7a937130de66_64fc27c5-2bf0-4669-a19f-70464053215a.webp?v=1714890346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d56826a45914eecb1da0d54141f7a937130de66_64fc27c5-2bf0-4669-a19f-70464053215a.webp?v=1714890346","width":2000},{"alt":null,"id":23890791170147,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79c3fa6c4242a070ef1e6bac3b64096a920a59d0_910e0314-0947-40bf-9777-82088b258d9b.webp?v=1714890348"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79c3fa6c4242a070ef1e6bac3b64096a920a59d0_910e0314-0947-40bf-9777-82088b258d9b.webp?v=1714890348","width":2000},{"alt":null,"id":23890793988195,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d17d5180c2c6c17972b7174be8e101d511ba522d_852cbdcc-e08d-42cb-9658-05ff08432220.webp?v=1714890350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d17d5180c2c6c17972b7174be8e101d511ba522d_852cbdcc-e08d-42cb-9658-05ff08432220.webp?v=1714890350","width":2000},{"alt":null,"id":23890797199459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6fca329bc5022a3a9722c1030639fac1fc9bef0_a78d4508-2054-4734-9600-b5661780a765.webp?v=1714890353"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6fca329bc5022a3a9722c1030639fac1fc9bef0_a78d4508-2054-4734-9600-b5661780a765.webp?v=1714890353","width":2000},{"alt":null,"id":23890799657059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0aba30d1d842c7255c4d5d9d83c0c697636924d4_62ccccf4-20e0-4280-a1c7-fd00748bf226.webp?v=1714890355"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0aba30d1d842c7255c4d5d9d83c0c697636924d4_62ccccf4-20e0-4280-a1c7-fd00748bf226.webp?v=1714890355","width":2000},{"alt":null,"id":23890802540643,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac8ab094e053a65b4df12be5f68bf78d0d3a1700_9a402ba7-a9c8-4e60-bff1-b7bc18ce3935.webp?v=1714890357"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac8ab094e053a65b4df12be5f68bf78d0d3a1700_9a402ba7-a9c8-4e60-bff1-b7bc18ce3935.webp?v=1714890357","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41906497683555,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485485482083,"product_id":7414438592611,"position":11,"created_at":"2024-05-05T14:25:57+08:00","updated_at":"2024-05-05T14:25:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac8ab094e053a65b4df12be5f68bf78d0d3a1700_9a402ba7-a9c8-4e60-bff1-b7bc18ce3935.webp?v=1714890357","variant_ids":[41906497683555]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - 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-PB08","featured_media":{"alt":null,"id":23890802540643,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac8ab094e053a65b4df12be5f68bf78d0d3a1700_9a402ba7-a9c8-4e60-bff1-b7bc18ce3935.webp?v=1714890357"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906498437219,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485470802019,"product_id":7414438592611,"position":6,"created_at":"2024-05-05T14:25:45+08:00","updated_at":"2024-05-05T14:25:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d56826a45914eecb1da0d54141f7a937130de66_64fc27c5-2bf0-4669-a19f-70464053215a.webp?v=1714890346","variant_ids":[41906498437219]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - 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-PB08","featured_media":{"alt":null,"id":23890787893347,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d56826a45914eecb1da0d54141f7a937130de66_64fc27c5-2bf0-4669-a19f-70464053215a.webp?v=1714890346"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41906497683555,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485485482083,"product_id":7414438592611,"position":11,"created_at":"2024-05-05T14:25:57+08:00","updated_at":"2024-05-05T14:25:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac8ab094e053a65b4df12be5f68bf78d0d3a1700_9a402ba7-a9c8-4e60-bff1-b7bc18ce3935.webp?v=1714890357","variant_ids":[41906497683555]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - 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-PB08","featured_media":{"alt":null,"id":23890802540643,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac8ab094e053a65b4df12be5f68bf78d0d3a1700_9a402ba7-a9c8-4e60-bff1-b7bc18ce3935.webp?v=1714890357"}},"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: "停產"
}