Class QuickEditProductSpecialPricesWriter

Class QuickEditProductSpecialPricesWriter

QuickEditProductSpecialPricesWriter implements QuickEditProductSpecialPricesWriterInterface

Methods summary

public __construct( CI_DB_query_builder $db, QuickEditSpecialPricesOverviewColumns $quickEditSpecialPricesOverviewColumns )

QuickEditProductsSpecialPriceWriter constructor.

public setSpecialPriceById( array $specialPrice ) : boolean

Saves the changed data regarding the special price.

protected _setTaxRate( void )

Sets the tax rate of a product.

protected _collectUpdateData( array $items ) : array

Returns the updated data of a product.

protected _calculatePrice( string $value, string $column ) : float|integer

Calculate the price of the value.

protected _calculateUnit( string $value, string $column ) : mixed

Calculates the unit of the value.

protected _setSpecialPriceExpirationDate( string $expirationDate ) : string

Sets the special price expires date.

protected _editableColumns( void ) : array

Returns the editable columns for the product.

protected _delegateFilterToColumn( void ) : array

Returns the required columns for the overview of the properties.

Properties summary

protected $db : CI_DB_query_builder

		
protected $productIds : array

		
protected $taxRate : float