[after 2.0.22a update] Problems with language overrides and custom fields.

Started by Eddy666, July 30, 2013, 06:37:27 AM

Previous topic - Next topic

Eddy666

Hi there,

after updating to vm from 2.0.20b to 2.0.22a two bugs appeared.

1. Vm is not using the language override file from my second language (en-GB) anymore.
Instead it shows for ex "COM_VIRTUEMART_SHOPPER_TITLE_MR" or the default translation for english.
The default language (german) is working fine.

2. Im using custom fields in my related products, in vm product module and in the category list.
Whenever i add a related product to a product from the vm backend something weird happens.
Only some of the products have custom fields in the category list and in the product module.
Custom fields in related products are not showing at all. Without adding related products everything is working fine.
Btw no changes to the custom fields in the product details page. Working fine there.

The code in my template override which outputs the custom fields on my related products and the
category list is:

// Output: Product Custom Fields
if (!empty($product->customfieldsCart)) {
// && $show['show_custom_field'] == 'yes'
$html.= '<div class="product-fields">';
foreach ($product->customfieldsCart as $field) {

$html.= '<div class="product-field product-field-type-'.$field->field_type.'">';
$html.= '<span class="title">'.$field->custom_title.'</span>';
$html.= '<span class="display">'.$field->display.'</span>';
$html.= '<span class="desc">'.$field->custom_field_desc.'</span>';
$html.= '</div>';

}
$html.= '</div>';
}


I hope someone can help me to fix this problems.

Thank you.

My specifications:
------------------------------------------------------------
Server: local
PHP: 5.4.7
Joomla: 2.5.13
VM: 2.0.22a
Joomla Template: Custom
VM Theme: MoWebSo Theme (the same as on the demo site http://demo.virtuemart.net/)

Eddy666

I found a work around for problem 1 but im still struggeling with problem 2.
Can anybody reproduce this or help me?

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Eddy666

Hi

No because i had custom fields in vm 2.0.20b and they disappeard after the update.
But the weird thing is that custom fields on other pages are affected too.
Whenever i add a related product to a product, only some products on the category list
have custom fields others dont. Without related products everything works normal.

I think this is related to the new related products in the add to cart popup feature.
it is disable in the backend but no changes. I really have to fix this.

Regards

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart