Post by jonagoldapple » 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 --> ?

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

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


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 jonagoldapple » 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.

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? ^

Backup and [ learn how to recover ] before you make any changes.


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by jonagoldapple » 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

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?

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, 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]?

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, 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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


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!

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by jonagoldapple » Mon Feb 24, 2020 8:03 pm

Yes, it has been solved!
Thanks all :D

Active Member

Posts

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

Users browsing this forum: No registered users and 19 guests