Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Making box heading text a clickable link?


Phod

Recommended Posts

One of the complaints I've heard is people aren't seeing the little tiny arrow in the shopping cart box, and 'what's new' box. They sit there trying to click on the box heading expecting it to be a link.

 

How could I make the box header text a clickable link?

 

Thanks!

Z

Link to comment
Share on other sites

One of the complaints I've heard is people aren't seeing the little tiny arrow in the shopping cart box, and 'what's new' box. They sit there trying to click on the box heading expecting it to be a link.

 

How could I make the box header text a clickable link?

 

Thanks!

Z

 

Just make it a link, referring to the needed file. In STS it would be something like this in the respective box file (in this case infobox_featured.php.html):

 

<td style="text-align: left;"

class="FeaturedBoxHeading"><a

href="featured_products.php">FEATURED</a></td>

You would have to insert your own CSS class instead of "FeaturedBoxHeading" - whatever you have there.

Link to comment
Share on other sites

Using the shopping car box as an example.

In catalog/includes/languages/english.php find

define('BOX_HEADING_SHOPPING_CART', 'Shopping Cart');

Change to

define('BOX_HEADING_SHOPPING_CART', '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . 'Shopping Cart' . '</a>');

You want to make sure when linking to a page within your store you use the tep_href function.

Link to comment
Share on other sites

  • 4 weeks later...

Huh, very simple, very easy... and the most important: very efficient! Thanks Bktrain!

 

Using the shopping car box as an example.

In catalog/includes/languages/english.php find

define('BOX_HEADING_SHOPPING_CART', 'Shopping Cart');

Change to

define('BOX_HEADING_SHOPPING_CART', '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . 'Shopping Cart' . '</a>');

You want to make sure when linking to a page within your store you use the tep_href function.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...