Nicolas Pistillo Posted April 19, 2022 Share Posted April 19, 2022 (edited) Hi! I'm now trying to apply an additional tax dynamically to the final price of the cart. The percentage varies according to the customer, in some cases, this tax should not be applied, but i have the necessary data. I still can't find any solution or documentation about how i can achieve this. Somebody can help me or know a way to do something like that as clean as possible? Thanks community Edited April 19, 2022 by Nicolas Pistillo (see edit history) Link to comment Share on other sites More sharing options...
knacky Posted April 19, 2022 Share Posted April 19, 2022 Do you think that if you solve it in more forums, it will be something that someone will give you a ready-made solution? At addons.prestashop.com there are plenty of modules that can apply different VAT to different customer groups. I already gave you an adjustment to the display in the cart. Link to comment Share on other sites More sharing options...
Nicolas Pistillo Posted April 19, 2022 Author Share Posted April 19, 2022 Hi again, knacky The problem is: I'm currently developing this functionality for my client and I need to solve it with my module But it's harder than I thought for my Link to comment Share on other sites More sharing options...
Ress Posted April 19, 2022 Share Posted April 19, 2022 What if you used gift wrapping? Change its name, and set its price and add it when needed, on your terms? Link to comment Share on other sites More sharing options...
Nicolas Pistillo Posted April 19, 2022 Author Share Posted April 19, 2022 Can you be more specific, Ress? Link to comment Share on other sites More sharing options...
Ress Posted April 20, 2022 Share Posted April 20, 2022 The gitft wrapping option may or may not be added to an order, and a charge may be set for this. I'm thinking you could adapt this option, rename it first, and add it programmatically when needed. Link to comment Share on other sites More sharing options...
knacky Posted April 20, 2022 Share Posted April 20, 2022 (edited) When I duplicate topics, it turns out this way. What he needs is different VAT for a different group. He wants to see prices without VAT in the basket, but if the customer is in a group with extra VAT, then display these taxes and calculate the VAT price only for products. Edited April 20, 2022 by knacky (see edit history) Link to comment Share on other sites More sharing options...
Ress Posted April 20, 2022 Share Posted April 20, 2022 Now I understand, it wasn't very clear to me before. Link to comment Share on other sites More sharing options...
Nicolas Pistillo Posted April 20, 2022 Author Share Posted April 20, 2022 Sure, Knacky, your example module was very helpful to me, for showing in the views. But now I need to add programmatically the value of the custom tax to the order price, change the checkout price in other words. Link to comment Share on other sites More sharing options...
knacky Posted April 20, 2022 Share Posted April 20, 2022 What you need is not possible in Prestashop. You can only use one VAT for products, you can't create several. 1. you have to create your own VAT eg 1.7% (administration -> IMPROVE -> International -> Taxes -> Taxes -> button Add new Tax) 2. you have to create a new tax rule for your own VAT 1.7% (administration -> IMPROVE -> International -> Taxes -> Tax rules -> button Add new tax rules group) 3. You must set your own rule for all products (administration -> SELL -> Catalog -> Products -> edit) 4. allow or prohibit prices with or without VAT for customer groups (administration -> CONFIGURE -> Shop parameters -> Customer settings -> Groups -> Edit button -> Price display method) 5. make the TPL as I wrote you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now