You have no items in your shopping cart.

Friday, October 4, 2024 11:38:04 AM

Price with tax is the same as price without tax

Posted: 5 years ago

#8791 Quote

frankvdlaar

Posted: 5 years ago

#8791 Quote
Hi,

I'm struggling with configuring the feeds for one of my clients. Recently, we changed the tax settings to differentiate between  countries (in this case The Netherlands and Belgium). Now if I generate a feed, there is always no tax included in the price, whether I choose "Price", "Price with tax" or "Price without tax". I want to have the price including the tax. How can I configure that?

Kind regards,
Frank van de Laar

Posted: 5 years ago

#8792 Quote

Support

Posted: 5 years ago

#8792 Quote
Do you customer's billing address for calculation TAXs?
If yes than plugin can't calculate the TAX. Plugin uses one customer's account for all feed files.
It's only one solution it's to do external subplugins for Feed Manager.
One subplugin for one country another one for another country.
Do you understand me?
https://www.foxnetsoft.com/documentation-nopfeedmanager#q14

If you need I can do such subplugins, but see at example. It's easy.

Posted: 5 years ago

#8793 Quote

frankvdlaar

Posted: 5 years ago

#8793 Quote
Hi,

Thanks for the quick reply! I think I understand the plugin part, I can write a plugin that adds the tax to the price and use that in de mapping.
But I'm not sure I understand the first part. Is there a customer in the database that is used by the plugin? I tried searching for that, but I cannot find it. We only need the feeds for one country, so the easiest solution would be to change the billing address for that one customer. How can I find the customer that the plugin uses?

Kind regards,
Frank van de Laar

Posted: 5 years ago

#8794 Quote

Support

Posted: 5 years ago

#8794 Quote
Plugin uses the nopcommerce task for creating the feed file.
NopCommerce uses the virtual customer for each nop task.
Ignore this information.
You can add own tax in extrnal plugins.
Do it one plugin for  one tax and another plugin for another tax.
You will have the product and it's price in external plugin and you need to add TAX as static percent.

Posted: 5 years ago

#8795 Quote

Support

Posted: 5 years ago

#8795 Quote
It's a draft code

public virtual string ReadAttributeValue(Product product, ProductAttributeCombination productAttributeCombination, string feedColumName, string typeFeed)
        {
            var tax=20;
            return (product.Price*(100+tax/100)).ToString();
        }

Posted: 5 years ago

#8796 Quote

frankvdlaar

Posted: 5 years ago

#8796 Quote
Thanks for the support! This was the solution

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved