In Arcadier Custom Fields are the adding of additional properties to a specific table. This is to create more data points for your marketplace to store and use. 


There are different type of Input type for custom fields:

  1. Text Field
  2. Hyperlink
  3. Email
  4. Location
  5. Percentage
  6. Number
  7. Checkout
  8. Dropdown
  9. Date / Time picker


There are also different reference table you are able to add the custom fields to:

  1. Items
  2. Users
  3. Orders
  4. Payments
  5. Cart Items
  6. Categories
  7. Panels
  8. Panel Details
  9. Developer Packages (do not use)
  10. Implementations


Please refer to the more detailed explanation below on how to use custom fields for different reference table.
Please note not to create custom field for Developer Packages reference table


Users
User’s gender can be stored as a custom field. A text field custom field named ‘Gender’ created under Users Reference table. All the users will have ‘Gender’ custom field added to their profile with their own individual value as shown in the diagram below.The reference id for the ‘Gender’ custom field will be link to the User Id.You can use this API Endpoint (GET /api/account/info)  to get the User Id. The reference id is required to fetch the ‘Gender’ custom field value of the user. 



Categories
If you want to have a sales indicator for your category, a drop down custom field name “Sale” for Categories Reference Table can be created. The “Sale” custom field is added to all the category record with its respective value. The reference id for “Sale” will be link to the Category Id. You can use this API Endpoint (GET /api/consumers/categories)  to get the Category Id. The reference id is required to fetch the ‘Sale’ custom field value of the category.


Panels
Panels are section of information that are displayed in the Homepage. In a marketplace,  you will have a Category and Latest Item panels. You can create new panel for Homepage via the Layout section in admin portal page. If you require a Facebook URL link to your panel you can create a hyperlink custom field name “Facebook Link” under the Panels reference table. The “Facebook Link” custom field will be added to the Panel with its respective value. The reference id for “Facebook Link” will be link to the Panel Id. You can retrieve the Panel Id via inspecting the Panel element in the Admin Portal Page like in the example below. The reference id is required to fetch the ‘Facebook Link’’ custom field value of the panel.


Access Homepage section via the Layout page from Admin portal page



Inspect the page and select the panel that the custom field need to tied to.



The panel id is the element data-id that is depict on the above image.





Panel Details
Panels details are partition of information that are displayed in the Panel. In your marketplace,you may have a Panel that have three split panel which are called Panel Details. You can create new panel for Homepage via the Layout section in admin portal page. If you require a Price to your panel detail you can create a textfield custom field name “Price” under the Panel Details reference table. The “Price” custom field will be added to the Panel Details with its respective value. The reference id for “Price” will be link to the Panel Details Id. You can retrieve the Panel Detail Id via inspecting the Panel Detail element in the Admin Portal Page like in the example below. The reference id is required to fetch the ‘Price’’ custom field value of the panel detail.


The panel detail id is the element data-id that is depict on the above image




Orders
If your orders require total weight information, a text field custom field name “Total Weight” can be created under the Orders reference table. The “Total Weight” custom field is added to all the order record with its respective value. The value “Total Weight” for the Order will need to compute with the custom field “Weight” that is created for the Item reference table.  The reference id for “Total Weight” will be link to the Order Id. You can use this API Endpoint (GET /api/merchant/orders/order-history)  to get the Order Id.  The reference id is required to fetch the “Total Weight” custom field value of the order.




Payments

If you want to a Callback URL link for your own custom payment gateway, you can create a text field custom field name “Callback URL” for Payments Reference Table. The “Callback URL” custom field is added to the payment record with its callback url value. The reference id for “Callback URL” will be link to the Payment Method Type ID. You can use this API Endpoint (GET /api/admin/paymentmethod) to get the Payment Method Type ID. The reference id is required to fetch the “Callback URL” custom field value of the payment method





CartItems

If you want to track if cutlery is required for your cart item, a drop down custom field name “Cutlery” for CartItems Reference Table can be created. The “Cutlery” custom field is added to all the cart item record with its respective value. The reference id for “Cutlery” will be link to the Cart Item Id. You can use this API Endpoint (GET /api/consumers/carts)  to get the Cart Item Id.The reference id is required to fetch the Cutlery custom field value of the cart item.





Implementations

You can add your blog URL address to your marketplace by creating a hyperlink custom field name “Blog Link” under Implementations Reference Table. The “Blog Link” custom field is added to the marketplace record with its value. The reference id for “Blog Link” will be link to the Marketplace Id.  You can use this API Endpoint (GET /api/user/marketplace)  to get the Marketplace Id. The reference id is required to fetch the “Blog Link” custom field value for the marketplace.




Items

If you need item’s product origin need to be display. A text field custom field named ‘Product Origin’ will be created with Items as the reference table. ‘Product Origin’ custom field will appear in Create Item and Item Edit page for Merchant to input the value. The Item Details page will show the value of the item’s “Product Origin”.The reference id for “Product Origin” will be link to the Item Id. You can use this API Endpoint (GET /api/consumers/items/search)  to get the Item Id. The reference id is required to fetch the “Product Origin” custom field value for the item.





Was this article helpful?
0 out of 0 found this helpful