Help for integrating the Laravel package
Forum rules: Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#2237 by obayesshelton
14 Dec 2015, 15:30
Hey,

I am trying to add a input field to all delivery option so that the user can input a delivery contact number etc, I have added it as a text attribute to the delivery service however it won't show on the delivery page.

Could you explain how to do this please...
#2238 by aimeos
14 Dec 2015, 15:57
obayesshelton wrote:I am trying to add a input field to all delivery option so that the user can input a delivery contact number etc, I have added it as a text attribute to the delivery service however it won't show on the delivery page.


Why don't you use the telephone field from the billing and delivery address?
https://aimeos.org/docs/Configuration/Core/client/html/common/address/billing/optional
https://aimeos.org/docs/Configuration/Core/client/html/common/address/delivery/optional
#2239 by obayesshelton
14 Dec 2015, 16:07
Sorry I meant time not number, basically I need an input which I can put an extra bit of info in and possibly in the future a delivery provider account number
#2241 by aimeos
14 Dec 2015, 17:40
In that case, write a service provider decorator which adds an input field to the delivery option.

Documentation and examples for this are a bit distributed but here's were to look:
- Decorator examples: https://github.com/aimeos/aimeos-core/tree/2015.10/lib/mshoplib/src/MShop/Service/Provider/Decorator
- Add a new input field (FE config): https://github.com/aimeos/aimeos-core/blob/2015.10/lib/mshoplib/src/MShop/Service/Provider/Payment/DirectDebit.php
- How to define the configuration: https://aimeos.org/docs/Developers/Library/Service/Define_configuration
- Admin interface configuration: https://aimeos.org/docs/User_Manual/Administration_Interface/Service_decorators