Joomla Web Design Joomla Web Design

Inzinc Web Design Service and Joomla!™ Development

Posting the latest relevant news related to your Joomla!® installation. Also reviewing and discussing components and extensions that will make your life easier.
Font size: +

How to Create Virtuemart® Custom Fields Simplified!

Hi there here is a detailed article about the custom field in Virtumert. We will constantly be adding new information that will help users get the hang of creating their custom attributes.

General Information:
  • Custom Field ID : for internal use only. ID is a unique category identification that cannot be edited.
  • Custom Field Type : the types available are: string, integer, parent, boolean, date, time, image, cart variant, generic cart variant, editor, text area, plugins. For a simple information field, string is perfect.
  • Published : tick this check-box to enable custom field.
  • Title - it helps if the title is meaningful, because this is the field name that will be shown when a custom field is selected for a product.
  • Parent Custom Field : if you are making a group of custom fields that will go together, you will be able to select a parent item.
  • Cart Attribute : this option allows you to add some options to a product that can modify the product price.
  • Description : this will be visible on the site as well as in administration.
  • Default Value : a default value that will show on the site.
  • Tool tip - if this is filled in there will be a tool tip that pops up when you click the information icon.
  • Layout position : You can choose the layout position in various ways, e.g. on top (ontop) or on bottom (onbot) of the product images.
  • Admin only, Is a List?, Hidden? - 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.

Custom Field Codes for Coders

  • S = String
  • I =Integer
  • P =Parent
  • B= Bolean (True)
  • D = Date
  • T = Time
  • M =Image
  • V =Cart Variant
  • A =Generic Child Variant
  • X=Editor
  • Y=Textarea


For example
<?php if ($field->field_type == S){My Special String Output} ?>

Rate this blog entry:
Back Up your website with Akeeba Back Up (FREE) !
Comment Modifier le Panier de Virtuemart 2.0

Client Log In

Email Address: Password:

Contact Us

Montreal, Que


(514) 883.1412
(888) 688.3066
This email address is being protected from spambots. You need JavaScript enabled to view it.

 

Houston, Tx

(832) 487.8284
(888) 688.3066
This email address is being protected from spambots. You need JavaScript enabled to view it.

 

Calgary, Alt

(403) 774.7334
(888) 688.3066
This email address is being protected from spambots. You need JavaScript enabled to view it.