DEBUG_MODE
DEBUG_MODE
validateOrder(integer $id_cart, integer $id_order_state, float $amount_paid, string $payment_method = 'Unknown', null $message = null, array $extra_vars = array(), null $currency_special = null, boolean $dont_touch_amount = false, boolean $secure_key = false, \Shop $shop = null) : boolean
Validate an order in database Function called from a payment module
| integer | $id_cart | |
| integer | $id_order_state | |
| float | $amount_paid | Amount really paid by customer (in the default currency) |
| string | $payment_method | Payment method (eg. 'Credit card') |
| null | $message | Message to attach to order |
| array | $extra_vars | |
| null | $currency_special | |
| boolean | $dont_touch_amount | |
| boolean | $secure_key | |
| \Shop | $shop |
getEmailTemplateContent(string $template_name, integer $mail_type, array $var) : string
Fetch the content of $template_name inside the folder current_theme/mails/current_iso_lang/ if found, otherwise in mails/current_iso_lang
| string | $template_name | template name with extension |
| integer | $mail_type | Mail::TYPE_HTML or Mail::TYPE_TXT |
| array | $var | list send to smarty |