Edit the price layout in the checkout

  • Posts: 66
  • Thank you received: 1
1 year 4 months ago #354235

-- url of the page with the problem -- : store.alpha-electronics.com/
-- HikaShop version -- : 4.7.5
-- Joomla version -- : 3.10.11
-- PHP version -- : 7.4.33

How can I change the way the price is shown? It's shown like this currently:



but I'd like it to show like this:

Attachments:

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

  • Posts: 83007
  • Thank you received: 13400
  • MODERATOR
1 year 4 months ago #354241

Hi,

What you want to do is to edit the view file product / listing_price via the menu Display>Views.
That's the view displaying the prices area.
There, the price with taxes is displayed by this code:

if($this->params->get('price_with_tax')) {
				echo $this->currencyHelper->format(@$price->price_value_with_tax, $price->price_currency_id);
			}
and the price without taxes by this one:
if($this->params->get('price_with_tax') == 2 || !$this->params->get('price_with_tax')) {
				echo $this->currencyHelper->format(@$price->price_value, $price->price_currency_id);
			}
So you can switch them and adapt the translations around, or add extra text directly in there as you see fit.

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

Time to create page: 0.075 seconds
Powered by Kunena Forum