Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

The results from Google's latest crawl are in!!


wizardsandwars

Recommended Posts

The reason I think that it's your PC is becasue when you siad that, I went to Google, searched for my products, saw them in the top spot, copied the URL, and pasted them in the reply to you.

 

When you clicked on them, you still didn't see them, when I just did.

 

Perhaps your network somehow dropped nearly half of the dataset?

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

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

  • Replies 62
  • Created
  • Last Reply

Waza, the first half of your question has aleady been asked and answered in this thread.

 

And for the 400 Billionth time (well ok, it just seems like that many) that I have posted this in these forums, I am using the A Spider USER_AGENT detector in my html_outlook.php to determine whether or not to assign an SID. At this time, I highly recommend that everyone do the same.

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

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

Chris Shares;
Hehe, you guys catch on quick. I manually inserted a fake parameter in the URL of my links on my all prods page so that they would be indexed a little higher for that produt. You'll notice I also changed the name of the product_info.php to pc-game.php.

 

Oh you are so very crafty & clever Chris!

 

Thanks a load for sharing this great tip. :P

 

Hmmm... Can anyone post the code? Im new!!

 

Thanks,

Warren

Link to comment
Share on other sites

I manually inserted a fake parameter in the URL of my links on my all prods page so that they would be indexed a little higher for that produt. You'll notice I also changed the name of the product_info.php to pc-game.php.

 

Sneaky, I know.

 

 

HIya WizardsandWars,

My SID is working properly but how do I add the Name of the product in the URL. What is the procedure for that ?

 

For Example :

 

<!-- body //-->

<table border="0" width="100%" cellspacing="3" cellpadding="3">

 <tr>

   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

   </table></td>

<!-- body_text //-->

   <td width="100%" valign="top"><form name="cart_quantity" method="post" action="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product', 'NONSSL'); ?>"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<?php

 $product_info = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, p.products_mimage, p.products_bimage, p.products_subimage1, p.products_subimage2, p.products_subimage3, p.products_subimage4, p.products_subimage5, p.products_subimage6, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.language_id = '" . $languages_id . "'");

 

 

The above code if taken from my product_info.php page.

 

Do I have to change anything in this code:

 

<td width="100%" valign="top"><form name="cart_quantity" method="post" action="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product', 'NONSSL'); ?>"><table border="0" width="100%" cellspacing="0" cellpadding="0">

 

Can you please explain a bit? Is this where I have to change stuff or is there any other place?

Link to comment
Share on other sites

The differences in results from Google at the moment, are due to the fact that Google is still re-building its database. Until that is fully complete, you will see different results - its nothing to do with cache either.

 

Google have something like 8 data centres - the new database gets rolled out to all of them one by one.

 

When you do a search on Google, you will be directed to one of the 8 data centres. All future searches for a fixed period of time (normally up to 5 minutes) you perform will go to the same data centre. After which, you will be pointed to a new data centre. Google do this by some clever usage of dns.

 

I'm not an expert on Google - this is just based on what I have read over the last few days on various websites. So no complaints if I've got something wrong.

 

As regards the sid killer code for html_output....I read something in a post from Harald (on the new wiki site thing), that suggested this code is going to get built in to the base OSC, in some form, at some point. I don't think it expanded much on how it would be done - just that some kind of spider identification process would be implemented.

 

Jon.

Link to comment
Share on other sites

Oh, sorry, I didn't know you were talking to me.

 

I hardcoded there links withthe fake parameter in several places throughout my shop, such as in the news section, and the all prods sction.

 

Sorry to disappoint.

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

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

So do i have to hardcode it into this code

 

<td width="100%" valign="top"><form name="cart_quantity" method="post" action="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product', 'NONSSL'); ?>"><table border="0" width="100%" cellspacing="0" cellpadding="0">

 

its from product_info.php

 

Also, can you give an example as how to hardcode it

 

Thanks for replying

Link to comment
Share on other sites

No, I mean that I actually put the link with the fake parameter in the news section or something.

 

It is not programatically generated. Sorry.

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

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

O Right - I C - So were for example a PHP file would link to

/product_info.php?products_id=1

 

You would change all the link to

/product_info.php?products_id=1&name=Product_Name

 

Am I correct?

Link to comment
Share on other sites

Well, you can't use the product name in that database of the product, because it might contain spaces. You could retrun the name of the product from that database, put it in a variable, and parse though each character of hte variable replacing the space with an underscore. or you cando it with SQL.

 

I have looked into this, but havn't made it past preliminary stages.

 

No, I did not add anything to the product_info.php to automatically or programatically include the fake parameter. I have to manually hardcode it in for the products I iwshed to be indexed like that. I put these 'special' links in the index.php news section or in the allprods.

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

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

