hungryfrank 62 Posted February 27, 2020 (edited) This module opens a modal instead of login.php whenever use clicks the link Upload and install the footer_suffix module Thanks a million to JcMagpie for all. The help or it would not be possible https://apps.oscommerce.com/rDkyf&modal-login tested one4&5 Edited February 27, 2020 by hungryfrank 2 JcMagpie and Smoky Barnable reacted to this you can cut up to 4 pages of your checkout by using my three add_ons login create account in one page Express checkout login pop up modal Share this post Link to post Share on other sites
burt 5,435 Posted February 27, 2020 1 hour ago, hungryfrank said: This module opens a modal instead of login.php whenever use clicks the link Upload and install the footer_suffix module Thanks a million to JcMagpie for all. The help or it would not be possible https://apps.oscommerce.com/rDkyf&modal-login tested one4&5 Just to let potential users know that although my name is linked to these addons, they are nothing to do with me. OP refuses to engage in meaningful and polite conversation regarding removal of my name from these addons. Help shape the future of Phoenix; join the Phoenix Club Share this post Link to post Share on other sites
♥JcMagpie 1,690 Posted February 27, 2020 Nice! working fine on Phoenix 1.0.5.1 I'm sure lot's of people will like this login option. Add-on can be seen working on this site Looking forward to seeing the final version of you Ajax one page checkout......😊 chin up as they say, just keep codeing. Share this post Link to post Share on other sites
♥JcMagpie 1,690 Posted February 27, 2020 2 hours ago, hungryfrank said: Thanks a million to JcMagpie for all. The help or it would not be possible @hungryfrank No thanks needed, all I did was give a few pointers, you managed to figure it out and get it working on your own. Not bad not bad at all..... Share this post Link to post Share on other sites
hungryfrank 62 Posted February 27, 2020 1 minute ago, JcMagpie said: @hungryfrank No thanks needed, all I did was give a few pointers, you managed to figure it out and get it working on your own. Not bad not bad at all..... thank u for all the help. you can cut up to 4 pages of your checkout by using my three add_ons login create account in one page Express checkout login pop up modal Share this post Link to post Share on other sites
René H4 102 Posted February 27, 2020 2 hours ago, JcMagpie said: Nice! working fine on Phoenix 1.0.5.1 I'm sure lot's of people will like this login option. Add-on can be seen working on this site Looking forward to seeing the final version of you Ajax one page checkout......😊 chin up as they say, just keep codeing. Is this your domain Matt @ecartz ? Share this post Link to post Share on other sites
♥ecartz 694 Posted February 27, 2020 1 hour ago, René H4 said: Is this your domain Matt @ecartz ? No. Always back up before making changes. Share this post Link to post Share on other sites
kgtee 67 Posted February 28, 2020 Great add-on! I notice that when first logging in, the normal login.php page appears first as usual. The modal will only pop up later when a login link or button is clicked. Would not it be nicer if it will just pop up whenever it is demanded? For example when a new user tries to check out? 1 valquiria23 reacted to this Share this post Link to post Share on other sites
hungryfrank 62 Posted February 28, 2020 17 minutes ago, kgtee said: Great add-on! I notice that when first logging in, the normal login.php page appears first as usual. The modal will only pop up later when a login link or button is clicked. Would not it be nicer if it will just pop up whenever it is demanded? For example when a new user tries to check out? the new customer is not logging he is registering. . I am working on a combo register login page as part of a two page checkout that is almost ready you can cut up to 4 pages of your checkout by using my three add_ons login create account in one page Express checkout login pop up modal Share this post Link to post Share on other sites
♥JcMagpie 1,690 Posted February 28, 2020 (edited) 6 hours ago, kgtee said: I notice that when first logging in, the normal login.php page appears first as usual. Yes this is an issue that needs to be looked into, how ever I did my testing on 1.0.5.1 and that has a problem with login as it is so was not able to dig any deeper. I can only speek for my fresh in stall of a few days ago but on fist load of site the login brakes the site you just get a white page. It must have somthing to do with bad redirects as all you see is this When you refresh the page it works as normal. However if you clear your cache and goto site again it will again crash if login is the first thing you do. It's fine if you click somthing else first and then go into login. This happens both with and without this add-on. So need to get ot the bottom of this bad redirect first. May be linked to Use Search-Engine Safe URLs not sure , only geting this error when this happens. thrown in /home/redacted/public_html/includes/application_top.php on line 107 [28-Feb-2020 07:43:05 Europe/London] PHP Fatal error: Uncaught Error: Call to undefined function do_magic_quotes_gpc() in /home/redacted/public_html/includes/application_top.php:107 Stack trace: #0 /home/redacted/public_html/login.php(13): require() #1 {main} thrown in /home/redacted/public_html/includes/application_top.php on line 107 Edited February 28, 2020 by JcMagpie Share this post Link to post Share on other sites
♥JcMagpie 1,690 Posted February 28, 2020 7 hours ago, kgtee said: I notice that when first logging in, the normal login.php page appears first as usual. Set you force cookies to true and it will activate popup on first try. Share this post Link to post Share on other sites
hungryfrank 62 Posted February 28, 2020 11 hours ago, kgtee said: Great add-on! I notice that when first logging in, the normal login.php page appears first as usual. The modal will only pop up later when a login link or button is clicked. Would not it be nicer if it will just pop up whenever it is demanded? For example when a new user tries to check out? thank you for noticing this.i think that I have found a solution. please backup all of your files just incase. this is very important. in hooks/sitewide/loginpopout.php change $this->siteend .= " <script> $(document).ready(function() { $('a[href$=\"login.php\"]').on( \"click\", function(e) { e.preventDefault(); $('#LoginModal').modal('show'); }); }); </script>"; to $this->siteend .= " <script> $('a[href*=\"login.php\"]').on( \"click\", function(e) { e.preventDefault(); $('#LoginModal').modal('show'); }); </script>"; this should make it work with or without cid I am testing it so if you want to try it out to let me know it would be great you can cut up to 4 pages of your checkout by using my three add_ons login create account in one page Express checkout login pop up modal Share this post Link to post Share on other sites
Jack_mcs 1,021 Posted February 28, 2020 @hungryfrankI haven't read through this thread but I am wondering if you are aware of this addon? Here is the support thread. I've been using it for years and it works great. I think I had to adjust the code due to how Phoenix loads jquery but that's all. Just thought I would mention it to save the reinvention. Your code may be better so it would be interesting if you had time to compare them. Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites
hungryfrank 62 Posted April 6, 2020 (edited) I updated the add-on to works one all login.php links https://apps.oscommerce.com/rDkyf&modal-login-popup Edited April 6, 2020 by hungryfrank 1 valquiria23 reacted to this you can cut up to 4 pages of your checkout by using my three add_ons login create account in one page Express checkout login pop up modal Share this post Link to post Share on other sites
hungryfrank 62 Posted April 6, 2020 On 2/28/2020 at 5:20 PM, Jack_mcs said: @hungryfrankI haven't read through this thread but I am wondering if you are aware of this addon? Here is the support thread. I've been using it for years and it works great. I think I had to adjust the code due to how Phoenix loads jquery but that's all. Just thought I would mention it to save the reinvention. Your code may be better so it would be interesting if you had time to compare them. just playing around you can cut up to 4 pages of your checkout by using my three add_ons login create account in one page Express checkout login pop up modal Share this post Link to post Share on other sites
hugo_064 0 Posted April 7, 2020 hi Hungryfrank, Thank you for this addon i try to use this modal in other page like "shopping_cart.php" with the "confirm order" 's button. Work fine with this modification in "loginpopout.php" : function listen_injectSiteEnd() { if (!tep_session_is_registered('customer_id')) { $this->siteend .= " <script> $('a[href*=\"login.php\"]').on( \"click\", function(e) { e.preventDefault(); $('#LoginModal').modal('show'); }); $('a[href*=\"checkout_shipping.php\"]').on( \"click\", function(e) { e.preventDefault(); $('#LoginModal').modal('show'); }); </script>"; }else{ $this->siteend .= " <script> $('a[href*=\"login.php\"]').on( \"click\", function(e) { e.preventDefault(); $('#LoginModal').modal('show'); }); </script>"; } Now i'll try to use addon with contact_us.php In contact_us.php After "require('includes/application_top.php');" add if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link('login.php', '', 'SSL')); } and in loginpopout.php after if (!tep_session_is_registered('customer_id')) { $this->siteend .= " <script> $('a[href*=\"login.php\"]').on( \"click\", function(e) { e.preventDefault(); $('#LoginModal').modal('show'); }); add $('a[href*=\"contact_us.php\"]').on( \"click\", function(e) { e.preventDefault(); $('#LoginModal').modal('show'); }); But something wrong because after login back to index page and not to contact_us page. What do you thing about that. Have fun Share this post Link to post Share on other sites
hungryfrank 62 Posted April 7, 2020 2 hours ago, hugo_064 said: hi Hungryfrank, Thank you for this addon i try to use this modal in other page like "shopping_cart.php" with the "confirm order" 's button. Work fine with this modification in "loginpopout.php" : function listen_injectSiteEnd() { if (!tep_session_is_registered('customer_id')) { $this->siteend .= " <script> $('a[href*=\"login.php\"]').on( \"click\", function(e) { e.preventDefault(); $('#LoginModal').modal('show'); }); $('a[href*=\"checkout_shipping.php\"]').on( \"click\", function(e) { e.preventDefault(); $('#LoginModal').modal('show'); }); </script>"; }else{ $this->siteend .= " <script> $('a[href*=\"login.php\"]').on( \"click\", function(e) { e.preventDefault(); $('#LoginModal').modal('show'); }); </script>"; } Now i'll try to use addon with contact_us.php In contact_us.php After "require('includes/application_top.php');" add if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link('login.php', '', 'SSL')); } and in loginpopout.php after if (!tep_session_is_registered('customer_id')) { $this->siteend .= " <script> $('a[href*=\"login.php\"]').on( \"click\", function(e) { e.preventDefault(); $('#LoginModal').modal('show'); }); add $('a[href*=\"contact_us.php\"]').on( \"click\", function(e) { e.preventDefault(); $('#LoginModal').modal('show'); }); But something wrong because after login back to index page and not to contact_us page. What do you thing about that. Have fun the form returns to the login.php, and you are not in contact_us.php. maybe you can have the model to open onload. but then u can't check if the customer is logged in. you can cut up to 4 pages of your checkout by using my three add_ons login create account in one page Express checkout login pop up modal Share this post Link to post Share on other sites