Configuring a product
How to assign a template to a product, adapt the product's own tree, change or remove the assignment, and what happens to the product's OpenCart options.
The Chained options tab
The product form of your administration has a Chained options tab. On OpenCart 1.5 the same fields appear at the end of the product form.
| Element | What it does |
|---|---|
| Template | The template of the product. -- Select template -- means none. Only enabled templates are listed. |
| Load template | Shows the tree of the chosen template below, ready to be adapted for this product. |
| Unlink template | Clears the template of the product. It takes effect when you save the product. |
| Tree area | The product's own tree, with the same settings as the template's tree. See The visual tree. |
The help text under the field reminds you of the main rule: the template is only a starting point, and any edit made afterwards affects only this product.
Assigning a template
- Save the product at least once. A new product has no tree yet: Load template on an unsaved product shows Please save the product first to manage the chained tree in editor mode. On OpenCart 4, which saves the form without reloading it, open the new product again from the product list after the first save.
- Open the Chained options tab, choose the template in Template and press Load template. The message Template loaded into product options. confirms it.
- Save the product.
- Open the Chained options tab again to adapt the tree of this product, then press Save inside the tree area.
What happens to the product's options
When you save a product with a template, the options of the template are added to the product's Option tab as normal OpenCart product options:
| Situation | Result |
|---|---|
| The product does not have the option yet | The option is added as required, with every value used by the template. New values get price 0, a large quantity and Subtract Stock set to No. |
| The product already has the option | The values used by the template that are missing are added in the same way. Values that the template does not use are removed from that option. Values that remain keep their price, quantity, points and weight. |
| Other options of the product | They are not touched. They keep working as normal OpenCart options next to the configurator. |
The configurator itself only uses the values that are enabled in the product's tree, whatever the Option tab contains.
Changing the template of a product
Choose the other template, press Load template and save the product. The options of the previous template are removed from the product, the options of the new template are added, and the product gets a fresh copy of the new template's tree. Then adapt the tree and save it.
To start again from the template's current tree on a product that keeps the same template, unlink the template and save, then assign it again and save.
Removing the template from a product
Press Unlink template and save the product. The configurator disappears from the product page and the OpenCart options that the template had added are removed from the product. Other options stay.
To switch off the configurator for one product while keeping its options, there is no per-product switch: disable the template, which affects every product that uses it, or unlink it from that product.
Copying and deleting products
- Copy in the product list copies the template assignment and the product's tree to the new product. The copy can then be changed on its own.
- Deleting a product deletes its tree.
Opening the tab directly
A link to the product form that ends with #tab-chained-options, or that contains chained_options=1, opens the product with the Chained options tab already selected. This is handy for bookmarks when you adapt many products.
Still need help?
Open a support ticket from your account and our team will look at your store with you.