Subscription One-time purchase
$17.99
Subscribe & Save (10%)
$16.19
Delivered Every 1 Month Delivered Every 2 Months Delivered Every 3 Months
FREE SHIPPING WITH PURCHASE $50+
45 Days Money Back Guarantee
Description
Achieve clearer, healthier-looking skin with our Acne Treatment Serum for Blemish Control. Dermatologist recommended and formulated with a potent blend of acne-fighting ingredients, this serum targets blackheads, breakouts, and cystic acne. With 1.9% Salicylic Acid and a unique Anti-Blemish Complex, it penetrates deep into the skin to unclog pores and prevent future breakouts. Say goodbye to blemishes and hello to a radiant, smooth complexion.
Benefits
Effective Acne Treatment : Combines 1.9% Salicylic Acid with an Anti-Blemish Complex to fight blackheads, breakouts, and cystic acne.Deep Pore Penetration : Salicylic Acid and Tea Tree Oil reach deep into the skin to unclog pores and prevent future blemishes.Soothing and Calming : Aloe Vera, Lavender, and Chamomile soothe and calm irritated skin, reducing redness and inflammation.Natural Ingredients : Infused with Willow Bark Extract, Green Tea, and Niacinamide to support skin health and promote a clearer complexion.Dermatologist Recommended : Trusted by professionals for its efficacy in treating and preventing acne. How to use
Cleanse the skin thoroughly before applying this product. Cover the entire affected area with a thin layer one to three times daily. Because excessive drying of the skin may occur, start with one application daily , then gradually increase to two or three times daily if needed or as directed by a doctor. If bothersome dryness or peeling occurs, reduce application to once a day or every other day.
Ingredients
Key Ingredients Salicylic Acid (1.9%) : Penetrates deep into the pores to exfoliate and clear out impurities, reducing acne and preventing future breakouts.Tea Tree Oil : Known for its antibacterial properties, it helps to combat acne-causing bacteria and reduce inflammation.Willow Bark Extract : A natural source of salicylic acid, it helps to unclog pores and exfoliate the skin gently.Aloe Vera : Soothes and calms irritated skin, reducing redness and promoting healing.Niacinamide (Vitamin B3) : Improves skin texture and tone while reducing the appearance of blemishes.All Ingredients Active Ingredients: Salicylic Acid 1.9% Purified Water, Glycerin, Hydroxypropyl Starch Phosphate (Sugar Starch), Salix Alba (Willow) Bark Extract, Epilobium Angustifolium (Canadian Willowherb) Extract, Aniba Rosodora (Rosewood) Wood Oil, Melaleuca Alternifolia (Tea Tree) Leaf Oil, Niacinamide (Vitamin B3), Organic Camellia Sinensis (Green Tea) Leaf Extract*, Aloe Barbadensis(Aloe Vera) Leaf Juice*, Caffeine, Hamamelis Virginiana (Witch Hazel) Extract, Lavandula Angustifolia (Lavender) Oil, Carrageenan (SeaweedDerived), Citric Acid,Potassium Hydroxide, Polysorbate 20, XanthanGum, Potassium Sorbate, Phenoxyethanol, Ethylhexylglycerin.
Promote Clear Skin
anti-acne collection
Clinically proven to reduce the signs of acne, by effectively ridding the skin of pore-clogging dirt, oil, and blemish-causing bacteria.
Our unique Anti-Blemish Complex formula cleanses, exfoliates, and calms the skin for a clear, healthy-looking complexion.
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 = 6711595860103; 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 = 6711595860103; $(".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/6711595860103/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 = 6711595860103 $('.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/6711595860103/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 = 6711595860103; 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 = 6711595860103; 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); });