Jump to content



Toggle %s Welcome to JBZoo community !

English: Please, sign in for contact JBZoo techsupport. Accesses in your Email, which came after the purchase.

Russian: Для того чтобы обратиться в русскую техническую поддержку JBZoo — авторизуйтесь с помощью доступов, которые пришли к вам в письме после покупки. Внимание! Доступ туда имеют только тарифы со знаком «плюс». Подписки JBZoo без "+" форум расценивает как забаненные, поэтому для общения в публичном разделе используйте отдельный аккаунт (легко зайти через социальную сеть). Если форум вас не пускает, почистите куки браузера


Photo
- - - - -

subfolder


  • This topic is locked This topic is locked
3 replies to this topic

#1 setg

setg

Posted 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
  • JBZoo Partner
  • User rate: 12.2
  • posts: 406
  • topics: 40

Posted 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
  • Topic Starter
  • Members
  • User rate: ~
  • posts: 4
  • topics: 2

Posted 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
  • JBZoo Partner
  • User rate: 12.2
  • posts: 406
  • topics: 40

Posted 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!