Jump to content
Sign in to follow this  
mikes

Graphical Borders on RSS News

Recommended Posts

Hi

 

The instructions to applied Graphical Borders to the modules created by other contributions are uploaded, the instructions are for the next contributions:

 

- "Star Product"

 

- "Krika News"

 

- "Featured Products"

 

- "Specials on Default.php"

 

 

NOTE: The last 2 contributions create a module that display several products but Graphical borders only modified the borders of the module,

to modified this two modules to display the products in individual boxes use the contribution:

Individual boxes for products in central modules

http://www.oscommerce.com/community/contributions,4491

 

 

 

The pack with instructions to applied to other contribution called:

Instructions to applied Graphical borders v2.1 to modules of others contributions, see list

http://www.oscommerce.com/community/contributions,1702

Share this post


Link to post
Share on other sites

Hi Guys,

 

Firstly I would like to start with thanks for this contribution; it was exactly what I was looking for. I was also wondering if you might be able to supply the template that you originally created the psd with including the slicing etc.

 

Thanks in advance.

 

Tim.

Share this post


Link to post
Share on other sites

Hello, I have just installed the Graphical Borders v2.1 contribution and everything appears fine, except that the categories section on the lefthand side did not change at all. It's still has the original border around it (Click here to see what I'm talking about). Does anyone know how to fix this so it has the same graphical border as the rest of the sections? thanks, Tara

 

BTW, GREAT CONTRIBUTION!! :)

Edited by clicknshop

Share this post


Link to post
Share on other sites

Hi,

 

i have a problem with the installing of the graphical boxes.

 

I have done alle the changes on the install.txt and have dubbelchecked it

never the less i still don't have graphical around my boxes . . .

 

can anyone help me ? My Webshop

Share this post


Link to post
Share on other sites

Hi there;

I've installed the Graphical Borders and it makes a real

difference in the look of my site .... it's great !

But I do have a snag .... for some reason it looks like the

top.gif of the boxes are not showing up. Here is a sample

page http://www.ladykdelights.com/cart/

Any suggestions as to what I may have done wrong?

 

Thanks in advance,

Karen

Share this post


Link to post
Share on other sites

I installed the contrib as well.

 

But now not all boxes have that sweet lay-out...

 

boxesfs3.jpg

 

Can anyone please help?

Share this post


Link to post
Share on other sites

Also this problem:

boxes2pt2.jpg

 

Anyone have a fix for this? No items are displayed anymore.

Edited by JW75

Share this post


Link to post
Share on other sites
Hi there;

I've installed the Graphical Borders and it makes a real

difference in the look of my site .... it's great !

But I do have a snag .... for some reason it looks like the

top.gif of the boxes are not showing up. Here is a sample

page http://www.ladykdelights.com/cart/

Any suggestions as to what I may have done wrong?

 

Thanks in advance,

Karen

 

Lady k it looks like something is missing from your catalog\stylesheet.css

 

try replacing (make a backup first tho ;) )

.mws_boxTop	{ background: url('images/infobox/top.gif');
			 font-family: Tahoma;
			 font-size: 11px;
			 text-align : center;
			 font-weight: bold;
			 background-repeat:repeat-x;
			 vertical-align: middle;
			 white-space: nowrap; }
.mws_boxLeft   { background: url('images/infobox/left.gif'); }
.mws_boxRight  { background: url('images/infobox/right.gif'); }
.mws_boxBottom { background: url('images/infobox/bot.gif');
			 font-family: Verdana, Arial, sans-serif;
			 font-size: 11px;
			 text-align : center;
			 vertical-align: middle;
			 white-space: nowrap; }
