QuickEditProductGraduatedPricesReader

Implements \QuickEditProductGraduatedPricesReaderInterface

Class QuickEditProductGraduatedPricesReader

category

System

package

QuickEdit

subpackage

Repositories

Methods

QuickEditProductGraduatedPricesReader constructor.

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Database query builder instance.

Returns the names of the existing customer groups.

_getCustomerStatuses() : array

Response

array

Returns the customer status info or an empty array if nothing was found.

Provides customer-specific product offers.

_getPersonalOffersByProductId(integer|null $productId = null) : array

Arguments

$productId

integer|null

Optional, product ID to be processed.

Response

array

Returns the graduated prices or an empty array if nothing was found.

Returns the tax rate for the specified product.

_getTaxRateByProductId(integer $productId) : array

Arguments

$productId

integer

Product ID to be processed.

Response

array

Returns an object that contains the product tax rate.

Returns the graduated prices of a product or an empty array nothing was found.

getGraduatedPrices(array|null $productIds = null) : array

Arguments

$productIds

array|null

Array containing the selected product IDs to be processed.

Response

array

Returns array that contains the graduated prices information.

Properties

db

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder