Page 1 of 1

form input name for comment

Posted: 11 Feb 2016, 16:53
by obayesshelton
Hi,

Very simple one but what is the input name for the comment field in the order, I won't user to be able to input something on the checkout

Thanks
Oli

Re: form input name for comment

Posted: 11 Feb 2016, 17:03
by aimeos
obayesshelton wrote: Very simple one but what is the input name for the comment field in the order, I won't user to be able to input something on the checkout
Currently, there's none in the checkout. We will add this possibility later and then it must be enabled explicitly.

Re: form input name for comment

Posted: 11 Feb 2016, 17:09
by obayesshelton
Is there any way to add something to the order similar to how you do with the delivery by creating a MShop_Service_Provider_Decorator ?

Re: form input name for comment

Posted: 11 Feb 2016, 17:10
by aimeos
What do you exactly need?

Re: form input name for comment

Posted: 11 Feb 2016, 17:37
by obayesshelton
Hey,

I just need to put an account number for an external service inside the users order.

I was going to use company name but I noticed that is not storing, is there an issue with that?

Oli

Re: form input name for comment

Posted: 11 Feb 2016, 20:55
by aimeos
obayesshelton wrote: I just need to put an account number for an external service inside the users order.
I was going to use company name but I noticed that is not storing, is there an issue with that?
You should not reuse existing fields for different things, especially as adding custom fields is pretty simple.

Create a service provider decorator where you can define the required fields:
https://aimeos.org/docs/Developers/Libr ... figuration

Afterwards, add it to your delivery service provider entry and the fields will be automatically added to the delivery option where the customer can enter their additional data: https://aimeos.org/docs/User_Manual/Adm ... tors#Usage

The data is stored as an order base service attribute item in the database where you can work with it.