hungryfrank Posted February 27, 2020 Share 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 JcMagpie and Smoky Barnable 2 Quote 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 Link to comment Share on other sites More sharing options...
burt Posted February 27, 2020 Share 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. Quote Link to comment Share on other sites More sharing options...
♥JcMagpie Posted February 27, 2020 Share 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. Quote Link to comment Share on other sites More sharing options...
♥JcMagpie Posted February 27, 2020 Share 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..... Quote Link to comment Share on other sites More sharing options...
hungryfrank Posted February 27, 2020 Author Share 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. Quote 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 Link to comment Share on other sites More sharing options...
René H4 Posted February 27, 2020 Share 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 ? Quote Link to comment Share on other sites More sharing options...
♥ecartz Posted February 27, 2020 Share Posted February 27, 2020 1 hour ago, René H4 said: Is this your domain Matt @ecartz ? No. Quote Always back up before making changes. Link to comment Share on other sites More sharing options...
kgtee Posted February 28, 2020 Share 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? valquiria23 1 Quote Link to comment Share on other sites More sharing options...
hungryfrank Posted February 28, 2020 Author Share 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 Quote 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 Link to comment Share on other sites More sharing options...
♥JcMagpie Posted February 28, 2020 Share 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 Quote Link to comment Share on other sites More sharing options...
♥JcMagpie Posted February 28, 2020 Share 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. Quote Link to comment Share on other sites More sharing options...
hungryfrank Posted February 28, 2020 Author Share 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 Quote 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 Link to comment Share on other sites More sharing options...
Jack_mcs Posted February 28, 2020 Share 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. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
hungryfrank Posted April 6, 2020 Author Share 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 valquiria23 1 Quote 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 Link to comment Share on other sites More sharing options...
hungryfrank Posted April 6, 2020 Author Share 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 Quote 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 Link to comment Share on other sites More sharing options...
hugo_064 Posted April 7, 2020 Share 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 Quote Link to comment Share on other sites More sharing options...
hungryfrank Posted April 7, 2020 Author Share 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. Quote 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.