VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: Spike11 on March 13, 2013, 13:24:25 PM

Title: Please help, custom fields
Post by: Spike11 on March 13, 2013, 13:24:25 PM
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!
Title: Re: Please help, custom fields
Post by: balai on March 13, 2013, 15:38:14 PM
check the position.
Set ontop or normal
Title: Re: Please help, custom fields
Post by: Spike11 on March 13, 2013, 18:18:15 PM
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...   :'(
Title: Re: Please help, custom fields
Post by: balai on March 14, 2013, 11:08:45 AM
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
Title: Re: Please help, custom fields
Post by: Spike11 on March 17, 2013, 17:30:06 PM
"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.