The free text field management is the next generation of the Shopware attributes and displaces this function. All of your current attributes, including those from plugins, will be unmodified and can still be used! With the help from the new free text field management you can assign almost everything in Shopware free text fields (similar to the attributes in previous versions). They can still be used individually, so no matter if you want to mark items as bulk shipping or mark customers as bonus customers, the possibilities are endless.
The free text field management is a default component of Shopware but needs to be extended in many cases, i.e. if you want to show free text fields in the frontend or build other individual functions that work together with these fields. Please note that we're only be able to support the default integration; all customizations that you make are considered individual programming and are not supported by Shopware.
You can find the module at Configuration > Free text field management in your Shopware backend.
The module is structured as follows:
Shopware has four different kinds of free text fields:
In the first step, choose the database table where you want to add the free text field. The grid will refresh and display all of the fields which are ready to be configured in this table. Just choose one of the empty fields or click “Add” to enter the desired configuration of your free text field. After saving, the grid will refresh, database entities generated and your free text field is ready to use.
You can change the free text fields as often as you want, but note that the content of the database column will not be converted. Reset your data to avoid issues!
You can only delete free text fields that do not contain information or do not belong to a 3rd party plugin.
You can delete a free text field by clicking the red icon (1) in the listing:
Deleting a free text field deletes the whole database column and its content!
First, add the new free text field as below in the screenshot:
After creating the free text field, it can be found in the item data:
Now you can activate the checkbox and mark the item as bulk shipping. You’ll find additional tutorials on shipping methods here.
Just create the following free text field:
Now you can enter the bonus class in your customer’s additional free text field:
This value can be used other places (i.e. to set different bonus stages and give rebates). Alternatively, it’s also possible to rank up your customer every 10 orders they make. To do so, the frontend must be individually adapted to count the order and rank the customer higher.
The free text field has to be created as follows:
As feature, we use the multiple selection of customers in order to select the users who are able to use this voucher:
Implementing this feature any further required individual programming.
Your existing free text fields and attributes can still be used.
Free text fields, whose column names use capitals will be migrated, but aren't editable, because the new free text field management only support lower-case naming of the columns!
You can create free text fields for the following database tables:
|Configurator price template||s_article_configurator_template_price_attributes|
|Customer billing address||s_user_billingaddress_attributes|
|Customer shipping address||s_user_shippingaddress_attributes|
|Order billing address||s_order_billingaddress_attributes|
|Order shipping address||s_order_shippingaddress_attributes|
You can use the following as column types:
|Simple text||VARCHAR (As default 255 will set!)|
|Date / Time||DATETIME|
For performance reasons, not all free text fields are available to be used in the frontend. If the desired free text field is not available, you have the option of writing a plugin in order to use the desired fields in the frontend. Free text fields that affect items are automatically passed to the frontend and can only be implemented in the template via individual programming. If you want to pass other free text fields to the template, they have to be implemented separately. For more information, visit the Developers Upgrade Guide.