first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
class AllegroCommission
{
protected $config;
public function __construct()
{
$this->config = stConfig::getInstance('stAllegroBackend');
}
public function calculatePrice($price)
{
$commission = $this->config->get('offer_product_commission');
if ($commission && $commission['commission'] > 0)
{
$price = stPrice::calculate($price, $commission['commission']);
if ($commission['round_type'] == 'full_buck')
{
$price = stPrice::round($price, 0);
}
}
return stPrice::round($price);
}
}