Jump to content

Edit History

theodiablo

theodiablo

Hi there!

I am creating a very simple module to extend email templating functionalities.
I am trying to understand how Controllers, Adapters, Core and so on are working together.

 

I want to get the carrier used given an order ID. What would be the best way to do this?
From Prestashop official documentation, classes and Adapters are going to be removed in future major versions: https://devdocs.prestashop.com/1.7/development/architecture/introduction/

So which would be the best way, in a hook to do that?

I am trying to use the GetOrderForViewing in Core Domain, but I am not really sure how to use this... At the moment when I build the object, it only has the orderId, how should I run the query?
 

Thanks in advance. If there is a documentation somewhere which explains this, sorry in advance, I couldn't find it

theodiablo

theodiablo

Hi there!

I am creating a very simple module to extend email templating functionalities.
I am trying to understand how Controllers, Adapters, Core and so on are working together.

 

I want to get the carrier used given an order ID. What would be the best way to do this?
From Prestashop official documentation, classes and Adapters are going to be removed in future major versions: https://devdocs.prestashop.com/1.7/development/architecture/introduction/

So which would be the best way, in a hook to do that?

I am trying to use the GetOrderForViewing in Core Domain, but I am not really sure how to use this... At the moment when I build the object, it only has the orderId, how should I run the query?
 

Thanks in advance. If there is a documentation somewhere which explains this, sorry in advance, I couldn't find it

×
×
  • Create New...