Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

extra link in the category box?


AG

Recommended Posts

Posted

Is there a way to add an extra link in a category box?

I'd like to add an allprod link to the category list box, may be at the bottom.

 

I've seen it done at Linda's site. I just want to add a link and not HR or extra box or anything.

http://www.8thoctave.com/osc_freecall_0518...&products_id=12

 

So far I've located and tried few things in the categories.php but none worked as the link get spitted outside the box :cry:

Any one enlighten me?

 

AG

Posted

Oh well, it's another 0 reply.

 

I am kind a desparate and if anyone interested in paid job, please contact me.

 

AG

Posted

just download the allprods contribution and follow the directions. only takes a feww minutes to set up.

Keith

 

 

What the hell was I thinkin'?

Posted

I think you mis-understood me.

I have the allprod.php page.

I just want the link to appear in the categories box on the left column.

But I can't seem to pin point where I am supposed to insert <a href="allprod.php">View all products</a>

 

AG

Posted
I  think you mis-understood me.  

I have the allprod.php page.  

I just want the link to appear in the categories box on the left column.  

But I can't seem to pin point where I am supposed to insert <a href="allprod.php">View all products</a>  

 

Open catalog/includes/boxes/categories.php then find this bit of code near the bottom

new infoBox($info_box_contents);

 

Replace that part of the code with

$info_box_contents[] = array('align' => 'center',

                              'text'  => '<font size=-2><a href="' . tep_href_link(FILENAME_ALLPRODS, '', 'NONSSL') . '">' . BOX_INFORMATION_ALLPRODS . '</a></font>');



 new infoBox($info_box_contents);

Keith

 

 

What the hell was I thinkin'?

Posted

Sorry, it's not working.

Surely, if you replace that with my current code, no categories list will show but only one view all item link??

 

AG

Posted

!!! wvmlt !!!

 

IT WORKED!

I just tried putting in a different place etc...

 

Thanks a lot.

You deserves a drink on me :wink:

 

AG

Archived

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

×
×
  • Create New...