Hello Summer 35% OFF for All Products & Subscriptions!
0
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

Your time: 00:00:00
Our time: 00:00:00

Welcome, Guest

At the first time subscription button not working
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: At the first time subscription button not working

At the first time subscription button not working 2 years, 1 month ago #32775

Hello. When I click the first time on the confirmation button registration does not occur, the second time it works.
I have already applied the changes reported in the topic:

www.smartaddons.com/forum/499-sj-newsletter-popup/29727-subscription-button-not-working

Thanks

Re: At the first time subscription button not working 2 years, 1 month ago #32783

Dear panizzutti

I checked your site, when i click the first times on the subscription button is working normally. please check again.

Thanks
The following user(s) said Thank You: panizzutti

Re: At the first time subscription button not working 2 years, 1 month ago #32787

I have modified the file default.php

if(data == 0){
$('.btn-button').after('<span class="show-error" style="color: red;margin-left:
10px"> Iscrizione non riuscita! Riprova. </span>');
setTimeout(function () {
var this_close = $('.popup-close');
this_close.parents().find('.sj-popup-container').remove();
this_close.parents().find('.sj_newletter_popup_bg').removeClass('popup_bg');
}, 3000);

}else if(data == 1){
$('.btn-button').after('<span class="show-error" style="color: green;margin-left: 10px"> Iscrizione avvenuta con successo! </span>');
setTimeout(function () {
var this_close = $('.popup-close');
this_close.parents().find('.sj-popup-container').remove();
this_close.parents().find('.sj_newletter_popup_bg').removeClass('popup_bg');
}, 3000);
}else if(data == 2){
$('.btn-button').after('<span class="show-error" style="color: red;margin-left: 10px"> Iscrizione non riuscita! Riprova. </span>');
setTimeout(function () {
var this_close = $('.popup-close');
this_close.parents().find('.sj-popup-container').remove();
this_close.parents().find('.sj_newletter_popup_bg').removeClass('popup_bg');
}, 3000);
};
The following user(s) said Thank You: anhqn

Re: At the first time subscription button not working 2 years, 1 month ago #32788

Dear panizzutti

Thanks for your solution. It will be useful for many people.

thanks
  • Page:
  • 1
Time to create page: 0.39 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Suggested Posts

(/)
Result not found!
Hello Summer 35% OFF for All Products & Subscriptions

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes