Nuxter Posted May 20, 2021 Share Posted May 20, 2021 Hello how get order return lines and shipping lines API, because I don't find in webservice API resource. Link to comment Share on other sites More sharing options...
maicol.cantagallo Posted May 24, 2021 Share Posted May 24, 2021 (edited) 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 May 24, 2021 by maicol.cantagallo (see edit history) Link to comment Share on other sites More sharing options...
Nuxter Posted May 27, 2021 Author Share Posted May 27, 2021 Order carrier doesn't stand as shipping lines, does it? Link to comment Share on other sites More sharing options...
maicol.cantagallo Posted May 27, 2021 Share Posted May 27, 2021 Yes but carrier is associated to cart object. And u pass context object with class and other information Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now