Price with and without VAT, displayed on two lines

  • Posts: 8
  • Thank you received: 0
12 years 9 months ago #70225

Hello

I have several questions about customization of your component. If I choose (Configuration -> Display - Show taxed price = with and without tax) then prices should be displayed on two rows, ideally each with its own span tag and own class in order to set up its appearance using css.

If the price is with tax and without tax on one row then the content will overflow to another container and it doesn’t look good. Even more, customers prefer to see a price without VAT highlighted unlike to the price with tax.
It would be perfect if the customization would been through the entire shop. Prices should be displayed in this way in product list, in product detail or in basket as well.

Thank you for your interest.

Regards, Václav pospíšil

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
12 years 9 months ago #70306

Hi,

It's possible to customize the price display. You have to edit the view "product / listing_price" in HikaShop > Display > Views.

Here you can add <span> or <div> ... and classes to customize the price display.
In this view, it will affect the product list, product detail and the basket.

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

  • Posts: 8
  • Thank you received: 0
12 years 8 months ago #70814

Thank you for your help, but I need to know where do I change the file - "checkout/listing_price.php". I would not do it wrong

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

  • Posts: 13201
  • Thank you received: 2322
12 years 8 months ago #70838

Hi,

You have to edit these lines, to change the display in the product page, and product listing:

			if($this->params->get('price_with_tax')){
				echo $this->currencyHelper->format($price->price_value_with_tax,$price->price_currency_id);
			}
			if($this->params->get('price_with_tax')==2){
				echo JText::_('PRICE_BEFORE_TAX');
			}
			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);
			}
			if($this->params->get('price_with_tax')==2){
				echo JText::_('PRICE_AFTER_TAX');
			}

Just add somethings like "echo '<br/>'; after "echo $this->currencyHelper->format($price->price_value_with_tax,$price->price_currency_id);" to put the price without tax under the price with tax

The following user(s) said Thank You: vpospisil

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

  • Posts: 8
  • Thank you received: 0
12 years 8 months ago #70863

Hi. Super thank for you support

Last edit: 12 years 8 months ago by vpospisil.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum