Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding whats new catagory


johnstone4192

Recommended Posts

Hi

Can anyone point me in the right direction for what i want to do,

At the moment, to show what products i have added by date customers need to click on the small arrow in my "whats new" box.

Can anyone tell me how to add a link to my categories box which would open up the same page.(so i can call it "products by date").

hope someone knows what i mean

cheers

Gary

Link to comment
Share on other sites

If you look in the whats_new.php infobox code you will see that the infobox heading has a link function:

 

tep_href_link(FILENAME_PRODUCTS_NEW)

 

The tep_href_link function takes the filename as the first argument and forms a relative link. You can find the tep_href_function in inlcudes/functions/html_output.php. You can also find a list of filenames that you can use in includes/filenames.php

 

You can use it in a regular anchor like so:

 

<a href="<?php echo tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL');?>">Products by Date</a>

 

We pass two more arguments because we need to generate a non-secure link (no point in using SSL for a products page).

Link to comment
Share on other sites

  • 7 months later...

Hi, this was indeed interesting! :)

 

I have a variation:

 

I need to have "What's New" as a category. When clicked it displays the usual "Whats New" in the main area.

When clicked again, it disappears in the display returns to what it was before.

 

I need this in the shop Visit My Website

 

Since I am a designer and not a coder... I need help. Are you the man to assit me?

I would be so greatful.

 

Happy Holidays!

 

Qim

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...