I think I understand your process I just need to see it in plain english

 

AKA code

 

 

insert this : ( what goes here ) or a example of how to in code ...

 

I think thats what we are looking for ..

 

thanks !!!

Link to comment
Share on other sites

Guys, as I've tried to say time and time again, you are all making this WAY WAY WAY more complicated than what it is.

 

Here's and example of something I put in my index.php or on my allprods page.

 

 

<ahref="http://www.wizardsandwars.com/pc_game_info.php?name=Star_Wars_Galaxies&products_id=110>Star Wars Galaxies</a>

 

See, its just a hardcoded link. Becasuse it was a hyperlink somewhere on my webpage, Google found it, spidered it, and indexed it.

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

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

Yeah, that's what I wassaying. I didn't do anything except put a link with a fake parameter in somewhere.

 

It is very possible to use the name of the product in this way, I just havn't had time to work on it.

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

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

If your only go and hard link some important pages then you will be far better using Apache mod_rewrite to map a "good" URL to you php ID

 

Its easy for example just add the following to your .htaccess

 

RewriteEngine On

RewriteRule ^blood_pressure.htm /default.php?cPath=50

RewriteRule ^kardex.html /product_info.php?products_id=484

 

or if your purrintg it into your httpd.conf then just loose the ^ and it should work fine.

 

If you look at

 

http://www.medisave.net/blood_pressure.htm

 

Then you can see it works pretty well. Then just throw in these lard links in news etc and wait for search engines to pick up!

 

Cheers,

Graham Wright

________________

Link to comment
Share on other sites

Thanks wizard, that is simple indeed. I was thinking that there was some Programming involved because I thought that the URL were automatically getting the fake URL through some programming.

 

So it is possible to make it take the fake urls' by itself and automatically assign it.

Link to comment
Share on other sites

Yes, anything is possible.

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

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

Wizards, I have changed the URL programmatically. I have only changed the links in "allprods contribution".

 

here is an example :

 

http://www.arabianbazaar.com/product_info.php?products_id=36&products_name=Mukhallat+Rehab+%2811.7ml%29&kill_sid=true&language=en



I have used "urlencode" but does anyone know how to get " _ " instead of " + ".

 

 

And this is how it looks after Enabling Search Engine Friendly URLs through the Admin

 

http://www.arabianbazaar.com/product_info.php/products_id/58/products_name/Mukhallat+Burj+%285.8+ml%29/kill_sid/true/language/en

 

But I am getting " %28" in place of ( and "%29" in place of )

 

Its actually "Mukhallat Burj (5.8 ml)

 

----

 

 

Also, Wizards, i am not able to find the links in catalog/index.php (default.php) which i need to fake the url's. I found out the place through HTML :

 

 

    <td align="center" class="smallText" width="33%" valign="top"><a href="http://www.arabianbazaar.com/product_info.php?products_id=44&language=en"><img src="images/Small_Facing.jpg" border="0" alt="Ultra Violet Perfume Oil (11.7 ml)" title=" Ultra Violet Perfume Oil (11.7 ml) " width="80" height="100"></a><br><a href="http://www.arabianbazaar.com/product_info.php?products_id=44&language=en">Ultra Violet Perfume Oil (11.7 ml)</a><br>$24.95</td>

 

This is in catalog/includes/modules/featured.php

 

and its PHP side is:

 

 while ($featured_products = tep_db_fetch_array($featured_products_query)) {

   $num ++; if ($num == 1) { new contentBoxHeading($info_box_contents); }

   $featured_products['products_name'] = tep_get_products_name($featured_products['products_id']);

   if($featured_products['specstat']) {

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

                                          'params' => 'class="smallText" width="33%" valign="top"',

                                         'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $featured_products['products_image'], $featured_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . $featured_products['products_name'] . '</a><br><s>' . $currencies->display_price($featured_products['products_price'], tep_get_tax_rate($featured_products['products_tax_class_id'])) . '</s><br><span class="productSpecialPrice">' . 

                                          $currencies->display_price($featured_products['specials_new_products_price'], tep_get_tax_rate($featured_products['products_tax_class_id'])) . '</span>');

   } else {

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

                                          'params' => 'class="smallText" width="33%" valign="top"',

                                          'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $featured_products['products_image'], $featured_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . $featured_products['products_name'] . '</a><br>' . $currencies->display_price($featured_products['products_price'], tep_get_tax_rate($featured_products['products_tax_class_id'])));

   }    

 

Am i getting this right ?

 

I need to find the links in the main page of the shopping cart.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...