Jump to content
  • 0

[Gelöst] ContextErrorException in Product.php


Go to solution Solved by Klemart3D,

Question

3 answers to this question

Recommended Posts

  • 0
  • Solution

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

Share this post


Link to post
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

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More