News:

Support the VirtueMart project and become a member

Main Menu

description product in cart / VM 3.2.0

Started by aLioneL, March 20, 2017, 14:29:49 PM

Previous topic - Next topic

aLioneL

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)

Milbo

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;
}
}
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Pitpan

#2
Do you plan an update to implement this?

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

aLioneL

Merci Milbo ;-)
your modification is okay!

kaybee57

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.

Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

bkotsias

Hello from Greece

this modification not working in version 3.2.2. Any idea ?