$product = {"id":7411237683299,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士-線稿風格","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb51","description":null,"published_at":"2024-06-11T17:39:34+08:00","created_at":"2024-05-04T23:51:14+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 14 Plus","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":41896367915107,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31479929536611,"product_id":7411237683299,"position":9,"created_at":"2024-05-04T23:51:34+08:00","updated_at":"2024-05-04T23:51:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61afa3f73e4a023cacdc0eccc6bb83ba16397c66_fdb436d0-845e-43f8-8d7e-2fb2b32a116e.webp?v=1714837894","variant_ids":[41896367915107]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 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":"MPB0126124-PB51","featured_media":{"alt":null,"id":23885179977827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61afa3f73e4a023cacdc0eccc6bb83ba16397c66_fdb436d0-845e-43f8-8d7e-2fb2b32a116e.webp?v=1714837894"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0370e542ac717854847a8a063d535a986f77ab92_2a85ab39-3ecc-4ecf-b25f-b4863ce18f98.webp?v=1714837876","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3878791d6cbf39f600a543199503b45a38802e68_1e72468b-f69a-47c9-8d7b-4a1f3bf66492.webp?v=1714837879","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d35a78faab2bd76fab797c534598d74d6bb7714_c2f04ad1-1685-416b-a2a5-c5a9a44865e6.webp?v=1714837881","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09823403c9a1ef4bb793aa98758b127ef4c8ecf7_88f02c60-2e3f-418b-b3a9-1f334272348d.webp?v=1714837883","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4191dbda55484a32d50767d861b50822344e0579_ea55e9fa-fb78-4484-8626-db56b85b48d0.webp?v=1714837885","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/043db82f650d086648123e1d626bafc93c2e4352_eb67bed8-bb0b-498d-b1e3-33b524968274.webp?v=1714837888","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/090d23c14e32c880383bd34446f8abec9590280f_2aa9dd35-d660-424c-a12d-50e84eea0fa6.webp?v=1714837890","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee3df9b19627dfa7a877047d79bb091359f6798f_50bb61c8-7e6b-4b55-a4cf-8ff455b4e3d9.webp?v=1714837892","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61afa3f73e4a023cacdc0eccc6bb83ba16397c66_fdb436d0-845e-43f8-8d7e-2fb2b32a116e.webp?v=1714837894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d67c007a0c07e9e4408959514d5c47ecd821dfbc_bebd91e3-7611-4e0d-8615-a6f6cb35a134.webp?v=1714837897"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0370e542ac717854847a8a063d535a986f77ab92_2a85ab39-3ecc-4ecf-b25f-b4863ce18f98.webp?v=1714837876","options":["color"],"media":[{"alt":null,"id":23885175750755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0370e542ac717854847a8a063d535a986f77ab92_2a85ab39-3ecc-4ecf-b25f-b4863ce18f98.webp?v=1714837876"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0370e542ac717854847a8a063d535a986f77ab92_2a85ab39-3ecc-4ecf-b25f-b4863ce18f98.webp?v=1714837876","width":2000},{"alt":null,"id":23885176373347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3878791d6cbf39f600a543199503b45a38802e68_1e72468b-f69a-47c9-8d7b-4a1f3bf66492.webp?v=1714837879"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3878791d6cbf39f600a543199503b45a38802e68_1e72468b-f69a-47c9-8d7b-4a1f3bf66492.webp?v=1714837879","width":2000},{"alt":null,"id":23885176799331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d35a78faab2bd76fab797c534598d74d6bb7714_c2f04ad1-1685-416b-a2a5-c5a9a44865e6.webp?v=1714837881"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d35a78faab2bd76fab797c534598d74d6bb7714_c2f04ad1-1685-416b-a2a5-c5a9a44865e6.webp?v=1714837881","width":2000},{"alt":null,"id":23885177454691,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09823403c9a1ef4bb793aa98758b127ef4c8ecf7_88f02c60-2e3f-418b-b3a9-1f334272348d.webp?v=1714837883"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09823403c9a1ef4bb793aa98758b127ef4c8ecf7_88f02c60-2e3f-418b-b3a9-1f334272348d.webp?v=1714837883","width":2000},{"alt":null,"id":23885178011747,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4191dbda55484a32d50767d861b50822344e0579_ea55e9fa-fb78-4484-8626-db56b85b48d0.webp?v=1714837885"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4191dbda55484a32d50767d861b50822344e0579_ea55e9fa-fb78-4484-8626-db56b85b48d0.webp?v=1714837885","width":2000},{"alt":null,"id":23885178601571,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/043db82f650d086648123e1d626bafc93c2e4352_eb67bed8-bb0b-498d-b1e3-33b524968274.webp?v=1714837888"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/043db82f650d086648123e1d626bafc93c2e4352_eb67bed8-bb0b-498d-b1e3-33b524968274.webp?v=1714837888","width":2000},{"alt":null,"id":23885179060323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/090d23c14e32c880383bd34446f8abec9590280f_2aa9dd35-d660-424c-a12d-50e84eea0fa6.webp?v=1714837890"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/090d23c14e32c880383bd34446f8abec9590280f_2aa9dd35-d660-424c-a12d-50e84eea0fa6.webp?v=1714837890","width":2000},{"alt":null,"id":23885179617379,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee3df9b19627dfa7a877047d79bb091359f6798f_50bb61c8-7e6b-4b55-a4cf-8ff455b4e3d9.webp?v=1714837892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee3df9b19627dfa7a877047d79bb091359f6798f_50bb61c8-7e6b-4b55-a4cf-8ff455b4e3d9.webp?v=1714837892","width":2000},{"alt":null,"id":23885179977827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61afa3f73e4a023cacdc0eccc6bb83ba16397c66_fdb436d0-845e-43f8-8d7e-2fb2b32a116e.webp?v=1714837894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61afa3f73e4a023cacdc0eccc6bb83ba16397c66_fdb436d0-845e-43f8-8d7e-2fb2b32a116e.webp?v=1714837894","width":2000},{"alt":null,"id":23885180567651,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d67c007a0c07e9e4408959514d5c47ecd821dfbc_bebd91e3-7611-4e0d-8615-a6f6cb35a134.webp?v=1714837897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d67c007a0c07e9e4408959514d5c47ecd821dfbc_bebd91e3-7611-4e0d-8615-a6f6cb35a134.webp?v=1714837897","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41896367915107,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31479929536611,"product_id":7411237683299,"position":9,"created_at":"2024-05-04T23:51:34+08:00","updated_at":"2024-05-04T23:51:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61afa3f73e4a023cacdc0eccc6bb83ba16397c66_fdb436d0-845e-43f8-8d7e-2fb2b32a116e.webp?v=1714837894","variant_ids":[41896367915107]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 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":"MPB0126124-PB51","featured_media":{"alt":null,"id":23885179977827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61afa3f73e4a023cacdc0eccc6bb83ba16397c66_fdb436d0-845e-43f8-8d7e-2fb2b32a116e.webp?v=1714837894"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41896367915107,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31479929536611,"product_id":7411237683299,"position":9,"created_at":"2024-05-04T23:51:34+08:00","updated_at":"2024-05-04T23:51:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61afa3f73e4a023cacdc0eccc6bb83ba16397c66_fdb436d0-845e-43f8-8d7e-2fb2b32a116e.webp?v=1714837894","variant_ids":[41896367915107]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 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":"MPB0126124-PB51","featured_media":{"alt":null,"id":23885179977827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61afa3f73e4a023cacdc0eccc6bb83ba16397c66_fdb436d0-845e-43f8-8d7e-2fb2b32a116e.webp?v=1714837894"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(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: "停產"
}