DOWNLOAD OUR APP DOWNLOAD OUR APP DOWNLOAD OUR APP DOWNLOAD OUR APP DOWNLOAD OUR APP DOWNLOAD OUR APP DOWNLOAD OUR APP DOWNLOAD OUR APP
EXCLUSIVE SALES, GET IT NOW!
DOWNLOAD OUR APP
require([
'jquery'
], function ($) {
// Timer for LEFT time for Dailydeal product
var _second = 1000;
var _minute = _second * 60;
var _hour = _minute * 60;
var _day = _hour * 24;
var timer;
//Set date as magentodatetime
var date = new Date('2025-07-04 19:47:03');
var l_date = new Date();
var offset_date = l_date - date;
function showRemaining()
{
$(".sw-dailydeal-wrapper").each(function(){
var unique_id = $(this).attr("data-unique-id");
// get Value of dailydeal product
var cid='countdown_'+unique_id;
var daysid='countdown_days_'+unique_id;
var hoursid='countdown_hours_'+unique_id;
var minutesid='countdown_minutes_'+unique_id;
var secondsid='countdown_seconds_'+unique_id;
var startdateid='fromdate_'+unique_id;
var id='todate_'+unique_id;
var enddate = new Date($('#'+id).val());
var dealstartdate=new Date($('#'+startdateid).val());
var currentdate=new Date();
//Get Difference between Two dates
var distance = enddate - (currentdate - offset_date);
$('.sw-dailydeal-wrapper').show();
if (distance < 0) {
// clearInterval(timer);
$('#expired_'+unique_id).html("EXPIRED!");
} else if(dealstartdate > currentdate) {
$('.countdowncontainer_'+unique_id).hide();
var msg=" Coming Soon..
Deal Start at:
"+$('#'+startdateid).val()+""; $('#expired_'+unique_id).html(msg); } else { var days = Math.floor(distance / _day); var hours = Math.floor((distance % _day) / _hour); var minutes = Math.floor((distance % _hour) / _minute); var seconds = Math.floor((distance % _minute) / _second); if(hours < 10) hours = "0" + hours; if(minutes < 10) minutes = "0" + minutes; if(seconds < 10) seconds = "0" + seconds; $('.countdowncontainer_'+unique_id).show(); $('#'+daysid).html(days); $('#'+hoursid).html(hours); $('#'+minutesid).html(minutes); $('#'+secondsid).html(seconds); } }); } // Set Interval timer = setInterval(function() { showRemaining(); }, 1000); }); require([ 'jquery', 'Smartwave_Filterproducts/js/lazyload/jquery.lazyload' ], function ($) { $("img.porto-lazyload:not(.porto-lazyload-loaded)").lazyload({effect:"fadeIn", effect_speed: 400 }); $('.products.grid .product-items.filterproducts li.product-item:nth-child(2n)').addClass('nth-child-2n'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(2n+1)').addClass('nth-child-2np1'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(3n)').addClass('nth-child-3n'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(3n+1)').addClass('nth-child-3np1'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(4n)').addClass('nth-child-4n'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(4n+1)').addClass('nth-child-4np1'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(5n)').addClass('nth-child-5n'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(5n+1)').addClass('nth-child-5np1'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(6n)').addClass('nth-child-6n'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(6n+1)').addClass('nth-child-6np1'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(7n)').addClass('nth-child-7n'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(7n+1)').addClass('nth-child-7np1'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(8n)').addClass('nth-child-8n'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(8n+1)').addClass('nth-child-8np1'); }); { "[data-role=tocart-form], .form.map.checkout": { "catalogAddToCart": {} } }
Deal Start at:
"+$('#'+startdateid).val()+""; $('#expired_'+unique_id).html(msg); } else { var days = Math.floor(distance / _day); var hours = Math.floor((distance % _day) / _hour); var minutes = Math.floor((distance % _hour) / _minute); var seconds = Math.floor((distance % _minute) / _second); if(hours < 10) hours = "0" + hours; if(minutes < 10) minutes = "0" + minutes; if(seconds < 10) seconds = "0" + seconds; $('.countdowncontainer_'+unique_id).show(); $('#'+daysid).html(days); $('#'+hoursid).html(hours); $('#'+minutesid).html(minutes); $('#'+secondsid).html(seconds); } }); } // Set Interval timer = setInterval(function() { showRemaining(); }, 1000); }); require([ 'jquery', 'Smartwave_Filterproducts/js/lazyload/jquery.lazyload' ], function ($) { $("img.porto-lazyload:not(.porto-lazyload-loaded)").lazyload({effect:"fadeIn", effect_speed: 400 }); $('.products.grid .product-items.filterproducts li.product-item:nth-child(2n)').addClass('nth-child-2n'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(2n+1)').addClass('nth-child-2np1'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(3n)').addClass('nth-child-3n'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(3n+1)').addClass('nth-child-3np1'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(4n)').addClass('nth-child-4n'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(4n+1)').addClass('nth-child-4np1'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(5n)').addClass('nth-child-5n'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(5n+1)').addClass('nth-child-5np1'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(6n)').addClass('nth-child-6n'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(6n+1)').addClass('nth-child-6np1'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(7n)').addClass('nth-child-7n'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(7n+1)').addClass('nth-child-7np1'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(8n)').addClass('nth-child-8n'); $('.products.grid .product-items.filterproducts li.product-item:nth-child(8n+1)').addClass('nth-child-8np1'); }); { "[data-role=tocart-form], .form.map.checkout": { "catalogAddToCart": {} } }