1. Amr
  2. Product Sale and Cost Price
  3. Tuesday, 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. 60 posts
  2. 17 subcategories
Sales & Billing
  1. 0 posts
  2. 2 subcategories
Welcome
  1. 4 posts
  2. 2 subcategories

Recent Discussions

Bug in module settings
Some problems with last update 2.99, All module settings are on one page and not...
84 Hits
0 Votes
Posted on Wednesday, September 13 2023, 10:26 AM
  • Resolved
  • Short description extension is not working
    I purchased the extension ( Order I'd : #1287623 ) and installed it. Licence cod...
    193 Hits
    0 Votes
    Posted on Thursday, July 27 2023, 10:43 AM
    Region / State problem
    When the module is enabled and a valid VAT number is entered, it fills in the da...
    493 Hits
    0 Votes
    Posted on Thursday, April 06 2023, 08:09 AM
    EU VAT Compliant with Quick Checkout -> Empty f
    Hello, we have bought your extension EU VAT Compliant in the Opencart Marketplac...
    525 Hits
    0 Votes
    Posted on Wednesday, January 04 2023, 02:22 PM
  • Resolved
  • Support Inventory Report
    Hi I need to get Inventory Report (https://www.opencart.com/index.php?route=m...
    562 Hits
    0 Votes
    Posted on Wednesday, November 23 2022, 04:09 PM
  • Resolved