Author Topic: limit to add custom fields  (Read 17603 times)

cas

  • Jr. Member
  • **
  • Posts: 487
Re: limit to add custom fields
« Reply #15 on: March 04, 2013, 06:02:07 am »
I agree.  Your plug-in is the way to go for regular text drop-down fields, so thanks for creating it!  But what do I do when my customer wants to use images for his furniture fabrics and leather selections?  My plan was to enter one product complete with all the 200 plus custom field images and then just clone it for all the other products.   I know I could just create a separate page with all the color choices, and then have the user remember their choice when ordering the product by selecting the color name from a drop-down list, which is how his current VM1 site works, but this is error prone, so I was hoping with VM2 to use the custom field images for a better user experience.  This is why I still need this limit problem solved.   

By the way, in the admin for custom fields, the ordering still does not work. 

Thanks,
Chuck

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10352
  • VirtueMart Version: 3+
Re: limit to add custom fields
« Reply #16 on: March 05, 2013, 00:05:41 am »
I agree.  Your plug-in is the way to go for regular text drop-down fields, so thanks for creating it!  But what do I do when my customer wants to use images for his furniture fabrics and leather selections?  My plan was to enter one product complete with all the 200 plus custom field images and then just clone it for all the other products.   I know I could just create a separate page with all the color choices, and then have the user remember their choice when ordering the product by selecting the color name from a drop-down list, which is how his current VM1 site works, but this is error prone, so I was hoping with VM2 to use the custom field images for a better user experience.  This is why I still need this limit problem solved.   

By the way, in the admin for custom fields, the ordering still does not work. 

Thanks,
Chuck

ordering of custom fields works for me
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

cas

  • Jr. Member
  • **
  • Posts: 487
Re: limit to add custom fields
« Reply #17 on: March 05, 2013, 01:15:43 am »
In the admin for Product I can change the order of the Custom Fields by dragging & dropping, but in the Custom Fields admin itself, when I try to change the order of the custom fields, it does not save the order for me.   Does that work for you? 

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10352
  • VirtueMart Version: 3+
Re: limit to add custom fields
« Reply #18 on: March 05, 2013, 19:20:43 pm »
In the admin for Product I can change the order of the Custom Fields by dragging & dropping, but in the Custom Fields admin itself, when I try to change the order of the custom fields, it does not save the order for me.   Does that work for you? 

O , no it does not
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

cas

  • Jr. Member
  • **
  • Posts: 487
Re: limit to add custom fields
« Reply #19 on: March 05, 2013, 21:47:50 pm »
FYI, here is the link to the custom field admin ordering issue back in Oct 2012:  http://forum.virtuemart.net/index.php?topic=109255

As for this issue with the custom field limit of 131, please let me know when it's resolved so I can finish the website for my customer.  Thanks.

cas

  • Jr. Member
  • **
  • Posts: 487
Re: limit to add custom fields
« Reply #20 on: March 09, 2013, 21:56:01 pm »
Any update on when this will be fixed?

cas

  • Jr. Member
  • **
  • Posts: 487
Re: limit to add custom fields
« Reply #21 on: March 10, 2013, 09:03:55 am »
Banquet,

Does your Drop Box plug-in have a character limit for the Drop Box Selection field?   I am not able to enter all the characters I need to enter.

Chuck 

cas

  • Jr. Member
  • **
  • Posts: 487
Re: limit to add custom fields
« Reply #22 on: March 12, 2013, 19:03:41 pm »
Hi Banquet,

Any update on this character size limit to the Drop Box plug-in "Drop Box Selections" field?  I can only enter about 10 items in the "Drop Box Selections" field before it reaches a character limit.  My customer is waiting to load all his products and go live with his new site until this size limit is resolved.

Thanks,
Chuck 

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10352
  • VirtueMart Version: 3+
Re: limit to add custom fields
« Reply #23 on: March 14, 2013, 22:58:44 pm »
Hi Banquet,

Any update on this character size limit to the Drop Box plug-in "Drop Box Selections" field?  I can only enter about 10 items in the "Drop Box Selections" field before it reaches a character limit.  My customer is waiting to load all his products and go live with his new site until this size limit is resolved.

Thanks,
Chuck 

look here
http://www.kaizenmediaworks.com/images/files/custom-field.png


do you see all the characters I use?

sounds like a DB problem for you or something.

J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

cas

  • Jr. Member
  • **
  • Posts: 487
Re: limit to add custom fields
« Reply #24 on: March 15, 2013, 00:27:24 am »
Here is a real drop down list I need to use on the furniture website for leather choices.  See if you can add this list to one drop box without it getting cut off:

