Author Topic: Custom field "Hidden" ?  (Read 11941 times)

balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1365
Custom field "Hidden" ?
« on: March 09, 2012, 12:14:55 pm »
Hi

When i set a custom field to "Hidden" there is no any effect in the FE. The custom fields are displayed nornally.

Am i missing something or it is a bug?

VM2.0.2 Stable

Otto0815

  • Jr. Member
  • **
  • Posts: 189
Re: Custom field "Hidden" ?
« Reply #1 on: March 12, 2012, 16:07:42 pm »
Would like to know this, too..

I want to use the custumfields for product data that should only be relevant for the database (calcfaktors, manufakturer sku,)

Otto0815

  • Jr. Member
  • **
  • Posts: 189
Re: Custom field "Hidden" ?
« Reply #2 on: March 21, 2012, 12:23:55 pm »
Anything new on this problem?

osp

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 66
Re: Custom field "Hidden" ?
« Reply #3 on: March 21, 2012, 13:03:04 pm »
Override your default_customfields template, then you can use simple test in your template.
We will consider if patch core template...

Code: [Select]
foreach ($this->product->customfieldsSorted[$this->position] as $field) {
 if ($field->display) {
   if ( $field->is_hidden == "1" )
     continue;

Otto0815

  • Jr. Member
  • **
  • Posts: 189
Re: Custom field "Hidden" ?
« Reply #4 on: March 21, 2012, 13:14:43 pm »
Thx, i will give it a try...


Robert_ITMan

  • Jr. Member
  • **
  • Posts: 114
    • websites developed and managed @ ourfingertips.com
  • VirtueMart Version: 3.2.12 and 3.2.15
Re: Custom field "Hidden" ?
« Reply #5 on: March 30, 2013, 03:47:52 am »
Please help me make sense of this. I see a reference to this article in the current file components/com_virtuemart/views/productdetails/tmpl/default_customfields.php (line 27 if ( $field->is_hidden ) //OSP http://forum.virtuemart.net/index.php?topic=99320.0) and yet it still does not hide the field. I tried this and I also copied this file to my template as templates\(my template)/html/com_virtuemart/productdetails/default_customfields.php and I'm making changes here and it does nothing. I think this file is never called. I see in my default template file ( templates\(my template)/html/com_virtuemart/productdetails/default.php ) a call to echo $this->loadTemplate('customfields'); which works but I can't figure it out yet. Where do we change the fields if not in 'customfields' which should be the default_customfields.php file - does any one get this? If so please reply!
www.ourfingertips.com - websites developed and managed @ ourfingertips

Let me help you make the most of the technology at our fingertips

Robert_ITMan

  • Jr. Member
  • **
  • Posts: 114
    • websites developed and managed @ ourfingertips.com
  • VirtueMart Version: 3.2.12 and 3.2.15
Re: Custom field "Hidden" ?
« Reply #6 on: September 06, 2013, 15:10:31 pm »
I never did figure out the validation and with so many other problems with the custom fields that come with VM2 I decided to use BreezingForms & VM Custom Fields - and I'm very happy with the results.
www.ourfingertips.com - websites developed and managed @ ourfingertips

Let me help you make the most of the technology at our fingertips

Robert_ITMan

  • Jr. Member
  • **
  • Posts: 114
    • websites developed and managed @ ourfingertips.com
  • VirtueMart Version: 3.2.12 and 3.2.15
Re: Custom field "Hidden" ?
« Reply #7 on: November 21, 2013, 16:21:47 pm »
To follow up on this I posted a new topic 'VM2 Custom Fields Integration - IT WORKS!' here:
http://forum.virtuemart.net/index.php?topic=120445.0
www.ourfingertips.com - websites developed and managed @ ourfingertips

Let me help you make the most of the technology at our fingertips

Kecak

  • Beginner
  • *
  • Posts: 1
Re: Custom field "Hidden" ?
« Reply #8 on: April 11, 2014, 19:40:13 pm »
Hello to everyone. The customfields display located in default_addtocart.php template file. Start at 34 line.  ;)