attribute type text area

Phoca Cart - complex e-commerce extension
vitoricciardi
Phoca Member
Phoca Member
Posts: 32
Joined: 14 Oct 2020, 17:45

attribute type text area

Post by vitoricciardi »

Hi
I need a text area for customers to enter notes on the item they buy, i use attribute with type "text area" so customer can add text, I see it on checkout but in the order mail I see title's attribute but not the customer text. Where is my mistake?
Thank You
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: attribute type text area

Post by Jan »

Hi, if you set the textarea attribute, user can set it in shop:
Image

It is displayed in checkout:
Image

and in administration in order:
Image

but not in documents like invoice, etc.
Image

Because invoice is actually a public document, displayed e.g. officials, accounting firms, etc. and the text area can include sensitive private information. So in fact such information should not be displayed in public official documents.

But if you need to display it, the easiest way to do is per customization - creating own override for following layout:
components\com_phocacart\layouts\order.php

Jan
If you find Phoca extensions useful, please support the project
vitoricciardi
Phoca Member
Phoca Member
Posts: 32
Joined: 14 Oct 2020, 17:45

Re: attribute type text area

Post by vitoricciardi »

I did it, thank you
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: attribute type text area

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply