Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

allprods


aarslank

Recommended Posts

What is a best way to link to allprods page so search engines would catch it easily?

 

Should I just hardcode it into some page like about_us???

Or put it into a frame like 'information' (you the one in the left column.. which has links to 'contactus', 'shipping and returns', etc.)

Thanks for your help.

Link to comment
Share on other sites

I put mine in the footer... I've seen alot of sites do it that way...

 

like:

 

View all products <--(link to allprods.php)

copyright blah blah...

powered by osCommerce

The only thing necessary for evil to flourish is for good men to do nothing

- Edmund Burke

Link to comment
Share on other sites

I put mine in the footer... I've seen alot of sites do it that way...

 

like:

 

View all products <--(link to allprods.php)

copyright blah blah...

powered by osCommerce

 

That's how i've done mine as well. Google and other bots eat it up.

Link to comment
Share on other sites

  • 3 weeks later...

I made it a link that shows up in the Categories box right under the list of categories so it looks like it belongs there:

 

Widgets

Super Widgets

Widget Accessories

Another Widget Category

All Products

 

Here's how:

 

In catalog/includes/boxes/categories.php, where the last 15 lines of original code at the bottom of the page are these:

        break;

     }

   }

 }

 tep_show_category($first_element); 



 $info_box_contents = array();

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

                              'text'  => $categories_string

                             );

 new infoBox($info_box_contents);

?>

           </td>

         </tr>

<!-- categories_eof //-->

 

Change it so it now looks like this:

    // break; // Commented out for All Products link  

     }

   }

 }

 tep_show_category($first_element); 



 $info_box_contents = array();

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

                              'text'  => $categories_string . 

  //  Dot added after string above and line added below for All Products link

                                        '<a href="allprods.php">All Products</a>'

                               );

 new infoBox($info_box_contents);

?>

           </td>

         </tr>

<!-- categories_eof //-->

 

Another nice thing about this is that instead of being way down there in the footer, the link is now higher up in every page that has the Categories box.

 

:D :D :D

 

One thing I am wondering though if anyone knows -- does it make a difference search-spiders-wise whether the link is allprods.php or perhaps would they like it better as http://www.whateverdomain.com/allprods.php ???

 

Anne

Link to comment
Share on other sites

Hey Burt,

 

Interestingly enough, I put 2 links to the allprods page.

 

One of the pages, I added an extra parameter to the product_Page URL, for example: http://www.wizardsandwars.com/pc_games.php...d=105&allprod=a

 

It turns out that Google has never successfully indexed any of the products from the allprod page that I put a link to in the categories box.

 

It has successfully indexed the products from the allprods link that I put in the footer.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Well, I just upgraded my categories box, so that it displays subcategories all the time.

 

However, before that, I had a link to an allprods page in both my categories infobox, as well as in my footer. Except that I copied the Allprods module, so that I had an allprods1, and an allprods2.

 

Allprods1, I put in my categorys infobox. I changed all of the links to my products in this allprods1 page to include an extra parameter. That way when google spidered them, I could tell where the bot found the link that it indexed.

 

Allprods2, I put into my footer. This one is still on my website, and I left the product links as they came with the contribution.

 

None of the special URLs with the extra paramenter from Allprods1 ever showed up in the google index, though, even after being up for aobut 5 months. It seems that Google likes links it finds in the footer much better than links it finds in infoboxes, for some reason.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Hi David,

 

Why in the contributions section, of course.

 

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

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

  • 2 years later...

I have just installed this contribution myself this afternoon and put the code in /includes/footer.php

 

Hope this helps?

 

Dave

 

 

Are you refering to all_products.php?

 

Which file do you copy this code to

 

<?php

  echo '<a href="' . tep_href_link(FILENAME_ALL_PRODUCTS) . '">' . ALL_PRODUCTS_LINK . '</a>';

  ?>

 

To get all products link in the footer??

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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