Back to Opencart

Class Opencart\Catalog\Model\Catalog\Product

docs/api/Opencart.Catalog.Model.Catalog.Product.html

4.1.0.36.6 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)\[Catalog](http://localhost\opencart-master/docs/api/namespace-Opencart.Catalog.Model.Catalog.html)\[Product](http://localhost\opencart-master/docs/api/Opencart.Catalog.Model.Catalog.Product.html)

| extends | Model |

Class Product

Located at catalog\model\catalog\product.php

Methods
`
public

			` | `__construct(Registry $registry)`

Constructor

Constructor

Overrides

| # | | `

public

			` | `getProduct(int $product_id): array<string, mixed>`

Get Product

Get Product

| # | | `

public

			` | `getProducts(array<string, mixed> $data = []): array<int, array<string, mixed>>`

Get Products

Get Products

| # | | `

public

			` | `getCategories(int $product_id): array<int, array<string, mixed>>`

Get Categories

Get Categories

| # | | `

public

			` | `getCategoriesByCategoryId(int $product_id, int $category_id): array<string, mixed>`

Get Total Categories By Category ID

Get Total Categories By Category ID

| # | | `

public

			` | `getAttributes(int $product_id): array<int, array<string, mixed>>`

Get Attributes

Get Attributes

| # | | `

public

			` | `getOptions(int $product_id): array<int, array<string, mixed>>`

Get Options

Get Options

| # | | `

public

			` | `getDiscounts(int $product_id): array<int, array<string, mixed>>`

Get Discounts

Get Discounts

| # | | `

public

			` | `getImages(int $product_id): array<int, array<string, mixed>>`

Get Images

Get Images

| # | | `

public

			` | `getSubscription(int $product_id, int $subscription_plan_id): array<string, mixed>`

Get Subscription

Get Subscription

| # | | `

public

			` | `getSubscriptions(int $product_id): array<int, array<string, mixed>>`

Get Subscriptions

Get Subscriptions

| # | | `

public

			` | `getLayoutId(int $product_id): int`

Get Layout ID

Get Layout ID

| # | | `

public

			` | `getRelated(int $product_id): array<int, array<string, mixed>>`

Get Related

Get Related

| # | | `

public

			` | `getTotalProducts(array<string, mixed> $data = []): int`

Get Total Products

Get Total Products

| # | | `

public

			` | `getSpecials(array<string, mixed> $data = []): array<int, array<string, mixed>>`

Get Specials

Get Specials

| # | | `

public

			` | `getTotalSpecials(): int`

Get Total Specials

Get Total Specials

| # | | `

public

			` | `addReport(int $product_id, string $ip, string $country = ''): void`

Add Report

Add Report

| # |

Methods inherited from Opencart\System\Engine\Model
__get(),__set(), __isset()
Properties
`
protected

			` | `array<string, string>` | `$statement = []`

| # |

Properties inherited from Opencart\System\Engine\Model
$registry

OpenCart API API documentation generated by ApiGen dev-master