Product custom fields not working

GK User
Sun Mar 25, 2012 10:37 am
Hi,
it seams that there is a bug in ../html/com_virtuemart/productdetails/default.php that prevents product custom fields to display.

at row 283:
Code: Select all
foreach ($this->product->customfields as $field){

should be
Code: Select all
foreach ($this->product->customfieldsSorted[$this->position] as $field){


Could confirm this?

Just a nother question: there is a reason for width: 30% in class product-field product-field-type-<?php echo $field->field_type ?> ?
If custom fields excede few characters the page looks bad.

tx
User avatar
Fresh Boarder

GK User
Mon Mar 26, 2012 10:03 am
Could you tell me what VM you use ? And what is your template version ? Because it can be difference between VM versions.
User avatar
Platinum Boarder

GK User
Mon Mar 26, 2012 10:35 am
Template supports custom fields sort feature because as you can see you can find following code at line 99:

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


and it should work in 'ontop' position without any problems, if you notice any problems in 'normal' position please let me know via PM with ftp details, I'll check this.
User avatar
Platinum Boarder

GK User
Mon Mar 26, 2012 12:56 pm
bkrztuk wrote:Could you tell me what VM you use ? And what is your template version ? Because it can be difference between VM versions.

VM 2.0.2
User avatar
Fresh Boarder

GK User
Mon Mar 26, 2012 3:33 pm
bkrztuk wrote:Template supports custom fields sort feature because as you can see you can find following code at line 99:

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


and it should work in 'ontop' position without any problems, if you notice any problems in 'normal' position please let me know via PM with ftp details, I'll check this.


Yes, it works if custom filed has Layout position = 'ontop', but you need code changes if you do not specify any layout position (VM2.0.2).

In any case, even if o"ontop" it seams that the rendering is not very good (try add a string custom field to demo example) .
How can I change the custom fields rendering to print them just after the Description?

Thank you for your support

Enrico
User avatar
Fresh Boarder

GK User
Tue Mar 27, 2012 7:51 am
Please send me ftp details via PM I'll look closer at this issue and try to fix this.
User avatar
Platinum Boarder

GK User
Tue Jun 19, 2012 3:51 pm
hi there

using: eshop template
joomla 2.5.4
VM: 2.0.6

Custom fields don't work well. we have the same issues, even dough VM admits the custom fields are buggy, the generated error comes from within the Gavick Template.

therefore, i really need help from within the gavick team
User avatar
Platinum Boarder

GK User
Tue Jun 19, 2012 4:21 pm
Hello,

I have the same problem. Any confirmed solutions?
User avatar
Senior Boarder


cron