[solved] Possible to show Custom Field in Vendor Profil at a product?

More
7 years 3 weeks ago - 7 years 3 weeks ago #37687 by Mx150
Hello all,


i wonder if it is possible to show some cutomfields on the product in VM Vendor Profil.

I tried to add this in /views/vendorprofil/tmpl/default.php
Code:
if (!empty($this->product->customfieldsSorted['ontop5'])) { echo'<div style="width:120px;">'; $custom_title = null ; foreach ($this->product->customfieldsSorted['ontop5'] as $field){ if ($field->display) { echo '<div class="product-field product-field-type-<?php echo $field->field_type ?>">'; if ($field->custom_title != $custom_title) { echo ' <div >'; echo '<div style="display:none;">'; if ($field->custom_tip) echo JHTML::tooltip($field->custom_tip, JText::_($field->custom_title), 'tooltip.png'); } echo '</div>'; echo '<span class="product-field-display"><img src="/images/<?php echo $field->display ?>25.png"></span>'; echo '<span class="product-field-desc"><?php echo jText::_($field->custom_field_desc) ?></span>'; echo '</div></div>'; $custom_title = $field->custom_title; } } }

but with no result and no error.

Does anybody know a solution to just output a customfield to the Vendor Product on Vendor Profil?

Thanks for any help.
Last edit: 7 years 3 weeks ago by nordmograph.

Please Log in or Create an account to join the conversation.

More
7 years 3 weeks ago #37690 by nordmograph
Hello

No code is required.
If you enable this in Virtuemart config:
Show product customfields in browse views (in the Shop Front tab)

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

More
7 years 3 weeks ago #37692 by Mx150
Hi have this Option on but dont see any customfields in Vendor Profil:-(

Any idea Why?

Please Log in or Create an account to join the conversation.

More
7 years 3 weeks ago #37694 by nordmograph
Then your custom field layout position is involved. Set it to "addtocart" layout position.

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

More
7 years 3 weeks ago #37738 by Mx150
Hi... sorry but i dont get it.

I want to Show virtuemart custom fields in VM Vendors Products on VM Vendor Profil.
For Example like here in your Demo:
www.nordmograph.com/vmvendor/index.php?o...serid=968&Itemid=124

1. I Have the custom field in browse view checked.
2. I have some customfield with layout addtocart
3. No custom field displayes in product at VM Vendor profil

Does it work in your Demo? Dont see something like this only the cart button.

Sorry i dont understand how to display...

Hope you can forgive me :-D And thanks for your help

Please Log in or Create an account to join the conversation.

More
7 years 3 weeks ago #37739 by nordmograph
No problem, I just added the 'List' customfield to the addtocart layout position
See changes at
www.nordmograph.com/vmvendor/index.php?o...serid=968&Itemid=124

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

Time to create page: 0.330 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.