.mws_boxCenter { background: #FFFFFF; }

 

With this

/* Graphical Borders - boxes column_left_right - Star */
.mws_boxTop	{ background: url('images/infobox/top.gif');
			 font-family: Tahoma;
			 font-size: 11px;
			 text-align : center;
			 font-weight: bold;
			 background-repeat:repeat-x;
			 vertical-align: middle;
			 white-space: nowrap; }
.mws_boxLeft   { background: url('images/infobox/left.gif'); }
.mws_boxRight  { background: url('images/infobox/right.gif'); }
.mws_boxBottom { background: url('images/infobox/bot.gif');
			 font-family: Verdana, Arial, sans-serif;
			 font-size: 11px;
			 text-align : center;
			 vertical-align: middle;
			 white-space: nowrap; }
.mws_boxCenter { background: #FFFFFF; }
/* Graphical Borders - boxes column_left_right - Star */

/* Graphical Borders - boxes main modules and file-pages - Star */
.mws_boxTop_main	{ background: url('images/infobox_main/top.gif');
			 font-family: Tahoma;
			 font-size: 11px;
			 text-align : center;
			 font-weight: bold;
			 background-repeat:repeat-x;
			 vertical-align: middle;
			 white-space: nowrap; }
.mws_boxLeft_main   { background: url('images/infobox_main/left.gif'); }
.mws_boxRight_main  { background: url('images/infobox_main/right.gif'); }
.mws_boxBottom_main { background: url('images/infobox_main/bot.gif');
			 font-family: Verdana, Arial, sans-serif;
			 font-size: 11px;
			 text-align : center;
			 vertical-align: middle;
			 white-space: nowrap; }
.mws_boxCenter_main { background: #FFFFFF; }
/* Graphical Borders - boxes main modules and file-pages - End  */

Share this post


Link to post
Share on other sites
Hi Guys,

 

Firstly I would like to start with thanks for this contribution; it was exactly what I was looking for. I was also wondering if you might be able to supply the template that you originally created the psd with including the slicing etc.

 

Thanks in advance.

 

Tim.

 

 

Hi

 

Im not an expert in work with Photosop and dont know very well how create the slices for the borders. I create some sets of borders manually.

I going to see how create the slices for the border of module

In the new version of Individual boxes 1.2 its included the first graphics borders, you can find it in the pack "Customization instructions to version 1.2 - Instrucciones de personalizacion", is the set of borders that are in folder: infobox_skins/skin7/

Share this post


Link to post
Share on other sites
Hi,

 

i have a problem with the installing of the graphical boxes.

 

I have done alle the changes on the install.txt and have dubbelchecked it

never the less i still don't have graphical around my boxes . . .

 

can anyone help me ? My Webshop

 

 

Hi

 

the boxes of columns change automatically when finish the installation

 

you see if you have this line in the box of the columns:

 

new infoBox($info_box_contents);

 

in catalog/includes/boxes/files.php

files.php are the files that display in the column of your catalog: categories.php, manuefacturers.php,...

 

The graphical borders contribution change this class of infobox to display the graphics borders

 

 

If you have other classe define for this boxes then its that cause dont change the borders, but if you have this line then see if you do all changes of intructions and have all the files uploaded

Share this post


Link to post
Share on other sites

Hi nicko107,

 

do you know why this part of the shop doesnt have borders. I installed your Graphical Borders and Individual Boxes (both GREAT contribs BTW, thanks a lot!).

See screenshot:

 

snap20061211082121gd5.gif

Share this post


Link to post
Share on other sites

Graphical Boxes contribution only does the boxes generally the ones on the left and right columns you need to add the below coding to center pages as the other contribution your using states in the instructions.

 

 

Contribution] Individual boxes for products in central modules

 

http://forums.oscommerce.com/index.php?sho...mp;#entry986604

 

* 11.1. OPEN File and FIND:

*

<!-- body_text //-->

*

* ADD AFTER:

*

<?php echo mws_header (''); ?>

*

* 2. FIND:

*

<!-- body_text_eof //-->

*

* ADD BEFORE:

*

<?php echo mws_footer (''); ?>

Share this post


Link to post
Share on other sites
<!-- body_text //-->

* ADD AFTER:

<?php echo mws_header (''); ?>

 

<!-- body_text_eof //-->

* ADD BEFORE:

<?php echo mws_footer (''); ?>

So add this to product_info.php??? I'll try...

Share this post


Link to post
Share on other sites

Hi,

I got this error : -

"Parse error: parse error in ..www\catalog\includes\classes\boxes.php on line 134"

 

anyone know what's the problem?

 

also wanna ask can we wrap the whole osc site with the same infobox border with this constribution?

thanks in advance

Share this post


Link to post
Share on other sites
Hi nicko107,

 

do you know why this part of the shop doesnt have borders. I installed your Graphical Borders and Individual Boxes (both GREAT contribs BTW, thanks a lot!).

See screenshot:

 

snap20061211082121gd5.gif

 

 

Hi

 

Edit the file:

 

catalog/includes/modules/product_listing.php

 

1. Find:

 

  Released under the GNU General Public License
*/

 

After that add:

 

// Graphical Borders
?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<?php echo mws_header(''); ?>
  <td>

<?php
// Graphical Borders - end modification

 

 

2. and ADD at bottom of file:

 

	  </td>
<?php echo mws_footer(''); ?>
 </tr>
</table>

 

 

 

Thats add the rounded borders for the product listing module

Share this post


Link to post
Share on other sites

Hi Nicko

I did the above edit on product_listing.php and get the result below, Is it possibel to remove the origianl title bar and move the text up

 

Heres a screen shot of my results -

product_list.JPG

 

Regards

Shaun

Edited by Get-Wireless 2

Share this post


Link to post
Share on other sites
Hi,

I got this error : -

"Parse error: parse error in ..www\catalog\includes\classes\boxes.php on line 134"

 

anyone know what's the problem?

 

also wanna ask can we wrap the whole osc site with the same infobox border with this constribution?

thanks in advance

 

 

Hi

 

See steps 4.1 and 4.2 if in the code you replace dont replace the last:

 

}

 

in the file:

 

catalog/includes/classes/boxes.php

 

some } is possible that could be deleted

 

