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.

Bookmark and Share

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;

Bookmark and Share