Properties

$id_product

$id_product : 

Type

$id_specific_price_rule

$id_specific_price_rule : 

Type

$id_cart

$id_cart : 

Type

$id_product_attribute

$id_product_attribute : 

Type

$id_shop

$id_shop : 

Type

$id_shop_group

$id_shop_group : 

Type

$id_currency

$id_currency : 

Type

$id_country

$id_country : 

Type

$id_group

$id_group : 

Type

$id_customer

$id_customer : 

Type

$price

$price : 

Type

$from_quantity

$from_quantity : 

Type

$reduction

$reduction : 

Type

$reduction_tax

$reduction_tax : 

Type

$reduction_type

$reduction_type : 

Type

$from

$from : 

Type

$to

$to : 

Type

$definition

$definition : 

Type

$webserviceParameters

$webserviceParameters : 

Type

$_specificPriceCache

$_specificPriceCache : 

Type

$_cache_priorities

$_cache_priorities : 

Type

Methods

add()

add(  $autodate = true,   $nullValues = false) 

Parameters

$autodate
$nullValues

update()

update(  $null_values = false) 

Parameters

$null_values

delete()

delete() 

getByProductId()

getByProductId(  $id_product,   $id_product_attribute = false,   $id_cart = false) 

Parameters

$id_product
$id_product_attribute
$id_cart

deleteByIdCart()

deleteByIdCart(  $id_cart,   $id_product = false,   $id_product_attribute = false) 

Parameters

$id_cart
$id_product
$id_product_attribute

getIdsByProductId()

getIdsByProductId(  $id_product,   $id_product_attribute = false,   $id_cart) 

Parameters

$id_product
$id_product_attribute
$id_cart

getPriority()

getPriority(  $id_product) 

Parameters

$id_product

getSpecificPrice()

getSpecificPrice(  $id_product,   $id_shop,   $id_currency,   $id_country,   $id_group,   $quantity,   $id_product_attribute = null,   $id_customer,   $id_cart,   $real_quantity) 

Parameters

$id_product
$id_shop
$id_currency
$id_country
$id_group
$quantity
$id_product_attribute
$id_customer
$id_cart
$real_quantity

setPriorities()

setPriorities(  $priorities) 

Parameters

$priorities

deletePriorities()

deletePriorities() 

setSpecificPriority()

setSpecificPriority(  $id_product,   $priorities) 

Parameters

$id_product
$priorities

getQuantityDiscounts()

getQuantityDiscounts(  $id_product,   $id_shop,   $id_currency,   $id_country,   $id_group,   $id_product_attribute = null,   $all_combinations = false,   $id_customer) 

Parameters

$id_product
$id_shop
$id_currency
$id_country
$id_group
$id_product_attribute
$all_combinations
$id_customer

getQuantityDiscount()

getQuantityDiscount(  $id_product,   $id_shop,   $id_currency,   $id_country,   $id_group,   $quantity,   $id_product_attribute = null,   $id_customer) 

Parameters

$id_product
$id_shop
$id_currency
$id_country
$id_group
$quantity
$id_product_attribute
$id_customer

getProductIdByDate()

getProductIdByDate(  $id_shop,   $id_currency,   $id_country,   $id_group,   $beginning,   $ending,   $id_customer,   $with_combination_id = false) 

Parameters

$id_shop
$id_currency
$id_country
$id_group
$beginning
$ending
$id_customer
$with_combination_id

deleteByProductId()

deleteByProductId(  $id_product) 

Parameters

$id_product

duplicate()

duplicate(  $id_product = false) 

Parameters

$id_product

isFeatureActive()

isFeatureActive() : boolean

This method is allow to know if a feature is used or active

Returns

boolean

exists()

exists(  $id_product,   $id_product_attribute,   $id_shop,   $id_group,   $id_country,   $id_currency,   $id_customer,   $from_quantity,   $from,   $to,   $rule = false) 

Parameters

$id_product
$id_product_attribute
$id_shop
$id_group
$id_country
$id_currency
$id_customer
$from_quantity
$from
$to
$rule

_getScoreQuery()

_getScoreQuery(  $id_product,   $id_shop,   $id_currency,   $id_country,   $id_group,   $id_customer) 

score generation for quantity discount

Parameters

$id_product
$id_shop
$id_currency
$id_country
$id_group
$id_customer