Bonjour,
J had just update to VM3.2.0 (Joomla2.5.28)
and in my cart there are no description product anymore :-(
has someone an idea ?
Thanks by advance ;-)
LioneL (Southern France)
Are this descriptions done by string?
I fear we have a bug there. Open the customfield.php in sublayout ( /components/com_virtuemart/sublayouts) and replace the foreach ( foreach( (array)$product->customfields as $prodcustom){ ) around line658 with this
foreach( (array)$product->customfields as $prodcustom){
//We just add the customfields to be shown in the cart to the variantmods
if(is_object($prodcustom)){
if($prodcustom->is_cart_attribute or $prodcustom->is_input){
if(!isset($variantmods[$prodcustom->virtuemart_custom_id])){
$variantmods[$prodcustom->virtuemart_custom_id][$prodcustom->virtuemart_customfield_id] = true;
}
}
$productCustoms[$prodcustom->virtuemart_customfield_id] = $prodcustom;
}
}
Do you plan an update to implement this?
As always with a new release there will be some issues which are not apparent until that version is installed by more general users. We are already testing VM3.2.1
Merci Milbo ;-)
your modification is okay!
Quote from: Milbo on March 20, 2017, 15:13:53 PM
Are this descriptions done by string?
I fear we have a bug there. Open the customfield.php in sublayout ( /components/com_virtuemart/sublayouts) and replace the foreach ( foreach( (array)$product->customfields as $prodcustom){ ) around line658 with this
foreach( (array)$product->customfields as $prodcustom){
//We just add the customfields to be shown in the cart to the variantmods
if(is_object($prodcustom)){
if($prodcustom->is_cart_attribute or $prodcustom->is_input){
if(!isset($variantmods[$prodcustom->virtuemart_custom_id])){
$variantmods[$prodcustom->virtuemart_custom_id][$prodcustom->virtuemart_customfield_id] = true;
}
}
$productCustoms[$prodcustom->virtuemart_customfield_id] = $prodcustom;
}
}
Thank you Milbo - I can verify this works following the recent upgrade when the Custom fields disappeared.
Do you answer me here?
Quote from: Milbo on March 21, 2017, 21:33:23 PM
His bug is a bit different, because he has no data displayed. It would be good when he implements the fix, so we know if it works then also. There is still the question with http://forum.virtuemart.net/index.php?topic=136666.msg479156#msg479156 he has a customfield too much. And our poster here has none. Hmm.
Hello from Greece
this modification not working in version 3.2.2. Any idea ?