Hello i have a worry, a line at the top of my site, not on all the pages but almost,
"Warning: Division by zero in /home/chrispasbp/www/system/storage/modification/system/library/cart.php on line 347Warning: Library / cart.php on line 347 "
This happens when I set up the discount pack pro module
I have version 2.1.0.1 opencart
Here is my page code at level 347
Is there a code to add or delete, I am novice, thank you for helping me
$price must be zero at that point
change the line to
you will probably need to change it in the mod itself as the modification will soon get overwritten when other changes are made.
In fact you should really alert the mod developer to this as a future release would overwrite your modifcation aswell.
change the line to
Code: Select all
$discount = ($price>0)?round( ($discount / $price) * 100, 2 ):0;
In fact you should really alert the mod developer to this as a future release would overwrite your modifcation aswell.
Who is online
Users browsing this forum: No registered users and 217 guests