How can I add a brand name in the address bar?

  • Posts: 77
  • Thank you received: 1
8 years 2 months ago #250006

-- url of the page with the problem -- : kolega-power.com.ua/
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.4
-- Browser(s) name and version -- : Chome

Hello!
I have a question, when you open the list of goods first image and i and when I choose to brand filter second image How can I add a brand name in the address bar third image

Regards

Last edit: 8 years 2 months ago by Denys.

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

  • Posts: 12953
  • Thank you received: 1778
8 years 2 months ago #250026

Hello,

There is actually not option to do that, so the only way will be to directly edit Hikashop files to adapt the URL address after the filter is selected but some development and Hikashop knowledge will be required.

The following user(s) said Thank You: Denys

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

  • Posts: 77
  • Thank you received: 1
8 years 2 months ago #250193

And you will not do this? Since this will be a very useful thing. If you are not hard you could not tell which files to work?

Regards

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
8 years 2 months ago #250198

Hi,

I'm not sure what is the goal of doing that ?
Filters are done as a form submit, not links. So adding that wouldn't change anything SEO wise.

If you really want to add it, you can edit the file components/com_hikashop/router.php
However, beware that the code is quite complex there and quite sensitive.
I would recommend it only to experienced developer and to first read this:
docs.joomla.org/Supporting_SEF_URLs_in_your_component

The following user(s) said Thank You: Denys

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

  • Posts: 77
  • Thank you received: 1
8 years 2 months ago #250255

Thank you, we need this to, we could advertise a single product brand, not made with the extra steps and it would be after the elections in the filter a separate brand, appeared to link the individual product group. It is necessary to publicize certain brands of goods.

Regards

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

  • Posts: 77
  • Thank you received: 1
8 years 2 months ago #250325

One more question. We have a product that contains product variants c2n.me/3CqTWTq , when i changing the variant of goods c2n.me/3CqUoVb may, if to change and reference(URL) product c2n.me/3CqV3nX

Last edit: 8 years 2 months ago by Jerome. Reason: fix links

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
8 years 2 months ago #250275

Hi,

So how about turning on the "redirect post mode" setting of the HikaShop configuration ?
That will allow you to get the filter parameters in the URL of the page.
Although it won't be pretty URLs, the URLs will be usable to directly identify a particular filtered page.
And if you want to get a nice URL after that, you can either modify the router to transform the parameters in the URL into what you want, or use URL aliases that you can create via the Joomla menu manager or a third party SEF extension (which might be able to auto generate the aliases based on some criteria ?).

For your other question, the modification of the URL depending the selected variant is not recommended ; it would also generates some unwanted side effects.

Last edit: 8 years 2 months ago by Jerome.

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

  • Posts: 77
  • Thank you received: 1
8 years 2 months ago #250378

Hi
On the first question dismantled perfectly! Thank you very much Nicolas :woohoo: :woohoo: :woohoo:
But the second question must be solved Director is imperative. Nicholas please help us to resolve this issue :( :( :(

Last edit: 8 years 2 months ago by Denys.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
8 years 2 months ago #250407

Hi,

Then, you'll have to modify the javascript of the characteristic selection system in order to update the URL in the address bar of the browser with such javascript: stackoverflow.com/questions/3338642/upda...r-reloading-the-page
You'll find that in the file administrator/components/com_hikashop/types/characteristic.php

The following user(s) said Thank You: Denys

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

  • Posts: 77
  • Thank you received: 1
8 years 2 months ago #250578

Thanks to Nicholas , but it does not work as we would like =(

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

Time to create page: 0.085 seconds
Powered by Kunena Forum