Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Pop out. login


hungryfrank

Recommended Posts

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 by hungryfrank

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

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

image.png.a8df46b3d57f0e1525552f01894e408e.png

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 by JcMagpie

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

@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:

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

  • 1 month later...

I updated the add-on to works one all login.php links 

https://apps.oscommerce.com/rDkyf&amp;modal-login-popup

Edited by hungryfrank

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

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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...