Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[CONTRIBUTION] Header template Modern design Search box Add to favorites


nicko107

Recommended Posts

Hello

 

This contributions include instructions to modify the header of catalog to display a modern design with gradient color in background of header,

 

http://www.oscommerce.com/community/contributions,4514

 

DEMO:

 

http://www.oscommerce-demo.com/demo01/

 

headerdemo01jc1.gif

 

headerbluedv7.gif

 

olivekc8.gif

 

orangett5.gif

 

purplejv8.gif

 

 

and add some features:

 

- Search box in header with quickdown menu to select a specific category or subcategory to search in

This is create with contribution: Search Box Anywhere create by Tim Elam aka Bigredman74 http://www.oscommerce.com/community/contributions,3295

 

- Banner in header: added code for display a banner in header, by default display the same banner of footer of osCommerce, include instructions to add other banners and create new group for display differents banners.

 

- Add to favorite links in header, and possibilite to add other links, include instructions to add Site Map links for contribution Dynamic Sitemap.

 

 

INCLUDE:

Include instructions in english and spanish, graphics files, PSD format of graphics files for customizations, screenshots, 5 different colors for background of header.

 

 

nicko107

Edited by nicko107
Link to comment
Share on other sites

  • 3 months later...

Hi,

 

I am using this contrib and must say it looks fantastic, Only snag is I would like the add to faves to be used accross the more common browsers and not just for IE.

 

here is the code which is in the header.php file for the add to faves link

			<td align="right" class="headerNavigation"><a href="java script:window.external.AddFavorite(location.href,document.title);" class="headerNavigation"><?php echo BOX_HEADER_ADDFAVORITE; ?></a>  </td>

 

I have found the following javascript code, However

a) I dont know if it would work

B) I dont know how to merger with the above to make it work

 

<script language="JavaScript1.2" type="text/javascript">
function CreateBookmarkLink() {

title = "Webpage Title"; 
 // Blogger - Replace with <$BlogItemTitle$> 
 // MovableType - Replace with <$MTEntryTitle$>

url = "Webpage URL";
 // Blogger - Replace with <$BlogItemPermalinkURL$> 
 // MovableType - Replace with <$MTEntryPermalink$>
 // WordPress - <?php bloginfo('url'); ?>

if (window.sidebar) { // Mozilla Firefox Bookmark
	window.sidebar.addPanel(title, url,"");
} else if( window.external ) { // IE Favorite
	window.external.AddFavorite( url, title); }
else if(window.opera && window.print) { // Opera Hotlist
	return true; }
}

if (window.external) {
 document.write('<a href = 
 "java script:CreateBookmarkLink()");">Add to Favorites</a>'); 
 } else  if (window.sidebar) {
 document.write('<a href = 
"java script:CreateBookmarkLink()");">Bookmark Page</a>'); 
} else if (window.opera && window.print) {	
  document.write('<a href =
 "java script:CreateBookmarkLink()");">Add Bookmark</a>');
} 
</script>

 

Can anyone tell me if it will work and how I would go about merging it please

 

Thanks

Shaun

Link to comment
Share on other sites

  • 1 year later...

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...