Site Form- Add New Field

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
khizar
Posts: 99
Joined: 19 Jan 2021, 09:51

Site Form- Add New Field

Post by khizar » 19 Jan 2021, 10:30

Hello,
i am a laravel developer and building ecommerce app in laravel app.so i integrated aimeos in laravel.i am using laravel 8.
now i want to add custom field in site form under the label field.please guide me step by step to perform that task.i tried to do
it by reading the documentation but the documentation is very hard to understand.
Image

User avatar
aimeos
Administrator
Posts: 7889
Joined: 01 Jan 1970, 00:00

Re: Site Form- Add New Field

Post by aimeos » 20 Jan 2021, 10:48

First of all, think about if you can use the config key/value pairs (right side). They are extensible without adding new columns in the database and you can also make individual fields for them.

If that doesn't fit because you need a database column you can filter by, then create a decorator for the locale/site manager like described here: https://aimeos.org/docs/latest/infrastr ... -managers/
Afterwards, you have access to the field values in the template you can overwrite in your own extensions too: https://aimeos.org/docs/latest/admin/jq ... templates/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

khizar
Posts: 99
Joined: 19 Jan 2021, 09:51

Re: Site Form- Add New Field

Post by khizar » 20 Jan 2021, 11:04

i have added field in currency form by creating a new file(item-standard) in my extension
ext\ai-moudhah\admin\jqadm\templates\locale\currency\item-standard
and it worked perfectly
Image

but when i override the site form by creating new file(item-standard)
ext\ai-moudhah\admin\jqadm\templates\locale\site\item-standard
there is no effect

khizar
Posts: 99
Joined: 19 Jan 2021, 09:51

Re: Site Form- Add New Field

Post by khizar » 20 Jan 2021, 11:54

aimeos wrote: 20 Jan 2021, 10:48 First of all, think about if you can use the config key/value pairs (right side). They are extensible without adding new columns in the database and you can also make individual fields for them.

If that doesn't fit because you need a database column you can filter by, then create a decorator for the locale/site manager like described here: https://aimeos.org/docs/latest/infrastr ... -managers/
Afterwards, you have access to the field values in the template you can overwrite in your own extensions too: https://aimeos.org/docs/latest/admin/jq ... templates/
i have added field in currency form by creating a new file(item-standard) in my extension
ext\ai-moudhah\admin\jqadm\templates\locale\currency\item-standard
and it worked perfectly
Image

but when i override the site form by creating new file(item-standard)
ext\ai-moudhah\admin\jqadm\templates\locale\site\item-standard
there is no effect

Post Reply