Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Phoca Cart - complex e-commerce extension
CRM-Hero
Phoca Member
Posts: 31 Joined: 24 Sep 2023, 12:11
Post
by CRM-Hero » 14 Dec 2023, 15:33
Hi Folks,
Billing Address (see below) -> how to REMOVE the VAT-Line
Thanks
Roland
Current System:
Joomla 4.4.1
PhocaCart 4.0.10
Tags:
CRM-Hero
Phoca Member
Posts: 31 Joined: 24 Sep 2023, 12:11
Post
by CRM-Hero » 14 Dec 2023, 18:07
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.
Jan
Phoca Hero
Posts: 48402 Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:
Post
by Jan » 14 Dec 2023, 18:39
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
Jan
CRM-Hero
Phoca Member
Posts: 31 Joined: 24 Sep 2023, 12:11
Post
by CRM-Hero » 14 Dec 2023, 18:52
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
Jan
Phoca Hero
Posts: 48402 Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:
Post
by Jan » 14 Dec 2023, 18:59
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
CRM-Hero
Phoca Member
Posts: 31 Joined: 24 Sep 2023, 12:11
Post
by CRM-Hero » 14 Dec 2023, 19:37
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
Posts: 2819 Joined: 28 Nov 2010, 17:20
Post
by christine » 14 Dec 2023, 22:43
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
CRM-Hero
Phoca Member
Posts: 31 Joined: 24 Sep 2023, 12:11
Post
by CRM-Hero » 14 Dec 2023, 23:28
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;
}
Nidzo
Phoca Professional
Posts: 387 Joined: 07 Nov 2018, 14:55
Post
by Nidzo » 15 Dec 2023, 16:24
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
CRM-Hero
Phoca Member
Posts: 31 Joined: 24 Sep 2023, 12:11
Post
by CRM-Hero » 15 Dec 2023, 20:18
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