Перейти к содержимому


Фотография
- - - - -

subfolder


  • Закрытая тема Тема закрыта
Сообщений в теме: 3

#1 setg

setg

Отправлено 21 April 2014 - 01:04

I got my site in a subfolder named "s2" on my hosting, so when the client receive the order information the url link looks like:

 

s2/index.php?option=com_zoo&task=item&item_id=418&Itemid=231 

 

Instead of:

 

www.mysite.com/index.php?option=com_zoo&task=item&item_id=418&Itemid=231

 

How can i fix this?

 



#2 Kess

Kess

Отправлено 21 April 2014 - 02:32

Hello,

 

Just to clarify your question: that link that the client receives doesn't work or you just want to remove subfolder name from it?


  • 0

#3 setg

setg

Отправлено 21 April 2014 - 02:38

Don't work. The link that lools like this:

"Order #418 / 2014-04-19 13:20:56 (GMT -7) / mail@gmail.com"

 

take them to:

 

"http://s2/index.php?...=418&Itemid=231"

 

instead of:

 

"http://www.mysite.co...=418&Itemid=231"

 

Thanks in advance for take the time :D



#4 Kess

Kess

Отправлено 21 April 2014 - 04:28

Try to change this code in media/zoo/elements/itemname/itemname.php:

return '<a title="'.$this->_item->name.'" href="' . $this->app->route->item($this->_item) . '">' . $this->_item->name . '</a>';

to this:

return '<a title="'.$this->_item->name.'" href="http://' . $_SERVER['SERVER_NAME'] . $this->app->route->item($this->_item) . '">' . $this->_item->name . '</a>';

If it works fine, it will be better to make a copy of this element and use it only for orders and revert back changes to the core element.


  • 0




Click to return to top of page in style!