Problem with the prices

  • Posts: 20
  • Thank you received: 0
10 years 9 months ago #167217

-- HikaShop version -- : 2.3.2

Hi,
attached you'll find the email notifcation for the customer. There are only prices incl. VAT shown, not those without. The problem is, that the whole calculation is via non VAT prices so know you see there 0,29 € 280pc 79,97 € (what is not 0,29*280).
Is it generally possible to set the vat incl. prices with 3 chars behind komma and those without vat to 2 chars?

You also can see the word "MwSt." which I don't find in the translation file. Its also in the checkout and at system>vat for germany, but no chance to change. Where do I find it, because I want to show the 19% beside.

Thanks
Chris

Attachments:

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

  • Posts: 26247
  • Thank you received: 4038
  • MODERATOR
10 years 9 months ago #167265

Hi,

For a fast analyze :
79.97 / 280 = 0,285607 => (round 2 digits) => 0,29

You can change how the prices are displayed by changing the configuration under "System > Currencies".

In the "de-DE" language file I can find the translation

VAT="MwSt."

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 20
  • Thank you received: 0
10 years 9 months ago #167304

Hi,
thanks. I spend some time with testing today and got some things to work. If i set the prices to round instead of not round the calculation is ok (but from my view the function is turned around ;)). Anyway. The only problem is in the email view, because there I don't get both prices, only the price with tax. Better would be all prices without tax inl. sub summary, then the tax (like it is now) and the summary, as it should be, with tax. Is think this is to change in preload version, but till now I didnt figure out what to change.

In my hikashop de file I've already set it to VAT="MwSt.(19%)", but this change is nowhere to see ^^

Chris

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

  • Posts: 83905
  • Thank you received: 13581
  • MODERATOR
10 years 9 months ago #167334

Hi,

The Mwst is the name of your tax rate that you configured via the "manage tax rates" button of the System>Taxes menu of HikaShop. So create a new tax rate, and then edit your tax rule and change the tax rate selected to the one with the name you want.

Regarding the prices of the products on the products listing of the order/cart, you need to turn off the "show taxed price" option of the configuration. That way, the prices of the products will be without tax and the tax will only display between the product total and the grand total of the order/cart.

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

  • Posts: 20
  • Thank you received: 0
10 years 9 months ago #167375

Hi,
okay - I'll try that MwSt. thing.
The price problem is not that easy. I've tried the "without tax" thing, for cart and mail thats ok, but I need both prices for the products. If I set the categories to both prices, I get in category and product listing both prices, but in product detail view only the price without tax - so that doesnt work for. Actually I've set it to both prices and everything is fine without the email - because it doesnt show both prices. That's why I need a solution just to change the settings for the Email to get everything how I want it to be. So far I didnt found a menu to set price settings only for the email, so I things it is a bug, that there is not the major config shown - in my case both prices.
Regards
Chris

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

  • Posts: 26247
  • Thank you received: 4038
  • MODERATOR
10 years 9 months ago #167458

Hi,

If you want to change the setting just for the email, the simple part is to override the email (for the "preload" part).
So you can change the way that the email check the HikaShop configuration for the tax ; you can also load both prices and modify the email to display them.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 20
  • Thank you received: 0
10 years 9 months ago #167600

Hi,
yes - that's what I'm talking about ;) I simply hoped for some more informations - which parts to change with what.
Thanks
Chris

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

  • Posts: 83905
  • Thank you received: 13581
  • MODERATOR
10 years 9 months ago #167613

Hi,

In emails we only have with or without taxes, not both. That's because emails are quite limited in width and displaying both with and without taxes prices in there wouldn't fit on the email and it would be completely ugly. Thus, when you use the "both" setting, it just display the price with tax in the emails. It's not a bug. It's the way we wanted on purpose.

If you want to display both, tt's quite easy to do actually.
Just remove the tax condition in the email preloads. For example the code:

if($config->get('price_with_tax')){
					$t .= ' '.$currencyHelper->format($item->order_product_price+$item->order_product_tax,$data->cart->order_currency_id);
				}else{
					$t .= ' '.$currencyHelper->format($item->order_product_price,$data->cart->order_currency_id);
				}
would become:
$t .= ' '.$currencyHelper->format($item->order_product_price+$item->order_product_tax,$data->cart->order_currency_id);
					$t .= ' '.$currencyHelper->format($item->order_product_price,$data->cart->order_currency_id);

The following user(s) said Thank You: crudi

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

  • Posts: 20
  • Thank you received: 0
10 years 9 months ago #167643

Thanks - you're right, both prices are to much, but this thing helped me anyway. I just went through the code an deleted the if / else tax things, so everywhere only the price without tax is shown.
Great shop and great support btw.

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

Time to create page: 0.087 seconds
Powered by Kunena Forum