Virtuemart custom field disappeared from frontend

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Jun 18, 2013 5:21 pm
Reply with quote
Report this post
hi, I have a site under construction, is now off, if you tell me an email I write access parameters.
  Using custom fields in virtuemart in some technical details of the product but I have a problem: I had to apply some changes to the css, (a little 'time ago, about a month) and now I realized that the custom fields are not more visible.
Unfortunately I do not remember all the changes that I have applied to the css but the strange thing is that the DIV class = product-fields is on the page but it is completely empty. If I change the site template, the data in the same DIV return to be shown ... Unfortunately I can not figure out where the problem lies and I need your help.
Maybe it's my fault but I can not find the solution ...
User avatar
Expert Boarder

teitbite
Tue Jun 18, 2013 10:24 pm
Reply with quote
Report this post
Hi

Please send me an access to FTP and show me an exact page with a product You are sure this fields are set.
User avatar
Moderator

GK User
Wed Jun 19, 2013 9:40 am
Reply with quote
Report this post
Hi, I sent you the data in a PM
User avatar
Expert Boarder

teitbite
Thu Jun 20, 2013 11:24 am
Reply with quote
Report this post
Hi

The custom fields were attached to a position "normal" which is not suported by product detail page. I believe it's supposed to be used in a different location. Anyway I've added this position to the code of /html/com_virtuemart/productdetails/default.php, so now You will be able to see them:

Code: Select all
                  <?php if (!empty($this->product->customfieldsSorted['normal'])) {
                         $this->position='normal';
                         echo $this->loadTemplate('customfields');
                  } // Product Custom ontop end ?>
User avatar
Moderator

GK User
Thu Jun 20, 2013 2:46 pm
Reply with quote
Report this post
thanks so much.
Just one question: what do you mean by "used in a different location"? It 's the first time I use virtuemart, I could choose where to see the custom fields?
And the template BIKE STORE planned to show them where?
User avatar
Expert Boarder

teitbite
Fri Jun 21, 2013 3:39 pm
Reply with quote
Report this post
Hi

In template You can use 2 options "ontop" and "onbottom", but by default custom fields are displayed at "normal", which is not included in products layout. I'm not a VM expert and I'm not sure where this can be set, but I can see such 3 positions in the code of layouts for VM.
User avatar
Moderator

GK User
Fri Jun 21, 2013 5:09 pm
Reply with quote
Report this post
I'm sorry, I do not know where I can find these two options to choose from ...
User avatar
Expert Boarder

teitbite
Fri Jun 21, 2013 9:04 pm
Reply with quote
Report this post
Hi

Sorry, but I do not know that either :( Please use the one I've just added. If You want to move it into a different plcae than simply edit: /html/com_virtuemart/productdetails/default.php and move my code to more appropriate place.
User avatar
Moderator


cron