Select, Grade 1-Empire Aloe Vera, Grade 1-Empire Black, Grade 1-Empire Butternut, Grade 1-Empire Chocolate, Grade 1-Empire Clay, Grade 1-Empire Cream, Grade 1-Empire Honey, Grade 1-Empire Plum, Grade 1-Empire Polar, Grade 1-Empire Smoke, Grade 1-Fashion Almond, Grade 1-Fashion Black, Grade 1-Fashion Caramel, Grade 1-Fashion Off White, Grade 1-Fashion Red, Grade 1-Fashion Ripple, Grade 1-Fashion Sandstone, Grade 2-America Brandy |+250.00, Grade 2-America Chianti |+250.00, Grade 2-America Hazelnut |+250.00, Grade 2-America Merlot |+250.00, Grade 2-America Vintage |+250.00, Grade 2-Dream Black |+250.00, Grade 2-Dream Celery |+250.00, Grade 2-Dream Coffee |+250.00, Grade 2-Dream Espresso |+250.00, Grade 2-Dream Iceberg |+250.00, Grade 2-Dream Latte |+250.00, Grade 2-Oxford Blue |+250.00, Grade 2-Dream Oyster |+250.00, Grade 2-Dream Straw |+250.00, Grade 2-Dream White |+250.00, Grade 2-Dream Wine |+250.00, Grade 2-Guanaco Aztec |+250.00, Grade 2-Guanaco Black |+250.00, Grade 2-Guanaco Caramel |+250.00, Grade 2-Guanaco Dark Brown |+250.00, Grade 2-Guanaco Granite |+250.00, Grade 2-Guanaco Grey |+250.00, Grade 2-Guanaco Marmo |+250.00, Grade 2-Guanaco Merlot |+250.00, Grade 2-Guanaco Sangria |+250.00, Grade 2-Guanaco West |+250.00, Grade 2-Navajo Blue |+250.00, Grade 2-Navajo Bordeaux |+250.00, Grade 2-Navajo Butter |+250.00, Grade 2-Navajo Caramel |+250.00, Grade 2-Navajo Dark Brown |+250.00, Grade 2-Navajo Honey |+250.00, Grade 2-Navajo Hunter |+250.00, Grade 2-Navajo Ivory |+250.00, Grade 2-Navajo Mushroom |+250.00, Grade 2-Navajo Onyx |+250.00, Grade 2-Navajo Palomino |+250.00, Grade 2-Navajo Pecan |+250.00, Grade 2-Navajo Strawberry |+250.00, Grade 3-Classico Burlington Ranch |+500.00, Grade 3-Classico Capri Chocolate |+500.00, Grade 3-Classico Capri Harness |+500.00, Grade 3-Classico Longhorn Ranch |+500.00, Grade 3-Durango Bacio |+500.00, Grade 3-Durango Cohiba |+500.00, Grade 3-Durango Mahagony |+500.00, Grade 3-Durango Tobacco |+500.00, Grade 3-Eugene Beige |+500, Grade 3-Eugene Brick |+500, Grade 3-Eugene Charlotte |+500, Grade 3-Eugene Tumble |+500, Grade 3-Europa Coffee |+500.00, Grade 3-Europa Ebony |+500.00, Grade 3-Europa Vanilla |+500.00, Grade 3-Sensations Aubergine |+500.00, Grade 3-Sensations Black |+500.00, Grade 3-Sensations Brandy |+500.00, Grade 3-Sensations Chestnut |+500.00, Grade 3-Sensations Cream |+500.00, Grade 3-Sensations Dark Brown |+500.00, Grade 3-Sensations Espresso |+500.00, Grade 3-Sensations Light Brown |+500.00, Grade 3-Sensations Olive |+500.00, Grade 3-Sensations Red |+500.00, Grade 3-Sensations Saddle |+500.00, Grade 3-Sensations Sky Blue |+500.00, Grade 3-Sensations Tango |+500.00, Grade 3-Sensations Tuscany |+500.00, Grade 3-Softy Bianco |+500.00, Grade 3-Softy Black |+500.00, Grade 3-Softy Brandy |+500.00, Grade 3-Softy Buckskin |+500.00, Grade 3-Softy Chestnut |+500.00, Grade 3-Softy Chocolate |+500.00, Grade 3-Softy Grey |+500.00, Grade 3-Softy Java |+500.00, Grade 3-Softy Mica |+500.00, Grade 3-Softy Mint |+500.00, Grade 3-Softy Red |+500.00, Grade 3-Softy Swiss Coffee |+500.00, Grade 3-Softy Winter White |+500.00, Grade 3-Stardust Copper |+500.00, Grade 3-Stardust Mineral |+500.00, Grade 3-Stardust Mink |+500.00, Grade 3-Stardust Pearl |+500.00, 4-Brighton Bridle |+750.00, Grade 4-Brighton Chocolate |+750.00, Grade 4-Brighton Giacomo |+750.00, Grade 4-Brighton Hero |+750.00, Grade 4-Brighton Honey |+750.00, Grade 4-Brighton Tobassco |+750.00, Grade 4-Impressions Black Sky |+750.00, Grade 4-Impressions Chocolate |+750.00, Grade 4-Impressions Claret |+750.00, Grade 4-Impressions Liquor |+750.00, Grade 4-Impressions Sabbia |+750.00, Grade 4-Impressions Walnut |+750.00, Grade 4-Santa Fe Bazzana Polo |+750.00, Grade 4-Santa Fe Brompton Chocolate |+750.00, Grade 4-Santa Fe Tri-Tone Red Brown |+750.00, Grade 4-Santa Fe Village Antique |+750, Grade 5-Bella Vista Bark |+1000.00, Grade 5-Bella Vista Bench |+1000.00, Grade 5-Bella Vista Black |+1000.00, Grade 5-Bella Vista Ebony |+1000.00, Grade 5-Bella Vista Moss |+1000.00, Grade 5-Bella Vista Sequoia |+1000.00, Grade 5-Bella Vista Slate |+1000.00, Grade 5-Bella Fiore Autumn |+1000.00, Grade 5-Bella Fiore Black |+1000.00, Grade 5-Bella Fiore Briar |+1000.00, Grade 5-Bella Fiore Brownstone |+1000.00, Grade 5-Bella Fiore Buttermilk |+1000.00, Grade 5-Bella Fiore Cranberry |+1000.00, Grade 5-Bella Fiore Earth |+1000.00, Grade 5-Bella Fiore Linen |+1000.00, Grade 5-Bella Fiore Mink |+1000.00, Grade 5-Bella Fiore Sea |+1000.00, Grade 5-Bella Fiore Terracotta |+1000.00, Grade 5-Edinburg Butterscotch |+1000.00, Grade 5-Edinburg Chestnut |+1000.00, Grade 5-Edinburg Loam |+1000.00, Grade 5-Edinburg Loft |+1000.00, Grade 5-Edinburg Red |+1000.00, Grade 5-Edinburg Sandbank |+1000.00, Grade 5-Edinburg Wheat |+1000.00, Grade 5-Edinburg Woodland |+1000.00, Grade 5-Palazzo Brown |+1000.00, Grade 5-Palazzo Caffe |+1000.00, Grade 5-Palazzo Champagne |+1000.00, Grade 5-Palazzo Parquet |+1000.00, Grade 5-Palazzo Walnut |+1000.00, Grade 5-Praire Bison Antelope |+1000.00, Grade 5-Praire Bison Black |+1000.00, Grade 5-Praire Bison Chocolate |+1000.00, Grade 5 Praire Bison Cognac |+1000.00, Grade 5-Praire Bison Creme |+1000.00, Grade 5-Praire Bison Oxbood |+1000.00, Grade 5-Praire Bison Saddle |+1000.00, Grade 5-Praire Bison Tobacco |+1000.00, Grade 5-Rowdy Bison Tan |+1000.00

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10352
  • VirtueMart Version: 3+
