Closed GoogleCodeExporter closed 9 years ago
Seems to be fixed with all of my other changes this evening. Closing.
Original comment by subim...@gmail.com
on 11 Aug 2008 at 11:04
Hrm...so this wasn't fixed with the applied patch? Can you check trunk please?
Original comment by subim...@gmail.com
on 15 Aug 2008 at 10:14
???
This patch desn't seems to have been applied.
In the order model, set_promo_code, instead of:
...
# Make sure it's valid to add
if promo.minimum_cart_value
return if promo.minimum_cart_value > self.line_items_total
end
logger.info "PROMO MIN CART VALUE PASSED"
# Don't allow more than one promotion?
# This destroys any line items created previously.
self.order_line_items.delete(self.promotion_line_item) if
self.promotion_line_item
...
do:
...
# Don't allow more than one promotion?
# This destroys any line items created previously.
self.order_line_items.delete(self.promotion_line_item) if
self.promotion_line_item
# Make sure it's valid to add
if promo.minimum_cart_value
return if promo.minimum_cart_value > self.line_items_total
end
logger.info "PROMO MIN CART VALUE PASSED"
...
First delete the promotion line item, then make the comparison or it will be
included
in the sum.
It is still wrong in trunk.
Original comment by edmundo...@gmail.com
on 15 Aug 2008 at 1:23
Aha...makes sense. Fixed in r121
Original comment by subim...@gmail.com
on 16 Aug 2008 at 3:08
Original issue reported on code.google.com by
edmundo...@gmail.com
on 28 Jun 2008 at 6:31Attachments: