Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Custom Navigation


MCousin76

Recommended Posts

Posted

Is there anyway to add a custom navigation?

 

I tried to do it myself but when I went to add products to the shopping cart it would only allow me to add one product. It's like it creates a new session with every new click on the navigation. This is what i did - maybe i set it up wrong...

 

INCLUDES / FILENAMES.PHP

(I defined my names)

 

define('FILENAME_BOOKMARKS', 'index.php?cPath=27');

define('FILENAME_BROCHURES', 'index.php?cPath=28');

define('FILENAME_BUSINESSCARDS', 'index.php?cPath=29');

define('FILENAME_DOORHANGERS', 'index.php?cPath=37');

define('FILENAME_ENVELOPES', 'index.php?cPath=40');

define('FILENAME_GREETINGCARDS', 'index.php?cPath=44');

define('FILENAME_LETTERHEAD', 'index.php?cPath=52');

define('FILENAME_POCKETFOLDERS', 'index.php?cPath=57');

define('FILENAME_POSTCARDS', 'index.php?cPath=58');

define('FILENAME_POSTERS', 'index.php?cPath=59');

define('FILENAME_RACKCARDS', 'index.php?cPath=61');

define('FILENAME_RIPCARDS', 'index.php?cPath=63');

define('FILENAME_SELLSHEETS', 'index.php?cPath=64');

define('FILENAME_TABLETENTS', 'index.php?cPath=67');

define('FILENAME_TICKETS', 'index.php?cPath=68');

 

LANGUAGES / ENGLISH.PHP

(I inserted the way i wanted the bottom to look)

 

