Page 1 of 2

Billing Address -> how to REMOVE the VAT-Line

Posted: 14 Dec 2023, 15:33
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

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

Posted: 14 Dec 2023, 18:07
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.

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

Posted: 14 Dec 2023, 18:39
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

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

Posted: 14 Dec 2023, 18:52
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

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

Posted: 14 Dec 2023, 18:59
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

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

Posted: 14 Dec 2023, 19:37
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

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

Posted: 14 Dec 2023, 22:43
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

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

Posted: 14 Dec 2023, 23:28
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;    
}

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

Posted: 15 Dec 2023, 16:24
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

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

Posted: 15 Dec 2023, 20:18
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