Post by foobarac » Sun Jul 25, 2021 11:08 am

Hi Nightwing,

Did you end up resolving this problem ? I am having the same issue.

If I understand this correctly there is no fix, it is required to have the SUB-TOTAL as the first of all totals in the sort order otherwise totals like COUPONS with a sort order less than SUB-TOTAL will be not be shown in the checkout and excluded from the calculations ?

New member

Posts

Joined
Fri Sep 21, 2018 9:46 pm

Post by ndim_pro » Fri Jul 19, 2024 3:17 pm

I have to say that this did the trick for me. Thanks!
My model file did not have the "total_" prefix.

nightwing wrote:
Fri Mar 19, 2021 4:35 am
Hey sw!tch the below are in my files, I uninstalled the extension, cleared mod, cleared both caches and reinstalled, same effect.
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');
		}
sub_total.twig

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" />
catalog > model (sub_total.php)

Code: Select all

'sort_order' => $this->config->get('total_sub_total_sort_order')
[/b]
sw!tch wrote:
Fri Mar 19, 2021 4:17 am
You dont need the upload/install/opencart.sql change. Double check your changes again, its important you clear your theme cache as well.

User avatar
New member

Posts

Joined
Fri Nov 04, 2016 4:49 pm
Location - Thessaloniki, Greece
Who is online

Users browsing this forum: jog2le and 17 guests