Subscription One-time purchase
$31.50
Subscribe & Save (10%)
$28.35
Delivered Every 1 Month Delivered Every 2 Months Delivered Every 3 Months
FREE SHIPPING WITH PURCHASE $50+
45 Days Money Back Guarantee
Description
Deep Moisture and Protection for Radiant Skin
Introducing DERMA E's Ultra Hydrating Antioxidant Day Cream, a deeply moisturizing formula that plumps and hydrates to reduce the appearance of fine lines and wrinkles. Clinically proven to improve skin hydration by 100%, this day cream leaves your skin smooth, soft, and radiant.
Ultra Hydrating Antioxidant Day Cream is 100% vegan and cruelty-free, containing no parabens, sulfates, mineral oil, lanolin, gluten, or GMOs. This gentle yet effective formula is perfect for sensitive skin and provides essential hydration without causing breakouts. Ideal for cold weather dry skin relief, it hydrates with a blend of oils and humectants.
Add DERMA E's Ultra Hydrating Antioxidant Day Cream to your daily skincare routine for deeply hydrated, nourished, and protected skin. Perfect for all skin types, this day cream ensures a radiant and youthful complexion every day.
Benefits
Why Choose DERMA E's Ultra Hydrating Antioxidant Day Cream?
Intense Hydration: Hyaluronic acid rehydrates dry skin, locking in moisture for a plump and dewy complexion.Smooths and Softens: The rich formula smooths and softens aging skin, reducing the look of fine lines and wrinkles.Nourishes and Protects: Packed with antioxidants like Green Tea Extract and Vitamins C and E, this cream nourishes and protects the skin from environmental stressors.Lightweight and Non-Greasy: Absorbs quickly and works well under makeup, providing a smooth base for your daily beauty routine.Anti-Aging Benefits: Reduces visible signs of aging, promoting a youthful and radiant glow. How to use
After cleansing your face with your preferred DERMA E cleanser, apply a rich layer of the Ultra Hydrating Antioxidant Day Cream onto your face and neck. Gently massage into the skin until fully absorbed. Use in the morning for best results.
Ingredients
Key Ingredients: Hyaluronic Acid: Rehydrates and plumps the skin, locking in moisture for a dewy complexion.Green Tea Extract: A powerful antioxidant that helps protect the skin from environmental damage.Vitamin C Ester (Ascorbyl Palmitate): Brightens and protects, promoting a more even skin tone.Vitamin E (Tocopheryl Acetate): Moisturizes and provides antioxidant protection.Provitamin B5 (Panthenol): Hydrates and conditions the skin, enhancing its smoothness and softness.Aloe Vera Extract: Soothes and hydrates, providing relief for dry skin.Jojoba Seed Oil: Moisturizes without clogging pores, leaving the skin soft and supple.All Ingredients: Purified Water, Caprylic/Capric Triglyceride (Plant Derived), Cetyl Alcohol (Plant Derived), Stearic Acid (Vegetable Derived), Glycerin (Vegetable Derived), Glyceryl Stearate SE, Glyceryl Stearate Citrate (Vegetable Derived), Sodium Hyaluronate (Hyaluronic Acid), Organic Camellia Sinensis (Green Tea) Leaf Extract*, Ascorbyl Palmitate (Vitamin C Ester), Panthenol (Provitamin B5), Tocopheryl Acetate (Vitamin E), Xanthan Gum, Retinyl Palmitate (Vitamin A), Hamamelis Virginiana (Witch Hazel) Extract, Organic Aloe Barbadensis (Aloe Vera) Extract*, Organic Simmondsia Chinensis (Jojoba) Seed Oil*, Allantoin, Diheptyl Succinate, Capryloyl Glycerin/Sebacic Acid Copolymer, Potassium Sorbate, Phenoxyethanol, Ethylhexylglycerin, Natural Fragrance Oils.
Moisturize and Soften
Hydrating Collection
Skin is plumped and replenished with essential vitamins and botanicals. Vegan Hyaluronic Acid delivers intense moisture for healthy hydration while infused humectants work to reduce dullness, fine lines, and flakiness in this ultra-hydrating and plumping collection
Shop Now
See What Others Are Saying 0 Reviews
Write a review Ask a question
prev next
Displaying Reviews 1-10
' console.log("SkinTypeData",SkinTypeData) } }else{ SkinTypeHtml = ""; } if(total_months == 0){ Total_months_ago = "Recently"; }else{ Total_months_ago = total_months+" "+"months ago"; } var varified_html = ""; if(VarifiedBuyer == true){ varified_html = '
Verified Buyer
' } var CustomerUGCID = e.ugc_id; var rating_Customrstar = '' var likeDislike = '
'; var AppendedHtml = '
'+ rating_Customrstar + varified_html +'
'+ Total_months_ago +'
'+ Headline +'
'+ nickName +' from '+ Location +'
'+ Comment +'
'+ SkinTypeHtml + likeDislike +'
' appedn_parent_html.innerHTML += AppendedHtml; }); }else{ document.querySelector('.reviews_comments').innerHTML = `
No Reviews `; document.querySelector('.reviews_questions').innerHTML = `
No Q&A `; $("#review_next_ten").hide(); } }); // ========================= next button click ============================== $("#review_next_ten").click(function(e) { e.preventDefault(); $("#main_review_main").animate({ scrollTop: 0 }, 600); var NextUrl = $(this).attr('data-Nexturl'); var ProductID = 7967055176; var MediaNextUrl =$(this).attr('data-mediaNexturl'); $(".reviews_comments").empty(); $.ajax({ "async": true, "crossDomain": true, "url": NextUrl, "method": "GET", "headers": { "Content-Type": "application/json" }, success: function(response) { if(response.paging.current_page_number == 1){ $("#review_prev_ten").hide(); }else{ $("#review_prev_ten").show(); } if(response.results[0].reviews.length < 10){ $("#review_next_ten").hide(); }else{ $("#review_next_ten").show(); } var current_page_no = response.paging.current_page_number - 2; var prev_url ="https://readservices-b2c.powerreviews.com/m/598880/l/en_US/product/"+ProductID+"/reviews?paging.from="+current_page_no+"0&paging.size=10&filters=&search=&sort=Newest&image_only=false&page_locale=en_US&apikey=895668a2-02da-49df-840e-0c3a5db3fa0f" $("#review_prev_ten").attr("data-PrevURL",prev_url) function getMonthDifference(startDate, endDate){ return ( endDate.getMonth() - startDate.getMonth() + 12 * (endDate.getFullYear() - startDate.getFullYear()) ); } var next_url = response.paging.next_page_url; var next_page_url = "https://readservices-b2c.powerreviews.com"+next_url+"&apikey=895668a2-02da-49df-840e-0c3a5db3fa0f"; $("#review_next_ten").attr("data-Nexturl",next_page_url); var appedn_parent_html = document.querySelector('.reviews_comments'); var reviews_array = response.results[0].reviews; reviews_array.forEach(function(e){ var UGCID = e.ugc_id; var Headline = e.details.headline var nickName = e.details.nickname; var Location = e.details.location; var Comment = e.details.comments; var raTing = e.metrics.rating; var VarifiedBuyer = e.badges.is_verified_buyer; var getDate = e.details.updated_date; // convert miliseconds to date var timestamp = getDate; var UpdatedDate = new Date(timestamp).toLocaleDateString('sv'); var todaysDate = new Date().toLocaleDateString('sv'); var total_months = getMonthDifference(new Date(UpdatedDate), new Date(todaysDate)); var Total_months_ago; var HelpfulVotes = e.metrics.helpful_votes; var UnhelpfulVotes = e.metrics.not_helpful_votes; var SkinTypeHtml; var properties_key = e.details.properties; var show_skintype = false; $.each(properties_key, function(index, value) { if(value.key == "whatskintypedoyouassociatewiththemost") { show_skintype = true; return false } }); if(show_skintype == true){ if(e.details.properties.length == 0 || e.details.properties == [] ){ console.log("no properties") SkinTypeHtml = ""; }else{ var SkinTypeData = e.details.properties[0].value; SkinTypeHtml = '
What’s your skin type? '+ SkinTypeData.toString() +'
' console.log("SkinTypeData",SkinTypeData) } }else{ SkinTypeHtml = ""; } if(total_months == 0){ Total_months_ago = "Recently"; }else{ Total_months_ago = total_months+" "+"months ago"; } var varified_html = ""; if(VarifiedBuyer == true){ varified_html = '
Verified Buyer
' } var CustomerUGCID = e.ugc_id; var rating_Customrstar = '' var likeDislike = '
'; var AppendedHtml = '
'+ rating_Customrstar + varified_html +'
'+ Total_months_ago +'
'+ Headline +'
'+ nickName +' from '+ Location +'
'+ Comment +'
'+ SkinTypeHtml + likeDislike +'
' appedn_parent_html.innerHTML += AppendedHtml; }); FlagReview(); likkDislikecall(); } });// ================================================ media use ==================================== if(MediaNextUrl != ""){ var FinalMediaNext = 'https://readservices-b2c.powerreviews.com'+MediaNextUrl+'&apikey=526de2ef-719b-4291-baff-fe8beadf567a'; $.ajax({ "async": true, "crossDomain": true, "url": FinalMediaNext, "method": "GET", "headers": { "Content-Type": "application/json" }, success: function(response) { let NextpageUrl = response.paging.next_page_url; $('#review_next_ten').attr('data-mediaNexturl',NextpageUrl) var ImagerelatedReview = response.results[0].reviews; $(ImagerelatedReview).each(function(){ var image = this.media[0].uri; var Review_images = '
' $('.reviews_images_main').find('.slick-list').find('.slick-track').append(Review_images) }); setTimeout(function(){ $('.reviews_images_main').slick('unslick'); review_imagesslider() }, 2000); } }); } // section scroll top js var target = this.hash; var $target = $(target); $('html, body').stop().animate({ 'scrollTop': $target.offset().top }, 900, 'swing', function () { // window.location.hash = target; }); });// ========================= prev button click =============================== $("#review_prev_ten").click(function(e) { e.preventDefault(); $("#main_review_main").animate({ scrollTop: 0 }, 600); var prev_Url = $(this).attr("data-prevurl"); var ProductID = 7967055176; $(".reviews_comments").empty(); $.ajax({ "async": true, "crossDomain": true, "url": prev_Url, "method": "GET", "headers": { "Content-Type": "application/json" }, success: function(response) { var net_url_prev = response.paging.next_page_url; var next_page_url_prev = "https://readservices-b2c.powerreviews.com"+net_url_prev+"&apikey=895668a2-02da-49df-840e-0c3a5db3fa0f"; $("#review_next_ten").attr("data-Nexturl",next_page_url_prev) var current_page_no = response.paging.current_page_number - 2; if(response.paging.current_page_number == 1){ $("#review_prev_ten").hide(); }else{ $("#review_prev_ten").show(); } if(response.results[0].reviews.length < 10){ $("#review_next_ten").hide(); }else{ $("#review_next_ten").show(); } var prev_url ="https://readservices-b2c.powerreviews.com/m/598880/l/en_US/product/"+ProductID+"/reviews?paging.from="+current_page_no+"0&paging.size=10&filters=&search=&sort=Newest&image_only=false&page_locale=en_US&apikey=895668a2-02da-49df-840e-0c3a5db3fa0f" $("#review_prev_ten").attr("data-PrevURL",prev_url) function getMonthDifference(startDate, endDate) { return ( endDate.getMonth() - startDate.getMonth() + 12 * (endDate.getFullYear() - startDate.getFullYear()) ); } var appedn_parent_html = document.querySelector('.reviews_comments'); var reviews_array = response.results[0].reviews; reviews_array.forEach(function(e){ var UGCID = e.ugc_id; var Headline = e.details.headline var nickName = e.details.nickname; var Location = e.details.location; var Comment = e.details.comments; var raTing = e.metrics.rating; var VarifiedBuyer = e.badges.is_verified_buyer; var getDate = e.details.updated_date; // convert miliseconds to date var timestamp = getDate; var UpdatedDate = new Date(timestamp).toLocaleDateString('sv'); var todaysDate = new Date().toLocaleDateString('sv'); var total_months = getMonthDifference(new Date(UpdatedDate), new Date(todaysDate)); var Total_months_ago; var HelpfulVotes = e.metrics.helpful_votes; var UnhelpfulVotes = e.metrics.not_helpful_votes; var SkinTypeHtml; var properties_key = e.details.properties; var show_skintype = false; $.each(properties_key, function(index, value) { if(value.key == "whatskintypedoyouassociatewiththemost") { show_skintype = true return false } }); if(show_skintype == true){ if(e.details.properties.length == 0 || e.details.properties == [] ){ console.log("no properties") SkinTypeHtml = ""; }else{ var SkinTypeData = e.details.properties[0].value; SkinTypeHtml = '
What’s your skin type? '+ SkinTypeData.toString() +'
' console.log("SkinTypeData",SkinTypeData) } }else{ SkinTypeHtml = ""; } if(total_months == 0){ Total_months_ago = "Recently"; }else{ Total_months_ago = total_months+" "+"months ago"; } var varified_html = ""; if(VarifiedBuyer == true){ varified_html = '
Verified Buyer
' } var CustomerUGCID = e.ugc_id; var rating_Customrstar = '' var likeDislike = '
'; var AppendedHtml = '
'+ rating_Customrstar + varified_html +'
'+ Total_months_ago +'
'+ Headline +'
'+ nickName +' from '+ Location +'
'+ Comment +'
'+ SkinTypeHtml + likeDislike +'
' appedn_parent_html.innerHTML += AppendedHtml; }); FlagReview(); likkDislikecall(); } }); // section scroll top js var target = this.hash; var $target = $(target); $('html, body').stop().animate({ 'scrollTop': $target.offset().top }, 900, 'swing', function () { // window.location.hash = target; }); }); //========================================================================================================================================================= //============================================== review's question's api call ============================================================================//========================================================================================================================================================= const settings_new = { "async": true, "crossDomain": true, "url": "https://readservices-b2c.powerreviews.com/m/598880/l/en_US/product/7967055176/questions?apikey=895668a2-02da-49df-840e-0c3a5db3fa0f", "method": "GET", "headers": { "Content-Type": "application/json" }};$.ajax(settings_new).done(function (response) { console.log("questions",response) var next_url = response.paging.next_page_url; console.log(next_url) if(response.paging.current_page_number == 1){ $("#review_prev_ten_ques").hide(); }else{ $("#review_prev_ten_ques").show(); } if(next_url == undefined ||next_url == " " ){ $("#review_next_ten_ques").hide(); }else{ var next_page_url = "https://readservices-b2c.powerreviews.com"+next_url+"&apikey=895668a2-02da-49df-840e-0c3a5db3fa0f"; $("#review_next_ten_ques").attr("data-Nexturl",next_page_url); } function getMonthDifference(startDate, endDate) { return ( endDate.getMonth() - startDate.getMonth() + 12 * (endDate.getFullYear() - startDate.getFullYear()) ); } var get_allques = response.results; $(get_allques).each(function(e){ var getQues = this.details.text; var getAns = this.answer[0].details.text; var getDate = this.details.created_date; var timestamp = getDate; var UpdatedDate = new Date(timestamp).toLocaleDateString('sv'); var todaysDate = new Date().toLocaleDateString('sv'); var total_months = getMonthDifference(new Date(UpdatedDate), new Date(todaysDate)); var Total_months_ago; var QuestionID = this.question_id; if(total_months == 0){ Total_months_ago = "Recently"; }else{ Total_months_ago = total_months+" "+"months ago"; } var ansNickname = this.answer[0].details.nickname; var Quesname = this.details.nickname; var QuestionHtml = '
'+ getQues +'
Asked By '+ Quesname +'
'+ Total_months_ago +'
Verified Reply : '+ ansNickname +'
'+ getAns +'
' $('.reviews_questions').append(QuestionHtml); });});// ========================= next button click ============================== $("#review_next_ten_ques").click(function(e) { e.preventDefault(); $("#main_review_main").animate({ scrollTop: 0 }, 600); var NextUrl = $(this).attr('data-Nexturl'); var PRODUCTID = 7967055176 $('.reviews_questions').empty(); $.ajax({ "async": true, "crossDomain": true, "url": NextUrl, "method": "GET", "headers": { "Content-Type": "application/json" }, success: function(response) { function getMonthDifference(startDate, endDate) { return ( endDate.getMonth() - startDate.getMonth() + 12 * (endDate.getFullYear() - startDate.getFullYear()) ); } if(response.paging.current_page_number == 1){ $("#review_prev_ten_ques").hide(); }else{ $("#review_prev_ten_ques").show(); } var current_page_no = response.paging.current_page_number - 2; var prev_url ="https://readservices-b2c.powerreviews.com/m/598880/l/en_US/product/"+ PRODUCTID +"/questions?paging.from="+current_page_no+"0&paging.size=10&search=&sort=Newest&wdyb=false&apikey=895668a2-02da-49df-840e-0c3a5db3fa0f" $("#review_prev_ten_ques").attr("data-PrevURL",prev_url) var next_url = response.paging.next_page_url; var next_page_url = "https://readservices-b2c.powerreviews.com"+next_url+"&apikey=895668a2-02da-49df-840e-0c3a5db3fa0f"; $("#review_next_ten_ques").attr("data-Nexturl",next_page_url); var get_allques = response.results; $(get_allques).each(function(e){ var getQues = this.details.text; var getAns = this.answer[0].details.text; var getDate = this.details.created_date; var timestamp = getDate; var UpdatedDate = new Date(timestamp).toLocaleDateString('sv'); var todaysDate = new Date().toLocaleDateString('sv'); var total_months = getMonthDifference(new Date(UpdatedDate), new Date(todaysDate)); var Total_months_ago; var QuestionID = this.question_id; if(total_months == 0){ Total_months_ago = "Recently"; }else{ Total_months_ago = total_months+" "+"months ago"; } var ansNickname = this.answer[0].details.nickname; var Quesname = this.details.nickname; var QuestionHtml = '
'+ getQues +'
Asked By '+ Quesname +'
'+ Total_months_ago +'
Verified Reply : '+ ansNickname +'
'+ getAns +'
' $('.reviews_questions').append(QuestionHtml); }); SubmitAns(); } }); // section scroll top js var target = this.hash; var $target = $(target); $('html, body').stop().animate({ 'scrollTop': $target.offset().top }, 900, 'swing', function () { // window.location.hash = target; }); });// ========================= prev button click =============================== $("#review_prev_ten_ques").click(function(e) { e.preventDefault(); $("#main_review_main").animate({ scrollTop: 0 }, 600); var prev_Url = $(this).attr("data-prevurl"); $('.reviews_questions').empty(); $.ajax({ "async": true, "crossDomain": true, "url": prev_Url, "method": "GET", "headers": { "Content-Type": "application/json" }, success: function(response) { function getMonthDifference(startDate, endDate) { return ( endDate.getMonth() - startDate.getMonth() + 12 * (endDate.getFullYear() - startDate.getFullYear()) ); } var net_url_prev = response.paging.next_page_url; var next_page_url_prev = "https://readservices-b2c.powerreviews.com"+net_url_prev+"&apikey=895668a2-02da-49df-840e-0c3a5db3fa0f"; $("#review_next_ten_ques").attr("data-Nexturl",next_page_url_prev) var current_page_no = response.paging.current_page_number - 2; if(response.paging.current_page_number == 1){ $("#review_prev_ten_ques").hide(); }else{ $("#review_prev_ten_ques").show(); } var prev_url ="https://readservices-b2c.powerreviews.com/m/598880/l/en_US/product/7967439176/questions?paging.from="+current_page_no+"0&paging.size=10&search=&sort=Newest&wdyb=false&apikey=895668a2-02da-49df-840e-0c3a5db3fa0f" $("#review_prev_ten_ques").attr("data-PrevURL",prev_url) var get_allques = response.results; $(get_allques).each(function(e){ var getQues = this.details.text; var getAns = this.answer[0].details.text; var getDate = this.details.created_date; var timestamp = getDate; var UpdatedDate = new Date(timestamp).toLocaleDateString('sv'); var todaysDate = new Date().toLocaleDateString('sv'); var total_months = getMonthDifference(new Date(UpdatedDate), new Date(todaysDate)); var Total_months_ago; var QuestionID = this.question_id; if(total_months == 0){ Total_months_ago = "Recently"; }else{ Total_months_ago = total_months+" "+"months ago"; } var ansNickname = this.answer[0].details.nickname; var Quesname = this.details.nickname; var QuestionHtml = '
'+ getQues +'
Asked By '+ Quesname +'
'+ Total_months_ago +'
Verified Reply : '+ ansNickname +'
'+ getAns +'
' $('.reviews_questions').append(QuestionHtml); }); SubmitAns() } }); // section scroll top js var target = this.hash; var $target = $(target); $('html, body').stop().animate({ 'scrollTop': $target.offset().top }, 900, 'swing', function () { // window.location.hash = target; }); });// ========================================================================================================================================================// ============================================= like and dislike button js API call ======================================================================// ======================================================================================================================================================== function likkDislikecall(){ $('button.likebtn').on('click',function(){ var truevar = false; if($(this).hasClass('active')){ var truevar = true; } console.log(truevar) $(this).addClass('active'); var ThisVAr = $(this); var UGCID = $(this).data("ugcid"); var VotetType = $(this).data("type"); var GetButtontype = $(this).data("type"); var countAdd = $(this).find('span'); var CurrentHtml = $(this).find('span').html(); var countlike = $(this).next('.dislike_review').find('span'); var countDislike = $(this).prev('.like_review ').find('span'); var ProductUpc = $(".main_product_section_div").attr("data-product-upc"); $.ajax({ url: "https://writeservices.powerreviews.com/voteugc", type: "POST", async: true, crossDomain: true, processData: false, headers: { "Content-Type": "application/json" }, data: JSON.stringify({ugc_id:UGCID, vote_type:VotetType, merchant_id:'598880',upc : ProductUpc}), success: function (response) { console.log(response,"response") if(GetButtontype == "helpful"){ if(truevar == true){ ThisVAr.removeClass('active') var get_minus = Number(CurrentHtml)-1; countAdd.html(get_minus) }else{ var gethtml = Number(countAdd.html()) + 1; countAdd.html(gethtml); }; }else{ if(truevar == true){ ThisVAr.removeClass('active') var get_minus = Number(CurrentHtml)-1; countAdd.html(get_minus) }else{ var gethtmlnew = Number(countAdd.html()) + 1; countAdd.html(gethtmlnew); } } }, error: function (err) { console.log(err) } }); }); } setTimeout(function(){ likkDislikecall() }, 2000); // ========================================================================================================================================================// ============================================== MEDIA API call =========================================================================================// ======================================================================================================================================================== const mediaSettings = { "async": true, "crossDomain": true, "url": "https://readservices-b2c.powerreviews.com/m/598880/l/en_US/product/7967055176/reviews?apikey=526de2ef-719b-4291-baff-fe8beadf567a&_noconfig=true&image_only=true", "method": "GET", "headers": { "Content-Type": "application/json" } }; $.ajax(mediaSettings).done(function (response) { let NextpageUrl = response.paging.next_page_url; $('#review_next_ten').attr('data-mediaNexturl',NextpageUrl) $('.reviews_images_main').empty(); var ImagerelatedReview = response.results[0].reviews; var medialength = ImagerelatedReview.length; $(ImagerelatedReview).each(function(){ var image = this.media[0].uri; var Review_images = '
' $('.reviews_images_main').append(Review_images) }); if(window.innerWidth < 576){ review_imagesslider() }else if(window.innerWidth > 576){ if(medialength > 6){ review_imagesslider() }else{ $('.wc_review_slick-arrow').hide(); } } });// =======================================================================================================================================================// ============================================= review's sorting API ====================================================================================// ======================================================================================================================================================= $("#wc-sorting_reviews").on("change",function(){ let SortingValue = this.value; let ProductId = 7967055176; var SortingUrl = "https://display.powerreviews.com/m/598880/l/en_US/product/"+ProductId+"/reviews?sort="+SortingValue+"&_noconfig=true&apikey=895668a2-02da-49df-840e-0c3a5db3fa0f" $(".reviews_comments").empty(); $.ajax({ "async": true, "crossDomain": true, "url": SortingUrl, "method": "GET", "headers": { "Content-Type": "application/json" }, success: function(response) { console.log("sorting response",response) if(response.paging.current_page_number == 1){ $("#review_prev_ten").hide(); }else{ $("#review_prev_ten").show(); } var current_page_no = response.paging.current_page_number - 2; var prev_url ="https://readservices-b2c.powerreviews.com/m/598880/l/en_US/product/"+ProductId+"/reviews?paging.from="+current_page_no+"0&paging.size=10&filters=&search=&sort=Newest&image_only=false&page_locale=en_US&apikey=895668a2-02da-49df-840e-0c3a5db3fa0f" $("#review_prev_ten").attr("data-PrevURL",prev_url) function getMonthDifference(startDate, endDate){ return ( endDate.getMonth() - startDate.getMonth() + 12 * (endDate.getFullYear() - startDate.getFullYear()) ); } var next_url = response.paging.next_page_url; var next_page_url = "https://readservices-b2c.powerreviews.com"+next_url+"&apikey=895668a2-02da-49df-840e-0c3a5db3fa0f"; $("#review_next_ten").attr("data-Nexturl",next_page_url); var appedn_parent_html = document.querySelector('.reviews_comments'); var reviews_array = response.results[0].reviews; reviews_array.forEach(function(e){ var Headline = e.details.headline var nickName = e.details.nickname; var Location = e.details.location; var Comment = e.details.comments; var raTing = e.metrics.rating; var VarifiedBuyer = e.badges.is_verified_buyer; var getDate = e.details.updated_date; // convert miliseconds to date var timestamp = getDate; var UpdatedDate = new Date(timestamp).toLocaleDateString('sv'); var todaysDate = new Date().toLocaleDateString('sv'); var total_months = getMonthDifference(new Date(UpdatedDate), new Date(todaysDate)); var Total_months_ago; var HelpfulVotes = e.metrics.helpful_votes; var UnhelpfulVotes = e.metrics.not_helpful_votes; var SkinTypeHtml; var properties_key = e.details.properties; var show_skintype = false; $.each(properties_key, function(index, value) { if(value.key == "whatskintypedoyouassociatewiththemost") { show_skintype = true return false } }); if(show_skintype == true){ if(e.details.properties.length == 0 || e.details.properties == [] ){ console.log("no properties") SkinTypeHtml = ""; }else{ var SkinTypeData = e.details.properties[0].value; SkinTypeHtml = '
What’s your skin type? '+ SkinTypeData.toString() +'
' console.log("SkinTypeData",SkinTypeData) } }else{ SkinTypeHtml = ""; } if(total_months == 0){ Total_months_ago = "Recently"; }else{ Total_months_ago = total_months+" "+"months ago"; } var varified_html = ""; if(VarifiedBuyer == true){ varified_html = '
Verified Buyer
' } var CustomerUGCID = e.ugc_id; var rating_Customrstar = '' var likeDislike = '
'; var AppendedHtml = '
'+ rating_Customrstar + varified_html +'
'+ Total_months_ago +'
'+ Headline +'
'+ nickName +' from '+ Location +'
'+ Comment +'
'+ SkinTypeHtml + likeDislike +'
' appedn_parent_html.innerHTML += AppendedHtml; }); FlagReview() } }); }) // =======================================================================================================================================================// ==============================================question's sorting API===================================================================================// ======================================================================================================================================================= $("#wc-sorting_questions").on("change",function(){ let SortingValue = this.value; let ProductId = 7967055176; var QuesSortingUrl = "https://display.powerreviews.com/m/598880/l/en_US/product/"+ ProductId +"/questions?sort="+SortingValue+"&_noconfig=true&apikey=895668a2-02da-49df-840e-0c3a5db3fa0f"; $('.reviews_questions').empty(); console.log('question sorting change',SortingValue,ProductId) $.ajax({ "async": true, "crossDomain": true, "url": QuesSortingUrl, "method": "GET", "headers": { "Content-Type": "application/json" }, success: function(response) { function getMonthDifference(startDate, endDate) { return ( endDate.getMonth() - startDate.getMonth() + 12 * (endDate.getFullYear() - startDate.getFullYear()) ); } if(response.paging.current_page_number == 1){ $("#review_prev_ten_ques").hide(); }else{ $("#review_prev_ten_ques").show(); } var current_page_no = response.paging.current_page_number - 2; var prev_url ="https://readservices-b2c.powerreviews.com/m/598880/l/en_US/product/"+ ProductId +"/questions?paging.from="+current_page_no+"0&paging.size=10&search=&sort=Newest&wdyb=false&apikey=895668a2-02da-49df-840e-0c3a5db3fa0f" $("#review_prev_ten_ques").attr("data-PrevURL",prev_url) var next_url = response.paging.next_page_url; var next_page_url = "https://readservices-b2c.powerreviews.com"+next_url+"&apikey=895668a2-02da-49df-840e-0c3a5db3fa0f"; $("#review_next_ten_ques").attr("data-Nexturl",next_page_url); var get_allques = response.results; $(get_allques).each(function(e){ var getQues = this.details.text; var getAns = this.answer[0].details.text; var getDate = this.details.created_date; var timestamp = getDate; var UpdatedDate = new Date(timestamp).toLocaleDateString('sv'); var todaysDate = new Date().toLocaleDateString('sv'); var total_months = getMonthDifference(new Date(UpdatedDate), new Date(todaysDate)); var Total_months_ago; var QuestionID = this.question_id; if(total_months == 0){ Total_months_ago = "Recently"; }else{ Total_months_ago = total_months+" "+"months ago"; } var ansNickname = this.answer[0].details.nickname; var Quesname = this.details.nickname; var QuestionHtml = '
'+ getQues +'
Asked By '+ Quesname +'
'+ Total_months_ago +'
Verified Reply : '+ ansNickname +'
'+ getAns +'
' $('.reviews_questions').append(QuestionHtml); }); SubmitAns() } }); }); // =======================================================================================================================================================// ============================================== flag the review api call ===============================================================================// ======================================================================================================================================================= function FlagReview(){ $('.flag_review_btn').on('click',function(){ $('.flag_review_popup').show(); $(this).parent('.falg_review').addClass('active'); var UGCID = $(this).data("ugcid"); $('#Flag_review_main_form').attr("data-ugcID",UGCID); $('#Wc-Falg-review-mail').val(""); $('#wc-flag-review-comment').val(""); $(".falg-radio-option:first-child").focus(); }); } setTimeout(function(){ FlagReview() }, 2000); // =========================================================================================================================================================// ============================================== submit question API ======================================================================================// =========================================================================================================================================================// var t = setInterval(recurse, 2000);// function recurse() {// if ( $('.submitAnsForm').children().hasClass('rc-container-wrapper')){// $('.rc-container-wrapper').empty();// clearInterval(t);// }// } function SubmitAns(){ $(document).on('click','.AddAnswerButton',function(){ $('.AddAnspopup').show(); var QuestionID = $(this).data("question"); $('.submitAnsForm').attr("id",QuestionID); }); } setTimeout(function(){ SubmitAns() }, 2000); });