Zen Cart Guest Cart Empties When Logging In Via Jfusion

Support specific to the osCommerce plugin and other clones such as xtcommerce etcetera.

Moderator: hwevers

Forum rules
Please post all the bugs you encounter on our issue tracker.

Zen Cart Guest Cart Empties When Logging In Via Jfusion

Postby matt27 on Thu Sep 29, 2011 3:16 pm

Please fill up the following form to enjoy free support from our Team. No Support will be provided in case this form is not filled up!

1. Have you searched the forums and checked the documentation section for a solution?
Yes

2. Please summarize your problem in a few lines.
Firstly, I must say that there is no issue with logging in, the jfusion plugin successfully logs users into Joomla, PHPBB3 and Zen Cart. Some times the Zen Cart session ends early and the user remains logged into the other two pieces of software but not Zen Cart.

If a customer adds products to the cart then they login after the cart is emptied. It seems that by somehow logging in jfusion doesn't pass the data over from the guest session.
3. What steps will reproduce the problem?
By adding products to the cart and then logging in. The cart will be emptied.
4. What is the expected output? What do you see instead?
The cart should remain with the products in. And customer should then be able to checkout. However the cart empties.
5. You must include a printout of the login checker in the JFusion component.

I have omitted some sensitive information from the login checker results and replaced these with stars.

Code: Select all
Enter your login checker output here.
JFusion Login Checker Results
Server Configuration
Joomla Version   1.5.18
PHP Version   5.2.17
MySQL Version   5.1.56-log
System Information   Linux 30004212.pipeone.co.uk 2.6.18-274.el5.028stab093.2 #1 SMP Tue Aug 23 16:46:17 MSD 2011 i686
Browser Information   Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.186 Safari/535.1
jfusion user Plugin   Enabled
jfusion authentication Plugin   Enabled

JFusion Versions
JFusion Component Version    1.5.6-000 (Rev 2611)
JFusion Authentication Plugin Version    1.5.6-000
JFusion User Plugin Version    1.5.6-000
JFusion Activity Module Version    1.5.6-000
JFusion Login Module Version    1.5.6-000
JFusion Search Plugin Version    1.5.6-000
JFusion Discussion Plugin Version    1.5.6-000

JFusion joomla_int Plugin
configuration   master 1
slave 0
dual_login 1
check_encryption 1
JFusion phpbb3 Plugin
configuration   master 0
slave 1
dual_login 1
check_encryption 1
JFusion oscommerce Plugin
configuration   master 0
slave 1
dual_login 1
check_encryption 1


Authentication Plugin
userid   64
activation   ""
username   m******
name   m******
password   **************
email   matthew.braker@gmail.com
block   0
group_name   Super Administrator
group_id   25
params   language= timezone=0 admin_language= editor= helpsite=
password_salt   PviW*****
language   en-GB
credentialed_username   M*********
password_clear   ******
   Authentication Plugin Success
Authentication Plugin Debug
0   joomla_int Password Encryption Check: 2448d7******** vs 2448d7********
1   joomla_int Password Encryption Check: Success


jfusion User Plugin
   User Plugin Success
