I have setup a customer group called merchants with different percentages for different categories. Also the price display for merchants is, unlike for normal customers, without taxes.
Now I'd like to replicate this behavior to the invoice generation. So that normal customers (group 3) have in invoice.product-tab.tpl the product prices with taxes included and merchants see prices without taxes in the invoice.
I have added different behaviour into invoice.product-tab.tpl by using {if $customer->id_default_group == 5} - clauses. This works fine for the product-tab.tpl, yet then I get weird behaviour in the total-tab. When ordering with shipping option that adds fees everything behaves as wanted, yet if there's no shipping fees, the final total is presented without taxes for merchants. Looks like there might actually also be a bug in there 🙂
Is there any option to switch the invoice behavior to replicate the settings of the customer group? It doesn't really look like it when I scrub over the templates code, but maybe there is before I start editing too many code lines 😉
Thanks for any advice 🙂
edit: oh and btw I'm still on 1.2.0, didn't have the time to test the update and migrate 😉
Question
oliiix
I have setup a customer group called merchants with different percentages for different categories. Also the price display for merchants is, unlike for normal customers, without taxes.
Now I'd like to replicate this behavior to the invoice generation. So that normal customers (group 3) have in invoice.product-tab.tpl the product prices with taxes included and merchants see prices without taxes in the invoice.
I have added different behaviour into invoice.product-tab.tpl by using {if $customer->id_default_group == 5} - clauses. This works fine for the product-tab.tpl, yet then I get weird behaviour in the total-tab. When ordering with shipping option that adds fees everything behaves as wanted, yet if there's no shipping fees, the final total is presented without taxes for merchants. Looks like there might actually also be a bug in there 🙂
Is there any option to switch the invoice behavior to replicate the settings of the customer group? It doesn't really look like it when I scrub over the templates code, but maybe there is before I start editing too many code lines 😉
Thanks for any advice 🙂
edit: oh and btw I'm still on 1.2.0, didn't have the time to test the update and migrate 😉
Best
Oli
Edited by oliiix1 answer to this question
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