Author Topic: Custom Field Types (Explained)  (Read 186739 times)

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3751
  • using Matomo instead of Google Analytics
Re: Custom Field Types (Explained)
« Reply #90 on: June 05, 2013, 09:54:00 am »
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

fbc

  • Jr. Member
  • **
  • Posts: 75
    • Hospemex
Re: Custom Field Types (Explained)
« Reply #91 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:
Code: [Select]
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

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10440
  • VirtueMart Version: 3+
Re: Custom Field Types (Explained)
« Reply #92 on: July 18, 2013, 04:12:48 am »
I have to input this into the DEFAULT field but it's limited to a certian number of characters.

These are my colors:
Code: [Select]
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

  • Jr. Member
  • **
  • Posts: 75
    • Hospemex
Re: Custom Field Types (Explained)
« Reply #93 on: July 18, 2013, 04:27:45 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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2656
Re: Custom Field Types (Explained)
« Reply #94 on: July 18, 2013, 13:24:12 pm »
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

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10440
  • VirtueMart Version: 3+
Re: Custom Field Types (Explained)
« Reply #95 on: July 18, 2013, 19:58:41 pm »
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

  • Beginner
  • *
  • Posts: 11
Re: Custom Field Types (Explained)
« Reply #96 on: September 11, 2013, 13:30:28 pm »
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2656
Re: Custom Field Types (Explained)
« Reply #97 on: September 12, 2013, 19:56:03 pm »
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

  • Beginner
  • *
  • Posts: 11
Re: Custom Field Types (Explained)
« Reply #98 on: September 13, 2013, 10:23:34 am »
Hi, where I have to put in  the code'Using a String for external images' ?

Maxim Pishnyak

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2656
Re: Custom Field Types (Explained)
« Reply #99 on: September 13, 2013, 10:34:22 am »
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

  • Beginner
  • *
  • Posts: 31
Re: Custom Field Types (Explained)
« Reply #100 on: October 04, 2013, 13:05:17 pm »
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

  • Beginner
  • *
  • Posts: 14
Re: Custom Field Types (Explained)
« Reply #101 on: October 05, 2013, 21:34:28 pm »
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

  • Beginner
  • *
  • Posts: 13
Re: Custom Field Types (Explained)
« Reply #102 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:
Code: [Select]
     <?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

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10440
  • VirtueMart Version: 3+
Re: Custom Field Types (Explained)
« Reply #103 on: January 02, 2014, 01:25:29 am »
Hi!
I have a problem - I'm showing on the product page using a custom field "Image" logos certain characteristics.
Code apply as follows:
Code: [Select]
     <?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

  • Beginner
  • *
  • Posts: 13
Re: Custom Field Types (Explained)
« Reply #104 on: January 02, 2014, 09:25:14 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?