Skip to main content

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

10 years 2 months ago - 10 years 2 months ago #250006 by Denys
-- 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: 10 years 2 months ago by Denys.

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

10 years 2 months ago #250026 by Mohamed Thelji
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.

10 years 2 months ago #250193 by Denys
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.

10 years 2 months ago #250198 by nicolas
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.

10 years 2 months ago #250255 by Denys
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.

10 years 2 months ago - 10 years 2 months ago #250325 by Denys
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: 10 years 2 months ago by Jerome. Reason: fix links

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

10 years 2 months ago - 10 years 2 months ago #250275 by nicolas
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: 10 years 2 months ago by Jerome.

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

10 years 2 months ago - 10 years 2 months ago #250378 by Denys
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: 10 years 2 months ago by Denys.

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

10 years 2 months ago #250407 by nicolas
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.

10 years 2 months ago #250578 by Denys
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.099 seconds
Powered by Kunena Forum