Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
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 7 years, 7 months 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 7 years, 7 months 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 7 years, 7 months 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 7 years, 7 months ago #32788

Dear panizzutti

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

thanks
  • Page:
  • 1
Time to create page: 0.21 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.

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
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes