Does not work with standard SEF?Problem menu links

  • Posts: 7
  • Thank you received: 0
13 years 5 months ago #163

HikaShop does not work with standard SEF?

Last edit: 13 years 5 months ago by Asa. Reason: imprecise question

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

  • Posts: 81378
  • Thank you received: 13037
  • MODERATOR
13 years 5 months ago #164

It works with standard SEF. We use it on our website and we also use the standard SEF.

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

  • Posts: 7
  • Thank you received: 0
13 years 5 months ago #166

I have a problem :( . I use a local server Server2Go. When I create a menu link on the product category when the SEF, I get no working link. When SEF is off the link works...

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

  • Posts: 81378
  • Thank you received: 13037
  • MODERATOR
13 years 5 months ago #167

Your other extensions links work on the front end when you activate the SEF ? If not, it could be that you need to change the name of the htaccess.txt file to .htaccess. It's something related to joomla standard SEF.

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

  • Posts: 7
  • Thank you received: 0
13 years 5 months ago #168

.htaccess - ok. Other extensions links work.

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

  • Posts: 81378
  • Thank you received: 13037
  • MODERATOR
13 years 5 months ago #169

So could you copy/paste here the SEFed and non SEFed versions of the links which doesn't work ?

By the way, each time our website sends you an email, we got an automatic response saying to stop spaming:

Прекратите рассылать спам!
Немедленно удалите аккаунт связанный с данной почтой.

------------------------------------
Mail.Ru - удобно, доступно, надежно!
------------------------------------

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

  • Posts: 7
  • Thank you received: 0
13 years 5 months ago #170

Menu HikaShop shows the link: index.php?option=com_hikashop&view=category&layout=listing
Browser link 404:

http://127.0.0.1:4001/index.php?Itemid=65&option=
_____________

By the way, each time our website sends you an email, we got an automatic response saying to stop spaming:

possibly at mail.ru again the problem...
never was a spammer :blink:

Last edit: 13 years 5 months ago by Asa.

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

  • Posts: 81378
  • Thank you received: 13037
  • MODERATOR
13 years 5 months ago #171

Could you copy/paste the URL of the link BEFORE clicking on it ? ( you can right click on the link and use the "copy link location" option for that ). The link should be SEFed

I tried on my localhost with wamp server 2 and the SEF works properly for hikashop menus. Which option of the SEF of joomla did you activate ? How did you add the HikaShop menu ? You must be missing something somewhere because there is no reason it wouldn't work.

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

  • Posts: 7
  • Thank you received: 0
13 years 5 months ago #172

Step_1 - OK


Step_2 - OK

Step_3 - OK

Step_4 - OK

Step_5 - Err

Right click - copy link:
http://127.0.0.1:4001/index.php?Itemid=65&option=

There is a call to the database id=65, but the link is not taken from the nucleus table...

Last edit: 13 years 5 months ago by Asa.

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

  • Posts: 81378
  • Thank you received: 13037
  • MODERATOR
13 years 5 months ago #173

You did it correctly. However, doing the same thing on all websites I tried works properly. Moreover, this link is not correct (that's why it doesn't work when you click on it) but it is generated by Joomla (or whatever SEF component you use ) not HikaShop, so there is not much we can do... I can't ask you an access to your website to try to put traces since you're in local so I'm afraid I can't help you much :/

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

  • Posts: 7
  • Thank you received: 0
13 years 5 months ago #209

When run the script, somewhere there is a substitution of finished code SEF joomla

<a href="/(alias).html">
on the code HikaShop
<a href="/index.php?Itemid=(ID menu)&option=">
Please, tell me which file (s) responsible for the formation of menu links.

Last edit: 13 years 5 months ago by Asa.

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

  • Posts: 81378
  • Thank you received: 13037
  • MODERATOR
13 years 5 months ago #213

Hi,

We found the problem.
You need to change the declaration fo the function save in the file administrator/components/com_hikashop/classes/menus.php by the code below :

function save(&$element){
		$query="SELECT a.id FROM ".hikashop::table('components',false).' AS a WHERE a.option=\''.HIKASHOP_COMPONENT.'\'';
		$this->database->setQuery($query);
		$element->componentid = $this->database->loadResult();
		if(empty($element->id)){
			$element->params['show_page_title']=1;
		}
		if(!empty($element->params)&&is_array($element->params)){
			$params = '';
			foreach($element->params as $k => $v){
				$params.=$k.'='.$v."\n";
			}
			$element->params = rtrim($params,"\n");
		}
		
		$element->id = parent::save($element);
		return $element->id;
	}
And then open your menu with HikaShop and save it once. That should fix the problem.
We will release later today a new version of HikaShop with this fix.

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

  • Posts: 7
  • Thank you received: 0
13 years 5 months ago #217

This is great news! Thank you!

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

Time to create page: 0.080 seconds
Powered by Kunena Forum