You have no items in your shopping cart.

Thursday, November 21, 2024 10:34:22 PM

Time Delay Welcome Message POPUP

Posted: 4 years ago

#10995 Quote

m.cattaneo

Posted: 4 years ago

#10995 Quote
Is there a parameter to set how long the popup with the welcome message should be visible?
Is it possible to add it in the next version?

Posted: 4 years ago

#10996 Quote

Support

Posted: 4 years ago

#10996 Quote
Do you want to autoclose this popup window after some time?
What nopcommerce version do you use?

Posted: 4 years ago

#10998 Quote

m.cattaneo

Posted: 4 years ago

#10998 Quote
Support wrote:
Do you want to autoclose this popup window after some time?
What nopcommerce version do you use?


yes!
Probably after 5 seconds. Now it is too fast
Now I use NOP 3.9

Posted: 4 years ago

#10999 Quote

Support

Posted: 4 years ago

#10999 Quote
One moment.
This popup window doesn't have the feature "AutoClose".

Posted: 4 years ago

#11000 Quote

m.cattaneo

Posted: 4 years ago

#11000 Quote
The "Welcome Message" Popup contains this message:

"Thank you.
Please check your inbox for your welcome voucher code."

Posted: 4 years ago

#11002 Quote

m.cattaneo

Posted: 4 years ago

#11002 Quote
I found the code in the file PopUpWindow.cshtml:

-----------------------------------------
               type: "POST",
                url: "@(Url.Action("Subscribe", "NewsletterSubscriptionDiscount"))",
                data: postData,
                success: function(data) {
                    subscribeProgress.hide();
                    if (data.success) {
                        $("#newslettersubscription-block").hide();
                        $("#newslettersubscription-welcome").show();
                        @if (Model.WelcomeMessageTiming > 0)
                        {
                            <text>
                        setTimeout(function(){
                            fnsnewslettersubscriptionpopup(false);
                        }, 1000 * @Model.WelcomeMessageTiming);
                        </text>
                        }
                    }
                    else {
                        $(".newslettersubscription-result").html(data.message);
                    }
                },
                error: function(xhr, ajaxOptions, thrownError) {
                    alert('Failed to subscribe.');
                    subscribeProgress.hide();
                }
            });
        }
-----------------------------------------


I can change 1000 with 4000 (4 seconds) in this code line :

1000 * @Model.WelcomeMessageTiming);

In the next version you could insert this timing parameter in the Plugin GUI (into Nop Administration)

Thanks

Posted: 4 years ago

#11003 Quote

Support

Posted: 4 years ago

#11003 Quote
Open plugin configure page and change this parameter
"Auto-hide newsletter box after X seconds upon successful sign-up"

Posted: 4 years ago

#11006 Quote

m.cattaneo

Posted: 4 years ago

#11006 Quote
Support wrote:
Open plugin configure page and change this parameter
"Auto-hide newsletter box after X seconds upon successful sign-up"


I'm sorry but I'm not talking about the main popup.
I'm talking about the "thank you" popup that is shown after the user has entered his email and subscribed to the newsletter.

I have already answered as I solved.
thanks

Posted: 4 years ago

#11007 Quote

Support

Posted: 4 years ago

#11007 Quote
Please change this parameter.
This parameter is for "Thank you"  popup window.

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved