News:

Looking for documentation? Take a look on our wiki

Main Menu

Custom Field Types (Explained)

Started by PRO, March 07, 2012, 18:04:25 PM

Previous topic - Next topic

jjk

Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

fbc

I have to input this into the DEFAULT field but it's limited to a certian number of characters.

These are my colors:
1 BLANCO;2 ROSA PASTEL;3 NATURLA / CRUDO;4 HUESO;5 BEIGE;6 CAFÉ;7 TINTO;8 AZUL REY;9 AZUL MARINO;10 NEGRO;11 VERDE BOTELLA;12 ROJO;13 UVA;14 SALMON / DURAZNO;15 ARENA;16 VERDE BANDERA;17 AZUL INDIGO;18 PALO DE ROSA;19 TURQUESA;20 MOSTAZA;21 AZUL CIELO;22 ROSA SECO;23 ROSA MALVA;24 VERDE PISTACHE;25 LADRILLO;26 LILA;27 VERDE MENTA;28 FIUSHA;29 GROSELLA;30 GRIS CHOFER;31 SHEDRON;32 ROSA ALBARICOQUE;33 GRIS OXFORD;34 VERDE MANZANA;35 AMARILLO PAJA;36 CAFÉ MOKA;37 KHAKI;38 GRIS PLATA;39 TORONJA;40 PETROLEO;41 CORAL;42 ROSA CORAL;43 VERDE OLIVO / MILITAR;44 ROJO GRANATE;45 AZUL PIZARRA / PLUMBAGO;46 NEGRO JASPE;47 AZUL ACERO;48 CHAMPAGNE;49 CAMELLO;50 ZANAHORIA;51 VERDE NOGAL;52 VERDE SECO;53 VERDE MILITAR;54 COCOA;55 AZUL IMPERIAL;56 AZUL CERULEO;57 AZUL CRISTAL;58 MORADO;60 VERDE ESMERALDA;61 AMARILLO;62 GRIS OSTION;63 CHARCOAL;64 GRIS PALIDO;65 VIOLETA;67 BUGAMBILIA;68 AMARILLO MANGO;72 VERDE JADE;73 NARANJA;74 VERDE NEON;75 AMARILLO NEON;76 ROSA NEON;77 NARANJA NEON;78 GRIS TOPO;79 LAVANDA;80 BARNEY;81 VERDE LIMON;82 PLATA JASPE;83 OXFORD JASPE;84 MARINO JASPE;85 CAFÉ JASPE;86 DURAZNO NEON;87 CORAL NEON;88 AZUL AGUA;90 ORO;91 PLATA;92 COBRE;93 ROSA BOREAL;95 IVORY JASPE;96 IVORY;97 NUDE;98 MORADO AMATISTA;99 AMARILLO PASTEL
Frank

PRO

Quote from: fbc on July 18, 2013, 00:53:30 AM
I have to input this into the DEFAULT field but it's limited to a certian number of characters.

These are my colors:
1 BLANCO;2 ROSA PASTEL;3 NATURLA / CRUDO;4 HUESO;5 BEIGE;6 CAFÉ;7 TINTO;8 AZUL REY;9 AZUL MARINO;10 NEGRO;11 VERDE BOTELLA;12 ROJO;13 UVA;14 SALMON / DURAZNO;15 ARENA;16 VERDE BANDERA;17 AZUL INDIGO;18 PALO DE ROSA;19 TURQUESA;20 MOSTAZA;21 AZUL CIELO;22 ROSA SECO;23 ROSA MALVA;24 VERDE PISTACHE;25 LADRILLO;26 LILA;27 VERDE MENTA;28 FIUSHA;29 GROSELLA;30 GRIS CHOFER;31 SHEDRON;32 ROSA ALBARICOQUE;33 GRIS OXFORD;34 VERDE MANZANA;35 AMARILLO PAJA;36 CAFÉ MOKA;37 KHAKI;38 GRIS PLATA;39 TORONJA;40 PETROLEO;41 CORAL;42 ROSA CORAL;43 VERDE OLIVO / MILITAR;44 ROJO GRANATE;45 AZUL PIZARRA / PLUMBAGO;46 NEGRO JASPE;47 AZUL ACERO;48 CHAMPAGNE;49 CAMELLO;50 ZANAHORIA;51 VERDE NOGAL;52 VERDE SECO;53 VERDE MILITAR;54 COCOA;55 AZUL IMPERIAL;56 AZUL CERULEO;57 AZUL CRISTAL;58 MORADO;60 VERDE ESMERALDA;61 AMARILLO;62 GRIS OSTION;63 CHARCOAL;64 GRIS PALIDO;65 VIOLETA;67 BUGAMBILIA;68 AMARILLO MANGO;72 VERDE JADE;73 NARANJA;74 VERDE NEON;75 AMARILLO NEON;76 ROSA NEON;77 NARANJA NEON;78 GRIS TOPO;79 LAVANDA;80 BARNEY;81 VERDE LIMON;82 PLATA JASPE;83 OXFORD JASPE;84 MARINO JASPE;85 CAFÉ JASPE;86 DURAZNO NEON;87 CORAL NEON;88 AZUL AGUA;90 ORO;91 PLATA;92 COBRE;93 ROSA BOREAL;95 IVORY JASPE;96 IVORY;97 NUDE;98 MORADO AMATISTA;99 AMARILLO PASTEL

what do you mean? is this a cart variant?


fbc

