\DiscountCore

Summary

Methods
Properties
Constants
__get()
__set()
__call()
add()
update()
getIdByName()
getCustomerDiscounts()
getVouchersToCartDisplay()
getValue()
discountExists()
createOrderDiscount()
display()
No public properties found
PERCENT
AMOUNT
FREE_SHIPPING
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

PERCENT

PERCENT

AMOUNT

AMOUNT

FREE_SHIPPING

FREE_SHIPPING

Methods

__get()

__get(  $key) 

Parameters

$key

__set()

__set(  $key,   $value) 

Parameters

$key
$value

__call()

__call(  $method,   $args) 

Parameters

$method
$args

add()

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

Parameters

$autodate
$nullValues
$categories

update()

update(  $autodate = true,   $nullValues = false,   $categories = null) 

Parameters

$autodate
$nullValues
$categories

getIdByName()

getIdByName(  $code) 

Parameters

$code

getCustomerDiscounts()

getCustomerDiscounts(  $id_lang,   $id_customer,   $active = false,   $includeGenericOnes = true,   $hasStock = false, \Cart  $cart = null) 

Parameters

$id_lang
$id_customer
$active
$includeGenericOnes
$hasStock
\Cart $cart

getVouchersToCartDisplay()

getVouchersToCartDisplay(  $id_lang,   $id_customer) 

Parameters

$id_lang
$id_customer

getValue()

getValue(  $nb_discounts,   $order_total_products,   $shipping_fees,   $id_cart = false,   $useTax = true, \Currency  $currency = null, \Shop  $shop = null) 

Parameters

$nb_discounts
$order_total_products
$shipping_fees
$id_cart
$useTax
\Currency $currency
\Shop $shop

discountExists()

discountExists(  $discountName,   $id_discount) 

Parameters

$discountName
$id_discount

createOrderDiscount()

createOrderDiscount(  $order,   $productList,   $qtyList,   $name,   $shipping_cost = false,   $id_category,   $subcategory) 

Parameters

$order
$productList
$qtyList
$name
$shipping_cost
$id_category
$subcategory

display()

display(  $value,   $type,   $currency = null) 

Parameters

$value
$type
$currency