Jump to content

Edit History

girtri

girtri

In my module, on getOrderShippingCost($cart, $shipping_cost), when the current page is "order" (get by $this->context->controller->php_self)
I calculate carrier shipping cost and return it to the function: this works fine and I can see costs of carriers!

When I'm on page "order-confirmation" I return ship cost too, but in this case it seems have no effect!
Another thing: the second parameter of function (that I called $shipping_cost) value is always set to zero.

girtri

girtri

In my module, on getOrderShippingCost($cart, $shipping_cost), when the current page is "order" (get by $this->context->controller->php_self)
I calculate carrier shipping cost and return it to the function: this works fine and I can see costs of carriers!

When I'm on page "order-confirmation" I return ship cost too, but in this case it seems have no effect!
Another thing: the second parameter of function (that I called $shipping_cost) value is always set to zero.

On page "order-confirmation" (in debug) if I inspect variable $cart->_carriers I see that the array contains one carrier but it isn't the one I select on checkout: in fact is the "free shipping" carrier and this is the problem (I think)! I don't understand why my selection is dropped and get the "free ship" one!?

×
×
  • Create New...