Community Forums

[MOD/vQmod] - Only Generate Single Temp Order Id

Free manual modifications can be contributed here. Modifications are manual snippets of code that are pasted into the forums for others to use.

Re: [MOD/vQmod] - Only Generate Single Temp Order Id

Postby Qphoria » Tue May 29, 2012 8:53 pm

Updated for 1.5.2 and 1.5.3 support.
Tested and working
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18209
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: [MOD/vQmod] - Only Generate Single Temp Order Id

Postby eka7a » Wed May 30, 2012 11:30 am

I tested 1.5.2 - 1.5.3 and working. Nice mod!
Thanks Qphoria!
User avatar
eka7a
 
Posts: 176
Joined: Sat Apr 11, 2009 4:59 pm
Location: Türkiye

Re: [MOD/vQmod] - Only Generate Single Temp Order Id

Postby OC2PS » Mon Jun 18, 2012 8:11 pm

Makes sense. Why not modify core code and ship these changes in the default script? Are there any disadvantages to using this or a use case for multiple temp order IDs?
OC 1.5.4.1, vQmod 2.3.2, Default theme + custom CSS

Image
My FREE extensions: Rich snippets, FB Likebox, Child theme, Add $x for free shipping, You save $x, Yes to newsletter, Product photos in email, Copy order confirmation email, Top rated items, Most reviewed items, Cant buy Out of Stock items, No tabs, Category menu w/classes, Categories w/thumbnails

OpenCart Europa

OC2PS
Csillámtetoválás,
Csillámtetoválás,
Henna
User avatar
OC2PS
 
Posts: 1033
Joined: Tue Jul 21, 2009 8:15 pm
Location: Hungary

Re: [MOD/vQmod] - Only Generate Single Temp Order Id

Postby ocstream » Sun Jun 24, 2012 6:41 pm

Hi, Can you please advise me which folder that I place this xml file in. Thank you
ocstream
 
Posts: 3
Joined: Sun Jun 24, 2012 1:14 pm

Re: [MOD/vQmod] - Only Generate Single Temp Order Id

Postby OC2PS » Sun Jun 24, 2012 11:49 pm

/vqmod/xml
OC 1.5.4.1, vQmod 2.3.2, Default theme + custom CSS

Image
My FREE extensions: Rich snippets, FB Likebox, Child theme, Add $x for free shipping, You save $x, Yes to newsletter, Product photos in email, Copy order confirmation email, Top rated items, Most reviewed items, Cant buy Out of Stock items, No tabs, Category menu w/classes, Categories w/thumbnails

OpenCart Europa

OC2PS
Csillámtetoválás,
Csillámtetoválás,
Henna
User avatar
OC2PS
 
Posts: 1033
Joined: Tue Jul 21, 2009 8:15 pm
Location: Hungary

Re: [MOD/vQmod] - Only Generate Single Temp Order Id

Postby scanreg » Fri Jun 29, 2012 1:06 pm

OC2PS wrote:Makes sense. Why not modify core code and ship these changes in the default script? Are there any disadvantages to using this or a use case for multiple temp order IDs?


would love to see this too
scanreg
 
Posts: 603
Joined: Wed May 05, 2010 4:15 pm

Re: [MOD/vQmod] - Only Generate Single Temp Order Id

Postby scanreg » Sat Jun 30, 2012 12:48 pm

1. If the native order id keeps changing before order completion, what stays the same for the cart to track?

Is it just the session id?

2. If it's just the session id, does the cart ever use session_regenerate_id? (didn't find it in 1.5.2.1)

Trying to nail down how the cart keeps track of cart contents and doesn't get order number and cart contents mixed up with different simultaneous customer

Thanks

Thanks
scanreg
 
Posts: 603
Joined: Wed May 05, 2010 4:15 pm

Re: [MOD/vQmod] - Only Generate Single Temp Order Id

Postby williamjay » Sat Jun 30, 2012 1:25 pm

scanreg wrote:1. If the native order id keeps changing before order completion, what stays the same for the cart to track?

Is it just the session id?

2. If it's just the session id, does the cart ever use session_regenerate_id? (didn't find it in 1.5.2.1)

Trying to nail down how the cart keeps track of cart contents and doesn't get order number and cart contents mixed up with different simultaneous customer

Thanks

Thanks


AddtoCart is a javascript function, (catalog\view\javascript\common.js), while addOrder is a PHP function, (catalog\model\checkout\order.php) ... cart and order are separate issues, with cart tracked by session and order by order_id.
-- - thanks for the opportunity to participate in y(our) ongoing success - --
User avatar
williamjay
 
Posts: 37
Joined: Sat Apr 28, 2012 9:41 pm

Re: [MOD/vQmod] - Only Generate Single Temp Order Id

