Unable to edit the image columns header in proposal

Greetings all,

I ma currently facing a issue with the image column header name, it makes my commercial propositions look unprofessional, i would just like to name it something or remove the line between the image column and the product name column.

if we could see the url of the page, then we could easier test it

Hi thanks for the reply with pleasure.

and which button did you click to get the other picture?

Hi @SAAD
Assuming that you use the default cyan template
You will have to edit htdocs/core/modules/propale/doc/pdf_cyan.modules.php
find public function defineColumnField and edit
from

		// Image of product
		$rank = $rank + 10;
		$this->cols['photo'] = array(
			'rank' => $rank,
			'width' => (!getDolGlobalString('MAIN_DOCUMENTS_WITH_PICTURE_WIDTH') ? 20 : $conf->global->MAIN_DOCUMENTS_WITH_PICTURE_WIDTH), // in mm
			'status' => false,
			'title' => array(
				'textkey' => 'Photo',
				'label' => ' '
			),
			'content' => array(
				'padding' => array(0, 0, 0, 0), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
			),
			'border-left' => false, // remove left line separator
		);

to


		// Image of product
		$rank = $rank + 10;
		$this->cols['photo'] = array(
			'rank' => $rank,
			'width' => (!getDolGlobalString('MAIN_DOCUMENTS_WITH_PICTURE_WIDTH') ? 22 : $conf->global->MAIN_DOCUMENTS_WITH_PICTURE_WIDTH), // in mm
			'status' => false,
			'title' => array(
				'textkey' => 'Photo',
				'label' => 'your title here'
			),
			'content' => array(
				'align' => 'C',
				'padding' => array(1, 1, 1, 1), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
			),
			'border-left' => false, // remove left line separator
		);

You have to remember and make these changes in every update though…

1 Like

Or submit a Pull Request at github?