$product = {"id":7407622553699,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-剪紙系列","handle":"iphone-15-plus-mod-nx-printable-pb57","description":null,"published_at":"2024-06-11T16:20:50+08:00","created_at":"2024-05-03T10:22:07+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 15 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41876886913123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB57","requires_shipping":true,"taxable":true,"featured_image":{"id":31470061682787,"product_id":7407622553699,"position":9,"created_at":"2024-05-03T10:22:28+08:00","updated_at":"2024-05-03T10:22:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf7b60ea7baa699bbe23fa97c45cadfa6766918_a22034af-1999-4934-a112-a85ea77cf8e5.webp?v=1714702948","variant_ids":[41876886913123]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-剪紙系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0129624-PB57","featured_media":{"alt":null,"id":23874963931235,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf7b60ea7baa699bbe23fa97c45cadfa6766918_a22034af-1999-4934-a112-a85ea77cf8e5.webp?v=1714702948"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876887044195,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB57","requires_shipping":true,"taxable":true,"featured_image":{"id":31470057521251,"product_id":7407622553699,"position":1,"created_at":"2024-05-03T10:22:09+08:00","updated_at":"2024-05-03T10:22:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/310b85ec9946d6b8a7e145aa44fd3a2ec9dbdadf_f2e57362-9bde-4902-8202-5cacb5177a7b.webp?v=1714702929","variant_ids":[41876887044195]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-剪紙系列 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0129657-PB57","featured_media":{"alt":null,"id":23874959769699,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/310b85ec9946d6b8a7e145aa44fd3a2ec9dbdadf_f2e57362-9bde-4902-8202-5cacb5177a7b.webp?v=1714702929"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/310b85ec9946d6b8a7e145aa44fd3a2ec9dbdadf_f2e57362-9bde-4902-8202-5cacb5177a7b.webp?v=1714702929","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8659833fee8d36028a341c681561c46183c78fad_30903389-6a9a-4dac-849e-e94ec73f477f.webp?v=1714702932","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b54c2069cf0429491ef121e53d642923425f8720_c6d9246f-103a-4ed1-90f6-04cc56cce1b2.webp?v=1714702934","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84060c01ab25886a531d781a9de147158372168c_3638f30a-13d7-430a-8cf3-bf7fe36b00c5.webp?v=1714702937","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66926257c291c15c14f551241ecab9aa09976ea3_73a32e91-beaf-4a37-be01-8bbfd097e98b.webp?v=1714702939","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09579440b60b9fb7431b1804dbf4b1c4c64d24dd_92668855-7bbd-40ff-b5b5-e8cbac2790d3.webp?v=1714702941","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4806e02783c6fab3088053256182a7aa7c693b83_54229c24-c302-49fe-a03c-84d00acb4691.webp?v=1714702943","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae28c0e2e63ea7f93fbad4b4e093dd805af1c7e6_f68ff289-ab08-4720-b9e8-dab2e8396844.webp?v=1714702946","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf7b60ea7baa699bbe23fa97c45cadfa6766918_a22034af-1999-4934-a112-a85ea77cf8e5.webp?v=1714702948","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6fb68c54d0a5371b77d486300b2333f2fa19e2c_1af88959-db46-4104-b529-d20d4726e5bd.webp?v=1714702951"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/310b85ec9946d6b8a7e145aa44fd3a2ec9dbdadf_f2e57362-9bde-4902-8202-5cacb5177a7b.webp?v=1714702929","options":["color"],"media":[{"alt":null,"id":23874959769699,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/310b85ec9946d6b8a7e145aa44fd3a2ec9dbdadf_f2e57362-9bde-4902-8202-5cacb5177a7b.webp?v=1714702929"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/310b85ec9946d6b8a7e145aa44fd3a2ec9dbdadf_f2e57362-9bde-4902-8202-5cacb5177a7b.webp?v=1714702929","width":2000},{"alt":null,"id":23874960195683,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8659833fee8d36028a341c681561c46183c78fad_30903389-6a9a-4dac-849e-e94ec73f477f.webp?v=1714702932"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8659833fee8d36028a341c681561c46183c78fad_30903389-6a9a-4dac-849e-e94ec73f477f.webp?v=1714702932","width":2000},{"alt":null,"id":23874960752739,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b54c2069cf0429491ef121e53d642923425f8720_c6d9246f-103a-4ed1-90f6-04cc56cce1b2.webp?v=1714702934"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b54c2069cf0429491ef121e53d642923425f8720_c6d9246f-103a-4ed1-90f6-04cc56cce1b2.webp?v=1714702934","width":2000},{"alt":null,"id":23874961539171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84060c01ab25886a531d781a9de147158372168c_3638f30a-13d7-430a-8cf3-bf7fe36b00c5.webp?v=1714702937"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84060c01ab25886a531d781a9de147158372168c_3638f30a-13d7-430a-8cf3-bf7fe36b00c5.webp?v=1714702937","width":2000},{"alt":null,"id":23874962096227,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66926257c291c15c14f551241ecab9aa09976ea3_73a32e91-beaf-4a37-be01-8bbfd097e98b.webp?v=1714702939"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66926257c291c15c14f551241ecab9aa09976ea3_73a32e91-beaf-4a37-be01-8bbfd097e98b.webp?v=1714702939","width":2000},{"alt":null,"id":23874962489443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09579440b60b9fb7431b1804dbf4b1c4c64d24dd_92668855-7bbd-40ff-b5b5-e8cbac2790d3.webp?v=1714702941"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09579440b60b9fb7431b1804dbf4b1c4c64d24dd_92668855-7bbd-40ff-b5b5-e8cbac2790d3.webp?v=1714702941","width":2000},{"alt":null,"id":23874963013731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4806e02783c6fab3088053256182a7aa7c693b83_54229c24-c302-49fe-a03c-84d00acb4691.webp?v=1714702943"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4806e02783c6fab3088053256182a7aa7c693b83_54229c24-c302-49fe-a03c-84d00acb4691.webp?v=1714702943","width":2000},{"alt":null,"id":23874963406947,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae28c0e2e63ea7f93fbad4b4e093dd805af1c7e6_f68ff289-ab08-4720-b9e8-dab2e8396844.webp?v=1714702946"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae28c0e2e63ea7f93fbad4b4e093dd805af1c7e6_f68ff289-ab08-4720-b9e8-dab2e8396844.webp?v=1714702946","width":2000},{"alt":null,"id":23874963931235,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf7b60ea7baa699bbe23fa97c45cadfa6766918_a22034af-1999-4934-a112-a85ea77cf8e5.webp?v=1714702948"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf7b60ea7baa699bbe23fa97c45cadfa6766918_a22034af-1999-4934-a112-a85ea77cf8e5.webp?v=1714702948","width":2000},{"alt":null,"id":23874964521059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6fb68c54d0a5371b77d486300b2333f2fa19e2c_1af88959-db46-4104-b529-d20d4726e5bd.webp?v=1714702951"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6fb68c54d0a5371b77d486300b2333f2fa19e2c_1af88959-db46-4104-b529-d20d4726e5bd.webp?v=1714702951","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41876886913123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB57","requires_shipping":true,"taxable":true,"featured_image":{"id":31470061682787,"product_id":7407622553699,"position":9,"created_at":"2024-05-03T10:22:28+08:00","updated_at":"2024-05-03T10:22:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf7b60ea7baa699bbe23fa97c45cadfa6766918_a22034af-1999-4934-a112-a85ea77cf8e5.webp?v=1714702948","variant_ids":[41876886913123]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-剪紙系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0129624-PB57","featured_media":{"alt":null,"id":23874963931235,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf7b60ea7baa699bbe23fa97c45cadfa6766918_a22034af-1999-4934-a112-a85ea77cf8e5.webp?v=1714702948"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876887044195,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB57","requires_shipping":true,"taxable":true,"featured_image":{"id":31470057521251,"product_id":7407622553699,"position":1,"created_at":"2024-05-03T10:22:09+08:00","updated_at":"2024-05-03T10:22:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/310b85ec9946d6b8a7e145aa44fd3a2ec9dbdadf_f2e57362-9bde-4902-8202-5cacb5177a7b.webp?v=1714702929","variant_ids":[41876887044195]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-剪紙系列 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0129657-PB57","featured_media":{"alt":null,"id":23874959769699,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/310b85ec9946d6b8a7e145aa44fd3a2ec9dbdadf_f2e57362-9bde-4902-8202-5cacb5177a7b.webp?v=1714702929"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41876886913123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB57","requires_shipping":true,"taxable":true,"featured_image":{"id":31470061682787,"product_id":7407622553699,"position":9,"created_at":"2024-05-03T10:22:28+08:00","updated_at":"2024-05-03T10:22:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf7b60ea7baa699bbe23fa97c45cadfa6766918_a22034af-1999-4934-a112-a85ea77cf8e5.webp?v=1714702948","variant_ids":[41876886913123]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-剪紙系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0129624-PB57","featured_media":{"alt":null,"id":23874963931235,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf7b60ea7baa699bbe23fa97c45cadfa6766918_a22034af-1999-4934-a112-a85ea77cf8e5.webp?v=1714702948"}},"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: "停產"
}