VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: rayge on March 04, 2012, 20:50:53 PM

Title: customfieldsSorted missing?
Post by: rayge on March 04, 2012, 20:50:53 PM
IT seems that customfieldsSorted is missing so i cant even try using the whole ontop thing.
Can anyone else verify this?

I opened the productdetails tempalte file and did

echo "<pre>";
print_r($this->product);
echo "</pre>";

hoping to find something to help me figure this out.
Title: Re: customfieldsSorted missing?
Post by: PRO on March 04, 2012, 21:14:15 PM
http://forum.virtuemart.net/index.php?topic=97419.0

what do you mean missing?

http://forum.virtuemart.net/index.php?topic=98505.0
Title: Re: customfieldsSorted missing?
Post by: rayge on March 04, 2012, 21:48:48 PM
Maybe im doing something wrong then

How about this...

what steps do i take in order to use the custom fields positions?
because obviously im doing something wrong since i cant even see the variables related to it.

thanks
Title: Re: customfieldsSorted missing?
Post by: PRO on March 04, 2012, 22:53:56 PM

In the default product page, there is ONLY 1 set position.

    if (!empty($this->product->customfieldsSorted['ontop'])) {
   $this->position = 'ontop';
   echo $this->loadTemplate('customfields');
    } // Product Custom ontop end



ontop has to be written in the custom field layout position.

IT DOES NOT work with cart attributes. BECAUSE, cart attributes have to be in the add to cart form.


YOU CAN change the position of this code.

<?php if (!empty($this->product->customfieldsSorted['bottom'])) {
   $this->position = 'bottom';
   echo $this->loadTemplate('customfields');
    } ?>

and put it anywhere in your product template and use it.

Title: Re: customfieldsSorted missing?
Post by: rayge on March 04, 2012, 23:21:33 PM
OK that was my problem then. I was seeing cart attributes as the same thing
THANKS!