Post by djordje » Tue Feb 26, 2019 5:54 pm

Hello everybody. As the title says, I'm trying to remove the VAT from the cart drop-down menu, but have had no success so far.

I have tried editing the cart.twig in the template/common folder only to have the whole cart display nothing.
Here is a screenshot of the part I want to remove, if it helps: https://imgur.com/hJKLPLJ

If anybody can point me in the right direction I would be very grateful.

Thanks in advance.
Last edited by djordje on Sun Mar 03, 2019 6:21 pm, edited 1 time in total.

User avatar
New member

Posts

Joined
Fri Oct 14, 2016 4:23 pm


Post by paulfeakins » Tue Feb 26, 2019 7:08 pm

Go to: admin > System > Settings [Edit] > Option [Tab] > Taxes [Section] > Display Prices With Tax [Radio Button]
Set to: "Yes"

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 selmark.advertising » Wed Feb 27, 2019 3:38 am

You can hide that entry using some CSS.
Please post your website address


Posts

Joined
Mon Feb 25, 2019 6:53 pm

Post by paulfeakins » Wed Feb 27, 2019 4:08 am

selmark.advertising wrote:
Wed Feb 27, 2019 3:38 am
You can hide that entry using some CSS.
Please post your website address
You can, but why would you when it can be done from the admin?

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 ashon » Thu Feb 28, 2019 2:28 am

paulfeakins wrote:
Tue Feb 26, 2019 7:08 pm
Go to: admin > System > Settings [Edit] > Option [Tab] > Taxes [Section] > Display Prices With Tax [Radio Button]
Set to: "Yes"
He might only want the VAT to show on final page of checkout, Maybe ?

New member

Posts

Joined
Sat Apr 18, 2015 2:18 am

Post by paulfeakins » Thu Feb 28, 2019 5:10 pm

ashon wrote:
Thu Feb 28, 2019 2:28 am
He might only want the VAT to show on final page of checkout, Maybe ?
Maybe indeed :)

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 djordje » Fri Mar 01, 2019 1:59 am

I tried setting the "Display Prices" to yes, but nothing happens. Do I perhaps need do change some more stuff for it to work or?

User avatar
New member

Posts

Joined
Fri Oct 14, 2016 4:23 pm


Post by paulfeakins » Fri Mar 01, 2019 5:29 pm

Hmm, maybe try the CSS method - if you paste a link to the site we can advise.

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 djordje » Fri Mar 01, 2019 10:38 pm

Here is the link to the website http://test.pratico.rs/. I'm afraid I wouldn't know what to do with the CSS, I tried editing some stuff but with no success.

User avatar
New member

Posts

Joined
Fri Oct 14, 2016 4:23 pm


Post by paulfeakins » Fri Mar 01, 2019 10:42 pm

Use F12 and right-click to find the class to edit:
Image

In this case you might want some CSS a bit like (not tested):

Code: Select all

.cart-totals tr:first-child {
display: none;
}

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 djordje » Sun Mar 03, 2019 6:06 pm

I finally got it to work. The code just needed to have "td" after "tr:first-child", like this:

Code: Select all

.cart-totals tr:first-child td{
	display:none
}
Thanks again paulfeakins.

User avatar
New member

Posts

Joined
Fri Oct 14, 2016 4:23 pm


Post by paulfeakins » Mon Mar 04, 2019 5:19 pm

That's strange, if hiding the <td> works then hiding its parent the <tr> should definitely work.

Glad you got it sorted though!

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
Who is online

Users browsing this forum: No registered users and 12 guests