Bug Prestashop 1.7.4


  • Default avatar
    mikekiy    
     5 years ago
    0

    Hello,

    Using Prestashop 1.7.4.4 and php 7.2 we have found an issue

    1. /overrides/classes/CartRule.php

    line: 86: $value_notax;

    should be changed to:

    $value_notax = 0;
  • Your avatar
    seyi    
     5 years ago
    0

    Hello,

    Thanks for pointing it out.  This is already fixed in the latest.  Overrides do not get updated on update, since you or another extension can make changes within overrides.

    If you want the latest overrides, you can find them in the  folder:

    www/modules/awocoupon/helpers/override/17

  • Default avatar
    mikekiy    
     5 years ago
    0

    Thank you. Also update:
     in modules/awocoupon/controllers/admin/AdminAwoCouponController.php

    change:

    public function setMedia() {

    to

    public function setMedia($isNewTheme = false) {

    Next is:

    /modules/awocoupon/library/class-awocoupon-library-discount.php

    line: 4446 sometimes $customer_num_uses is not defined. Make sure it is defined at line: 4402 with:
    $customer_num_uses = 0;


  • Default avatar
    mikekiy    
     5 years ago
    0

    Also depending on version support change:

    /classes/Cart.php line: 72:

            $order_id = Order::getOrderByCartId($this->id);

    to

            $order_id = Order::getCartById($this->id);
  • Default avatar
    mikekiy    
     5 years ago
    0

    Same file previous post:

    CartCore::getCartRules($filter = CartRule::FILTER_ACTION_ALL)

    should be

    CartCore::getCartRules($filter = CartRule::FILTER_ACTION_ALL, $autoAdd = true)
  • Default avatar
    mikekiy    
     5 years ago
    0

    Next is:
    modules/awocoupon/helper/class-awocoupon-helper-update.php
    line: 71

                copy($myopath.'/AdminAwoCoupon.php',_PS_MODULE_DIR_.'awocoupon/AdminAwoCoupon.php');

    $myopath is not defined.