Tuesday 28 February 2012

Language order

probably you have solved it yourself, but in case somebody else needs a solution, this can be useful:
in the /module/blocklanguages/blocklanguages.php file put



function cmp($a, $b)
{
  //language iso_code in the desired order:
  $new_order = array("fr", "es", "en", "de");
  foreach($new_order as &$value)
  {
    if ($a["iso_code"]==$value) return -1;
    if ($b["iso_code"]==$value) return 1; 
  }
}




Paste this code:


usort($languages,"cmp");
$smarty->assign('languages', $languages);

Thursday 2 February 2012

To Increase Keyword,Meta tag,Description limit to more than 250 Character.


You need to edit your database using phpMyAdmin and increase the length of the meta_keywords field of the ps_product_lang table

And then edit line:187 of classes/Product.php and increase the meta_keywords length there:


protected $fieldsSizeLang = array('meta_description' => 255, 'meta_keywords' => 255,