Jump to content
  • 0

[Gelöst] ContextErrorException in Product.php


viktormk25

Question

3 answers to this question

Recommended Posts

  • 0

Problème :

Zitat

(1/1) ContextErrorException

Notice: Undefined index: unit_price_ratio

in Product.php line 4798

 
     


Lösung: In der Datei /classes/Product.php, in Zeile 4798, ersetzen:

$row['unit_price'] = ($row['unit_price_ratio'] != 0  ? $row['price'] / $row['unit_price_ratio'] : 0);

durch:

$row['unit_price'] = ((isset($row['unit_price_ratio']) && $row['unit_price_ratio'] != 0) ? $row['price'] / $row['unit_price_ratio'] : 0);

 

  • Like 1
Link to comment
Share on other sites

  • 0
On 12/24/2018 at 3:21 PM, Klemart3D said:

Problème :


Lösung: In der Datei /classes/Product.php, in Zeile 4798, ersetzen:


$row['unit_price'] = ($row['unit_price_ratio'] != 0  ? $row['price'] / $row['unit_price_ratio'] : 0);

durch:


$row['unit_price'] = ((isset($row['unit_price_ratio']) && $row['unit_price_ratio'] != 0) ? $row['price'] / $row['unit_price_ratio'] : 0);

 

Parfaite , merci pour la réponse

Link to comment
Share on other sites

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...