Jump to content

HitmanCZ

Members
  • Posts

    30
  • Joined

  • Last visited

1 Follower

Profile Information

  • Activity
    Project Owner

HitmanCZ's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. mate nekdo vyreseny export na zbozi.cz heureku a google zaroven ? mam jeden free modul co to dela ale hazi mi to spatne dostupnosti, na seznamu vse do tydne na googe je zas vse skladem :-/
  2. mam reseni fungujici na zakladni nasteveni SEO, takze nemenit category za categories problem je v souboru classes/Link.php funkce getProductLink (line 83) bug je na radku 130 : if ($dispatcher->hasKeyword('product_rule', $id_lang, 'categories')) { $params['category'] = (!$category) ? $product->category : $category; $cats = array(); foreach ($product->getParentCategories() as $cat) $cats[] = $cat['link_rewrite']; $params['categories'] = implode('/', $cats); } nahradte timto kodem if ($dispatcher->hasKeyword('product_rule', $id_lang, 'category')) $params['category'] = (!$category) ? $product->category : $category; if ($dispatcher->hasKeyword('product_rule', $id_lang, 'categories')) { $cats = array(); foreach ($product->getParentCategories() as $cat) $cats[] = $cat['link_rewrite']; $params['categories'] = implode('/', $cats); }
  3. jedno reseni je od jacka <?php function friendly_url($nadpis) { $url = $nadpis; $url = strip_tags(html_entity_decode($url)); $url = iconv("UTF-8","windows-1250"."//TRANSLIT",$url); $noalpha = "\xc1\xc9\xcd\xd3\xda\xdd\xe1\xe9\xed\xf3\xfa\xfd\xc2\xca\xce\xd4\xdb\xe2\xea\xee\xf4\xfb\xc0\xc8\xcc\xd2\xd9\xe0\xe8\xec\xf2\xf9\xc4\xcb\xcf\xd6\xdc\xe4\xeb\xef\xf6\xfc\xc3\xe3\xd5\xf5\xc5\xe5\xd1\xf1\xc7\xe7\xba\xaa\x8e\x9e\x9d\x8d\xd8\xf8\x8a\x9a"; $alpha = 'AEIOUYaeiouyAEIOUaeiouACENUrcenuAEIOUaedouAaOoLlNnCcsSZztTRrSs'; $url = strtr($url, $noalpha, $alpha); $url = strtolower($url); $url = preg_replace('~[^a-z0-9_]+~', '-', $url); $url = trim($url, "-"); $url = preg_replace('~[^-a-z0-9_]+~', '', $url); echo $url."\n"; return $url; } //projde všechny výrobky v db @$spojeni = MySQL_Connect('SERVER' ,'USER', 'PASSWORD'); @MySQL_Select_DB('DATABASE'); if (!$spojeni): echo "MySQL fatal error (no database)"; endif; mysql_query("SET CHARACTER SET utf8"); $sql = "select id_product, name, id_lang from ps_product_lang"; $query = mysql_query($sql); $num = mysql_num_rows($query); while ($row=mysql_fetch_assoc($query)): $url = friendly_url($row['name']); $sql2 = "update ps_product_lang set link_rewrite = '$url' where id_product = {$row['id_product']} and id_lang = {$row['id_lang']}"; mysql_query($sql2) or die("SQL dotaz nešlo provést"); endwhile; echo "OK"; ?> ale musi se asi spoustet pri kazde uprave produktu, lepsi by to bylo vyresene primo v kodu pri uprave nebo pridavani produktu
  4. Is here anyone who know where is located script which is generation friendyurl for products? i have to update it. Problem is that the generator is getting and using name of product with diacritics. I dont want ˇ ´ in URL of course. simply manual rewriting of generated friendly does not work because this friendly url is generated again with every editing of product.
  5. polozka friendly URL se stale a stale doplnuje s hacky a carky z nazvu produktu. kdyz to opravim a ulozim, je to spravne. ale kdyz produkt otevru k editaci, napr. popisu produktu a ulozim, pole Friendly URL se opet prepise s hacky/carky z popisu produktu. nechci se pak prat se seo a marketingem kvuli ceskym znakum v url. upravil jsem admin.js ale porad mi to tam hazi ceske znaky, str2url je neprepise podle zadanych pravidel
  6. zkousel jsem to, ale vubec tam nefunguji varianty u produktu tak jsem ji uplne zakazal
  7. prvni co musis udelat je modul pro google anal aktulizovat a pak teprve to zacne fungovat, s tim co tam je z instalace to nebezi
  8. to uz mate 1.5.2 ? pac mi to tam neukazuje cenu vubec
  9. musime to vyzkouset, vypada to fakt dobre, akorat doufam ze neni treba zadavat web z ktereho bude chodit traffic, at muze affilatak dat reklamu na vic webu
  10. me to normalne funguje, je to znamy problem, vymaz si ve svych prohlizecich cache a cookies pak ti to bude chodit normalne
  11. presne tak, take uz se mi nechce zpet. a presel jsi nakonec take na 1.5.1 ?
  12. presne tak, tato verze je spis neco jak betatest :-/
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More