Price with and without VAT, displayed on two lines
14 years 2 weeks ago #70225
by vpospisil
Price with and without VAT, displayed on two lines was created by vpospisil
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
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
Please Log in or Create an account to join the conversation.
14 years 2 weeks ago #70306
by Xavier
Replied by Xavier on topic Re: Price with and without VAT, displayed on two lines
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.
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.
14 years 1 week ago #70814
by vpospisil
Replied by vpospisil on topic Re: Price with and without VAT, displayed on two lines
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.
14 years 1 week ago #70838
by Xavier
Replied by Xavier on topic Re: Price with and without VAT, displayed on two lines
Hi,
You have to edit these lines, to change the display in the product page, and product listing:
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
You have to edit these lines, to change the display in the product page, and product listing:
Code:
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.
14 years 1 week ago - 14 years 1 week ago #70863
by vpospisil
Replied by vpospisil on topic Re: Price with and without VAT, displayed on two lines
Hi. Super thank for you support
Last edit: 14 years 1 week ago by vpospisil.
Please Log in or Create an account to join the conversation.
Time to create page: 0.134 seconds