Jump to content

Get Return and shipping lines API.


Nuxter

Recommended Posts

Hi. there isn't api for shipping and order return. just u need to implement with sql queries.

 

so for shipping method u can use this code:

$context = Context::getContext();
$context->language->id = $id_lang;
$context->cart = new Cart((int) $this->params['id_cart']);
$context->customer = new Customer((int) $context->cart->id_customer);

$optionsFinder = new DeliveryOptionsFinder($context, Context::getContext()->getTranslator(), new ObjectPresenter(), new PriceFormatter());
$optionsDelivery = $optionsFinder->getDeliveryOptions();

 

Edited by maicol.cantagallo (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...