Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I am lost removing corner graphics


Guest

Recommended Posts

I have managed to remove all unwanted corner graphics, except for the ones in the "also_purchased_products" heading. I don't want the left and right images there, where do you remove them and how?

 

Thanks. :rolleyes:

Link to comment
Share on other sites

/catalog/includes/classes/boxes.php

 

Find this code:

 

  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);
}
 }

Change these lines:

 

										 'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif')),
									 'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif')));

To:

										 'text' => ' ')),
									 'text' => ' ')));

BACKUP THE FILE BEFORE YOU BEGIN.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

/catalog/includes/classes/boxes.php

 

Find this code:

 

  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);
}
 }

Change these lines:

 

										 'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif')),
									 'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif')));

To:

										 'text' => ' ')),
									 'text' => ' ')));

BACKUP THE FILE BEFORE YOU BEGIN.

 

 

I changed that code and navigated to my shopping site (osc) and its gone! I changed the code back to:

 

$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')));

 

 

My cart has still gone. When I try to get to my site where Osc is installed I get the HTTP500 error. Whats going on how do you fix that? I have no idea what could have happened. All I have done today is add specials, which I viewed online, email some customers, changed a font colour, and edit this file.

Link to comment
Share on other sites

All I have done today is add specials, which I viewed online, email some customers, changed a font colour, and edit this file.

Just restore your back up files.

Link to comment
Share on other sites

Just restore your back up files.

 

Crises averted thanks, TG for backups. I will try this edit again and I hope it works.

Link to comment
Share on other sites

still lost here. I can see the text to change but anyone know how to change it?

Have you ever edited files in your shop? If so, how did you do it (ie what process did you go through)?

Link to comment
Share on other sites

Post (or PM me) the URL to your shop if you want me to work with you on this.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Download RC2 osc it has some .pdf that will assist You.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Look in your /osc/includes/modules/also_purchased_products.php, doesn't it have this code:

 

<!-- also_purchased_products //-->
<?php
  $info_box_contents = array();
  $info_box_contents[] = array('text' => TEXT_ALSO_PURCHASED_PRODUCTS);

  new contentBoxHeading($info_box_contents);

:unsure:

 

The last line in that code is what references the code that makes the images that I said to change.

 

I still think if you change it correctly it will fix your problem.

 

I'll post the altered function and you can just copy/paste.

 

  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' => ' ')),
							   array('params' => 'height="14" class="infoBoxHeading" width="100%"',
									 'text' => $contents[0]['text']),
							   array('params' => 'height="14" class="infoBoxHeading"',
									 'text' => ' ')));
  $this->tableBox($info_box_contents, true);
}
 }

Be sure you still have your backup.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...