Billing Address -> how to REMOVE the VAT-Line

Phoca Cart - complex e-commerce extension
User avatar
CRM-Hero
Phoca Member
Phoca Member
Posts: 31
Joined: 24 Sep 2023, 12:11

Billing Address -> how to REMOVE the VAT-Line

Post by CRM-Hero »

Hi Folks,
  • Billing Address (see below) -> how to REMOVE the VAT-Line
Thanks
Roland

Image

Current System:
Joomla 4.4.1
PhocaCart 4.0.10

Tags:
User avatar
CRM-Hero
Phoca Member
Phoca Member
Posts: 31
Joined: 24 Sep 2023, 12:11

Re: Billing + Shipment Address -> how to REMOVE the VAT-Line

Post by CRM-Hero »

  • It also shows in the Shipping address.
  • Deactivating in the "Form Fields" is no option, because then customers could not fill-in the required info.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Billing Address -> how to REMOVE the VAT-Line

Post by Jan »

Hi, sorry, I don't understand, you wan to remove the VAT field but it cannot be removed because user needs to add value there?

In such case, just use CSS to hide it :idea:

Jan
If you find Phoca extensions useful, please support the project
User avatar
CRM-Hero
Phoca Member
Phoca Member
Posts: 31
Joined: 24 Sep 2023, 12:11

Re: Billing Address -> how to REMOVE the VAT-Line

Post by CRM-Hero »

Hi Jan,
  • no, the info in the address-section of the invoice (re. picture) is not desired (remove)
  • can you give me hint which tags and commands to use in CSS ?
Thanks Roland
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Billing Address -> how to REMOVE the VAT-Line

Post by Jan »

I still don't understand. Do you want to remove the VAT part from the invoice?

- if yes, then there are two parts:

- html invoice - then this can be done per CSS
- PDF invoice - this needs to be done per overriding the order layout (e.g. per template):

components/com_phocacart/layouts/order.php

Jan
If you find Phoca extensions useful, please support the project
User avatar
CRM-Hero
Phoca Member
Phoca Member
Posts: 31
Joined: 24 Sep 2023, 12:11

Re: Billing Address -> how to REMOVE the VAT-Line

Post by CRM-Hero »

  • html invoice, please
  • can you help, with tags and commands to use in CSS ?
Jan wrote: 14 Dec 2023, 18:59 Do you want to remove the VAT part from the invoice?
- html invoice - then this can be done per CSS
christine
Phoca Hero
Phoca Hero
Posts: 2818
Joined: 28 Nov 2010, 17:20

Re: Billing Address -> how to REMOVE the VAT-Line

Post by christine »

Hi,

you could try with this Code (into your custom.css or user.css of your template):

Code: Select all

input#jform_vat_1.form-control {
display: none;    
}
Kind regards
Christine
User avatar
CRM-Hero
Phoca Member
Phoca Member
Posts: 31
Joined: 24 Sep 2023, 12:11

Re: Billing Address -> how to REMOVE the VAT-Line

Post by CRM-Hero »

Hi Christine,

unfortunately it does not work in the html-invoice (email sent to customer) .

What your css-snippet does is to hide this VAT-field in the registration form-field. But there it is needed; only the invoice shall be corrected.

Any other ideas ?

Thanks Roland
christine wrote: 14 Dec 2023, 22:43

Code: Select all

input#jform_vat_1.form-control {
display: none;    
}
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 386
Joined: 07 Nov 2018, 14:55

Re: Billing Address -> how to REMOVE the VAT-Line

Post by Nidzo »

Go to Phoca Cart > Orders
Select view invoice icon in Action Column and there inspect element and hide it with CSS. If there is no CSS class asigned to VAT filed, you will need to create override of order.php
User avatar
CRM-Hero
Phoca Member
Phoca Member
Posts: 31
Joined: 24 Sep 2023, 12:11

Re: Billing Address -> how to REMOVE the VAT-Line

Post by CRM-Hero »

Hi Nidzo,
  • unfortunately no CSS-class assigned (see picture).
  • Have tried to look for "vat_1" in order.php but did not succeed.
    (This is beyond my expertise)
Thanks Roland
Nidzo wrote: 15 Dec 2023, 16:24 - Select view invoice icon in Action Column and there inspect element and hide it with CSS.
- If there is no CSS class asigned to VAT filed, you will need to create override of order.php
Image
Post Reply