Developer manual

Setting up Spring for products

Overview

  1. Define the default custom form for the products table
  2. Create a default custom form
  3. Create a new tab

Details

Define a default custom form

Add to settings.xml:

<settings>
<admin>
<edit>
....
<products>
<customfields>custom.product.xml</customfields>
</products>
....
</edit>
</admin>
</settings>

Create the new custom form

  • Create a new custom.product.xml file in the local templates directory
  • Add the required fields to custom.product.xml to define the product

Setting up the backend tabs

Create a new manager tab to display a list of products.

  1. Copy default.xql file to the local template directory and rename it custom.xql
  2. Add a new section to custom.xql to define a new tab.
  3. Add a new section to settings.xml to load the custom.xql

Add to custom.xql:

<query>
<name>Products</name>
<id>88899906578</id>
<url>/feed/table/products/format/system.manager.list/status/0/limit/100/</url>
</query>

Add to settings.xml:

<settings>
....
<admin>
....
<profile>
<default>custom</default>
</profile>
....
</admin>
....
</settings>