1. Amr
  2. Product Sale and Cost Price
  3. dinsdag, november 01 2022, 07:55 AM
  4.  Subscribe via email
after i setup the product i got this problem when i click in products section
Notice: Undefined index: cost_price in /home/jofast/storage/modification/admin/controller/catalog/product.php on line 375Notice: Undefined index: profit_amount in /home/jofast/storage/modification/admin/controller/catalog/product.php on line 376Notice: Undefined index: profit_percentage in /home/jofast/storage/modification/admin/controller/catalog/product.php on line 377Notice: Undefined index: cost_price in /home/jofast/storage/modification/admin/controller/catalog/product.php on line 375Notice: Undefined index: profit_amount in /home/jofast/storage/modification/admin/controller/catalog/product.php on line 376Notice: Undefined index: profit_percentage in /home/jofast/storage/modification/admin/controller/catalog/product.php on line 377

when i try to edit a product i get a white page when i click on save button
Comment
There are no comments made yet.
Add Comment
Accepted Answer
Dennis Buijs Accepted Answer
0
Votes
Undo
Hi

Issue solved. This is a small bug in OC 3.0.3.7 in the database connection, file system/library/db/mysqli.php at line 15.
Is
$this->connection->query("SET SESSION sql_mode = 'NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTION'";);
Must be
$this->connection->query("SET SESSION sql_mode = 'NO_ZERO_IN_DATE,NO_ENGINE_SUBSTITUTION'";);

I have change it and now all needed cost_price field are available.
If you would look at this file in OC 3.0.3.8 you we see the correct code, so in 3.0.3.8 it is fixed in OpenCart.

Best regards
Dennis
Comment
There are no comments made yet.
Add Comment
Amr Accepted Answer
0
Votes
Undo
no i don't have other cost_price extension installed
Comment
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. Product Sale and Cost Price
  3. # 1
Dennis Buijs Accepted Answer
0
Votes
Undo
I think I know the issue, do you have another sort of cost_price extension installed?
Comment
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. Product Sale and Cost Price
  3. # 2
Dennis Buijs Accepted Answer
0
Votes
Undo
Hi

Sorry to hear that, that is not how it should be.
Can you add in the tab 'Site Details' the login of you website, I will fix it straight away.

Best regards
Dennis
Comment
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. Product Sale and Cost Price
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Welcome

Categories

OpenCart Free Extension
  1. 1 post
  2. 2 subcategories
OpenCart Commercial Extension
  1. 73 posts
  2. 17 subcategories
Sales & Billing
  1. 0 posts
  2. 2 subcategories
Welcome
  1. 6 posts
  2. 2 subcategories

Recent Discussions

EU VAT Compliant issue
Hello, we use the EU VAT Compliant plugin. It is working correctly in opencar...
134 Hits
0 Votes
Posted on woensdag, december 11 2024, 09:26 AM
Error log issues for version 3.21
Hi Get this info in error log: 2024-10-08 23:45:32 - PHP Warning: Undefin...
370 Hits
0 Votes
Posted on dinsdag, oktober 08 2024, 09:53 PM
OWC EU VAT Compliant v3.15 - ocmod bug
When I edit user data and try to save, I get an error: Fatal error: Uncaught ...
530 Hits
0 Votes
Posted on woensdag, augustus 28 2024, 09:22 AM
Very Critical BUG: Swiss VAT IDs are accepted as V
Hello, the Extensions incorrectly accepts Swiss Tax numbers as valid VAT numb...
532 Hits
0 Votes
Posted on dinsdag, augustus 27 2024, 12:55 PM
The buyer does not see second address and postal c
The buyer does not see the Administrator's modified second address and postal co...
613 Hits
0 Votes
Posted on dinsdag, augustus 20 2024, 11:06 AM