Page 1 of 1

[SOLVED] - Remove estimated shipping and taxes panel from cart page

Posted: Sat Feb 22, 2020 1:57 am
by Dutch Pride Code
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 --> ?

Re: Remove estimated shipping and taxes panel from cart page

Posted: Sat Feb 22, 2020 3:58 am
by straightlight
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

Re: Remove estimated shipping and taxes panel from cart page

Posted: Sat Feb 22, 2020 4:28 am
by kestas
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.

Re: Remove estimated shipping and taxes panel from cart page

Posted: Sat Feb 22, 2020 5:30 am
by Dutch Pride Code
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.

Re: Remove estimated shipping and taxes panel from cart page

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

Did you try that? ^

Re: Remove estimated shipping and taxes panel from cart page

Posted: Sat Feb 22, 2020 3:46 pm
by Dutch Pride Code
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

Re: Remove estimated shipping and taxes panel from cart page

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

Re: Remove estimated shipping and taxes panel from cart page

Posted: Mon Feb 24, 2020 6:58 pm
by paulfeakins
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]?

Re: Remove estimated shipping and taxes panel from cart page

Posted: Mon Feb 24, 2020 7:32 pm
by straightlight
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.

Re: Remove estimated shipping and taxes panel from cart page

Posted: Mon Feb 24, 2020 7:38 pm
by paulfeakins
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!

Re: [SOLVED] - Remove estimated shipping and taxes panel from cart page

Posted: Mon Feb 24, 2020 8:03 pm
by Dutch Pride Code
Yes, it has been solved!
Thanks all :D