Post by dorgan » Fri Jun 10, 2011 11:28 pm

I am trying to build a module that will integrate with a 3rd party Sales Tax Solution. I was able to create the basics of a working module however right now the module only has one method which is getTotal. getTotal() seems to be called multiple times per page as well as in spots that I really dont want to be making a call out.

I am looking for a way to tell at which spot in the checkout process I am I would want to make a call out to the 3rd party system on the confirmation screen as well as once the order itself has been placed.

Any and all help would be appreciated. I am using opencart 1.5.0

Newbie

Posts

Joined
Wed Jun 08, 2011 12:51 am

Post by mberlant » Sat Jun 11, 2011 7:37 pm

You would be wise to follow the abundant advice to wait until 1.5 is debugged and until a stable 1.5 version has been released. That's what the professional extension writers are doing. Otherwise, you are very likely to build an extension that will not work after the code is modified during debugging, and you will need to start again at that point in time.

Please use proper English at all times, so that all members may understand you.


User avatar
Active Member

Posts

Joined
Sun Mar 13, 2011 8:33 pm

Post by dorgan » Wed Jun 15, 2011 2:28 am

Open Cart has officially released version 1.5 and I have somewhat figured out my issue but I still have one problem

the controller for checkout/success removes all order information as the first thing it does so if you want to say some some analytics over to a third part with some order information there is no way to send that information over as it doesnt exist anymore...

Looking into where the order becomes confirmed also leaves something to be desired as each individual payment gateway updates the order table and sets it to confirmed....I would think that the payment gateway should return or set a true/false value and the actually checkout controller should do the updating and also maybe set an orderid variable or something, so that I can retrieve the order and send over the analytics that I need.

EDIT: But so far I am liking the ease of OpenCart...I would love to see events/observers introduced.

Newbie

Posts

Joined
Wed Jun 08, 2011 12:51 am

Post by SXGuy » Wed Jun 15, 2011 6:09 pm

should be possible to write new code so after the order is confirmed by payment gateway, the order_id is passed back and a new sql look up is done by order_id to pull details, then sent to the confirmation page to be used with analytics.

Im not expert, but if something is logging whether an order is complete or not, it should then be able to pull data for that order straight after.

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by dorgan » Tue Jun 21, 2011 3:45 am

That would require editing the payment gateway core file....

Newbie

Posts

Joined
Wed Jun 08, 2011 12:51 am

Post by Xsecrets » Tue Jun 21, 2011 6:08 am

dorgan wrote:Open Cart has officially released version 1.5 and I have somewhat figured out my issue but I still have one problem

the controller for checkout/success removes all order information as the first thing it does so if you want to say some some analytics over to a third part with some order information there is no way to send that information over as it doesnt exist anymore...

Looking into where the order becomes confirmed also leaves something to be desired as each individual payment gateway updates the order table and sets it to confirmed....I would think that the payment gateway should return or set a true/false value and the actually checkout controller should do the updating and also maybe set an orderid variable or something, so that I can retrieve the order and send over the analytics that I need.

EDIT: But so far I am liking the ease of OpenCart...I would love to see events/observers introduced.
yes both are problems and both have been discussed with possible solutions for future versions, but at this point it is what it is.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US
Who is online

Users browsing this forum: No registered users and 8 guests