Hi I would be interested to add your logic of code and I think that may help me in my current satchmo shop. Would it be possible for you to send me your code please ?
Thanking you in advance. ++ On Sunday, October 21, 2012 11:40:27 PM UTC+4, Stanislav Mihaylov wrote: > > Thank you for your answer, I also found this solution by reading through > the topics in the group - it is good for displaying the full price and then > the discounted one. > Nevertheless, my client wanted a more comprehensive way of creating sales > from the admin panel - being able to create 'absolute amount off', > 'percentage of'f' and multibuy sales from the type '3 for the price of 2' > and being able to apply it to multiple products without having to open > every product's edit page, so I ended up creating custom 'Sale' model that > has a similar interface to 'Discount', but instead of messing with > discounts, its save method creates such second prices for products, > selected from a multi-choice checkbox widget. In order to connect the > 'Sale' to the created second prices for further reference and CRUD > operations, I subclassed the 'Price' model with my own 'SalePrice' that has > a foreign key to Sale. So a new Sale creates SalePrices and they in turn > create Price entries, while Satchmo's original models stay unmodified. > If anybody needs any further details of how I did it, feel free to ask! > -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To view this discussion on the web visit https://groups.google.com/d/msg/satchmo-users/-/qzv0ToOc-ogJ. To post to this group, send email to satchmo-users@googlegroups.com. To unsubscribe from this group, send email to satchmo-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.