News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

customfieldsSorted missing?

Started by rayge, March 04, 2012, 20:50:53 PM

Previous topic - Next topic

rayge

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.
I Use: Joomla 3.4.1 & VM 3.0.9


rayge

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
I Use: Joomla 3.4.1 & VM 3.0.9

PRO


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.


rayge

OK that was my problem then. I was seeing cart attributes as the same thing
THANKS!
I Use: Joomla 3.4.1 & VM 3.0.9