define('FOOTER_TEXT_BODY', '<table width="771" border="0" cellpadding="0" cellspacing="0" align="center">

<tr>

<td height="1" align="center" bgcolor="cccccc"></td>

</tr>

<tr>

<td height="45" align="center" bgcolor="f0f0f0">| <a href="' . tep_href_link(FILENAME_DEFAULT) . '" class="footer-link">Home</A>

| <A href="#" class="footer-link">About Us</A> | <a href="' . tep_href_link(FILENAME_CONTACT_US) . '" class="footer-link">Contact

Us</A> | <A href="#" class="footer-link">Products & Services</A> | <A href="#" class="footer-link">Request a Printing Quote</A> | <A href="#" class="footer-link">Request a List Quote</A> |<BR> | <A href="#" class="footer-link">Request a Mailing Quote</A> | <A href="' . tep_href_link(FILENAME_CONDITIONS) . '" class="footer-link">Terms of Use and Conditions</A> | <a href="' . tep_href_link(FILENAME_PRIVACY) . '" class="footer-link">Privacy Policy</A> | <A href="#" class="footer-link">Help Center</A> | <A href="#" class="footer-link">FREE - Resources</A> |</td>

</tr ><tr>

<td height="1" align="center" bgcolor="cccccc"></td>

</tr>

<tr>

<td align="center" bgcolor="#FFFFFF"><table width="90%" border="0" cellspacing="0" cellpadding="5">

<tr>

<td align="left">

<a href="' . tep_href_link(FILENAME_BOOKMARKS) . '" class="footer-link">• Bookmarks</a><br>

<a href="' . tep_href_link(FILENAME_BROCHURES) . '" class="footer-link">• Brochures</a><br>

<a href="' . tep_href_link(FILENAME_BUSINESSCARDS) . '" class="footer-link">• Business Cards </a>

<td align="left">

<a href="' . tep_href_link(FILENAME_DOORHANGERS) . '" class="footer-link">• Door Hangers</a><br>

<a href="' . tep_href_link(FILENAME_ENVELOPES) . '" class="footer-link">• Envelopes</a><br>

<a href="' . tep_href_link(FILENAME_GREETINGCARDS) . '" class="footer-link">• Greeting Cards</a>

<td align="left">

<a href="' . tep_href_link(FILENAME_LETTERHEAD) . '" class="footer-link">• Letterhead </a><br>

<a href="' . tep_href_link(FILENAME_POCKETFOLDERS) . '" class="footer-link">• Pocket Folders </a><br>

<a href="' . tep_href_link(FILENAME_POSTCARDS) . '" class="footer-link">• Postcards</a>

<td align="left">

<a href="' . tep_href_link(FILENAME_POSTERS) . '" class="footer-link">• Posters</a><br>

<a href="' . tep_href_link(FILENAME_RACKCARDS) . '" class="footer-link">• Rack Cards</a><br>

<a href="' . tep_href_link(FILENAME_RIPCARDS) . '" class="footer-link">• Rip Cards</a>

<td align="left">

<a href="' . tep_href_link(FILENAME_SELLSHEETS) . '" class="footer-link">• Sell Sheets</a><br>

<a href="' . tep_href_link(FILENAME_TABLETENTS) . '" class="footer-link">• Table Tents</a><br>

<a href="' . tep_href_link(FILENAME_TICKETS) . '" class="footer-link">• Tickets </a>

</td>

</tr>

</table></td>

</tr>

<tr>

<td height="35" align="center" bgcolor="#FFFFFF"><strong>Copyright © ' . date('Y') . ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . STORE_NAME . '</a></strong></td>

</tr>

</table>');

Posted

I noticed that another user had a similar problem creating custom product links. He was directed to the osC External Sessions contribution. http://www.oscommerce.com/community/contributions,3257

 

I downloaded the contribution but i'm having a hard time figuring out how to install it / use it. Is there anyone able to help me figure it out?

 

 

Is there anyway to add a custom navigation?

 

I tried to do it myself but when I went to add products to the shopping cart it would only allow me to add one product. It's like it creates a new session with every new click on the navigation. This is what i did - maybe i set it up wrong...

 

INCLUDES / FILENAMES.PHP

(I defined my names)

 

define('FILENAME_BOOKMARKS', 'index.php?cPath=27');

define('FILENAME_BROCHURES', 'index.php?cPath=28');

define('FILENAME_BUSINESSCARDS', 'index.php?cPath=29');

define('FILENAME_DOORHANGERS', 'index.php?cPath=37');

define('FILENAME_ENVELOPES', 'index.php?cPath=40');

define('FILENAME_GREETINGCARDS', 'index.php?cPath=44');

define('FILENAME_LETTERHEAD', 'index.php?cPath=52');

define('FILENAME_POCKETFOLDERS', 'index.php?cPath=57');

define('FILENAME_POSTCARDS', 'index.php?cPath=58');

define('FILENAME_POSTERS', 'index.php?cPath=59');

define('FILENAME_RACKCARDS', 'index.php?cPath=61');

define('FILENAME_RIPCARDS', 'index.php?cPath=63');

define('FILENAME_SELLSHEETS', 'index.php?cPath=64');

define('FILENAME_TABLETENTS', 'index.php?cPath=67');

define('FILENAME_TICKETS', 'index.php?cPath=68');

 

LANGUAGES / ENGLISH.PHP

(I inserted the way i wanted the bottom to look)

 

define('FOOTER_TEXT_BODY', '<table width="771" border="0" cellpadding="0" cellspacing="0" align="center">

<tr>

<td height="1" align="center" bgcolor="cccccc"></td>

</tr>

<tr>

<td height="45" align="center" bgcolor="f0f0f0">| <a href="' . tep_href_link(FILENAME_DEFAULT) . '" class="footer-link">Home</A>

| <A href="#" class="footer-link">About Us</A> | <a href="' . tep_href_link(FILENAME_CONTACT_US) . '" class="footer-link">Contact

Us</A> | <A href="#" class="footer-link">Products & Services</A> | <A href="#" class="footer-link">Request a Printing Quote</A> | <A href="#" class="footer-link">Request a List Quote</A> |<BR> | <A href="#" class="footer-link">Request a Mailing Quote</A> | <A href="' . tep_href_link(FILENAME_CONDITIONS) . '" class="footer-link">Terms of Use and Conditions</A> | <a href="' . tep_href_link(FILENAME_PRIVACY) . '" class="footer-link">Privacy Policy</A> | <A href="#" class="footer-link">Help Center</A> | <A href="#" class="footer-link">FREE - Resources</A> |</td>

</tr ><tr>

<td height="1" align="center" bgcolor="cccccc"></td>

</tr>

<tr>

<td align="center" bgcolor="#FFFFFF"><table width="90%" border="0" cellspacing="0" cellpadding="5">

<tr>

<td align="left">

<a href="' . tep_href_link(FILENAME_BOOKMARKS) . '" class="footer-link">• Bookmarks</a><br>

<a href="' . tep_href_link(FILENAME_BROCHURES) . '" class="footer-link">• Brochures</a><br>

<a href="' . tep_href_link(FILENAME_BUSINESSCARDS) . '" class="footer-link">• Business Cards </a>

<td align="left">

<a href="' . tep_href_link(FILENAME_DOORHANGERS) . '" class="footer-link">• Door Hangers</a><br>

<a href="' . tep_href_link(FILENAME_ENVELOPES) . '" class="footer-link">• Envelopes</a><br>

<a href="' . tep_href_link(FILENAME_GREETINGCARDS) . '" class="footer-link">• Greeting Cards</a>

<td align="left">

<a href="' . tep_href_link(FILENAME_LETTERHEAD) . '" class="footer-link">• Letterhead </a><br>

<a href="' . tep_href_link(FILENAME_POCKETFOLDERS) . '" class="footer-link">• Pocket Folders </a><br>

<a href="' . tep_href_link(FILENAME_POSTCARDS) . '" class="footer-link">• Postcards</a>

<td align="left">

<a href="' . tep_href_link(FILENAME_POSTERS) . '" class="footer-link">• Posters</a><br>

<a href="' . tep_href_link(FILENAME_RACKCARDS) . '" class="footer-link">• Rack Cards</a><br>

<a href="' . tep_href_link(FILENAME_RIPCARDS) . '" class="footer-link">• Rip Cards</a>

<td align="left">

<a href="' . tep_href_link(FILENAME_SELLSHEETS) . '" class="footer-link">• Sell Sheets</a><br>

<a href="' . tep_href_link(FILENAME_TABLETENTS) . '" class="footer-link">• Table Tents</a><br>

<a href="' . tep_href_link(FILENAME_TICKETS) . '" class="footer-link">• Tickets </a>

</td>

</tr>

</table></td>

</tr>

<tr>

<td height="35" align="center" bgcolor="#FFFFFF"><strong>Copyright © ' . date('Y') . ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . STORE_NAME . '</a></strong></td>

</tr>

</table>');

Posted

Does anyone have any idea how to create a custom product link that will show up either on the left navigation or the bottom footer?

 

Is there anyway to add a custom navigation?

 

I tried to do it myself but when I went to add products to the shopping cart it would only allow me to add one product. It's like it creates a new session with every new click on the navigation. This is what i did - maybe i set it up wrong...

 

INCLUDES / FILENAMES.PHP

(I defined my names)

 

define('FILENAME_BOOKMARKS', 'index.php?cPath=27');

define('FILENAME_BROCHURES', 'index.php?cPath=28');

define('FILENAME_BUSINESSCARDS', 'index.php?cPath=29');

define('FILENAME_DOORHANGERS', 'index.php?cPath=37');

define('FILENAME_ENVELOPES', 'index.php?cPath=40');

define('FILENAME_GREETINGCARDS', 'index.php?cPath=44');

define('FILENAME_LETTERHEAD', 'index.php?cPath=52');

define('FILENAME_POCKETFOLDERS', 'index.php?cPath=57');

define('FILENAME_POSTCARDS', 'index.php?cPath=58');

define('FILENAME_POSTERS', 'index.php?cPath=59');

define('FILENAME_RACKCARDS', 'index.php?cPath=61');

define('FILENAME_RIPCARDS', 'index.php?cPath=63');

define('FILENAME_SELLSHEETS', 'index.php?cPath=64');

define('FILENAME_TABLETENTS', 'index.php?cPath=67');

define('FILENAME_TICKETS', 'index.php?cPath=68');

 

LANGUAGES / ENGLISH.PHP

(I inserted the way i wanted the bottom to look)

 

define('FOOTER_TEXT_BODY', '<table width="771" border="0" cellpadding="0" cellspacing="0" align="center">

<tr>

<td height="1" align="center" bgcolor="cccccc"></td>

</tr>

<tr>

<td height="45" align="center" bgcolor="f0f0f0">| <a href="' . tep_href_link(FILENAME_DEFAULT) . '" class="footer-link">Home</A>

| <A href="#" class="footer-link">About Us</A> | <a href="' . tep_href_link(FILENAME_CONTACT_US) . '" class="footer-link">Contact

Us</A> | <A href="#" class="footer-link">Products & Services</A> | <A href="#" class="footer-link">Request a Printing Quote</A> | <A href="#" class="footer-link">Request a List Quote</A> |<BR> | <A href="#" class="footer-link">Request a Mailing Quote</A> | <A href="' . tep_href_link(FILENAME_CONDITIONS) . '" class="footer-link">Terms of Use and Conditions</A> | <a href="' . tep_href_link(FILENAME_PRIVACY) . '" class="footer-link">Privacy Policy</A> | <A href="#" class="footer-link">Help Center</A> | <A href="#" class="footer-link">FREE - Resources</A> |</td>

</tr ><tr>

<td height="1" align="center" bgcolor="cccccc"></td>

</tr>

<tr>

<td align="center" bgcolor="#FFFFFF"><table width="90%" border="0" cellspacing="0" cellpadding="5">

<tr>

<td align="left">

<a href="' . tep_href_link(FILENAME_BOOKMARKS) . '" class="footer-link">• Bookmarks</a><br>

<a href="' . tep_href_link(FILENAME_BROCHURES) . '" class="footer-link">• Brochures</a><br>

<a href="' . tep_href_link(FILENAME_BUSINESSCARDS) . '" class="footer-link">• Business Cards </a>

<td align="left">

<a href="' . tep_href_link(FILENAME_DOORHANGERS) . '" class="footer-link">• Door Hangers</a><br>

<a href="' . tep_href_link(FILENAME_ENVELOPES) . '" class="footer-link">• Envelopes</a><br>

<a href="' . tep_href_link(FILENAME_GREETINGCARDS) . '" class="footer-link">• Greeting Cards</a>

<td align="left">

<a href="' . tep_href_link(FILENAME_LETTERHEAD) . '" class="footer-link">• Letterhead </a><br>

<a href="' . tep_href_link(FILENAME_POCKETFOLDERS) . '" class="footer-link">• Pocket Folders </a><br>

<a href="' . tep_href_link(FILENAME_POSTCARDS) . '" class="footer-link">• Postcards</a>

<td align="left">

<a href="' . tep_href_link(FILENAME_POSTERS) . '" class="footer-link">• Posters</a><br>

<a href="' . tep_href_link(FILENAME_RACKCARDS) . '" class="footer-link">• Rack Cards</a><br>

<a href="' . tep_href_link(FILENAME_RIPCARDS) . '" class="footer-link">• Rip Cards</a>

<td align="left">

<a href="' . tep_href_link(FILENAME_SELLSHEETS) . '" class="footer-link">• Sell Sheets</a><br>

<a href="' . tep_href_link(FILENAME_TABLETENTS) . '" class="footer-link">• Table Tents</a><br>

<a href="' . tep_href_link(FILENAME_TICKETS) . '" class="footer-link">• Tickets </a>

</td>

</tr>

</table></td>

</tr>

<tr>

<td height="35" align="center" bgcolor="#FFFFFF"><strong>Copyright © ' . date('Y') . ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . STORE_NAME . '</a></strong></td>

</tr>

</table>');

Posted
Does anyone have any idea how to create a custom product link that will show up either on the left navigation or the bottom footer?

 

Hi,

 

you can edit the column_left.php file to include any type of information that you want.

 

I inserted a specials block at the base of the left column simply by tacking the following at the end of the code

 

</td>

</tr>

 

 

 

</table>

<br style="line-height:5px;">

<a href="<?=tep_href_link('specials.php')?>"><?=tep_image(DIR_WS_IMAGES.'b1.jpg')?></a><br>

 

Hope that helps.

Posted

If i do this in the column_left.php page....

 

<br style="line-height:5px;">

<a href="<?=tep_href_link('index.php?cPath=27')?>">bookmark</a><br>

 

my session gets all messed up

 

 

 

Hi,

 

you can edit the column_left.php file to include any type of information that you want.

 

I inserted a specials block at the base of the left column simply by tacking the following at the end of the code

 

</td>

</tr>

 

 

 

</table>

<br style="line-height:5px;">

<a href="<?=tep_href_link('specials.php')?>"><?=tep_image(DIR_WS_IMAGES.'b1.jpg')?></a><br>

 

Hope that helps.

Posted

If i follow the steps below: How do i display the product_listings for that product?

There has got to be some sort of way to make a custom looking left navigation.....

 

===============

includes/filenames.php

===============

define('FILENAME_BOOKMARKS', 'bookmarks.php');

 

============================

includes/languages/english/bookmarks.php

============================

i grabbed the privacy.php page and inserted the bookmarks information in it.

 

================

catalog/bookmarks.php

================

grabbed the privacy.php page and inserted the filename_bookmarks below.

 

require('includes/application_top.php');

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_BOOKMARKS);

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_BOOKMARKS));

?>

 

=======================================================================

 

 

 

 

If i do this in the column_left.php page....

 

<br style="line-height:5px;">

<a href="<?=tep_href_link('index.php?cPath=27')?>">bookmark</a><br>

 

my session gets all messed up

Archived

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

×
×
  • Create New...