Post by cau96176 » Sat Apr 11, 2020 3:40 pm

Hi All,

It's been a while and I have a debate of sorts with a developer.

In opencart is the order id generated on the checkout/checkout page
Or
Checkout/success page?

I had a feeling there was a step in between when the confirm button is clicked like checkout/confirm.

Any help would be great!
Last edited by cau96176 on Sat Apr 11, 2020 5:30 pm, edited 1 time in total.

New member

Posts

Joined
Sat Feb 01, 2014 11:51 pm

Post by thekrotek » Sat Apr 11, 2020 3:50 pm

On Success page this order ID actually means something, but on checkout it's mostly "virtual". So no, you should display it on checkout.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by cau96176 » Sat Apr 11, 2020 4:13 pm

Thanks,

What I'm debating is a finance module where they need an orderID (a mandatory part of their system) to be sent but they are getting this from the success page, which empties the cart and creates a order in the database and email....

.... Then they are passing the customer to the finance site to see if they get accepted.

I think from my other finance modules that the virtual orderID like you said is used to pass them over to the finance site then if they get accepted they come back to the success page, if not they come back to the checkout with a full cart and no sale.

If they decide not to buy then I have a gap in my order numbers.

So the next question is.....

Is the virtual order id created when then move from the following
1. Cart to the checkout
2. Open the CHECKOUT page
3. Checkout to success?

Or something else?

Thanks again

New member

Posts

Joined
Sat Feb 01, 2014 11:51 pm

Post by thekrotek » Sat Apr 11, 2020 4:44 pm

If your "finance module" takes order ID from success page, then it is badly coded. Order ID can be taken from session right on checkout.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by cau96176 » Sat Apr 11, 2020 5:16 pm

Thanks so much for all the help and your time!

New member

Posts

Joined
Sat Feb 01, 2014 11:51 pm
Who is online

Users browsing this forum: No registered users and 378 guests