It is preferable to use crypt() which natively supports several hashing algorithms or the function hash() which supports more variants than crypt() rather than using the common hashing algorithms such as md5, sha1 or sha256 because they are conceived to be fast. hence, hashing passwords with these algorithms can vulnerability
COALESCE to avoid that outcome.
SELECT COALESCE(SUM(column),0) FROM table WHERE ...
need to remove the file class_index.php file in /cache
$cart_rule = new CartRule(); $cart_rule->id_customer = $this->context->cart->id_customer; $cart_rule->name = array( Configuration::get('PS_LANG_DEFAULT') => $this->l('CartRule title') ); $cart_rule->date_from = date('Y-m-d H:i:s', time()); $cart_rule->date_to = date('Y-m-d H:i:s', time() + 24 * 3600); $cart_rule->quantity = 1; $cart_rule->quantity_per_user = 1; $cart_rule->minimum_amount_currency = $this->context->cart->id_currency; $cart_rule->reduction_currency = $this->context->cart->id_currency; $cart_rule->free_shipping = true; $cart_rule->reduction_amount = 50; #discount value $cart_rule->active = 1; $cart_rule->add(); // Add cart rule to cart and in order $values = array( 'tax_incl' => $cart_rule->getContextualValue(true), 'tax_excl' => $cart_rule->getContextualValue(false) ); $this->context->cart->addCartRule($cart_rule->id, $cart_rule->name[Configuration::get('PS_LANG_DEFAULT')], $values);
$order->total_paid_tax_incl = (float)Tools::ps_round((float)$this->context->cart->getOrderTotal(true, Cart::BOTH, $order->product_list, $id_carrier), 2);
In ps_shop_url table you must set
In ps_configuration set
Also go at BackOffice -> Preferences -> SEO & URLs and click [Save] – this will regenerate your .htaccess file and will add the /myProject/ where needed.
That should be all.