projects
/
textcart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f59c22
)
Implement get_default_discount
author
Maxime Bourget
<bmx007@gmail.com>
Sun, 26 May 2013 15:59:53 +0000
(16:59 +0100)
committer
Maxime Bourget
<bmx007@gmail.com>
Sun, 26 May 2013 15:59:53 +0000
(16:59 +0100)
includes/textcart_manager.inc
patch
|
blob
|
history
diff --git
a/includes/textcart_manager.inc
b/includes/textcart_manager.inc
index 273065e32cf3235813e1943d7a8f028dd208ebbf..c0f1bfb1d4242069aa1ebecb1d9211bc1b18ca10 100644
(file)
--- a/
includes/textcart_manager.inc
+++ b/
includes/textcart_manager.inc
@@
-436,6
+436,11
@@
class TextCartManager {
return add_days(Today(), 10);
}
+ function get_default_discount($cart, $stock_code) {
+ if(empty($cart)) return null;
+ return $cart->default_discount;
+ }
+
function get_kit_description($cart, $stock_code) {
return get_kit_description($stock_code);
}