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

Recent Discussions

License activation
Hello, I have bought EU VAT Compliant module with unlimited domains license. ...
266 Hits
0 Votes
Posted on woensdag, maart 06 2024, 02:30 PM
  • Resolved
  • Delivery address problem
    Hi, if you specify a different shipping address from the payment address, it doe...
    270 Hits
    0 Votes
    Posted on donderdag, februari 01 2024, 12:48 PM
  • Resolved
  • EU VAT Compliant problem
    Hello, we have bought your extension EU VAT Compliant in the Opencart Marketplac...
    344 Hits
    0 Votes
    Posted on donderdag, februari 15 2024, 10:17 AM
  • Resolved
  • Does "short descriptions" work with Open
    Does short descriptions work with open cart 4?...
    410 Hits
    0 Votes
    Posted on woensdag, december 20 2023, 07:50 AM
  • Resolved
  • VAT post code LT
    Lithuanian VAT addresses are not loaded correctly. Postcode to be exact. You ca...
    533 Hits
    0 Votes
    Posted on zaterdag, oktober 28 2023, 10:39 AM
  • Resolved