Nixplay Smart and Ultra
Sort By
Size
Size (Large to Small)
Size (Small to Large)
Price
Price (High to Low)
Price (Low to High)
.new-star-rating use:nth-child(2) {
transform: translate(20px);
}
.new-star-rating use:nth-child(3) {
transform: translate(40px);
}
.new-star-rating use:nth-child(4) {
transform: translate(60px);
}
.new-star-rating use:nth-child(5) {
transform: translate(80px);
}
Nixplay 8-inch Wi-Fi Digital Photo Frame ({{activeVariant.color}})
Total Price
you save
.new-star-rating use:nth-child(2) {
transform: translate(20px);
}
.new-star-rating use:nth-child(3) {
transform: translate(40px);
}
.new-star-rating use:nth-child(4) {
transform: translate(60px);
}
.new-star-rating use:nth-child(5) {
transform: translate(80px);
}
Nixplay 10.1-inch Smart Photo Frame ({{activeVariant.color}})
Total Price
you save
.new-star-rating use:nth-child(2) {
transform: translate(20px);
}
.new-star-rating use:nth-child(3) {
transform: translate(40px);
}
.new-star-rating use:nth-child(4) {
transform: translate(60px);
}
.new-star-rating use:nth-child(5) {
transform: translate(80px);
}
Nixplay 13.3-inch Smart Photo Frame ({{activeVariant.color}})
Total Price
you save
.new-star-rating use:nth-child(2) {
transform: translate(20px);
}
.new-star-rating use:nth-child(3) {
transform: translate(40px);
}
.new-star-rating use:nth-child(4) {
transform: translate(60px);
}
.new-star-rating use:nth-child(5) {
transform: translate(80px);
}
Nixplay 15-inch Original Wi-Fi Digital Picture Frame (Landscape) ({{activeVariant.color}})
Total Price
you save
.new-star-rating use:nth-child(2) {
transform: translate(20px);
}
.new-star-rating use:nth-child(3) {
transform: translate(40px);
}
.new-star-rating use:nth-child(4) {
transform: translate(60px);
}
.new-star-rating use:nth-child(5) {
transform: translate(80px);
}
Nixplay 9.7-inch 2K Smart Photo Frame ({{activeVariant.color}})
Total Price
you save
.hide-in-collection, .usp-switch { display: none !important; }
.wifi-products .details ul { margin: 20px; }
.wifi-products .details ul li { color: #666666; list-style: disc; font-size: 15px;}
.wifi-products .description .ratings span { display: none; }
div[data-load-type=continue] ul.stamped-pagination li.next a, div[data-widget-load-type=continue] ul.stamped-pagination li.next a {
border: none !important;
background: #20819c !important;
border-radius: 27px !important;
}
.stamped-fa-star, .stamped-fa-star-checked, .stamped-fa-star-half-o, .stamped-fa-star-o {
color: #facc11 !important;
padding: 0;
}
@media (max-width: 640px){
.wifi-products select { background-position: 97% 50%; }
}
(function(){
const cardList = [];
const params = { size: "", price: "" }
const orderList = (list, attribute) => {
return list.sort((a, b) => {
const nameA = (Number(a[attribute])) ? Number(a[attribute]) : a[attribute].toUpperCase();
const nameB = (Number(b[attribute])) ? Number(b[attribute]) : b[attribute].toUpperCase();
return (nameA < nameB) ? -1: ((nameA > nameB)? 1: 0);
});
}
const filterCards = type => {
let ordered = [], hasAValue = false;
document.querySelectorAll('.card').forEach(card => ordered.push({size: card.dataset.size, price: card.dataset.price, el: card}));
document.querySelectorAll('.filter').forEach(filter => {
if(filter.vallue != '') hasAValue = true;
});
if(hasAValue && params[type] == '') return false;
switch (params[type]){
case "desc":
ordered = orderList(ordered, type)
ordered = ordered.reverse()
break;
case "asc":
ordered = orderList(ordered, type)
break;
default:
break;
}
ordered.forEach(item => document.querySelector('.cards-container').appendChild(item.el));
}
const readFilter = element => {
if(params[element.dataset.filterType] !== element.value){
params[element.dataset.filterType] = element.value;
filterCards(element.dataset.filterType);
}
}
const clearFilter = target => {
document.querySelectorAll('.filter').forEach(filter => {
if(target !== filter) filter.value = '';
});
}
document.querySelectorAll('.filter').forEach(filter => {
filter.addEventListener('change', function() {
clearFilter(filter);
readFilter(filter);
});
});
})();
var saleDetails = {
saleEnd: '',
cartSummary: {
item_count: 0,
items_subtotal_price: 0,
original_total_price: 0,
requires_shipping: false,
total_discount: 0,
total_price: 0,
},
cartMessage:"[#%] discount applied for our Secret Sale",
cartDiscount_code: '',
fixedDiscount: '',
locale: 'en',
offer: { you_save: "You Save", buy: "BUY", off: "OFF"},
items: [ {
sku : "408",
id: 39349472919670,
price: 18999,
saleCopy: "",
saleCopyBi: "",
copyColor: "#000000",
blockBg: "#f6f6f6",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "money-off",
spendAmount: "",
discountValue: "20",
disclaimer: "",
hideSticker: true,
sticker: null,
stickerBi: null,
addDiscountCopy: "",
addDiscountCopyBi: ""
},{
sku : "411",
id: 39349472952438,
price: 18999,
saleCopy: "",
saleCopyBi: "",
copyColor: "#000000",
blockBg: "#f6f6f6",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "money-off",
spendAmount: "",
discountValue: "20",
disclaimer: "",
hideSticker: true,
sticker: null,
stickerBi: null,
addDiscountCopy: "",
addDiscountCopyBi: ""
},{
sku : "418",
id: 39349472985206,
price: 19999,
saleCopy: "",
saleCopyBi: "",
copyColor: "#000000",
blockBg: "#f6f6f6",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "money-off",
spendAmount: "",
discountValue: "20",
disclaimer: "",
hideSticker: true,
sticker: null,
stickerBi: null,
addDiscountCopy: "",
addDiscountCopyBi: ""
}, {
sku : "314",
id: 39419763228790,
price: 14999,
saleCopy: "",
saleCopyBi: "",
copyColor: "#000000",
blockBg: "#f6f6f6",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "money-off",
spendAmount: "",
discountValue: "20",
disclaimer: "",
hideSticker: true,
sticker: null,
stickerBi: null,
addDiscountCopy: "",
addDiscountCopyBi: ""
}, {
sku : "409",
id: 31940914479222,
price: 32999,
saleCopy: "",
saleCopyBi: "",
copyColor: "#000000",
blockBg: "#f6f6f6",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "money-off",
spendAmount: "",
discountValue: "20",
disclaimer: "",
hideSticker: true,
sticker: null,
stickerBi: null,
addDiscountCopy: "",
addDiscountCopyBi: ""
},{
sku : "421",
id: 39449435340918,
price: 33999,
saleCopy: "",
saleCopyBi: "",
copyColor: "#000000",
blockBg: "#f6f6f6",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "money-off",
spendAmount: "",
discountValue: "20",
disclaimer: "",
hideSticker: true,
sticker: null,
stickerBi: null,
addDiscountCopy: "",
addDiscountCopyBi: ""
}, {
sku : "419",
id: 39391560302710,
price: 20999,
saleCopy: "",
saleCopyBi: "",
copyColor: "#000000",
blockBg: "#f6f6f6",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "money-off",
spendAmount: "",
discountValue: "20",
disclaimer: "",
hideSticker: true,
sticker: null,
stickerBi: null,
addDiscountCopy: "",
addDiscountCopyBi: ""
},{
sku : "424",
id: 39656695431286,
price: 20999,
saleCopy: "",
saleCopyBi: "",
copyColor: "#000000",
blockBg: "#f6f6f6",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "money-off",
spendAmount: "",
discountValue: "20",
disclaimer: "",
hideSticker: true,
sticker: null,
stickerBi: null,
addDiscountCopy: "",
addDiscountCopyBi: ""
},{
sku : "420",
id: 39449432457334,
price: 20999,
saleCopy: "",
saleCopyBi: "",
copyColor: "#000000",
blockBg: "#f6f6f6",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "money-off",
spendAmount: "",
discountValue: "20",
disclaimer: "",
hideSticker: true,
sticker: null,
stickerBi: null,
addDiscountCopy: "",
addDiscountCopyBi: ""
},{
sku : "423",
id: 39656695529590,
price: 22999,
saleCopy: "",
saleCopyBi: "",
copyColor: "#000000",
blockBg: "#f6f6f6",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "money-off",
spendAmount: "",
discountValue: "20",
disclaimer: "",
hideSticker: true,
sticker: null,
stickerBi: null,
addDiscountCopy: "",
addDiscountCopyBi: ""
},{
sku : "422",
id: 39449432752246,
price: 20999,
saleCopy: "",
saleCopyBi: "",
copyColor: "#000000",
blockBg: "#f6f6f6",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "money-off",
spendAmount: "",
discountValue: "20",
disclaimer: "",
hideSticker: true,
sticker: null,
stickerBi: null,
addDiscountCopy: "",
addDiscountCopyBi: ""
}, {
sku : "603",
id: 30305061011574,
price: 29999,
saleCopy: "",
saleCopyBi: "",
copyColor: "#000000",
blockBg: "#f6f6f6",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "money-off",
spendAmount: "",
discountValue: "20",
disclaimer: "",
hideSticker: true,
sticker: null,
stickerBi: null,
addDiscountCopy: "",
addDiscountCopyBi: ""
}, {
sku : "704",
id: 39439709569142,
price: 27999,
saleCopy: "",
saleCopyBi: "",
copyColor: "",
blockBg: "#000000",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "money-off",
spendAmount: "",
discountValue: "20",
disclaimer: "",
hideSticker: true,
sticker: null,
stickerBi: null,
addDiscountCopy: "",
addDiscountCopyBi: ""
},]
};
window.saleDetails = saleDetails;
var saleFunctions = {
getPrice: function (line, qtt) {
var price = line.price;
var quantity = qtt || 1
var valueOff = line.valueOff
var values = String(line.discountValue).split(',');
var totalPrice = 0
var unitPrice = 0
var difference = 0
switch (line.discountType) {
case 'fixed':
var discount_value = Number(values[0]);
unitPrice = (valueOff === 'percent-off') ? price * (1 - discount_value) : price - (discount_value * 100);
finalPrice = unitPrice * quantity;
difference = price - unitPrice
break;
case '3plus':
break;
case '123plus':
var discount_value;
if(quantity == 1) {
discount_value = Number(values[0]);
} else if (quantity == 2) {
discount_value = Number(values[1]);
} else {
discount_value = Number(values[2]);
}
unitPrice = (valueOff === 'percent-off') ? price * (1 - discount_value) : price - (discount_value * 100);
finalPrice = unitPrice * quantity;
difference = price - unitPrice
break;
case '1235plus':
break;
case '12plus':
var discount_value;
if(quantity == 1) {
discount_value = Number(values[0]);
} else {
discount_value = Number(values[1]);
}
unitPrice = (valueOff === 'percent-off') ? price * (1 - discount_value) : price - (discount_value * 100);
finalPrice = unitPrice * quantity;
difference = price - unitPrice
break;
case 'spend':
var cartTriggers = String(line.spendAmount).split(',');
var lastPositiveIndex = -1;
cartTriggers.forEach((trigger, index) => {
var triggerValue = Number(trigger)
var cartValue = (Number(window.saleDetails.cartSummary.original_total_price || 0) + Number(price))/ 100
if(cartValue > triggerValue) {
lastPositiveIndex = index
}
});
discount_value = lastPositiveIndex > -1 ? Number(values[lastPositiveIndex] || 0) : 0;
unitPrice = (valueOff === 'percent-off') ? price * (1 - discount_value) : price - (discount_value * 100);
finalPrice = unitPrice * quantity;
difference = price - unitPrice
break;
case 'bogox':
break;
case 'bogo':
break;
default:
console.log(`Sorry, we are out of`);
}
return { finalPrice: finalPrice, unitPrice: unitPrice, difference: difference }
},
updateCartSummary: function(cart) {
window.saleDetails.cartSummary = {
item_count: cart.item_count,
items_subtotal_price: cart.items_subtotal_price,
original_total_price: cart.original_total_price,
requires_shipping: cart.requires_shipping,
total_discount: cart.total_discount,
total_price: cart.total_price,
}
}
}
window.saleFunctions = saleFunctions;