thanks
Open admin/controller/extension/total/sub_total.php and find
Code: Select all
if (isset($this->request->post['sub_total_sort_order'])) {
$data['sub_total_sort_order'] = $this->request->post['sub_total_sort_order'];
} else {
$data['sub_total_sort_order'] = $this->config->get('sub_total_sort_order');
}
Code: Select all
if (isset($this->request->post['total_sub_total_sort_order'])) {
$data['total_sub_total_sort_order'] = $this->request->post['total_sub_total_sort_order'];
} else {
$data['total_sub_total_sort_order'] = $this->config->get('total_sub_total_sort_order');
}
Code: Select all
<input type="text" name="sub_total_sort_order" value="{{ sub_total_sort_order }}" placeholder="{{ entry_sort_order }}" id="input-sort-order" class="form-control" />
Code: Select all
<input type="text" name="total_sub_total_sort_order" value="{{ total_sub_total_sort_order }}" placeholder="{{ entry_total_sort_order }}" id="input-sort-order" class="form-control" />
You have the original codes above if needed.
Please note that I did not perform this portion of the github post:
Code: Select all
- (0, 'total_sub_total', 'sub_total_sort_order', '1', 0),
+ (0, 'total_sub_total', 'total_sub_total_sort_order', '1', 0),
Code: Select all
'total_sub_total', 'total_sub_total_status'
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
nightwing wrote: ↑Tue Mar 16, 2021 10:14 pmUsing 3.0.3.2 Default theme, after doing some research I have come across: https://github.com/opencart/opencart/co ... 704aa7aeba. I have applied both changes, recommended by cyclops12 and in the github post however, its still not working properly. The Sort order now saves in the admin panel, however if I add any number other than 0, it kicks out the other total extensions like shipping, store credit. If I disable sub-total, it 0 the order total.
Please note that I did not perform this portion of the github post:as after checking oc_setting I only seeCode: Select all
- (0, 'total_sub_total', 'sub_total_sort_order', '1', 0), + (0, 'total_sub_total', 'total_sub_total_sort_order', '1', 0),
Code: Select all
'total_sub_total', 'total_sub_total_status'
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
See these.
https://github.com/opencart/opencart/co ... c42d0eabc8
https://github.com/opencart/opencart/co ... 9dde938612
https://github.com/opencart/opencart/co ... 704aa7aeba
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
All those changes were already made. I uninstalled, cleared mod and cache, reinstalled, and enabled the extension, same issue. As I was saying before, I did not perform the changes at the end of this file : https://github.com/opencart/opencart/co ... 704aa7aeba
Code: Select all
@@ -3345,7 +3345,7 @@ INSERT INTO `oc_setting` (`store_id`, `code`, `key`, `value`, `serialized`) VALU
(0, 'shipping_flat', 'shipping_flat_tax_class_id', '9', 0),
(0, 'shipping_flat', 'shipping_flat_cost', '5.00', 0),
(0, 'total_shipping', 'total_shipping_sort_order', '3', 0),
-(0, 'total_sub_total', 'sub_total_sort_order', '1', 0),
+(0, 'total_sub_total', 'total_sub_total_sort_order', '1', 0),
(0, 'total_sub_total', 'total_sub_total_status', '1', 0),
(0, 'total_tax', 'total_tax_status', '1', 0),
(0, 'total_total', 'total_total_sort_order', '9', 0),
sw!tch wrote: ↑Fri Mar 19, 2021 2:20 amUninstall the module and then activate it again after the changes. Clear your theme and modification cache.
See these.
https://github.com/opencart/opencart/co ... c42d0eabc8
https://github.com/opencart/opencart/co ... 9dde938612
https://github.com/opencart/opencart/co ... 704aa7aeba
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
sub_total.php (controller)
Code: Select all
if (isset($this->request->post['total_sub_total_sort_order'])) {
$data['total_sub_total_sort_order'] = $this->request->post['total_sub_total_sort_order'];
} else {
$data['total_sub_total_sort_order'] = $this->config->get('total_sub_total_sort_order');
}
Code: Select all
<input type="text" name="total_sub_total_sort_order" value="{{ total_sub_total_sort_order }}" placeholder="{{ entry_sort_order }}" id="input-sort-order" class="form-control" />
Code: Select all
'sort_order' => $this->config->get('total_sub_total_sort_order')
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
Code: Select all
SELECT * FROM `oc_setting` WHERE `key` = 'total_sub_total_sort_order';
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
sw!tch wrote: ↑Fri Mar 19, 2021 5:14 amHow many results are coming up? What is the code value?Code: Select all
SELECT * FROM `oc_setting` WHERE `key` = 'total_sub_total_sort_order';
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
How many results are coming up? 1
What is the code value? total_sub_total
nightwing wrote: ↑Fri Mar 19, 2021 5:37 amOne moment...sw!tch wrote: ↑Fri Mar 19, 2021 5:14 amHow many results are coming up? What is the code value?Code: Select all
SELECT * FROM `oc_setting` WHERE `key` = 'total_sub_total_sort_order';
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
Need more info. Screenshot or something,
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
When sub_total is 0
https://ibb.co/d7VvPG9
When sub_total is not 0, for example 6
https://ibb.co/6HJqqBP
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
-
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
Users browsing this forum: No registered users and 457 guests