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

related products with default language description text

Started by franzpeter, July 06, 2012, 12:02:20 PM

Previous topic - Next topic

franzpeter

There is something wrong in the VM 2.0.8 code in case of related products. For every related product it show the following default description 'Beschreibung ähnlicher Produkte' (means translated: description of related products). The custom field related products does not allow to give a description. And it does not take the description from the product language table itself. So I do not understand the sense of integrating it in the default view of default_related_products: <span class="product-field-desc"><?php echo jText::_($field->custom_field_desc) ?></span>.

It would only make sense to create (for big shops) hundreds or thousand instances for related products as custom fields and enter the product description or short desc into those custom fields (for every product a new one) as custom field description. Or did you intend to implement an add to cart button?

franzpeter

IMHO it would make more sense to show the custom fields 'related products' and 'related categories' in the backend custom fields, give it a editable field description and use that as title for the tab, instead of taking the tab name from the language file. Replacing
<h4><?php echo JText::_('COM_VIRTUEMART_RELATED_PRODUCTS'); ?></h4>

with something like:
<h4><?php echo jText::_($field->custom_field_desc) ?></h4>

would make some sense, because a user could make those entries more individual. Same for the related categories.
The actual position with <span class="product-field-desc"><?php echo jText::_($field->custom_field_desc) ?></span> seems to be nonsense.