Votre panier
(
{{ cart.item_count }}
Articles)
{{ error.message }}
{{ error.description }}
Votre panier est vide. Consultez notre boutique pour voir ce qui est disponible
*Frais d’expédition et taxes calculés au moment du paiement
Accueil
›
Cadre numérique Wi-Fi à écran tactile HD de 10 pouces
Cadre numérique Wi-Fi à écran tactile HD de 10 pouces
Cadre numérique Wi-Fi à écran tactile HD de 10 pouces
Sélectionnez la finition:
Features:
10.1” 1280 x 800 HD display with auto-rotation landscape and portrait orientation
Gift-Ready: Pre-load your Nixplay frame with photos, videos, and a gift message in the app before it’s opened.
AI Driven smart-centering to center images and fill the frame.
Nixplay app: Add photos and share playlists directly from your smartphone using the Nixplay app, available for iOS and Android.
Works with leading photo websites and apps Instantly synchronize photos from Google Photos, Instagram, Dropbox, Facebook, and Alexa onto your photo frame.
Caractéristiques :
Écran HD de 10,1 pouces 1 280 x 800 avec auto-rotation en orientation paysage et portrait.
Adapté aux cadeaux : préchargez votre cadre Nixplay avec des photos, des vidéos et un message cadeau dans l'application avant de l'ouvrir.
Centrage intelligent guidé par l'IA pour centrer les images et remplir le cadre.
Application Nixplay : ajoutez des photos et partagez des listes de lecture directement depuis votre smartphone à l'aide de l'application Nixplay, disponible pour iOS et Android.
Fonctionne avec les principaux sites Web et applications de photos. Synchronisez instantanément les photos de Google Photos, Instagram, Dropbox, Facebook et Alexa sur votre cadre photo.
-
{{ dynamicQuantity.value }}
+
Quantité
.affirm-modal-trigger {
color: rgba(9,129,156,1);
text-decoration: underline;
}
.affirm-modal-trigger:hover {
color: black;
}
.nav-links-section{
transition: all 0.5s;
opacity: 1; max-height: 100vh;
}
.nav-links-section.hide_it{
opacity:0; max-height: 0vh; overflow: hidden;
}
.image-bg-container{
background: #f8f8f8;
}
.sticky-buy-buttton {
--top: 50.52px;
z-index: 49;
}
.sticky-buy-buttton.active {
top: var(--top);
}
.sticky-buy-buttton:not(.active) {
animation-name: wait-to-leave;
animation-duration: 0.2s;
animation-fill-mode: forwards;
animation-iteration-count: 1;
animation-timing-function: ease-in-out;
}
@keyframes wait-to-leave {
from {
top: var(--top);
opacity: 1;
}
99% {
top: var(--top);
}
to {
top: -900px;
opacity: 0;
}
}
.sticky-buy-buttton .color-ball.has-label:hover::after{
display: none;
}
.sticky-buy-buttton>div {
transform: translateY(-150px);
}
.sticky-buy-buttton.active>div {
transform: translateY(0px);
}
.gallery-left-btn:hover svg {
animation-name: slide-left;
animation-duration: 0.4s;
animation-iteration-count: 1;
animation-timing-function: ease-in-out;
}
.gallery-right-btn:hover svg {
animation-name: slide-right;
animation-duration: 0.4s;
animation-iteration-count: 1;
animation-timing-function: ease-in-out;
}
@keyframes slide-right {
from {
transform: translate3d(0%, 0px, 0);
opacity: 1;
}
25% {
transform: translate3d(-50%, 0px, 0);
}
to {
transform: translate3d(100%, 0px, 0);
opacity: 0;
}
}
@keyframes slide-left {
from {
transform: translate3d(0%, 0px, 0);
opacity: 1;
}
25% {
transform: translate3d(50%, 0px, 0);
}
to {
transform: translate3d(-100%, 0px, 0);
opacity: 0;
}
}
.slider-item-ratio .slider-container>*>* {
object-fit: contain !important;
}
.gallery-main-container:before{
content:'';
display: block;
width:100%;
padding-top: 80%;
}
.thumbs-container {
max-width:91%;
}
@media (max-width: 768px) {
.thumbs-container {
max-width:100%;
}
.gallery-image-container {
min-width: 100%;
width: 95vw;
}
.z-custom-launcher {
display: none;
}
}
@media (min-width: 640px) {
.shadow-top {
border-top: none !important;
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
box-shadow: none !important;
}
}
.shadow-top {
border-top: 1px solid #eae6e6;
-webkit-box-shadow: 0px -1px 4px rgb(246 243 243 / 70%);
-moz-box-shadow: 0px -1px 4px rgb(246 243 243 / 70%);
box-shadow: 0px -1px 4px rgb(246 243 243 / 70%);
}
.show-more-container:before {
content:'';
position: absolute;
width: 100%;
height: 100%;
background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 );
}
.icon-check img {
display: none;
}
.checked-icon .icon-check img {
display: block;
}
.thumbnails > div { width: 20%; }
.thumbnails .image-bg-container {
background: transparent;
}
.product-description ul {
list-style-type: disc;
padding-left: 20px;
}
.product-description > p, .product-description p {
padding-bottom: 1.4rem;
padding-top: 1rem;
font-size: 1.5rem;
}
.default-locale, .bi-locale {
display: none;
}
.default-language .default-locale, .biligual-language .bi-locale {
display: block;
}
.prod-desc ul li {
padding-bottom: 1rem;
}
.alexa-google-icons {
background-image: url(//www.nixplay.ca/cdn/shop/t/251/assets/alexa-google-icon.static.png?v=68587747246647950621701323494);
background-size: contain;
background-repeat: no-repeat;
height: 40px;
margin-top: 20px;
}
.plus-sticker {
font-family: "zen-new", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
font-weight: 500;
}
@media (min-width: 640px) {
.plus-table br {
display: none;
}
.plus-table th {
text-align: right;
}
.plus-table tr:not(:first-child) td:not(:last-child) {
background-color: #f6ede2;
}
.plus-sticker br {
display: none;
}
}
(function(){
document.addEventListener('DOMContentLoaded', () => {
const productOverviewButton = document.getElementsByClassName('product-overview-button')[0];
if(productOverviewButton && productOverviewButton[0]) {
productOverviewButton[0].click();
}
})
})()
Cadre numérique Wi-Fi à écran tactile HD de 10 pouces - Bois/blanc, Blanc
Créez votre réseau social privé et évitez de partager vos souvenirs de famille les plus chers sur les médias sociaux. Partagez instantanément des photos depuis votre téléphone, votre tablette ou votre ordinateur directement sur votre cadre photo numérique. Faites participer toute la famille en invitant plusieurs utilisateurs à ajouter et à partager des photos sur un seul cadre, ou connectez plusieurs cadres et revivez ensemble les souvenirs célébrés.
Caractéristiques principales du cadre photo numérique
Familial et sûr pour tous les âges Partagez sans crainte en évitant les médias sociaux. Installation rapide et facile pour les jeunes et les moins jeunes ; il suffit de suivre le guide à l'écran, étape par étape.
Partagez directement du téléphone vers le cadre numérique Utilisez notre application mobile (iOS et Android) pour faire glisser et déposer des photos depuis Apple Photos, Google Photos, Facebook, Instagram et bien plus encore !
Cadeau personnalisé prêt à l'emploi Surprise ! Créez un cadeau photo personnalisé pour tous les membres de la famille. Ajoutez des photos sans ouvrir la boîte, en suivant le guide sur notre site Web.
Points forts:
Partagez vos photos en toute sécurité, sans passer par les médias sociaux Résolution d'affichage WXGA HD 1 280 x 800 Rotation automatique (portrait ou paysage) Stockage illimité de photos Connexion Wi-Fi Application mobile gratuite (iOS et Android) Commandes tactiles à l'écran Stockage en nuage privé basé aux États-Unis (conforme à la CCPA et au RGPD)
Features
Une installation simple comme 1-2-3
1. Téléchargez notre application
2. Branchez votre cadre photo numérique
3. Suivez le guide à l'écran pour commencer à ajouter des photos.
Prêt pour le cadeau
Personnalisez votre cadre photo numérique. Invitez les membres de votre famille à ajouter des photos depuis n'importe où dans le monde sans ouvrir la boîte.
Privé et sécurisé
Notre stockage en nuage est situé aux États-Unis sur des serveurs sécurisés, chiffrés et conformes aux normes CCPA et RGPD. Soyez assuré que vos photos sont conservées en toute sécurité.
Conception économe en énergie
Notre capteur intelligent réveille le cadre lorsque vous êtes dans la pièce et le met en veille lorsque vous n'y êtes pas.
Nixplay Plus: améliorez chaque mémoire
Améliorez votre expérience photo numérique avec Nixplay Plus, un abonnement premium qui ajoute une valeur supplémentaire à vos souvenirs.
Profitez d'économies: Obtenez 25 % de réduction sur tous les cadres Nixplay.Plus de souvenirs vidéo: Téléchargez des vidéos jusqu'à 2 minutes, au-delà de la limite standard.Prise en charge améliorée: Accédez à une garantie à vie et à un service client prioritaire.Nixplay Plus n'est pas seulement un abonnement ; c'est une mise à niveau dans la façon dont vous partagez et revivez vos souvenirs. Pour plus de détails et pour vous inscrire, visitez Nixplay Plus .
Ne nous croyez pas sur parole
Plus de 3,2 millions de personnes dans le monde font confiance aux cadres photo numériques Nixplay, et avec 30 000 avis sur Amazon, nous sommes le leader en matière de qualité et de design des cadres numériques. Dirigés par leur fondateur depuis 14 ans, nous sommes les pionniers de la technologie des cadres photo numériques et nous ne nous arrêtons pas en si bon chemin.
Nous continuons à innover, avec notre dernière fonctionnalité, Nix-Cast, vous pouvez maintenant utiliser votre télévision connectée pour partager des souvenirs lors d'événements tels que les mariages, les fêtes du Super Bowl et les anniversaires. Aujourd'hui, Nixplay est le moyen le plus sûr et le plus sécurisé de connecter toute la famille.
Available Finishes
Bois/Blanc
Blanc
Spécifications techniques
Taille du présentoir
10.1”
Taille totale
10,6 pouces de haut x 7,4 pouces de large x 1,5 pouce de profondeur
Résolution de l'écran
WXGA 1280 x 800
Écran tactile
Écran tactile IPS Luminosité : 400 cd/m2 Contraste : 500:1
Couleurs disponibles
Bois/blanc, Blanc
Rapport d'aspect
16:10
Haut-parleur intégré
Oui
Capteurs
Microphone à rotation automatique Capteur d'activité (activation/désactivation automatique, non-enregistrement)
Support détachable
Oui
Fonctionne avec Alexa
Oui
Photo/vidéo (jusqu'à 15 secondes)
JPG, PNG, MP4, MOV, MPEG
Compatibilité multilingue
EN/DE/FR/ES/IT/JP
Longueur du cordon d'alimentation
6 pieds
Montable au mur
Oui
.rich-text ul li {
list-style: disc;
line-height: 20px;
margin-bottom: 8px;
}
.rich-text ul {
padding-left: 15px;
}
.rich-text h5 {
font-weight: 700;
line-height: 20px;
margin-bottom: 8px;
margin-top: 8px;
}
.rich-text p {
margin-bottom: 16px;
margin-top: 12px;
}
.rich-text a {
color: rgba(9,129,156,1);
text-decoration: underline;
}
.spec-table table td:first-child {
width: 40%;
}
@media (min-width: 768px) { /* md */
.spec-table table td:first-child {
width: 35%;
}
}
@media (min-width: 992px) { /* lg */
.spec-table table td:first-child {
width: 30%;
}
}
div.stamped-container[data-widget-style], div[data-widget-style] div.stamped-container {
margin: 0px auto!important;
}
@media only screen and (max-width: 480px) {
#stamped-filter-select, #stamped-sort-select, #stamped-sort-select2, .stamped-filter-select {
min-width: 200px !important;
max-width: 99.8% !important;
}
}
.stamped-reviews .stamped-review-options ul li {
min-width: 100%;
}
div.stamped-container[data-widget-style], div[data-widget-style] div.stamped-container {
padding-bottom: 8px!important;
}
.stamped-review-avatar{
position: relative;
top: -12px;
}
.stamped-summary-text-1{
font-size: 28px!important;
}
.stamped-header-title{
display: none;
}
.stamped-summary-caption{
display: block !important;
}
.summary-overview {
text-align: center;
width: 100% !important;
float: none !important;
}
#stamped-main-widget{
margin: 0px!important;
}
.stamped-review-body{
padding-left:67px;
}
.stamped-review-header-title, .stamped-review .author{
font-size: 14px!important;
}
.stamped-review-content-body, .stamped-review-reply {
font-size: 13px!important;
}
#stamped-button-submit, input.stamped-button.stamped-button-primary.button.button-primary.btn.btn-primary,
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: 37px!important;
}
.fa-star, .fa-star-checked, .fa-star-half-o, .fa-star-o, .stamped-fa-star, .stamped-fa-star-checked, .stamped-fa-star-half-o, .stamped-fa-star-o {
color: #facc11!important;
}
.stamped-review-header .stamped-verified-badge, .stamped-review-header .verified, .stamped-review-header .verified .fa-check-circle-o, .stamped-review-header .verified .stamped-fa-check-circle-o, .stamped-review-header .verified-badge, .stamped-review-header .verified-badge .fa-check-circle-o, .stamped-review-header .verified-badge .stamped-fa-check-circle-o, .stamped-verified-badge {
color: #000000!important;
font-size: 13px!important;
}
.stamped-photos-carousel{
display: none!important;
}
.stamped-container * {
font-family: var(--font-body) !important;
}
#stamped-questions-filter .stamped-sort-select-wrapper {
padding-top: 16px;
display: block;
}
#stamped-questions-filter .stamped-sort-select-wrapper select {
float: left!important;
}
@media (max-width: 480px) {
.stamped-review-avatar{
top: -8px;
}
.stamped-review-body{
padding-left: 0px;
}
}
(function(){
let keepChecking = true;
let container = null;
const updateSettings = () => {
container = document.querySelector('.stamped-container');
const secondMessage = document.querySelector('.stamped-summary-caption.stamped-summary-caption-2');
const tabReviews = document.getElementById('tab-reviews');
const tabQuestion = document.getElementById('tab-questions');
const reviewTabsAnchors = document.querySelectorAll('.review-tab-anchor');
const parent = document.getElementById('stamped-questions-filter')
if(parent) {
const filter = parent.querySelector('.stamped-sort-select-wrapper')
parent.appendChild(filter)
}
if(container) {
container.dataset.widgetStyle = "minimalist";
container.dataset.widgetShowGraph="false"
container.dataset.widgetShowSort="true"
container.dataset.widgetShowTabReviews="true"
container.dataset.widgetShowLocation="false"
container.dataset.widgetShowDate="true"
container.dataset.widgetShowVotes="true"
container.dataset.widgetShowProductVariant="false"
container.dataset.widgetShowQna="true"
container.dataset.widgetShowShare="true"
container.dataset.widgetShowVerified="true"
container.dataset.widgetShowSummaryRecommend="true"
container.dataset.widgetShowSummaryPhoto="true"
container.dataset.widgetType="minimalist"
container.dataset.widgetShowFilterCustomForms="true"
container.dataset.widgetShowFilterSearch="true"
container.dataset.widgetLoadType="pagination"
}
if(reviewTabsAnchors) {
const questionCount = document.querySelector('.question_count');
if(questionCount) {
questionCount.innerText = tabQuestion.dataset.count
}
reviewTabsAnchors.forEach((item) => {
const tab = item.dataset.tab
item.addEventListener('click',() => {
if(tab === 'reviews' && tabReviews) {
tabReviews.click()
}
if(tab === 'questions' && tabQuestion) {
tabQuestion.click()
}
})
});
}
if(secondMessage) {
secondMessage.setAttribute('style','display: block!important');
}
}
const checkComponent = () => {
if(keepChecking === true) {
window.requestAnimationFrame(checkComponent);
}
container = document.querySelector('.stamped-container');
if(container) {
keepChecking = false;
updateSettings();
}
}
document.addEventListener("DOMContentLoaded", checkComponent);
})();
{{ review.author.split(' ')[0].slice(0,1) }}{{ review.author.split(' ')[1].slice(0,1) }}
{{ review.author.slice(0,2) }}
{{ review.reviewTitle }}
Afficher moins Afficher plus
{{ (showALlReviews === false) ? "See All Reviews" : "Hide Reviews"}}
Multi-shipping FAQ
When and where will I see the multi-shipping option during my order journey?
When more than one (1) digital photo frame is added to cart, a checkbox will appear on the cart slider/cart page.
This option will allow you to order 2 or more frames and send them to different locations at the same time through the same checkout experience without having to enter different shipping addresses one by one.
The multi-shipping option is not showing up / greyed out. Why is that?
This can happen due to 3 reasons:
When only one (1) digital photo frame is added to cart.
When a print store product is added to cart. Please note print products are not supported for delivery through multi-shipping and need to be ordered separately.
When Nixplay Plus subscription is added to cart together with more than one (1) digital photo frame.
At this step, the multi-shipping option will show as “Not applicable - Learn More”. To avoid this:
Simply purchase the Nixplay Plus subscription separately first and activate your account.
Next login to your account directly at Nixplay store and enjoy 25% off the digital photo frames and you will notice the multi-shipping option is now available.
Why can’t I order both the Nixplay Plus subscription and use multi-shipping option at the same time?
This is because the multi-shipping option cannot recognize subscription-based products and therefore the Nixplay Plus subscription needs to be ordered separately.
We apologize for any inconvenience this may cause you. Rest assure, our engineers are working hard to find a solution and make this a 1 step journey. In the meantime, please follow the steps shared above to place your order while using the multi-shipping option.
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: 'fr',
offer: { you_save: "Vous économisez", buy: "ACHETEZ-EN", off: "DE RABAIS"},
items: [ {
sku : "315",
id: 42498799796379,
price: 19999,
saleCopy: "Up to 15% Off all frames",
saleCopyBi: "15% de réduction sur tous les cadres",
copyColor: "",
blockBg: "",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "percent-off",
spendAmount: "",
discountValue: "0.15",
disclaimer: "",
hideSticker: false,
sticker: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
stickerBi: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
addDiscountCopy: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eWrap up the magic\nof memories\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\nUp to 15% OFF\n \u003csmall\u003eAll frames \u003c\/small\u003e\n \n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e",
addDiscountCopyBi: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eOffrez vos plus\nbeaux souvenirs\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\n Réduction de 15%\n \u003csmall\u003e sur tous les cadres\u003c\/small\u003e\n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e"
},{
sku : "316",
id: 43405107724443,
price: 19999,
saleCopy: "Up to 15% Off all frames",
saleCopyBi: "15% de réduction sur tous les cadres",
copyColor: "",
blockBg: "",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "percent-off",
spendAmount: "",
discountValue: "0.15",
disclaimer: "",
hideSticker: false,
sticker: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
stickerBi: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
addDiscountCopy: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eWrap up the magic\nof memories\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\nUp to 15% OFF\n \u003csmall\u003eAll frames \u003c\/small\u003e\n \n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e",
addDiscountCopyBi: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eOffrez vos plus\nbeaux souvenirs\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\n Réduction de 15%\n \u003csmall\u003e sur tous les cadres\u003c\/small\u003e\n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e"
}, {
sku : "4201",
id: 41810048647323,
price: 25999,
saleCopy: "Up to 15% Off all frames",
saleCopyBi: "15% de réduction sur tous les cadres",
copyColor: "",
blockBg: "",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "percent-off",
spendAmount: "",
discountValue: "0.15",
disclaimer: "",
hideSticker: true,
sticker: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
stickerBi: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
addDiscountCopy: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eWrap up the magic\nof memories\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\nUp to 15% OFF\n \u003csmall\u003eAll frames \u003c\/small\u003e\n \n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e",
addDiscountCopyBi: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eOffrez vos plus\nbeaux souvenirs\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\n Réduction de 15%\n \u003csmall\u003e sur tous les cadres\u003c\/small\u003e\n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e"
},{
sku : "422",
id: 42669559971995,
price: 25999,
saleCopy: "Up to 15% Off all frames",
saleCopyBi: "15% de réduction sur tous les cadres",
copyColor: "",
blockBg: "",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "percent-off",
spendAmount: "",
discountValue: "0.15",
disclaimer: "",
hideSticker: true,
sticker: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
stickerBi: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
addDiscountCopy: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eWrap up the magic\nof memories\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\nUp to 15% OFF\n \u003csmall\u003eAll frames \u003c\/small\u003e\n \n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e",
addDiscountCopyBi: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eOffrez vos plus\nbeaux souvenirs\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\n Réduction de 15%\n \u003csmall\u003e sur tous les cadres\u003c\/small\u003e\n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e"
}, {
sku : "419",
id: 43451874738331,
price: 25999,
saleCopy: "Up to 15% Off all frames",
saleCopyBi: "15% de réduction sur tous les cadres",
copyColor: "",
blockBg: "",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "percent-off",
spendAmount: "",
discountValue: "0.15",
disclaimer: "",
hideSticker: false,
sticker: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
stickerBi: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
addDiscountCopy: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eWrap up the magic\nof memories\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\nUp to 15% OFF\n \u003csmall\u003eAll frames \u003c\/small\u003e\n \n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e",
addDiscountCopyBi: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eOffrez vos plus\nbeaux souvenirs\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\n Réduction de 15%\n \u003csmall\u003e sur tous les cadres\u003c\/small\u003e\n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e"
},{
sku : "4241",
id: 43451874771099,
price: 25999,
saleCopy: "Up to 15% Off all frames",
saleCopyBi: "15% de réduction sur tous les cadres",
copyColor: "",
blockBg: "",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "percent-off",
spendAmount: "",
discountValue: "0.15",
disclaimer: "",
hideSticker: false,
sticker: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
stickerBi: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
addDiscountCopy: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eWrap up the magic\nof memories\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\nUp to 15% OFF\n \u003csmall\u003eAll frames \u003c\/small\u003e\n \n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e",
addDiscountCopyBi: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eOffrez vos plus\nbeaux souvenirs\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\n Réduction de 15%\n \u003csmall\u003e sur tous les cadres\u003c\/small\u003e\n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e"
}, {
sku : "425",
id: 43451871854747,
price: 23999,
saleCopy: "Up to 15% Off all frames",
saleCopyBi: "15% de réduction sur tous les cadres",
copyColor: "",
blockBg: "",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "percent-off",
spendAmount: "",
discountValue: "0.15",
disclaimer: "",
hideSticker: true,
sticker: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
stickerBi: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
addDiscountCopy: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eWrap up the magic\nof memories\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\nUp to 15% OFF\n \u003csmall\u003eAll frames \u003c\/small\u003e\n \n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e",
addDiscountCopyBi: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eOffrez vos plus\nbeaux souvenirs\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\n Réduction de 15%\n \u003csmall\u003e sur tous les cadres\u003c\/small\u003e\n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e"
}, {
sku : "704",
id: 41609513762971,
price: 36999,
saleCopy: "Up to 15% Off all frames",
saleCopyBi: "15% de réduction sur tous les cadres",
copyColor: "",
blockBg: "",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "percent-off",
spendAmount: "",
discountValue: "0.15",
disclaimer: "",
hideSticker: true,
sticker: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
stickerBi: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
addDiscountCopy: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eWrap up the magic\nof memories\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\nUp to 15% OFF\n \u003csmall\u003eAll frames \u003c\/small\u003e\n \n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e",
addDiscountCopyBi: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eOffrez vos plus\nbeaux souvenirs\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\n Réduction de 15%\n \u003csmall\u003e sur tous les cadres\u003c\/small\u003e\n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e"
}, {
sku : "409",
id: 40572887105691,
price: 39999,
saleCopy: "Up to 15% Off all frames",
saleCopyBi: "15% de réduction sur tous les cadres",
copyColor: "",
blockBg: "",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "percent-off",
spendAmount: "",
discountValue: "0.15",
disclaimer: "",
hideSticker: false,
sticker: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
stickerBi: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
addDiscountCopy: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eWrap up the magic\nof memories\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\nUp to 15% OFF\n \u003csmall\u003eAll frames \u003c\/small\u003e\n \n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e",
addDiscountCopyBi: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eOffrez vos plus\nbeaux souvenirs\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\n Réduction de 15%\n \u003csmall\u003e sur tous les cadres\u003c\/small\u003e\n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e"
},{
sku : "421",
id: 41810133254299,
price: 39999,
saleCopy: "Up to 15% Off all frames",
saleCopyBi: "15% de réduction sur tous les cadres",
copyColor: "",
blockBg: "",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "percent-off",
spendAmount: "",
discountValue: "0.15",
disclaimer: "",
hideSticker: false,
sticker: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
stickerBi: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
addDiscountCopy: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eWrap up the magic\nof memories\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\nUp to 15% OFF\n \u003csmall\u003eAll frames \u003c\/small\u003e\n \n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e",
addDiscountCopyBi: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eOffrez vos plus\nbeaux souvenirs\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\n Réduction de 15%\n \u003csmall\u003e sur tous les cadres\u003c\/small\u003e\n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e"
}, {
sku : "429",
id: 43827163299995,
price: 25999,
saleCopy: "Up to 15% Off all frames",
saleCopyBi: "15% de réduction sur tous les cadres",
copyColor: "",
blockBg: "",
bannerBlockBgColor: false,
discountType: "fixed",
valueOff: "percent-off",
spendAmount: "",
discountValue: "0.15",
disclaimer: "",
hideSticker: false,
sticker: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
stickerBi: "\/\/www.nixplay.ca\/cdn\/shop\/files\/15_reduction_4x_f0b3086f-0746-444b-aacf-23bcf4f730e9.png?v=1701318944",
addDiscountCopy: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eWrap up the magic\nof memories\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\nUp to 15% OFF\n \u003csmall\u003eAll frames \u003c\/small\u003e\n \n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e",
addDiscountCopyBi: "\u003ch2 class=\"font-bold max-w-max pb-4 pt-6 text-5xl z\" style=\"\n color: #000000;\n background-image: -webkit-linear-gradient(0deg, #b70e20 0%, #b70e20 100%);\n background-clip: text;\n -webkit-background-clip: text;\n text-fill-color: transparent;\n -webkit-text-fill-color: transparent;\n \"\u003eOffrez vos plus\nbeaux souvenirs\u003c\/h2\u003e\n\u003cdiv class=\"font-bold pb-4\" style=\"display: flex; border-bottom: 1px solid black;\"\u003e\n \u003cdiv style=\"padding-right: 20px; \"\u003e\n \u003cp style=\"font-size: 2rem; margin: 0;\"\u003e\n Réduction de 15%\n \u003csmall\u003e sur tous les cadres\u003c\/small\u003e\n \u003c\/p\u003e\n \u003c\/div\u003e\n\u003c\/div\u003e"
},]
};
console.log(saleDetails)
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) / quantity);
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;