ccauw 8331ab0c1a [-]BO : bug color parameter in List
[-]BO : bug color parameter in List

In field list, if there is another field with 'color' => 'color_field', (and color_field column in the select), the background color is always the value of field list column 'color', never 'color_field'

the lines:
			{block name="td_content"}
				...
				{if isset($params.color) && isset($tr[$params.color])}
					<span class="color_field" style="background-color:{$tr.color};...
				{/if}

must be:
			{block name="td_content"}
				...
				{if isset($params.color) && isset($tr[$params.color])}
					<span class="color_field" style="background-color:{$tr[$params.color])};...
				{/if}

In the fields list, for display list, there is :
'osname' => array(
	'title' => $this->l('Status'),
	'color' => 'color',
	...
),
'color parameter gives the name of column in _List to be used as color background.
Currently, it is the same 'color' parameter which is used for one field and the row: (ex:osname)
		<span class="color_field" style="background-color:{$tr.color};...

But if there is another field with 'color' => 'color_field', (and color_field in the select), the background color is always 'color', never 'color_field'
That can be fixed with :
		<span class="color_field" style="background-color:{$tr[$params.color])};...

So the background color of the row (if colorOnBackground = true) and one row's field will be the value of the column given by 'color'=>'color', and The background color of others fields will be the value of the column given by their parameter 'color'=>'<color_field>'

$this->_select = '..color ..., ... color_field2 ...';

$this->fields_list = array(
		'field1' => array(
			'title' => $this->l('Status'),
			'color' => 'color',			// will also be the bg color of the row
			...
		),
		'field2' => array(
			'title' => $this->l('Status'),
			'color' => 'color_field2',
			...
		),
		'field2' => array(
			'title' => $this->l('Status'),
			'color' => 'color_field3',
			...
		),
2013-04-28 16:01:55 +03:00
2013-02-20 15:58:02 +01:00
2013-04-26 16:07:32 +02:00
2013-04-25 16:59:40 +02:00
2013-01-04 11:19:03 +01:00
2013-04-16 10:22:46 +02:00
2013-01-04 11:19:03 +01:00
2013-03-21 14:15:55 +01:00
2013-04-25 17:00:56 +02:00
2013-04-18 11:36:55 +02:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-04-03 16:17:33 +02:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-03-27 10:28:13 +01:00
2013-01-04 11:19:03 +01:00
2013-04-23 15:51:30 +02:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2011-07-06 10:54:11 +00:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00
2013-01-04 11:19:03 +01:00

README

PrestaShop

PREPARATION

To install PrestaShop, you need a remote web server or on your computer (MAMP), with access to a database like MySQL. You'll need access to phpMyAdmin to create a database and to indicate the information in the database in the installer.

If you do not host and unable to create your store, we offer a turnkey store, which lets you create your online store in less than 10 minutes without any technical knowledge. We invite you to visit: http://www.prestabox.com

INSTALLATION

Simply go to your PrestaShop web directory and use installer :-)

If you have any PHP error, perhaps you don't have PHP5 or you need to activate it on your web host. Please go to our forum to find pre-installation settings (PHP 5, htaccess) for certain hosting services (1&1, Free, Lycos, OVH, Infomaniak, Amen, GoDaddy, etc).

English webhost specifics settings

If you don't find any solution to launch installer, please post on our forum

There are always solutions for your issues ;-)

DOCUMENTATION

For any extra documentation (how-to), please read our Online documentation

FORUMS

You can also discuss, help and contribute with PrestaShop community on our forums

Thanks for downloading and using PrestaShop e-commerce Open-source solution!

S
Description
PrestaShop offers a free, fully scalable, Open-source e-commerce solution.
Readme 129 MiB
Languages
PHP 77.9%
Smarty 11.2%
JavaScript 7.5%
CSS 2.5%
HTML 0.9%