Hi, I had to implement too, some custom "discounts/fees" based on shipping and/or payment options.
I couldn't find a pragmatic way of doing this, without modifying the core-code. On the case of a 2% discount of the total based on the payment-type (bank-transfer), I solved it by adding a new signal to modify the discount-total. At first, I wanted this new signal added to the satchmo-core and I opened a Ticket with a patch. ... it works but it definitly needs more polishing, but I have not had the time to improve the "hack" based on some suggerences from Hynek, which I certainly want to implement at some point. So if you're interested, here is the link to the issue. (I recommend to read the whole Issue, because the conversation with Hynek gives some more explanation of the why it's more than a q&d fix and there is also some extra example-code) https://bitbucket.org/chris1610/satchmo/issue/1351/satchmo-payment-and-shipping-signal On Jun 20, 12:07 pm, Евгений Филатов <[email protected]> wrote: > I have custom COD module, which have fees based on total ranges. E. g. when > order total is 0-10000, COD fee is 100, 10000-20000, COD fee is 150 and so > on. This fee is added then to order total > > What is the best way to add this to order, so this value can be accessed > from templates to display it on confirmation, print it on invoices etc.? > > I was considering doing it through custom tax module, but I already have > tax enabled (% tax for all orders) and in Satcmo, as I see, no way to run > order through 2 taxes (or there is?). > > Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
