| @@ 22-26 (lines=5) @@ | ||
| 19 | public function getLabelPrefix() |
|
| 20 | { |
|
| 21 | $currencyStatement = ''; |
|
| 22 | if ($currency = $this->EcommerceCurrency()) { |
|
| 23 | if ($currency->exists()) { |
|
| 24 | $currencyStatement = ", in ".$currency->Code."."; |
|
| 25 | } |
|
| 26 | } |
|
| 27 | return 'Last '.($this->NumberOfOrdersToShow ? $this->NumberOfOrdersToShow : $this->Config()->defaults['NumberOfOrdersToShow']).' Orders'.$currencyStatement; |
|
| 28 | } |
|
| 29 | ||
| @@ 14-18 (lines=5) @@ | ||
| 11 | public function getLabelPrefix() |
|
| 12 | { |
|
| 13 | $currencyStatement = ''; |
|
| 14 | if ($currency = $this->EcommerceCurrency()) { |
|
| 15 | if ($currency->exists()) { |
|
| 16 | $currencyStatement = ", in ".$currency->Code.', '; |
|
| 17 | } |
|
| 18 | } |
|
| 19 | return 'Orders Placed'.$currencyStatement; |
|
| 20 | } |
|
| 21 | ||