X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Xcart 5 login on Home Page (https://forum.x-cart.com/showthread.php?t=68871)

Luisv 03-16-2014 04:56 PM

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,

cflsystems 03-17-2014 09:11 AM

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

Luisv 03-17-2014 09:31 AM

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.

tony_sologubov 03-19-2014 05:56 AM

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.

Luisv 03-19-2014 06:18 AM

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>

Luisv 03-19-2014 09:32 AM

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.

tony_sologubov 03-20-2014 04:03 AM

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.


All times are GMT -8. The time now is 11:31 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.