Quote from: PRO on July 18, 2013, 04:12:48 AM
what do you mean? is this a cart variant?
Sorry for being so vague. Yeah, It's a cart variant, my only solution since all of my options will not fit into the DEFAULT field, is to some how find a way to put a text field where they can type the 2 digit code of the color they want.
Frank

Maxim Pishnyak

#94
Quote from: fbc on July 18, 2013, 04:27:45 AM
Sorry for being so vague. Yeah, It's a cart variant, my only solution since all of my options will not fit into the DEFAULT field, is to some how find a way to put a text field where they can type the 2 digit code of the color they want.
Why not use something more attractive? Like "Product Colors (Component + Plugin)" from 3rd party forum section.
Or just simply "custom field images display" (check thread in Templating section).
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

PRO

Quote from: fbc on July 18, 2013, 04:27:45 AM
Quote from: PRO on July 18, 2013, 04:12:48 AM
what do you mean? is this a cart variant?
Sorry for being so vague. Yeah, It's a cart variant, my only solution since all of my options will not fit into the DEFAULT field, is to some how find a way to put a text field where they can type the 2 digit code of the color they want.

or this
http://www.kaizenmediaworks.com/virtuemart-2-0-custom-field-dropbox-plugin

& also look here
http://forum.virtuemart.net/index.php?topic=90833.0



preikarm

Hi,
where I have to put in this code?


Using a String for external images


Create a Custom field  type "string" named "external"
In Edit Product apply the field. Paste the url to the image in the field.
This below is the code for displaying the image.

<div class="product-fields">
       <?php
       $custom_title = null;
       foreach ($this->product->customfieldsSorted[external] as $field) {
      if ($field->display) {
          ?>
          <?php if ($field->custom_title != $custom_title) { ?>
            <img src="<?php echo $field->display ?>" alt="<?php echo $this->product->product_name ?>"  />
<?php } ?>
          <?php } ?> <?php } ?>
        </div>

Maxim Pishnyak

In default.php for productdetails template overrides probably.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

preikarm

Hi, where I have to put in  the code'Using a String for external images' ?

Maxim Pishnyak

Quote from: Maxim Pishnyak on September 12, 2013, 19:56:03 PM
In default.php for productdetails template overrides probably.
Using template overrides in general is described in the sticked threads (Template forum section) and in the official documents (virtuemart.net).
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

jhoompk

Hi,

Can anyone reply for this please?

http://forum.virtuemart.net/index.php?topic=118994.0

I m using Joomla 2.5.14 and VM 2.0.24 with PHP Version 5.3.26.

I want to choose product variant based on selected value of existing variant, for example:

I have variant of size with options: small, Medium and Large
I have another variant with color: Pink, Red, Orchid

Now what my requirement is when i select Size small then it only has Pink and Red items available and for Large size only One color item is available.

How can i make variants based on other variant's value?

your help will greatly be appreciated.

boogiebobsrecords

There is no "select list" in my custom fields page in vm2 . It is blank or  has dissappeared....
screen shot availble, but I can't seem to get it into this message

I need simply to either edit the default names in Product Information or be able to add simple text fields to the top section of the page where SKU, Name, Price & others reside.
These fields also need to have the ability to be downloaded in a text file for uploading to other retail sites like eBay, MusicStack and others. These major retailers want information broken down like this for example, Name of product (Joe Smith ~ Self Titled) needs to be separated into Artist in one field & Title in a second field. There are others also, but If one can be done then I will know how to do the rest...
Please help,
thx
Bob Bergmann, Owner, Boogiebobs Records

Garyk01

Hi!
I have a problem - I'm showing on the product page using a custom field "Image" logos certain characteristics.
Code apply as follows:
     <?php  //  Logoimage custom_fields
    
if (!empty($this->product->customfieldsSorted['logoimage'])) {
   
?>

      <?php
    
$custom_title null;
    foreach ($this->product->customfieldsSorted['logoimage'] as $field) {
     if ( $field->is_hidden 
     continue;
if ($field->display) {
    ?>
<div class="product-field-type-M">
        <span class="product-field-display"><?php echo $field->display ?></span>
    </div>
    <?php
    }
    }
     } 
// Logoimage custom_fields END
   
?>

And here's the problem - how to make a conclusion of the attribute "Title" of the image when you hover the cursor over the image?

PRO

Quote from: Garyk01 on January 01, 2014, 20:53:15 PM
Hi!
I have a problem - I'm showing on the product page using a custom field "Image" logos certain characteristics.
Code apply as follows:
     <?php  //  Logoimage custom_fields
    
if (!empty($this->product->customfieldsSorted['logoimage'])) {
   
?>

      <?php
    
$custom_title null;
    foreach ($this->product->customfieldsSorted['logoimage'] as $field) {
     if ( $field->is_hidden 
     continue;
if ($field->display) {
    ?>
<div class="product-field-type-M">
        <span class="product-field-display"><?php echo $field->display ?></span>
    </div>
    <?php
    }
    }
     } 
// Logoimage custom_fields END
   
?>

And here's the problem - how to make a conclusion of the attribute "Title" of the image when you hover the cursor over the image?


what type of image is it? like a manufacturer image? etc?

Garyk01

Quote from: PRO on January 02, 2014, 01:25:29 AM

what type of image is it? like a manufacturer image? etc?
Image type -. png or. jpg - loaded into media files.
For example - the logo image Bluetooth, or Wi-Fi, or size diagonal notebook.
Media files in the folder there is a line - the attribute "ALT", where you can specify the detailed description of the image. How to do that would show a description when you hover the cursor over the image?