What's New
Viewing 11 posts - 1 through 11 (of 11 total)
Viewing 11 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic.
Hello,
i just noticed that there discrepancies between shipment cost in the order details in my account.
This can create confusione on customer side.
Can you please let me know if is possible to change the value without taxes by changing with the value with taxes (like invoice).
Enclosed a picture.
Thanks
Alessandro
I have also made a customization based on your post to show Shipping cost to be determined instead of Free shipment:
Edit the \src\Adapter\Presenter\Cart\CartPresenter.php file, if you can’t find it, then look for the \src\Adapter\Cart\CartPresenter.php file.
Replace the second
1
$this->translator->trans(‘Free’, array(), ‘Shop.Theme.Checkout’)
With
1
($cart->id_address_delivery ? $this->translator->trans(‘Free’, array(), ‘Shop.Theme.Checkout’) : $this->translator->trans(‘To be determined’, array(), ‘Shop.Theme.Checkout’))
But it shows neither the Free Shipment or To Be Determined but instead the first level of shipment cost (9,90)
Thanks
Alessandro
Hi,
You need to modify the \src\Adapter\Presenter\Cart\CartPresenter.php file:
Change
$shippingCost != 0
? $this->priceFormatter->format($shippingCost)
: $this->translator->trans('Free', array(), 'Shop.Theme.Checkout'),
To
!Context::getContext()->customer->isLogged(true) ? $this->translator->trans('To be determined', array(), 'Shop.Theme.Checkout') :
($shippingCost != 0
? $this->priceFormatter->format($shippingCost)
: $this->translator->trans('Free', array(), 'Shop.Theme.Checkout')),
See attached screenshot.
Best regards.
You must be logged in to reply to this topic.