Postby scanreg » Sat Jun 30, 2012 2:23 pm

williamjay wrote:
AddtoCart is a javascript function, (catalog\view\javascript\common.js), while addOrder is a PHP function, (catalog\model\checkout\order.php) ... cart and order are separate issues, with cart tracked by session and order by order_id.


Thanks

So, if the cart is tracked by session id and if session_regenerate_id is never used, is there any chance of any session hijacking?

Thanks :)
scanreg
 
Posts: 603
Joined: Wed May 05, 2010 4:15 pm

Re: [MOD/vQmod] - Only Generate Single Temp Order Id

Postby Qphoria » Mon Jul 02, 2012 10:52 am

session id's are stored by the server.. sessions in opencart expire after 1 hour of no activity. There is no chance the server is going to regenerate the same session id for 2 people in the same hour, I'd be surprised if it even happens in the same year.
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18209
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: [MOD/vQmod] - Only Generate Single Temp Order Id

Postby HomesteadGenStore » Thu Aug 23, 2012 4:28 pm

Does this mod still apply for OC 1.5.4.1?
Image
www.HomesteadGeneralStore.com
User avatar
HomesteadGenStore
 
Posts: 47
Joined: Sat Jun 18, 2011 1:44 pm
Location: Waco, Texas

Re: [MOD/vQmod] - Only Generate Single Temp Order Id

Postby Qphoria » Fri Sep 21, 2012 3:23 pm

HomesteadGenStore wrote:Does this mod still apply for OC 1.5.4.1?

Yes
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18209
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: [MOD/vQmod] - Only Generate Single Temp Order Id

Postby charlesso » Fri Dec 07, 2012 12:09 pm

Qphoria wrote:session id's are stored by the server.. sessions in opencart expire after 1 hour of no activity. There is no chance the server is going to regenerate the same session id for 2 people in the same hour, I'd be surprised if it even happens in the same year.


Hi Q, I think I'm seeing exactly this!

Image

I asked in the forum a few times about session issues, but nobody answers.

http://www.tourdefarm.com/

How do you set your php.ini? Do you mind printing the content here?

I'm on 1.5.3.1.

Below is my php.ini

magic_quotes_gpc = Off;
register_globals = Off;
default_charset = UTF-8;
memory_limit = 1024M;
max_execution_time = 18000;
upload_max_filesize = 10M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.use_cookies = On;
session.use_trans_sid = Off;
session.gc_maxlifetime = 30;
session.cookie_lifetime = 30;
allow_url_fopen = on;
;display_errors = 1;
;error_reporting = E_ALL;
charlesso
 
Posts: 47
Joined: Mon Sep 20, 2010 3:33 am

Re: [MOD/vQmod] - Only Generate Single Temp Order Id

Postby freddy87 » Thu Feb 07, 2013 2:28 pm

Hi,

is it possible upgrade it to 1.5.5.1 ?

Thanks for reply.
freddy87
 
Posts: 15
Joined: Sun Sep 02, 2012 5:19 pm

Re: [MOD/vQmod] - Only Generate Single Temp Order Id

Postby Qphoria » Thu Feb 07, 2013 9:53 pm

Is it broken in 1.5.5.1?
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18209
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: [MOD/vQmod] - Only Generate Single Temp Order Id

Postby freddy87 » Fri Feb 08, 2013 3:43 pm

when i compare it, there are some changes and i have problem fix it :)
freddy87
 
Posts: 15
Joined: Sun Sep 02, 2012 5:19 pm

Re: [MOD/vQmod] - Only Generate Single Temp Order Id

Postby fers1970 » Sat Feb 23, 2013 6:36 pm

Hi, I'm "suffering" with this missing orders issue, but with an additional problem: when the client selects the payment method MercadoPago (it is an extension from a well known site similar to eBay in south america) and reaches the confirmation page the temp order is created but with order_status_id = 1 (pending) so if he doesn't confirm the payment and go back and forth another order created but all of them with status 1 thus actually duplicating orders.
I guess it is a bug from the extension but until I can get them review it I was wondering if this mod could solve the problem and also if it runs on 1.5.5.1

Thans
F
fers1970
 
Posts: 10
Joined: Fri Jan 25, 2013 7:59 pm

Re: [MOD/vQmod] - Only Generate Single Temp Order Id

Postby spirit » Sat Mar 09, 2013 5:53 am

Hi, where is the <!-- v154x --> ?
I want apply to 1.5.4.1

Thanks.
spirit
 
Posts: 296
Joined: Fri Oct 01, 2010 11:40 pm

Previous

Return to Modifications

Who is online

Users browsing this forum: ooleonoo and 8 guests

Hosted by Arvixe Web Hosting