Formatting Shipping cost in the Checkout table

  • Posts: 31
  • Thank you received: 0
  • Hikashop Business
4 years 11 months ago #306130

-- HikaShop version -- : 4.0.3 Business
-- Joomla version -- : 3.9.5
-- PHP version -- : 7.2.17
-- Browser(s) name and version -- : Firefox 66.0.3
-- Error-message(debug-mod must be tuned on) -- : no

Tell me please which 'view' file(s) determine(s) the appearance of the shipping cost(s) in the checkout table. They should be rearranged, reformatted, etc.
/screenshot attached/

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
4 years 11 months ago #306131

Hi,

You can activate the "show display files" setting of the HikaShop configuration to know which view file is used where on your website and then you can edit it via the menu Display>Views.
For the shipping methods selection, if you have the "checkout legacy" setting activated in the Hikashop configuration, it's the checkout/shipping.php view file, if not, it's the checkout/show_block_shipping.php view file.

Please Log in or Create an account to join the conversation.

  • Posts: 31
  • Thank you received: 0
  • Hikashop Business
4 years 11 months ago #306161

Hi,
Right, but where to format:

echo $this->checkoutHelper->getDisplayPrice($shipping, 'shipping', $this->options);

Just as I did in the cart, e.g. like this:
49,00 € (62,23 € incl. VAT)

Last edit: 4 years 11 months ago by janos.

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
4 years 11 months ago #306163

Hi,

That function is defined in the file administrator/components/com_hikashop/helpers/checkout.php
However, I would recommend to not modify the function there.
If you want to change how that function works, it's better to copy its code in your view override (and change the variable names) so that you can customize it how you want. That will avoid loosing your changes when you update your HikaShop.

Please Log in or Create an account to join the conversation.

Time to create page: 0.110 seconds
Powered by Kunena Forum