16 lines
624 B
PHP
16 lines
624 B
PHP
<?php
|
|
|
|
class Coupon extends Item {
|
|
public string $title = "Купоны";
|
|
public string $description = "Управление купонами на сайте.";
|
|
public string $icon = "sell";
|
|
public bool $visible_content = false;
|
|
public function __construct($item_id)
|
|
{
|
|
parent::__construct($item_id);
|
|
$this->props = array(
|
|
"sum" => new Prop($this, "sum", "0", "Размер скидки в рублях", true, "plain_text"),
|
|
"percent" => new Prop($this, "percent", "0", "Размер скидки в процентах", true, "plain_text"),
|
|
);
|
|
}
|
|
} |