CRE Loaded Community

Banner


Board index » Loaded Commerce Support » Bug Issues

All times are UTC - 5 hours




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Second order by same customer has same order number and lost
PostPosted: Mon Jun 13, 2011 1:55 pm 
Offline
CRE Newbie

Joined: Mon Jan 10, 2011 4:02 pm
Posts: 13
We are having a problem when some customers place a second order immediately after placing an order.
The second order will have the same order number as the previous order on the customer's invoice.
We receive the payment but there is no record of the second order in the database.


Top
 Profile  
 
 Post subject: Re: Second order by same customer has same order number and lost
PostPosted: Mon Jun 13, 2011 9:09 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2394
Location: New Zealand
So it's a duplicate order (ie same stuff) then? Who are you hosted with and are they (or you) running any 'page optimization' mods like mod_pagespeed on the server?

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Second order by same customer has same order number and lost
PostPosted: Thu Jun 16, 2011 9:59 am 
Offline
CRE Newbie

Joined: Mon Jan 10, 2011 4:02 pm
Posts: 13
No. not a duplicate order.
I will try to explain better.

Customer John Smith comes to my shopping cart and wants to place two separate orders.
The first order is going to be shipped to himself.
John completes the first order and is given order number 2111.
After completing the first order he begins placing a second order that he will have shipped to his grandmother.
John completes the second order and is given order number 2111 for the second order as well.
I receive the payment for both orders.
However only the first order shows up in the database.
The only record of the second order is the fact that I have received payment for both orders.

I hope I explained clearly.


Top
 Profile  
 
 Post subject: Re: Second order by same customer has same order number and lost
PostPosted: Thu Jun 16, 2011 1:57 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2394
Location: New Zealand
Not really - still sounds weird. So obvious problem then is sessions not being reset, causing the same order number to be reused:
Quote:
John completes the second order and is given order number 2111 for the second order as well.

What payment module are you using for this result? Does it work if you tried test orders like this using say money order or bank transfer? At least you'd narrowed it down if one of them works.
Also check sessions settings in the admin >> configuration >> sessions - only thing 'true' usually is 'prevent spider sessions.'

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Second order by same customer has same order number and lost
PostPosted: Fri Jun 17, 2011 10:43 am 
Offline
CRE Newbie

Joined: Mon Jan 10, 2011 4:02 pm
Posts: 13
I have everything false in sessions.

I believe that most if not all of these problem orders were paid through paypal.


Top
 Profile  
 
 Post subject: Re: Second order by same customer has same order number and lost
PostPosted: Fri Jun 17, 2011 2:52 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2394
Location: New Zealand
And your paypal account settings are correct in your paypal account and in the module itself? Synchronise invoices is off, for example? Aggregate cart (not itemized)?

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Second order by same customer has same order number and lost
PostPosted: Mon Jun 20, 2011 10:54 am 
Offline
CRE Newbie

Joined: Mon Jan 10, 2011 4:02 pm
Posts: 13
I have done some additional testing and have determined that the problem is in fact the PayPal payment module.
Authorize.net payment module works as it is supposed to.

After making the payment with paypal module and returning to the shopping cart the items are still in the shopping cart and the same order number will be used on the next order.

Here is a screen shot of my paypal module settings.

Image


Top
 Profile  
 
 Post subject: Re: Second order by same customer has same order number and lost
PostPosted: Mon Jun 20, 2011 11:17 am 
Offline
CRE Newbie

Joined: Mon Jan 10, 2011 4:02 pm
Posts: 13
I am also looking at my paypal settings.

Should Auto Return be on or off?
Should Payment Data Transfer be on or off?

Are there any other settings that could be causing this?


Top
 Profile  
 
 Post subject: Re: Second order by same customer has same order number and lost
PostPosted: Mon Jun 20, 2011 12:59 pm 
Offline
CRE Newbie

Joined: Mon Jan 10, 2011 4:02 pm
Posts: 13
I tried switching to POST for Return URL Behavior but the cart was still not cleared upon return.

I tried Auto Return and Payment Data Transfer on the paypal web site but it did not clear the cart upon return either.


Top
 Profile  
 
 Post subject: Re: Second order by same customer has same order number and lost
PostPosted: Mon Jun 20, 2011 5:20 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2394
Location: New Zealand
Do you have a Return URL specified in your pp account? And the email address your using is the SAME in the module as it is in the pp account? Tried rmeoving and reinstalling the module itself?

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Second order by same customer has same order number and lost
PostPosted: Tue Jun 21, 2011 1:50 pm 
Offline
CRE Newbie

Joined: Mon Jan 10, 2011 4:02 pm
Posts: 13
soundzgood2 wrote:
Do you have a Return URL specified in your pp account?

I have tried it with a return URL and without a return URL.
I can't see a difference.

soundzgood2 wrote:
And the email address your using is the SAME in the module as it is in the pp account?

Yes


soundzgood2 wrote:
Tried rmeoving and reinstalling the module itself?

I guess I will try that. Do you know if there is a better paypal module available now?


Top
 Profile  
 
 Post subject: Re: Second order by same customer has same order number and lost
PostPosted: Tue Jun 21, 2011 9:49 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2394
Location: New Zealand
I'm assuming you've been talking about Paypal Website Standards module - if so, have a look at the file:
/includes/modules/payment/paypal.php for this line (around 254):

Code:
$return_href_link = tep_not_null($return_url) ? $return_url : tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=success&order_id='. $this->orders_id, 'SSL');

and change it to this:
Code:
$return_href_link = tep_not_null($return_url) ? $return_url : tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=success&order_id='. $this->orders_id . '&' . tep_session_name() . '=' . tep_session_id(), 'SSL', false);

Also in the same file file this line (around line 320):
Code:
return $paypal_fields;
    }

and add this in above it:
Code:
$paypal_fields .= tep_draw_hidden_field('bn', 'CRELoaded_Cart_WPS_US');

These changes are taken from the 6.4.1a CE version PP WSP module. Try these and see what happens.

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Second order by same customer has same order number and lost
PostPosted: Wed Jun 22, 2011 10:21 am 
Offline
CRE Newbie

Joined: Mon Jan 10, 2011 4:02 pm
Posts: 13
I tried editing the file as you stated but it did not resolve the problem.

However, I have noticed one other peculiar thing about this problem.

When I pay for the first order and return to the shopping cart, the order IS recorded in the database but the items are STILL in my shopping cart.

When I pay for the second order and return to the shopping cart, the order is NOT recorded in the database but the items are CLEARED from the shopping cart.


Top
 Profile  
 
 Post subject: Re: Second order by same customer has same order number and lost
PostPosted: Wed Jun 22, 2011 3:25 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2394
Location: New Zealand
Tried using the Paypal Sandbox - a testing area for paypal. Also have you contacted Paypal re this?
Not all PP problems are the module - if you can't get the sandbox to work through your store, then it could well be a server config and / or PP account issue.

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

Board index » Loaded Commerce Support » Bug Issues

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Thu May 17, 2012 9:25 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy