Now that you created the products you need you will create the form elements using the custom fields.

To add entry custom fields in HikaShop for Joomla 3.x:

Step 1: Log into your Joomla Dashboard

Step 2: In the top menu, hover over Components and click HikaShop.

Step 3: Go to the Display and click Custom fields.

Entry Custom Fields In Hikashop

Step 4: Click on the new button to create a new custom field.

Step 5: Enter a label for the field, select the table “entry” and set the type of your custom field. Based on the type, you will be able to select additional information like the values and labels of each options for dropdowns.

Entry Custom Fields In Hikashop

Step 6: Then, upon clicking on the apply button, you will see additional options on the right side of the screen which are only displayed for entries.

You will be able to limit the display of a field based on the value of another field. That enables to to build conditions in your form.

You will also be able to attach a product to a field. The product will be added to the cart automatically once you validate the form if the value entered by the user matches the value you selected there.

Entry Custom Fields In Hikashop

We added 10 custom fields:

A name custom field where the user can enter the name of the person (type text). The name field is required.

An email custom field where the user can enter the email address of the person (type text).

A Sunday field of type single dropdown with three values: ” and ‘Please select’, ‘0’ and ‘No’, ‘1’ and ‘Yes’. The field is required. This field is attached to the product Sunday for the value ‘Yes’. The default value is ‘Please select’.

A ‘Lunch box on Sunday’ field of type single dropdown with three values: ” and ‘Please select’, ‘0’ and ‘No’, ‘1’ and ‘Yes’. The field is required. This field is attached to the product ‘lunch box’ for the value ‘Yes’. The default value is ‘Please select’. The field display is limited to the field Sunday with the value ‘Yes’.

A ‘Conference 1 on Sunday (10h-12h)’ field of type single dropdown with four values: ” and ‘Please select’, ‘templates’ and ‘Templates’, ‘joomla16’ and ‘Joomla 1.6’, ‘ecommerce’ and ‘E-Commerce’. The field is required. The default value is ‘Please select’. The field display is limited to the field Sunday with the value ‘Yes’.

A ‘Conference 2 on Sunday (14h-16h)’ field of type single dropdown with four values: ” and ‘Please select’, ‘sef’ and ‘SEF’, ‘cck’ and ‘CCK’, ‘communities’ and ‘Communities’. The field is required. The default value is ‘Please select’. The field display is limited to the field Sunday with the value ‘Yes’.

A Saturday field of type single dropdown with three values: ” and ‘Please select’, ‘0’ and ‘No’, ‘1’ and ‘Yes’. The field is required. This field is attached to the product Saturday for the value ‘Yes’. The default value is ‘Please select’.

A ‘Conference 1 on Saturday (10h-12h)’ field of type single dropdown with four values: ” and ‘Please select’, ‘backup’ and ‘Backup’, ‘security’ and ‘Security’, ‘newsletters’ and ‘Newsletters’. The field is required. The default value is ‘Please select’. The field display is limited to the field Saturday with the value ‘Yes’.

A ‘Conference 2 on Saturday (14h-16h)’ field of type single dropdown with four values: ” and ‘Please select’, ‘forum’ and ‘Forum’, ‘events’ and ‘Events’, ‘acl’ and ‘ACL’. The field is required. The default value is ‘Please select’. The field display is limited to the field Saturday with the value ‘Yes’.

Step 7: Click Save in the top right menu.

Rate for post
Document Team

Flash Sale! Get 25% Off for everything on today, don't miss it. Coupon code: FSALE25 Redeem Now
Flash Sale! Get 25% Off for everything on today, don't miss it. Coupon code: FSALE25 Redeem Now