Default value where exactly and for what purpose?
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Product page doesn't have shipping method selection by default. But if you just want to have a default value for Weight option, you can simply set it right in your database, "product" table.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
I was set default value in database to 0.01 but it still show 0.00000 in admin data weight field, and if I save product without enter value it register 0.00
Maybe something in code must be changed ? image in att
Maybe something in code must be changed ? image in att
Attachments
weight.jpg (299.17 KiB) Viewed 810 times
OC version?Maybe something in code must be changed ?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
In admin/controller/catalog/product.php file,
find:
replace with:
find:
Code: Select all
$data['weight'] = '';
Code: Select all
$data['weight'] = '0.01';
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 278 guests