User Plugin Debug
init   0 Using userinfo JFusion authentication plugin
joomlaid   64
phpbb3 User Update   0 A user has been found that matches the login details
1 Skipped Password Update:Password already valid
2 Language of the user not updated
phpbb3 User Details   userid 220
name m******
username m******
email m******.******@******.com
password $H$Bo9********
password_salt null
activation ""
reason 0
lastvisit 1317304033
group_id 5
group_name ADMINISTRATORS
user_type 3
user_avatar ""
user_avatar_type 2
block 0
password_clear ******
phpbb3 Session   0 Created PHPBB Session
oscommerce User Update   0 A user has been found that matches the login details
1 Skipped Password Update:Password already valid
2 Language of the user not updated
oscommerce User Details   userid 3
group_id 0
name M*****
lastname B********
password **************
password_salt d4*****
username m******.b*******@*****.com
email m*******.b*******@*******.com
block 0
activation ""
registerDate 2011-08-05 20:59:07
lastvisitDate 2011-09-29 14:47:40
modifiedDate 2011-08-05 23:27:53
password_clear ******
oscommerce Session   0 Trying to find loginform using url: http://www.coralswap.co.uk/store/index.php?main_page=login
1 Login page read, setting cookies first phase:
2 Created Cookie: Name=zenid, Value=05aa53b1e5f34a5f601dcaddaeb9eef7, Expires=29-09-2011 21:01:44, Cookie Path=/, Cookie Domain=.coralswap.co.uk, Cookie Secure connection only=0, Cookie HTTP-only=0
3 Valid login form found
4 Valid username and password fields found
5 Starting login: action= http://www.coralswap.co.uk/store/index.php?main_page=login&action=process&zenid=05aa53b1e5f34a5f601dcaddaeb9eef7 parameters= email_address=m*****.b******%40******.com&password=xxxxxx&securityToken=ad4efa92019ad13bbffbe2f1c4979b71&login[indirect]=no&jnodeid=www.coralswap.co.uk
6 Login performed, setting cookies definite phase:
7 Created Cookie: Name=zenid, Value=05aa53b1e5f34a5f601dcaddaeb9eef7, Expires=29-09-2011 21:01:44, Cookie Path=/, Cookie Domain=.coralswap.co.uk, Cookie Secure connection only=0, Cookie HTTP-only=0
8 Created Cookie: Name=zenid, Value=80039b1a0c11af6154fc73c2a0992b8d, Expires=29-09-2011 21:01:44, Cookie Path=/, Cookie Domain=.coralswap.co.uk, Cookie Secure connection only=0, Cookie HTTP-only=0
9 Type of remote login used by cURL=brute_force
User avatar
matt27
JFusion Newbie
JFusion Newbie
 
Posts: 6
Joined: Thu Sep 29, 2011 3:02 pm

Re: Zen Cart Guest Cart Empties When Logging In Via Jfusion

Postby hwevers on Sun Oct 02, 2011 10:39 am

Try this:

In user.php change

function createSession($userinfo, $options) {
// need to make the username equal the email
$userinfo->username = $userinfo->email;
return JFusionJplugin::createSession($userinfo, $options, $this->getJname());
}
to
function createSession($userinfo, $options) {
// need to make the username equal the email
$userinfo->username = $userinfo->email;
return JFusionJplugin::createSession($userinfo, $options, $this->getJname(),'standard');
}
User avatar
hwevers
Developer
Developer
 
Posts: 870
Joined: Fri May 02, 2008 10:06 am
Location: The netherlands

Re: Zen Cart Guest Cart Empties When Logging In Via Jfusion

Postby matt27 on Sun Oct 02, 2011 11:16 am

Hi, thanks for your reply, I am assuming that I need to change it in:-

administrator/components/com_jfusion/plugins/oscommerce/user.php

Thanks.

Matt
User avatar
matt27
JFusion Newbie
JFusion Newbie
 
Posts: 6
Joined: Thu Sep 29, 2011 3:02 pm

Re: Zen Cart Guest Cart Empties When Logging In Via Jfusion

Postby matt27 on Sun Oct 02, 2011 11:26 am

Just a quick one. I have changed this in the above file and it works a treat. Thanks very much for your help.

Matt
User avatar
matt27
JFusion Newbie
JFusion Newbie
 
Posts: 6
Joined: Thu Sep 29, 2011 3:02 pm

Re: Zen Cart Guest Cart Empties When Logging In Via Jfusion

Postby hwevers on Mon Oct 10, 2011 10:39 am

Your're welcome.
These are just a few of the changesI have to commit before we can release the next version. I have been adding a some important new features to the cURL routines. This is one of them.
Henk
User avatar
hwevers
Developer
Developer
 
Posts: 870
Joined: Fri May 02, 2008 10:06 am
Location: The netherlands


Return to osCommerce & Clones

Who is online

Users browsing this forum: No registered users and 1 guest