Back to Opencart

Class Opencart\Catalog\Model\Marketing\Coupon

docs/api/Opencart.Catalog.Model.Marketing.Coupon.html

4.1.0.34.4 KB
Original Source

Namespaces

Classes

Class Opencart[Catalog](http://localhost\opencart-master/docs/api/namespace-Opencart.Catalog.html)\[Model](http://localhost\opencart-master/docs/api/namespace-Opencart.Catalog.Model.html)\[Marketing](http://localhost\opencart-master/docs/api/namespace-Opencart.Catalog.Model.Marketing.html)\[Coupon](http://localhost\opencart-master/docs/api/Opencart.Catalog.Model.Marketing.Coupon.html)

| extends | Model |

Class Coupon

Located at catalog\model\marketing\coupon.php

Methods
`
public

			` | `getCoupon(string $code): array<string, mixed>`

Get Coupon

Get Coupon

| # | | `

public

			` | `getCouponByCode(string $code): array<string, mixed>`

Get Coupon By Code

Get Coupon By Code

| # | | `

public

			` | `getProducts(int $coupon_id): array<int, int>`

Get Products

Get Products

| # | | `

public

			` | `getCategories(int $coupon_id): array<int, int>`

Get Categories

Get Categories

| # | | `

public

			` | `addHistory(int $coupon_id, int $order_id, int $customer_id, float $amount = 0.00): void`

Add History

Add History

| # | | `

public

			` | `deleteHistoriesByOrderId(int $order_id): void`

Delete Coupon Histories By Order ID

Delete Coupon Histories By Order ID

| # | | `

public

			` | `getTotalHistories(string $coupon_id): int`

Get Total Histories

Get Total Histories

| # | | `

public

			` | `getTotalHistoriesByCustomerId(int $coupon_id, int $customer_id): int`

Get Total Histories By Customer ID

Get Total Histories By Customer ID

| # |

Methods inherited from Opencart\System\Engine\Model
__construct(),__get(), __set(),__isset()
Properties inherited from Opencart\System\Engine\Model
$registry

OpenCart API API documentation generated by ApiGen dev-master