Custom Field Plugin for DJ-Catalog2 component allows adding an embedded custom field into the product's description. You'll be able to display any custom field anywhere in the description just using the short-code.
How to enable the Custom Field plugin
Go to "Extensions" and choose a "Plugin Manager."
Write a plugin's name and find it using the search option.
Open the plugin. It's currently disabled. It would help if you marked it as enabled to use it.
Below you can see the plugin's overview:
How to use Custom Field plugin correctly.
As you can see in the picture above, you need to insert specified content to choose the product's description.
You can use:
{djc2customfield color} - it displays a custom field which alias equals to 'color.'
{djc2customfield specification label="0" unset="0"} - displays custom field which alias equals to 'specification, hides its label and allows the attribute to be displayed in standard extra fields table
To use the proper "alias," you need to know your defined extra fields. There are visible in the DJ-Catalog2 component "Extra fields" option.
We will show how it works using an example.
Let's paste a "{djc2customfield facilities}" into the description. "Facilities" is the alias name of a defined custom field.
And that's how it looks on the front page. As you see, the Custom field is now visible in the product's description, and it disappeared from the custom fields table under the description.
Now let's use another variant. We paste a {djc2customfield facilities label="0" unset="0"} to product description in the same way as we did it before. Our custom field is now displayed in a product's description (without a label), and it's still visible in the custom fields table below.
To keep the label visible we need only to change the "label value" from "0" to "1": {djc2customfield facilities label="1" unset="0"}
There is also another possibility. If you define the "unset" value with other value than "0," this will result in such view:
The "Custom fields" table under the description does not contain the "Facilities" extra field.
If you are also using a DJ-Catalog2 Pagebreak plugin (for tabs), please note that it should appear as the last element for proper functioning.