Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Xcart 5 login on Home Page

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 03-16-2014, 04:56 PM
  Luisv's Avatar 
Luisv Luisv is offline
 

Member
  
Join Date: Oct 2005
Location: Nebraska
Posts: 20
 

Default Xcart 5 login on Home Page

This may be an xCart 5 bug. I just had my data moved to the new xcart 5.0.11. I'm not sure if I like it yet because there's a lot of things that did not come over from the old version. Anyway, here's the problem. When I go to my home page www.magickits.com and hit the "sign in" link at the top of the page, the link just spins forever and does nothing. If I hit "register" then hit "sign in" it works just fine. If I then go back to the home page, everything works (same session).

I'm sure this will be a problem for my customers (thousands). Does anyone have any idea what the problem is? It seems like a stupid problem to pay $100 for every little issue I find with this version (and I've found many).

Thanks you,
__________________
Luis Villamonte
Computer Systems Engineer
Microsoft and CompTIA Certified
www.MagicKits.com
X-cart 5.0.12
Reply With Quote
  #2  
Old 03-17-2014, 09:11 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Xcart 5 login on Home Page

This has something to do with the site http/https. Site doesn't redirect back to http from https but also any products/product page has security warnings - looks like all images are loading http on https
The sign in link should not popup when on http but redirect to secure login page so this problem may be due to customization done of the link there
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 03-17-2014, 09:31 AM
  Luisv's Avatar 
Luisv Luisv is offline
 

Member
  
Join Date: Oct 2005
Location: Nebraska
Posts: 20
 

Default Re: Xcart 5 login on Home Page

Wow, good answer, I completely agree. Only I have not done any customization of the home page "sign in" link. What do you think is the fix? Should I change the "sign in" link on the home page to a https URL? If so, what .tpl file (or PHP file should I change?

thanks for your help.
__________________
Luis Villamonte
Computer Systems Engineer
Microsoft and CompTIA Certified
www.MagicKits.com
X-cart 5.0.12
Reply With Quote
  #4  
Old 03-19-2014, 05:56 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Xcart 5 login on Home Page

This is a bug in X-Cart 5 and it will be fixed in the next version.

Meanwhile, you can force customers to always open your store via HTTPS (by .htaccess rule) and it will solve the problem for you.
Reply With Quote

The following user thanks tony_sologubov for this useful post:
cflsystems (03-20-2014)
  #5  
Old 03-19-2014, 06:18 AM
  Luisv's Avatar 
Luisv Luisv is offline
 

Member
  
Join Date: Oct 2005
Location: Nebraska
Posts: 20
 

Default Re: Xcart 5 login on Home Page

Wow. Ok. Would you suggest a redirect via the .htaccess? Or do you have a better solution. When I code to redirect in my .htaccess file I get errors. By the way. THANK YOU so much for your help. I cannot believe that you would take time to help me. Thank again.

Here's my current .htaccess file:

# vim: set ts=2 sw=2 sts=2 et:
#
# Apache/PHP settings
#
# @author Qualiteam software Ltd <info@x-cart.com>
# @copyright Copyright (c) 2010-2014 Qualiteam software Ltd <info@x-cart.com>. All rights reserved
# @license http://www.x-cart.com/license-agreement.html X-Cart 5 License Agreement
# @link http://www.x-cart.com/


Options -Indexes
DirectoryIndex cart.php
FileETag none

<IfModule mod_rewrite.c>
RewriteEngine on

RewriteRule (^|/)\. - [F]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^((([/_a-z0-9-]+)/)?([_a-z0-9-]+)/)?([_a-z0-9-]+)(\.(htm|html))?$ cart.php?url=$5&last=$4&rest=$3&ext=$7 [NC,L,QSA]

#RewriteBase ____WEB_DIR____
</IfModule>

<IfModule mod_expires.c>

# Expire images/js/css header
ExpiresActive On
ExpiresDefault A0

# Images expires in 2 weeks
ExpiresByType image/png A1209600
ExpiresByType image/gif A1209600
ExpiresByType image/jpg A1209600
ExpiresByType image/jpeg A1209600
ExpiresByType image/ico A1209600
ExpiresByType image/x-icon A1209600

# CSS/JS now work with dynamic unique query string. 1 year expires
ExpiresByType text/css A31104000
ExpiresByType text/javascript A31104000
ExpiresByType application/javascript A31104000

</IfModule>
__________________
Luis Villamonte
Computer Systems Engineer
Microsoft and CompTIA Certified
www.MagicKits.com
X-cart 5.0.12
Reply With Quote
  #6  
Old 03-19-2014, 09:32 AM
  Luisv's Avatar 
Luisv Luisv is offline
 

Member
  
Join Date: Oct 2005
Location: Nebraska
Posts: 20
 

Default Re: Xcart 5 login on Home Page

I figured it out, I just created a redirect and called it index.html. I then changed the "DirectoryIndex cart.php" in my .htaccess file to: DirectoryIndex index.html

I'm surprised no one else has discovered this huge issue. My bandwidth is 40mb so it's not a problem for me but sending every page to https is kind of ridicules just to fix a link.

I can see that none of the custom template xcart sells has this issue because all of the "sign in" pages are actual pages and not just a pop-up from the default template that comes with x-cart 5.

Thank you very much for the help.
__________________
Luis Villamonte
Computer Systems Engineer
Microsoft and CompTIA Certified
www.MagicKits.com
X-cart 5.0.12
Reply With Quote

The following user thanks Luisv for this useful post:
tony_sologubov (03-20-2014)
  #7  
Old 03-20-2014, 04:03 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Xcart 5 login on Home Page

Yes, the solution for this issue is that if you have HTTPS enabled, then log in page should be delivered via HTTPS, so you simply should display a new page, not pop-up.

We will apply this solution in next X-Cart 5 version.
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:56 AM.

   

 
X-Cart forums © 2001-2020