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
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
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.
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.
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.
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.
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.
yes both are problems and both have been discussed with possible solutions for future versions, but at this point it is what it is.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.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Who is online
Users browsing this forum: No registered users and 2 guests