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

Recent Discussions

How to improve OpenCart performance
I have a website using OpenCart so I have a question to ask everyone how to opt...
27 Hits
0 Votes
Posted on Wednesday, March 27 2024, 08:10 AM
License activation
Hello, I have bought EU VAT Compliant module with unlimited domains license. ...
191 Hits
0 Votes
Posted on Wednesday, March 06 2024, 02:30 PM
  • Resolved
  • Delivery address problem
    Hi, if you specify a different shipping address from the payment address, it doe...
    224 Hits
    0 Votes
    Posted on Thursday, February 01 2024, 12:48 PM
    EU VAT Compliant problem
    Hello, we have bought your extension EU VAT Compliant in the Opencart Marketplac...
    272 Hits
    0 Votes
    Posted on Thursday, February 15 2024, 10:17 AM
    Does "short descriptions" work with Open
    Does short descriptions work with open cart 4?...
    361 Hits
    0 Votes
    Posted on Wednesday, December 20 2023, 07:50 AM