Download plugins/Ecommerce/Columns/RevenueSubtotal.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 838 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/Ecommerce/Columns/RevenueSubtotal.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/plugins/Ecommerce/Columns/RevenueSubtotal.php
-
curl -L -o RevenueSubtotal.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/Ecommerce/Columns/RevenueSubtotal.php
838 Bytes
| /** | |
| * Matomo - free/libre analytics platform | |
| * | |
| * @link https://matomo.org | |
| * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later | |
| */ | |
| namespace Piwik\Plugins\Ecommerce\Columns; | |
| use Piwik\Tracker\GoalManager; | |
| use Piwik\Tracker\Action; | |
| use Piwik\Tracker\Request; | |
| use Piwik\Tracker\Visitor; | |
| class RevenueSubtotal extends BaseConversion | |
| { | |
| protected $columnName = 'revenue_subtotal'; | |
| protected $type = self::TYPE_MONEY; | |
| protected $category = 'Goals_Ecommerce'; | |
| protected $nameSingular = 'General_Subtotal'; | |
| /** | |
| * @param Action|null $action | |
| * | |
| * @return mixed|false | |
| */ | |
| public function onEcommerceOrderConversion(Request $request, Visitor $visitor, $action, GoalManager $goalManager) | |
| { | |
| return $this->roundRevenueIfNeeded($request->getParam('ec_st')); | |
| } | |
| } | |