Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Stock display mods not workin with SEF


skeedo

Recommended Posts

Posted

When I turn on Search Engine Safe urls, all my products are displayed out of stock. Why? How can I fix this?

 

<?php 
 $prod_quantity = tep_get_products_stock($products_id); 
 switch ($prod_quantity) { 
     case 0: 
     print '<img src="images/stock_soldout.gif" border="0">'; 
     break; 
     case 1: 
     print '<img src="images/stock_instock.gif" border="0">'; 
     break; 
     case 2: 
     print '<img src="images/stock_instock.gif" border="0">'; 
     break; 
     case 3: 
     print '<img src="images/stock_instock.gif" border="0">'; 
     break; 
     case 4: 
     print '<img src="images/stock_instock.gif" border="0">'; 
     break; 
     default: 
     print '<img src="images/stock_instock.gif" border="0">'; 
 } 
 ?>

Posted

Your problem seems to be a quite unique one, i have never seen it mentioned before.

 

But you should be aware that this is not the only issue which can result by setting Search Engine URls to true.

 

Take notice of the text, Still in development:

 

Use Search-Engine Safe URLs (still in development)

 

 

The safest route is to have them set to false.

 

 

If you feel the need for more search engine urls, the best and safest option is to install one of the searchengine friendly url contributions, like Ultimate Seo Urls, Sef link transformer or Nimmit Sefs

 

They are all available in the Contribution section

Posted

Well google recently did something to their engine and now indexed URLs to my site have no description, so it is not possible to find my site on google by a keyword search.

 

The only way around this I know of is turning on the search engine safe URLs...those mods you listed don't look like any joyride install.

 

Is there a different way to combat this problem

Archived

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

×
×
  • Create New...