see the files include in folder:

 

catalog_for_new_shop_only/catalog/includes/classes/boxes.php

 

and compare this file with the file of you catalog for see is there are a } that have to deleted of your file

 

This error appear when } or ; are needed in the code or there are one that need to deleted, when copy and paste by error without last } or last ; in the code

 

 

 

 

 

 

I dont try to wrap all the store before, but do this:

 

open file:

 

catalog/includes/header.php

 

Find the table of header, find this:

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr class="header">

 

 

add before:

 

<table border="0" width="95%" cellspacing="0" cellpadding="0" align="center">
 <tr>
<?php echo mws_header_main(''); ?>
  <td>

 

 

2. open file:

 

catalog/includes/footer.php

 

and at botton of the file add the next code:

 

	  </td>
<?php echo mws_footer_main(''); ?>
 </tr>
</table>

 

 

 

In the code of header I reduce the with of store to 95% for see better the borders but you can change to the with that you want

For reduce to monitors with 800x600 of resolution change the 95% for 750

that define the width of the store

 

And I add the code: align="center" to display the store centered in the cases that reduce the width

 

 

I used the mws_header_main but you can create others style for the borders of all of store, in Graphical borders 2.1 I create two different for the borders of boxes of columns to the borders of main modules

Share this post


Link to post
Share on other sites

This is the code of

 

catalog/includes/classes/boxes.php

 

with only the changes of Graphical Borders contribution:

 

 

