Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Where can I change the "see more" arrow (e.g. in the "Specials" box) to add text. What I'd like is something like:

 

see more -->

 

Thanks!

Posted

In your /catalog/includes/languages/english.php find this line:

 

define('ICON_ARROW_RIGHT', 'more');

Change to:

 

define('ICON_ARROW_RIGHT', 'see more -->');

NOTE:

 

THIS WILL CHANGE THE BALLOON TEXT FOR THE RIGHT ARROW FOR ALL BOXES ON YOUR SITE.

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 >

Posted

Thank you, that's almost got it.

 

I want to have text with the arrow in the box as well. Is that possible?

Posted

It might not look good, depending on how wide your boxes are, but here's the place to add the text:

 

In /catalog/includes/classes/boxes.php

 

Find this code:

 

	  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 = '';

Alter to something like this:

 

	  if ($right_arrow == true) {
	$right_arrow = '<a href="' . $right_arrow . '">see more -->' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
  } else {
	$right_arrow = '';

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 >

Posted
It might not look good, depending on how wide your boxes are, but here's the place to add the text:

 

In /catalog/includes/classes/boxes.php

 

Find this code:

 

	  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 = '';

Alter to something like this:

 

	  if ($right_arrow == true) {
	$right_arrow = '<a href="' . $right_arrow . '">see more -->' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
  } else {
	$right_arrow = '';

Thanks - Worked great!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...