Author Archives: solution

Wrong Quote from Table Rate Shipping Module

I have noticed that there are instances where the table rate shipping module gives the wrong shipping quote. This situation applies to the standard table rate and the modified table rate for the Mutli-Vendor Shipping. It also applies to both the price and the weight table methods. What I have done is to modify the code in the qoute function as shown here, this example is for a Mutli-Vendor Shipping store.
$table103_cost = split(“[:,]” , @constant(‘MODULE_SHIPPING_TABLE103_COST_’ . $vendors_id));
$size = sizeof($table103_cost);
for ($i=0, $n=$size; $i<$n; $i+=2)
{
if($i==0)if($order_total <= $table103_cost[$i])$shipping = $table103_cost[$i+1];
if($i>0)if($order_total > $table103_cost[$i-2] && $order_total <= $table103_cost[$i])$shipping = $table103_cost[$i+1];
if($i==$n-2)if($order_total > $table103_cost[$i])$shipping = $table103_cost[$i+1];
}

$table103_cost and ‘MODULE_SHIPPING_TABLE103_COST_’ are variable names so before you do anything backup your file and change them to the corresponding name in your file.

If you are concern about make these changes youselft, contact me.

URLs Restricted by robots.txt

I get questions on why Google Webmaster Tool shows numerous links as restricted. The reason for this may due to information in your robots.txt file and/or information in your sitemap. If you have both, it’s a good idea to check the restricted links against robots.txt and sitemap file. Overall the best way to troubleshoot this problem is to follow Google’s guideline:

Debugging blocked URLs

From my experience many of these restricted links are valid; good examples are buy now and product review links. It’s obvious that a search engine robot will neither be able to make a purchase or write a product review. For the case of buy now; in product_listing.php, you can wrap the code in an if statement like so:

case 'PRODUCT_LIST_BUY_NOW':
$lc_align = 'center';
if($session_started) $lc_text = '...';
else $lc_text = '';
break;

Add Sitemap to Robots.txt (Google, Yahoo, MSN SiteMap Auto-Discovery)

While looking for information on how to submit sitemap to MSN, I can across this piece of information from Yahoo blog. To add sitemap to robots.txt, just add the following line:

Sitemap: http://www.example.com/sitemap.xml

In case you have multiple Sitemaps, you can point to your sitemap index
Sitemap: http://www.example.com/sitemapindex.xml

To do this, simply add the following line to your robots.txt file:

Sitemap: http://www.example.com/sitemap.xml

Please provide the complete URL for your Sitemap on this line. We will pick it up wherever you put it in your robots.txt file. This directive is not specific to user-agent. If you have multiple Sitemaps, you can point to your Sitemap index file on this line.

It is good to know that one does need to manually submit site map to Google, Yahoo and MSN. I hope this is going to be the standard very soon.

Which Easy Populate is good for me? Easy Populate Basic (EPB) or Easy Populate Advanced (EPA)?

It is important to know that CRE Loaded EPB is in many respect similar to osC Easy Populate. In EPB product uniqueness is based on ‘product model.’ If you are using osCommerce, the only option you have is pretty much the Easy Populate, this is the contribution you have to install. On the other hand if you are using CRE Loaded, you have to wander at some point which one you have to use. This is what I recommend:
* if products on your site are going to be the same over time then go for EPA
* if products on your site are going to be different from time to time, then go for EPB
* if you are using data feed with schedule tasks to load your products them EPB will be a good option to consider
* there may be situations where things have to be done differently, I encouraged store administrators to think about this before investing too much time on a particular EP.
* Lastly if you are using or going to use SEO URL, you need to factor this into your considerations at the beginning, you don’t want to lose all those pages that search engines have indexed for your site. Talking about SEO URL, Ultimate SEO URLs, is a good one to use because it works well with the google xml site map generator.