- Posts: 2696
- Thank you received: 74
$this->getLink($this->row); sur localhost
11 years 11 months ago #177901
by erickb
$this->getLink($this->row); sur localhost was created by erickb
-- 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
-- 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.
11 years 11 months ago #177931
by Xavier
Replied by Xavier on topic $this->getLink($this->row); sur localhost
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:
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:
Code:
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.
11 years 11 months ago #178001
by erickb
Replied by erickb on topic $this->getLink($this->row); sur localhost
oui avec ces lignes commentées ca marche
ligne 1135 1136 1137
ligne 1135 1136 1137
Code:
// 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.
11 years 11 months ago #178055
by Xavier
Replied by Xavier on topic $this->getLink($this->row); sur localhost
Merci pour ce retour, nous allons voir pour améliorer ce code.
Please Log in or Create an account to join the conversation.
11 years 11 months ago #178057
by erickb
Replied by erickb on topic $this->getLink($this->row); sur localhost
merci
c'était en localhost sur MAC et MAMP
c'était en localhost sur MAC et MAMP
Please Log in or Create an account to join the conversation.
11 years 8 months ago #185401
by erickb
Replied by erickb on topic $this->getLink($this->row); sur localhost
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
$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.
11 years 6 months ago - 11 years 6 months ago #193464
by erickb
Replied by erickb on topic $this->getLink($this->row); sur localhost
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
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: 11 years 6 months ago by erickb.
Please Log in or Create an account to join the conversation.
11 years 6 months ago #193476
by erickb
Replied by erickb on topic $this->getLink($this->row); sur localhost
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
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.290 seconds