Jump to content

Edit History

maicol.cantagallo

maicol.cantagallo

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();

 

maicol.cantagallo

maicol.cantagallo

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:

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

$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();

 

×
×
  • Create New...