Jump to content

Get Return and shipping lines API.


Nuxter
 Share

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)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More