
We have covered Virtuemart several times, including a comprehensive beginner guide. In this tutorial, we're going to show you how to make your product information more interesting by using custom fields. This will allow you to add all sorts of specific details to your products, beyond simply the name, price and description. Step 1: Navigate to Custom Fields![]()
Step 2: Choose a type![]()
Step 3: Give it a title and description![]()
Step 4: Choose the layout position and add a tool tip![]() Tool tip: If this is filled in there will be a tool tip that pops up when you click the information icon.
These layout positions do not work with "cart attributes" which means custom fields that will affect the price of the item. Those are handled in a different way. Advanced users can create any type of position they want by adding code to the template. I'll include the code here even though it's beyond the scope of this tutorial. ![]() Admin only and Hidden are self-descriptive. The one that causes most confusion is "Isa list?" You you would use this to create a selection list of multiple attributes like a list of radio buttons for colors. We're just making a simple label. We'll use this when we have a more complicated example. For now "No" is the best answer. Exercise: Adding a message to a productLet's suppose that for certain items, batteries are not included. You need to put that notice on some items but not others. Below is an example of how to fill out the form. Let's fill out the whole form and then see what it looks like. ![]() Step 5: Add the field to a product![]()
![]()
![]()
Result![]() You can see the results of your effort on the product detail page. Everything you entered shows on the site, so take care with your wording. If you entered a tool tip, you will see the blue tooltip icon, otherwise there won't be one there. Mouseing over the icon reveals the tip. This is the procedure for a simple text message. You can add more than one text message to a product. The design and layout of the message is not controlled through the administration. This is dependant on the template and the CSS. |

With Admincredible you can update and manage all your Joomla sites. If you have 5 or 500 sites, Admincredible will make your life easier! Visit Admincredible.com.
All of our tutorials are published under the Creative Commons Attribution-NonCommercial license. This means:
Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.
Copyright 2013 Open Source Training, LLC. All rights reserved.
Comments
You've saved me a lot of my time with this post.
Regards,
Windy - OIC Academy Specialist
Thanks for this instructions. You helped me to get create the custom solution for my client.
Francois
i am new in virtuemart.
i just want to know that how to put text box on product detail page? and if customer fill that textbox than how to get that textbox value.?
thank you
I want to add this globally, so would prefer not to have to add it for every product.
Thank you!
I have tried to add the custom fields data in VirtueMart vr.2.0.18a but it did not accept more than 16 fields for a product.
While adding custom fields in product, it accepts upto 15 fields only and when trying to add more than that it redirects to Control panel of VirtueMart while saving data.
Can you please tell me what will be the problem here?