How to get prices incl VAT in the emails

  • Posts: 56
  • Thank you received: 0
13 years 4 months ago #24030

I have the Essential version of Hikashop.

My webshop is dutch and all prices are incl VAT.
Since this wasn't showing on the checkout page i changed the code to get the prices incl VAT.
This works perfect.

Now i see that the emails that are being sent to the customers are also without VAT.
How do i get that to set it to inclusive?

Tnx!!

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

  • Posts: 83051
  • Thank you received: 13412
  • MODERATOR
13 years 4 months ago #24055

For the emails, you can edit them via the menu System->Emails (business edition) and change the code there to display the prices with tax.

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

  • Posts: 56
  • Thank you received: 0
13 years 4 months ago #24115

Yes i've read that.
But since we have the essential edition i need another solution.

Taxes are a big deal here in Holland would be weird if we couldn't change that....

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

  • Posts: 83051
  • Thank you received: 13412
  • MODERATOR
13 years 4 months ago #24139

You can always modify the file directly in the folder media/com_hikashop/mail but you will loose the modifications when you update as it won't use our override system.

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

  • Posts: 56
  • Thank you received: 0
13 years 4 months ago #24211

Can you help me with what i need to change in those files?
I know i'll loose it when i update but i keep track of the things i change so that shouldnt be a problem.

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

  • Posts: 83051
  • Thank you received: 13412
  • MODERATOR
13 years 4 months ago #24220

It's not really difficult. You can change:
$item->order_product_price
by:
$item->order_product_price+$item->order_product_tax

and, if found:
$price
by:
$item->order_product_total_price

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

  • Posts: 56
  • Thank you received: 0
13 years 4 months ago #24225

Thank you. That worked perfect!

I have another question, which is more about the layout.

When i'm on a products listing page and i go to the checkout i'm redirected to the url:
products listing/checkout.html
This one works well. This page shows the checkout nicely in my template.

When i'm on my homepage and i go the checkout (which is a module on my right panel) i'm redirected to the url:
component/hikashop/checkout.html
This one doesnt work so well. It doesnt get my template and so i miss my left and right bar.

On my homepage i have loaded a module with random Hikashop products. When i go to the checkout by clicking the button to add the product iin the checkout it does the same. It also goes to the wrong template.

I have a cpl of more incidents where this happens and i would like to always get my template because i only use one template. Do you have a solution for that?

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

  • Posts: 83051
  • Thank you received: 13412
  • MODERATOR
13 years 4 months ago #24236

You need to set the option "Force menu on checkout" of the configuration to a menu where your template is assigned and it will always have the same URL with the template/modules you assigned to that menu.

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

  • Posts: 56
  • Thank you received: 0
13 years 4 months ago #24238

Thanx Nicolas!

I tried that earlier but i think i forgot to empty my cache.
Now indeed it works!

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

  • Posts: 56
  • Thank you received: 0
13 years 4 months ago #24318

The last thing that doesnt work well with the template is my random products on the main page.
I've loaded a product listing in my main page with random products.
When you click on a product it also goes to component/hikashop/product/productname
With this link i dont get my template, which i should get ofc.

There is an option for Menu, but this isnt the solution.
I must be doing something wrong but i cant find it.

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

  • Posts: 83051
  • Thank you received: 13412
  • MODERATOR
13 years 4 months ago #24331

In your random products module's hikashop options you should also set the menu option so that you go to a page where the template is displayed.

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

  • Posts: 56
  • Thank you received: 0
13 years 4 months ago #24339

Yes thats what i said. This doesnt seem to work.
I'll add a printscreen of my settings.

File Attachment:

File Name: printscreen.doc
File Size:119 KB

Attachments:

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

  • Posts: 83051
  • Thank you received: 13412
  • MODERATOR
13 years 4 months ago #24405

Then you didn't assign your template to that menu.

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

  • Posts: 56
  • Thank you received: 0
13 years 4 months ago #24454

Well sure i did .. otherwise this wouldn't have worked with the checkout..
i have the same menu-item linked to the checkout and there it works.

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

  • Posts: 83051
  • Thank you received: 13412
  • MODERATOR
13 years 4 months ago #24482

Well, I don't see how this would be possible, even more so that it isn't a hikashop related problem as far as I understand.

Could you give a link to your website so that we can see the problem ?

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

  • Posts: 56
  • Thank you received: 0
13 years 4 months ago #24488

yes i think you are right and it isnt a HS problem.
Still it is very nice that you are willing to check it out.

Onzekralen.nl

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

  • Posts: 83051
  • Thank you received: 13412
  • MODERATOR
13 years 4 months ago #24506

Everything is fine on that page. Could you explain where to click to reproduce the problem ? I tried several links and add to cart, but none had the template removed...

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

  • Posts: 56
  • Thank you received: 0
13 years 4 months ago #24523

Hi,


The problem is when you are on my main page, i have the module loaded that shows about 18 random products.
When you click on one of those products (not to go to the checkout, but just to see the product page)and you get on the product page you see that the whole left and right columns are gone.
That is my issue. I cant get those columns back.
I have that problem with more modules (not within hikashop) and its a really annoying problem :)

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

  • Posts: 11
  • Thank you received: 0
13 years 4 months ago #24526

Hi,
maybe it is not directly solving your problem.
You can associate modules with menues.
When you jump to product page, are you changing visibility of menues?
Are you switching between templates?


brgds
Michael

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

  • Posts: 56
  • Thank you received: 0
13 years 4 months ago #24533

hi!

i have assigned modules to menus.
The short story:
I use only one template. Normally i just would assign all modules to all menus.
But in my case i have a forum on my website. On the forumpages i dont want to show all my webshop content.
So for the forum modules i dont assign the left and right column, so my forum pages are wider and easier to look at.
You can see that here .

For my random module that is displayed at my main page i just assign all modules .. even the forum module because i know its not displayed there. So i dont have to especially get them out.
My other webshop pages (category listings, product pages and all that) are assigned to all modules except the forum module.

But now when you use this random module that i have on my main page it gets the module assignments of my forum somehow.
I have the same problem with a searchmodule that i'm trying to get on my page. It also appears without the bars. (its not live now)

I have no idea on how to get the right assignments...

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

Time to create page: 0.100 seconds
Powered by Kunena Forum