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
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. # 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
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. # 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. 62 posts
  2. 17 subcategories
Sales & Billing
  1. 0 posts
  2. 2 subcategories
Welcome
  1. 4 posts
  2. 2 subcategories

Recent Discussions

VAT post code LT
Lithuanian VAT addresses are not loaded correctly. Postcode to be exact. You ca...
244 Hits
0 Votes
Posted on Saturday, October 28 2023, 10:39 AM
The Sold and Views cannot display at the Journal t
https://legenduniv.com/voting/index.php?route=information/information&inform...
308 Hits
0 Votes
Posted on Monday, October 09 2023, 09:23 AM
Bug in module settings
Some problems with last update 2.99, All module settings are on one page and not...
307 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...
    413 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...
    937 Hits
    0 Votes
    Posted on Thursday, April 06 2023, 08:09 AM