$this->getLink($this->row); sur localhost

  • Posts: 2639
  • Thank you received: 66
  • Hikashop Business
9 years 10 months ago #177901

-- HikaShop version -- : 234
-- Joomla version -- : 336

Bonjour
dans le localhost
sur les category listing $link = $this->getLink($this->row); (view par defaut de la version 234) me donne cette url

http://localhost/nom_du_site:8888/nom_du_site/index.php?option=com_hikashop&ctrl=category&task=listing

alors que
$cat_id = $this->row->category_id;
$link = $this->getLink($cat_id,$this->row->alias);

me donne la bonne URL
http://localhost/nom_du_site/index.php?option=com_hikashop&ctrl=category&task=listing


merci

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 10 months ago #177931

Bonjour,

A des fins de test, pouvez vous éditer le fichier "administrator/components/com_hikashop/helpers/helper.php" et dans la fonction "hikashop_cleanURL()" commenter les lignes:

	if(isset($parsedCurrent['path']) && !preg_match('#^/?'.$parsedCurrent['path'].'#',$endUrl))
		$parsedCurrent['path'] = preg_replace('#/$#','',$parsedCurrent['path']);
	else

Please Log in or Create an account to join the conversation.

  • Posts: 2639
  • Thank you received: 66
  • Hikashop Business
9 years 10 months ago #178001

oui avec ces lignes commentées ca marche

ligne 1135 1136 1137

// if(isset($parsedCurrent['path']) && !preg_match('#^/?'.$parsedCurrent['path'].'#',$endUrl))
	// $parsedCurrent['path'] = preg_replace('#/$#','',$parsedCurrent['path']);
	//else
	$parsedCurrent['path'] = '';

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 10 months ago #178055

Merci pour ce retour, nous allons voir pour améliorer ce code.

Please Log in or Create an account to join the conversation.

  • Posts: 2639
  • Thank you received: 66
  • Hikashop Business
9 years 10 months ago #178057

merci

c'était en localhost sur MAC et MAMP

Please Log in or Create an account to join the conversation.

  • Posts: 2639
  • Thank you received: 66
  • Hikashop Business
9 years 8 months ago #185401

j'ai mis à jour pour la toute derniere version et il y a toujours ce bug sur localhost

$link = $this->getLink($this->row); ne marche pas


$link = $this->getLink($cat_id,$this->row->alias); marche

Please Log in or Create an account to join the conversation.

  • Posts: 2639
  • Thank you received: 66
  • Hikashop Business
9 years 6 months ago #193464

meme erreur avec Hikashop 2.4 [1503052315] sur Joomla 3.4

http://localhost/sacapuce.fr:8888/sacapuce.fr/index.php?option=com_hikashop&ctrl=category&task=listing&cid=244&name=chaussures-grande-taille-femmes-talon-plat&Itemid=516

au lieu de

http://localhost:8888/sacapuce.fr/index.php?option=com_hikashop&ctrl=category&task=listing&cid=244&name=chaussures-grande-taille-femmes-talon-plat&Itemid=516

en commentant administrator/components/com_hikashop/helpers/helper.php" ligne 1159, 1160,1161 tout remarche

ce serait bien d'avoir ca definitivement fixé :-)

merci

Last edit: 9 years 6 months ago by erickb.

Please Log in or Create an account to join the conversation.

  • Posts: 2639
  • Thank you received: 66
  • Hikashop Business
9 years 6 months ago #193476

et si je commente ces ligne quand je clique sur le listing de produit pour avoir la fiche produit

http://localhost:8888/sacapuce.fr_3/index.php?option=com_hikashop&ctrl=product&task=show&product_id=766&name=escarpins-marco-noir&Itemid=493

me redirige vers

http://localhost:8888/index.php?option=com_content&view=article&id=51

ca ne marche plus du tout en localhost sur MAMP

Please Log in or Create an account to join the conversation.

Time to create page: 0.083 seconds
Powered by Kunena Forum