News:

Support the VirtueMart project and become a member

Main Menu

Please help, custom fields

Started by Spike11, March 13, 2013, 13:24:25 PM

Previous topic - Next topic

Spike11

Hi,

I have done everything "by the book", and custom fields are not showing at all. I don't know where I0m going wrong, I made a string, and a cart variant, none of them are showing in the product. I have set everything up by the tutorial, and it's like I never put them there...

Please help me, I'm gonna go crazy :)

I am using Joomla 2.5.8 and VM 2.0.18a

Thank you!

balai

check the position.
Set ontop or normal

Spike11

Thank you for the reply.

If I understood you right, in Product/Custom fields, in the Custom field I opened, under Layout position I just wrote "normal" or "ontop". Still doesnt work, it's not showing anywhere...   :'(

balai

Hi

Have you assigned values to the customfield for the product you are reviewing?
Is your custom field set as "Cart Attribute"?

If the above don't help
Open your template's product details layout (if exists):

YOUR TEMPLATE\html\com_virtuemart\productdetails\default.php
and check for $this->position

These are the existing positions

Spike11

"Have you assigned values to the customfield for the product you are reviewing?
Is your custom field set as "Cart Attribute"?" 

- yes I have.

Ok, I have found the like i think I'm looking for:
if (!empty($this->product->customfieldsSorted['ontop'])) {
$this->position='ontop';
echo $this->loadTemplate('customfields');
} // Product Custom ontop end


So I guess the position is ontop as you said before, I tried to write it in Position again, tried a new Custom field, and still nothing.........

Thank you.