<?php
/*
 $Id: boxes.php,v 1.33 2003/06/09 22:22:50 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 class tableBox {
var $table_border = '0';
var $table_width = '100%';
var $table_cellspacing = '0';
var $table_cellpadding = '2';
var $table_parameters = '';
var $table_row_parameters = '';
var $table_data_parameters = '';

// class constructor
function tableBox($contents, $direct_output = false) {
  $tableBox_string = '<table border="' . tep_output_string($this->table_border) . '" width="' . tep_output_string($this->table_width) . '" cellspacing="' . tep_output_string($this->table_cellspacing) . '" cellpadding="' . tep_output_string($this->table_cellpadding) . '"';
  if (tep_not_null($this->table_parameters)) $tableBox_string .= ' ' . $this->table_parameters;
  $tableBox_string .= '>' . "\n";

  for ($i=0, $n=sizeof($contents); $i<$n; $i++) {
	if (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= $contents[$i]['form'] . "\n";
	$tableBox_string .= '  <tr';
	if (tep_not_null($this->table_row_parameters)) $tableBox_string .= ' ' . $this->table_row_parameters;
	if (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) $tableBox_string .= ' ' . $contents[$i]['params'];
	$tableBox_string .= '>' . "\n";

	if (isset($contents[$i][0]) && is_array($contents[$i][0])) {
	  for ($x=0, $n2=sizeof($contents[$i]); $x<$n2; $x++) {
		if (isset($contents[$i][$x]['text']) && tep_not_null($contents[$i][$x]['text'])) {
		  $tableBox_string .= '	<td';
		  if (isset($contents[$i][$x]['align']) && tep_not_null($contents[$i][$x]['align'])) $tableBox_string .= ' align="' . tep_output_string($contents[$i][$x]['align']) . '"';
		  if (isset($contents[$i][$x]['params']) && tep_not_null($contents[$i][$x]['params'])) {
			$tableBox_string .= ' ' . $contents[$i][$x]['params'];
		  } elseif (tep_not_null($this->table_data_parameters)) {
			$tableBox_string .= ' ' . $this->table_data_parameters;
		  }
		  $tableBox_string .= '>';
		  if (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= $contents[$i][$x]['form'];
		  $tableBox_string .= $contents[$i][$x]['text'];
		  if (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= '</form>';
		  $tableBox_string .= '</td>' . "\n";
		}
	  }
	} else {
	  $tableBox_string .= '	<td';
	  if (isset($contents[$i]['align']) && tep_not_null($contents[$i]['align'])) $tableBox_string .= ' align="' . tep_output_string($contents[$i]['align']) . '"';
	  if (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) {
		$tableBox_string .= ' ' . $contents[$i]['params'];
	  } elseif (tep_not_null($this->table_data_parameters)) {
		$tableBox_string .= ' ' . $this->table_data_parameters;
	  }
	  $tableBox_string .= '>' . $contents[$i]['text'] . '</td>' . "\n";
	}

	$tableBox_string .= '  </tr>' . "\n";
	if (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= '</form>' . "\n";
  }

  $tableBox_string .= '</table>' . "\n";

  if ($direct_output == true) echo $tableBox_string;

  return $tableBox_string;
}
 }

 class infoBox extends tableBox {
// Graphical Borders
function infoBox($contents) {
  $info_box_contents = array();
  $info_box_contents[] = array('text' => $this->mws_infoBoxContents($contents));
  $this->tableBox($info_box_contents, true);
}

function mws_infoboxcontents($contents) {
  global $mws_headerText, $mws_headerLink;
  $this->table_cellpadding = '0';
  $this->align = 'center';
  $info_box_contents = array();
  $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));
  for ($i=0, $n=sizeof($contents); $i<$n; $i++) {
	$info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''),
										'form' => (isset($contents[$i]['form'])  ? $contents[$i]['form'] : ''),
									  'params' => 'class="boxText"',
										'text' => (isset($contents[$i]['text'])  ? $contents[$i]['text'] : '')));
  }
  $output = '
  <table cellspacing="0" cellpadding="0" border="0">
	<tr>
	  <td>' . tep_image(DIR_WS_IMAGES . 'infobox/upper_left.gif','') . '</td>
	  <td class="mws_boxTop" width="100%">' . $mws_headerText;
		if ($mws_headerLink != false) {
		  $output .= '  <a href="' . $mws_headerLink . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
		}
		$output .= '</td>
	  <td>' . tep_image(DIR_WS_IMAGES . 'infobox/upper_right.gif','') . '</td>
	</tr>
	<tr>
	  <td class="mws_boxLeft"></td>
	  <td class="mws_boxCenter">' . $this->tableBox($info_box_contents) . '</td>
	  <td class="mws_boxRight"></td>
	</tr>
	<tr>
	  <td>' . tep_image(DIR_WS_IMAGES . 'infobox/lower_left.gif','') . '</td>
	  <td class="mws_boxBottom"></td>
	  <td>' . tep_image(DIR_WS_IMAGES . 'infobox/lower_right.gif','') . '</td>
	</tr>
  </table>';
  return $output;
}
// Graphical Borders - end modification

function infoBoxContents($contents) {
  $this->table_cellpadding = '3';
  $this->table_parameters = 'class="infoBoxContents"';
  $info_box_contents = array();
  $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));
  for ($i=0, $n=sizeof($contents); $i<$n; $i++) {
	$info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''),
									   'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''),
									   'params' => 'class="boxText"',
									   'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : '')));
  }
  $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));
  return $this->tableBox($info_box_contents);
}
 }

// Graphical Borders
 class infoBoxHeading extends tableBox {
function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {
  global $mws_headerText, $mws_headerLink;
  $mws_headerText = $contents[0]['text'];
  $mws_headerLink = $right_arrow;
}
 }
// Graphical Borders - end modification

 class contentBox extends tableBox {
function contentBox($contents) {
  $info_box_contents = array();
  $info_box_contents[] = array('text' => $this->contentBoxContents($contents));
  $this->table_cellpadding = '1';
  $this->table_parameters = 'class="infoBox"';
  $this->tableBox($info_box_contents, true);
}

function contentBoxContents($contents) {
  $this->table_cellpadding = '4';
  $this->table_parameters = 'class="infoBoxContents"';
  return $this->tableBox($contents);
}
 }

 class contentBoxHeading extends tableBox {
function contentBoxHeading($contents) {
  $this->table_width = '100%';
  $this->table_cellpadding = '0';

  $info_box_contents = array();
  $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',
									 'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif')),
							   array('params' => 'height="14" class="infoBoxHeading" width="100%"',
									 'text' => $contents[0]['text']),
							   array('params' => 'height="14" class="infoBoxHeading"',
									 'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif')));

  $this->tableBox($info_box_contents, true);
}
 }

 class errorBox extends tableBox {
function errorBox($contents) {
  $this->table_data_parameters = 'class="errorBox"';
  $this->tableBox($contents, true);
}
 }

 class productListingBox extends tableBox {
function productListingBox($contents) {
  $this->table_parameters = 'class="productListing"';
  $this->tableBox($contents, true);
}
 }

// Graphical Borders
class noborderBox extends tableBox {
function noborderBox($contents) {
$this->table_cellpadding = '0';
$this->table_cellspacing = '3';
$this->table_data_parameters = 'class="noborderBox"';
$this->tableBox($contents, true);
}
}
// Graphical Borders - end modification
?>

Share this post


Link to post
Share on other sites
Hi Nicko

I did the above edit on product_listing.php and get the result below, Is it possibel to remove the origianl title bar and move the text up

 

Heres a screen shot of my results -

product_list.JPG

 

Regards

Shaun

 

 

Hi

 

Thats need more change in the code of product_listing.php

 

This title bar have defined the background colors in catalog/stylesheet.css file in:

 

.productListing-heading {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 background: #b6b7cb;
 color: #FFFFFF;
 font-weight: bold;
}

 

 

you can change the background color to white and the color of the text to other color:

 

.productListing-heading {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 background: #FFFFFF;
 color: #b6b7cb;
 font-weight: bold;
}

 

 

 

 

And the text:

 

"Displaying 1 to 9 (of 9 products) Result Pages: 1 "

 

for move out of the borders of the module and display over it you can do this:

 

the code for the top of this file could be similar this:

 

<?php

/*

$Id: product_listing.php,v 1.44 2003/06/09 22:49:59 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

$listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_SEARCH_RESULTS, 'p.products_id');

 

if ( ($listing_split->number_of_rows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) {

?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td>

<td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>

</tr>

</table>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<?php echo mws_header_main(''); ?>

<td>

<?php

}

 

$list_box_contents = array();

 

for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {

switch ($column_list[$col]) {

case 'PRODUCT_LIST_MODEL':

$lc_text = TABLE_HEADING_MODEL;

$lc_align = '';

break;

 

 

The modification:

 

before:

 

<?php
 }

 $list_box_contents = array();

 

add this:

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<?php echo mws_header_main(''); ?>
  <td>

 

and deleted the other code:

 

// Graphical Borders
?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<?php echo mws_header(''); ?>
  <td>

<?php
// Graphical Borders - end modification

 

 

 

For move the title bar to the top of graphical borders I think with stylesheet.css could be possible with padding or changing the code in product_listing.php

I have to see this more

Edited by nicko107

Share this post


Link to post
Share on other sites

Great stuff Nicko thank you

 

Here is what it looks like now My Test Site

 

How can I move the following into the blue bar:

Looks Like Product Name+ Price Buy Now

 

Many Thanks and Kind Regards

Shaun

Share this post


Link to post
Share on other sites
Great stuff Nicko thank you

 

Here is what it looks like now My Test Site

 

How can I move the following into the blue bar:

Looks Like Product Name+ Price Buy Now

 

Many Thanks and Kind Regards

Shaun

 

 

This code generate that title bar:

 

 

  $list_box_contents = array();

 for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {
switch ($column_list[$col]) {
  case 'PRODUCT_LIST_MODEL':
	$lc_text = TABLE_HEADING_MODEL;
	$lc_align = '';
	break;
  case 'PRODUCT_LIST_NAME':
	$lc_text = TABLE_HEADING_PRODUCTS;
	$lc_align = '';
	break;
  case 'PRODUCT_LIST_MANUFACTURER':
	$lc_text = TABLE_HEADING_MANUFACTURER;
	$lc_align = '';
	break;
  case 'PRODUCT_LIST_PRICE':
	$lc_text = TABLE_HEADING_PRICE;
	$lc_align = 'right';
	break;
  case 'PRODUCT_LIST_QUANTITY':
	$lc_text = TABLE_HEADING_QUANTITY;
	$lc_align = 'right';
	break;
  case 'PRODUCT_LIST_WEIGHT':
	$lc_text = TABLE_HEADING_WEIGHT;
	$lc_align = 'right';
	break;
  case 'PRODUCT_LIST_IMAGE':
	$lc_text = TABLE_HEADING_IMAGE;
	$lc_align = 'center';
	break;
  case 'PRODUCT_LIST_BUY_NOW':
	$lc_text = TABLE_HEADING_BUY_NOW;
	$lc_align = 'center';
	break;
}

if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {
  $lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text);
}

$list_box_contents[0][] = array('align' => $lc_align,
								'params' => 'class="productListing-heading"',
								'text' => ' ' . $lc_text . ' ');
 }

 

 

In this code:

 

<?php echo mws_header_main(''); ?>

 

its this the code that generate the header of the graphic borders

 

for see a title in the header of graphic borders have to add the text similar this:

 

<?php echo mws_header_main('text here to see in header of graphic borders'); ?>

 

 

But I dont know how to integrate the title bar of product listing in the header of the graphical borders

 

I try to doing this with stylesheet.css, this is the result:

 

find:

 

.productListing-heading {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 background: #b6b7cb;
 color: #FFFFFF;
 font-weight: bold;
}

 

replace:

 

.productListing-heading {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 background: #b6b7cb;
 color: #FFFFFF;
 font-weight: bold;
 position:relative;
 top:-1.4em;
}

 

 

 

but this move the titles: Product Name+ and Price only without the backgorund and dont move the title Buy Now

Share this post


Link to post
Share on other sites
Hi

 

See steps 4.1 and 4.2 if in the code you replace dont replace the last:

 

}

 

in the file:

 

catalog/includes/classes/boxes.php

 

some } is possible that could be deleted

 

see the files include in folder:

 

catalog_for_new_shop_only/catalog/includes/classes/boxes.php

 

and compare this file with the file of you catalog for see is there are a } that have to deleted of your file

 

This error appear when } or ; are needed in the code or there are one that need to deleted, when copy and paste by error without last } or last ; in the code

 

Thanks nicko107,

after comparing my boxes.php with the code given I found that I'm missing the :

class infoBox extends tableBox {

now I got my store back.

thanks.

Share this post


Link to post
Share on other sites

Thanks Nicko, I am currently away with limited internet access, I will have a play the weekend and see what I can break :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×