mirumee / legacy-views

A legacy fork of Saleor that contains the old storefront and dashboard code
Other
14 stars 14 forks source link

VAT issue #25

Open intricacy19 opened 4 years ago

intricacy19 commented 4 years ago

What I'm trying to achieve

Hi, Thanks for all your efforts for Saleor and support here.

I am new using Saleor, and currently I am trying to develop an e-commerce web site with it. As I do not have so much experience with front-end frameworks, I decided to use the branch/version 2.9 with Django templates. Is it a bad idea? What do you think?

So, my problem is that I can not get tax setting working. I tried different things but it does not work at all. So I changed settings:

DEFAULT_COUNTRY = "GB" DEFAULT_CURRENCY = "GBP" VATLAYER_ACCESS_KEY = "dfd5.................."

In http://127.0.0.1:8000/dashboard/taxes/ page I get the list of countries. When I fetch the tax rates, I get "Tax rates updated successfully". I get confused in this step. I will only sell products in the UK. So will the tax calculated in the checkout according to the country?

I tried to test the payment but the tax is not calculated in the checkout at all.

In the http://127.0.0.1:8000/dashboard/taxes/configure-taxes/ page, I tried with different options, but the tax is not calculated.

What I expected to happen

What I am trying to is to add tax for certain products and let the customer choose for some other product types. What would be the best approach? At the end I am planning to add the tax as a variant. So the customer could be able to choose, do you think it is a good idea?

NyanKiyoshi commented 4 years ago

Hi,

Can you provide those details:

I will only sell products in the UK. So will the tax calculated in the checkout according to the country?

EU law requires to charge the VAT in accordance to shipping country.

What I am trying to is to add tax for certain products and let the customer choose for some other product types.

For that, you would use a tax type/rate for the product type, for example "Standard", "Medicines", "Food", etc.

I decided to use the branch/version 2.9 with Django templates. Is it a bad idea? What do you think?

That's fine but no longer maintained.

intricacy19 commented 4 years ago

Thank you for your reply and interest. So let me add screen shots.

Do see the tax rate for UK in the dashboard?

Yes I can see the tax rates. sc1

All products prices are entered with tax included is checked or not checked?

No, it is not checked.

sc2

Did you try to pay using UK as shipping country? Yes, I tried. Tax has not been added.

Charge taxes for this item is checked on products? Yes this is selected as well.

sc3

Product Types have a tax type (e.g. Standard)?

I think the problem occurs because of this. Because I can not select Tax Rate. As you can see, there is this warning in the product page: "Make sure you have enabled a VAT provider and fetched the rates if needed by the plugin." I have added Vatlayer key, the free plan.

NyanKiyoshi commented 4 years ago

Because I can not select Tax Rate

Same on the product type form page? Did you check there are fetched tax rates to the countries in the tax settings?

I would need to check later on, I don't remember how taxes work in the old version.

intricacy19 commented 4 years ago

So I have these tax rates.

sc4

I have this in the product type page.

sc5

I would need to check later on, I don't remember how taxes work in the old version.

I would be grateful if you could check it.

NyanKiyoshi commented 4 years ago

Hmm weird, sounds like a bug. I will try to look tomorrow.

intricacy19 commented 4 years ago

I do not know why it occurs but I have fixed it. I have created a new database. And I used the same settings, then it worked.

We will also sell some printed products are not VATable.
I wonder if there is a way to ask customer for the Vat, then the tax will be added to the price depending on the customer's preference. The only idea I have is to create variant for the vat.

NyanKiyoshi commented 4 years ago

Hmm weird.

I wonder if there is a way to ask customer for the Vat, then the tax will be added to the price depending on the customer's preference.

Yes that would be possible. But that's sounds odd. I not expert, but I believe in B2B they still have to pay the VAT when ordering.