Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I want to get rid from the little arrow in "cart box"


Nathali

Recommended Posts

Hi,

 

I would like to get rid from the little arrow in "cart" infobox title in index.php and put instead my "cart" icon.

 

Could someone please tell me what I should modify ??

 

Thanks for the attention & great day,

 

Nathali

Best Regards,

Nathali

Link to comment
Share on other sites

The image is:

 

http://www.yoursite.com/images/infobox/arrow_right.gif

If you just put your image on the site in that folder, and name it that name, no other change is required.

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

The image is:

 

http://www.yoursite.com/images/infobox/arrow_right.gif

If you just put your image on the site in that folder, and name it that name, no other change is required.

Won't that change all boxes that use that icon?

Link to comment
Share on other sites

There would have to be a change in the includes/classes/boxes.php file so that it would call a new icon name if the categories box was used.

 

Somewhere around

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

 

You could have a play with that code, I don't know how to do it though.

Link to comment
Share on other sites

Won't that change all boxes that use that icon?

Details.. Details...

 

Always details!!!

:lol:

 

OK, so maybe my idea is not a good one, but I don't like trying to "fiddle" with the infobox routine either!

:blush:

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

Page 36 of the manual states:

 

Remove all left corner graphics and left spacing on all boxes except "what's new"

box about line 121:

Change:

$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="infoBoxHeading"', 'text' =>

$contents[0]['text']),

array('params' => 'height="14" class="infoBoxHeading" nowrap', 'text' =>

$right_corner));

To: (This also removes the right arrows)

$info_box_contents[] = array(array('params' => 'with="100%" height="14"

class="infoBoxHeading"', 'text' => $contents[0]['text']));

To keep the right arrows exchange with this code:

$info_box_contents[] = array(array('params' => 'width="100%" height="14"

class="infoBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="infoBoxHeading" nowrap',

'text' => $right_corner));

Link to comment
Share on other sites

Hi,

 

Thanks a lot Dear Jim, Leslie and Newtest for your kind replies !

 

actually, I don't mind that the arrow will stay to all of the other infoboxes.. But I do want to replace the arrow to cart image in the cart infobox. :rolleyes:

 

Newtest's solution is not so clear to me, where I should change and what to solve it...

 

Is there a quick solution for it or I would have to modify some files.. ?

 

Thanks again Jim, Lesli and Newtest !

 

Great day !

 

Nathali

Best Regards,

Nathali

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...