VirtueMart Forum

VirtueMart 2 + 3 => Virtuemart Development and bug reports => Topic started by: balai on March 09, 2012, 12:14:55 pm

Title: Custom field "Hidden" ?
Post by: balai 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
Title: Re: Custom field "Hidden" ?
Post by: Otto0815 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,)
Title: Re: Custom field "Hidden" ?
Post by: Otto0815 on March 21, 2012, 12:23:55 pm
Anything new on this problem?
Title: Re: Custom field "Hidden" ?
Post by: osp 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;
Title: Re: Custom field "Hidden" ?
Post by: Otto0815 on March 21, 2012, 13:14:43 pm
Thx, i will give it a try...

Title: Re: Custom field "Hidden" ?
Post by: Robert_ITMan 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!
Title: Re: Custom field "Hidden" ?
Post by: Robert_ITMan 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.
Title: Re: Custom field "Hidden" ?
Post by: Robert_ITMan 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
Title: Re: Custom field "Hidden" ?
Post by: Kecak 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.  ;)