Re: limit to add custom fields
« Reply #25 on: March 15, 2013, 02:03:06 am »
5300 characters

that field has a max character length of 255

I know the DB can be changed, but when you upgrade, its going to drop the rest of the characters


J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

cas

  • Jr. Member
  • **
  • Posts: 487
Re: limit to add custom fields
« Reply #26 on: March 15, 2013, 02:55:41 am »
When I checked the DB table xxx_virtuemart_product_customfields for the field "custom_param", where these attributes are stored, it's defined as varchar(12800), not 255.  That's good news!  So then when I manually pasted all the attributes into the "custom_param" field in the DB, it saves all the attributes just fine, and the website displays all the attributes in the drop down just fine.  Then I went into the product admin and the plug-in Drop Box Selection field now has all the attributes in it, and when I saved the product, the attributes all remained in the DB.   All great news!   So then when I tried to create a new Drop Box attribute, the Drop Box Selection field is still limiting the number of characters.   So can you check the plug-in to see what's limiting the Drop Box Selection field?

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10352
  • VirtueMart Version: 3+
Re: limit to add custom fields
« Reply #27 on: March 15, 2013, 03:39:31 am »
cas, I am working on this

this will be fixed. Its in the plugin

J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

cas

  • Jr. Member
  • **
  • Posts: 487
Re: limit to add custom fields
« Reply #28 on: March 15, 2013, 03:48:57 am »
Great! Thanks!  Let me know when it's fixed and I'll test it out. 

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10352
  • VirtueMart Version: 3+
Re: limit to add custom fields
« Reply #29 on: March 15, 2013, 03:51:10 am »


drop.php

function plgVmOnProductEdit($field, $product, &$row,&$retValue) {
      if ($field->custom_element != $this->_name) return '';
      $this->parseCustomParams($field);
      $html ='
         <fieldset>
            <legend>'. JText::_('VMCUSTOM_DROP_BOX') .'</legend>
            <table class="admintable">
               '.VmHTML::row('input','VMCUSTOM_DROP_STRING_NAME','custom_param['.$row.'][custom_drop_name]',$field->custom_drop_name).'
               '.VmHTML::row('textarea','VMCUSTOM_DROP_STRING','custom_param['.$row.'][custom_drop]',$field->custom_drop).'
            </table>
         </fieldset>';
      $retValue .= $html;

      return true ;
   }


in the 2nd   VmHTML::row
change 'input'
to 'textarea'

[attachment cleanup by admin]
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)