Post by Dutch Pride Code » Sat Feb 22, 2020 1:57 am

How do you remove estimated shipping and taxes from the cart page? I tried looking at Extensions > Extensions > Order totals but removing taxes also removes it from the cart price table, that's not what I want. What piece of code can I comment out using <!-- this --> ?

User avatar
Active Member

Posts

Joined
Sun Jan 26, 2020 9:46 pm

Post by straightlight » Sat Feb 22, 2020 3:58 am

With HTML5, using <!-- and --> are not suggested. Rather, edit your catalog/view/theme/<your_theme>/template/checkout/cart.twig file or do it by CSS. Then, follow this FAQ: viewtopic.php?f=134&t=215776#p718325

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by kestas » Sat Feb 22, 2020 4:28 am

straightlight wrote:
Sat Feb 22, 2020 3:58 am
With HTML5, using <!-- and --> are not suggested. Rather, edit your catalog/view/theme/<your_theme>/template/checkout/cart.twig file or do it by CSS. Then, follow this FAQ: viewtopic.php?f=134&t=215776#p718325
If I correctly understand question, I don't think so...
If you need remove it from mini cart or cart. You should edit for minicart this file catalog/controller/common/cart.php
In mentioned file find:

Code: Select all

$data['totals'][] = array(
				'title' => $total['title'],
				'text'  => $this->currency->format($total['value'], $this->session->data['currency']),
			);
replace with:

Code: Select all

if ($total['code'] == 'total') {
    $data['totals'][] = array(
				'title' => $total['title'],
				'text'  => $this->currency->format($total['value'], $this->session->data['currency']),
			);
}
After that modification will show just only total.

The same in catalog/controller/checkout/cart.php file...

Of course the best way to use OCMOD for that modifications.

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by Dutch Pride Code » Sat Feb 22, 2020 5:30 am

Actually when you view the cart (not mini cart) you can enter a coupon and voucher code, and between those two there is a collapsible panel to calculate taxes and shipping (default OC theme, version 3.0.3.2). I want this specific part to be removed but not remove the taxes at order total.

User avatar
Active Member

Posts

Joined
Sun Jan 26, 2020 9:46 pm

Post by sw!tch » Sat Feb 22, 2020 6:32 am

Extensions -> Order Totals -> Shipping and set shipping Estimator to Disabled?

Did you try that? ^

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by Dutch Pride Code » Sat Feb 22, 2020 3:46 pm

sw!tch wrote:
Sat Feb 22, 2020 6:32 am
Extensions -> Order Totals -> Shipping and set shipping Estimator to Disabled?

Did you try that? ^
Not yet but this is what I was looking for!
Thanks ;D

User avatar
Active Member

Posts

Joined
Sun Jan 26, 2020 9:46 pm

Post by paulfeakins » Mon Feb 24, 2020 6:58 pm

straightlight wrote:
Sat Feb 22, 2020 3:58 am
With HTML5, using <!-- and --> are not suggested.
Really? Got a link about this?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by paulfeakins » Mon Feb 24, 2020 6:58 pm

jonagoldapple wrote:
Sat Feb 22, 2020 3:46 pm
Not yet but this is what I was looking for!
Thanks ;D
So can we mark [SOLVED]?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by straightlight » Mon Feb 24, 2020 7:32 pm

paulfeakins wrote:
Mon Feb 24, 2020 6:58 pm
jonagoldapple wrote:
Sat Feb 22, 2020 3:46 pm
Not yet but this is what I was looking for!
Thanks ;D
So can we mark [SOLVED]?
Already did since the OP did mentioned this is the solution he was looking for.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by paulfeakins » Mon Feb 24, 2020 7:38 pm

straightlight wrote:
Mon Feb 24, 2020 7:32 pm
paulfeakins wrote:
Mon Feb 24, 2020 6:58 pm
So can we mark [SOLVED]?
Already did since the OP did mentioned this is the solution he was looking for.
Great!

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by Dutch Pride Code » Mon Feb 24, 2020 8:03 pm

Yes, it has been solved!
Thanks all :D

User avatar
Active Member

Posts

Joined
Sun Jan 26, 2020 9:46 pm
Who is online

Users browsing this forum: Bing [Bot] and 103 guests