Initial commit
This commit is contained in:
16
playarea/datatypes/datatype.coupon.php
Normal file
16
playarea/datatypes/datatype.coupon.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?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"),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user