Jump to content

Undefined variable SpecificPrice.php line 179


montaneias

Recommended Posts

Hi all,

this is my first post in the forum, i'm not a programmer however i'm used to do some modifications on my websites.

 

After search everywhere  and can't find a solution.

 

I'm using prestashop 1.6.1.11

 

On my server error log i have this error:

[Wed Mar 01 12:35:56.008403 2017] [:error] [pid 16833] [client 000.000.000.000:13896] PHP Notice:  Undefined variable: id_shop\\ in /var/www/html/prestashop/classes/SpecificPrice.php on line 179

On my /classes/SpecificPrice.php

 /**
     * score generation for quantity discount
     */
    protected static function _getScoreQuery($id_product, $id_shop, $id_currency, $id_country, $id_group, $id_customer)
    {
        $select = '(';

        $priority = SpecificPrice::getPriority($id_product);
        foreach (array_reverse($priority) as $k => $field) {
            if (!empty($field)) {
                $select .= ' IF (`'.bqSQL($field).'` = '.(int)$$field.', '.pow(2, $k + 1).', 0) + ';
            }
        }

i have copy this file from original prestashop 1.6.1.11.zip and overwrite it, but it is still generating the error.

 

At this moment i can't tell where is this error coming from, anyone can help me?

 

Thank you

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...