News:

Support the VirtueMart project and become a member

Main Menu

$field->display in related products and more

Started by patrick356356, December 17, 2012, 14:44:59 PM

Previous topic - Next topic

patrick356356

Hi all,

Many templating issues can be done in the default_xxx.php files. However in these files the expression $field->display is often used to call some function that spits out some html. Somewhere inside this $field->display there also seem to be some fields and styling hard coded.

In 2.0.14 for example the file default_relatedproducts.php contains this call. But it seem to send me back the picture + two rows beneath the picture with almost the same information on both rows. Can somebody help me figuring out how and where to change this without destroying the styling somewhere else? I guess I have to change something inside the core files instead of doing it in the override files. I also guess this will be overwritten when doing updates, correct?

Thanks
Patrick