SEF URL and HikaShop

  • Posts: 115
  • Thank you received: 8
13 years 7 months ago #13924

I would like to have HikaShop's URL as:
mysite.com/category-name/subcategory-name.html
mysite.com/category-name/product-name.html
instead of:
mysite.com/component/hikashop/category/l...y-name.html?Itemid=1
mysite.com/category/listing/cid-14/subcategory-name.html

And may be I can change something to get that kind of URL.
Why HikaShop (forexample it's commercial version) can not create SEF URL?


my project ibaby.com.ua

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

  • Posts: 115
  • Thank you received: 8
13 years 7 months ago #13925

Joomla 1.6 create SEF URL for content use alias.
HikaShop not used alias to category and product for create URL ?


my project ibaby.com.ua

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 7 months ago #13932

Having simpler SEF URLs would be possible but then would increase the collision probability.
Suppose that you have a joomla category with the same name as a category in HikaShop and you get mysite.com/category for both and the system is not able to know which one to display when you click on the link.
That's something we will need to work on in the future and add options to select which parts you want to display or hide in the URLs.

For now, you can either:
- modify the file components/com_hikashop/router.php to meet your needs with the default joomla SEF system.
- use acesef which has a nice integration with hikashop for SEFed URLs
- setup redirect URLs in joomla 1.6 maybe ?

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

  • Posts: 23
  • Thank you received: 0
13 years 7 months ago #13985

The problem you mention Nicolas, can be easily solved by adding the category ID and/or product Id of the Hikashop products or categories to the URL


iDEAL for Hikashop by Dutch iDEAL experts

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 7 months ago #13987

Yes. That's exactly what we have now in the URLs when they are SEFed: mysite.com/component/hikashop/category/l...ubcategory-name.html
You get the category name and the id in the URL.

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

  • Posts: 115
  • Thank you received: 8
13 years 7 months ago #14186

How should i use file components\com_hikashop\sef_ext.php ?


my project ibaby.com.ua

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 7 months ago #14189

The sef_ext.php file is for sh404sef.
The router.php file is for the joomla standard SEF.

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

  • Posts: 115
  • Thank you received: 8
13 years 7 months ago #14194

site видеонаблюдения.net
why in left menu url видеонаблюдения.net/ component/hikashop/cid-10/name-системы-видеонаблюдения-cctv.html?Itemid=1


my project ibaby.com.ua

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

  • Posts: 115
  • Thank you received: 8
13 years 7 months ago #14195

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 7 months ago #14198

In your category listing module, you need to have in the option "menu" a hikashop category listing menu selected. Otherwise, joomla won't convert component/hikashop and ?Itemid=1 to the name of your menu.

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

  • Posts: 115
  • Thank you received: 8
13 years 7 months ago #14199

I modyfy router.php for short url:

function HikashopBuildRoute( &$query )
{
$segments = array();
if (isset($query)) {
// $segments[] = $query;
unset( $query );
if (isset($query)) {
// $segments[] = $query;
unset( $query );
}
}elseif(isset($query)){
// $segments[] = $query;
unset( $query );
if(isset($query)){
// $segments[] = $query;
unset( $query );
}
}


my project ibaby.com.ua

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

  • Posts: 115
  • Thank you received: 8
13 years 7 months ago #14202

nicolas wrote:

In your category listing module, you need to have in the option "menu" a hikashop category listing menu selected. Otherwise, joomla won't convert component/hikashop and ?Itemid=1 to the name of your menu.


Thanks ! I'm happy :)


my project ibaby.com.ua

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

  • Posts: 39
  • Thank you received: 0
10 years 11 months ago #137929

Hi when I open a page on the site it gives me a url address like seven-row.ru/ru/component/hikashop/ but I want to do so seven-row.ru/ru/component/cart/ where can I change it?

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
10 years 11 months ago #137947

Hi,

component/hikashop is added at the beginning of the SEFed URL because there is no Itemid parameter in the non-SEF URL.
Add a Itemid=XXX where XXX is the id of the menu item you want for the display and the SEF system of Joomla will use the alias of the menu item instead of component/hikashop in the SEFed URL.

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

  • Posts: 39
  • Thank you received: 0
10 years 10 months ago #138047

Hi thanks for your answer i try do how you say but i can't it please can you show one example about sef url and how i can change itemid in other url name please?

My url shows so seven-row.ru/ru/component/hikashop/checkout?Itemid=202

but I want to do so
seven-row.ru/ru/component/cart/checkout?Itemid=202

Example for this show please?

Last edit: 10 years 10 months ago by Мыктыбек.

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

  • Posts: 30
  • Thank you received: 0
10 years 10 months ago #138054

Dear All,
Joomla 2.5 + HikaShop Essential
I am also stuck here.
on one side of the good SEF URL:
www.picinybolt.hu/index.php/kategoria/pi.../23-fuestoelo-tartok
other side not:
maximotorshop.hu/index.php/component/hik...umik.html?Itemid=116
Each of them is on the SEF URL options.

"/ component / hikashop" and ".html?Itemid=xx" I would like to be removed from the URL.
How?
(I can not remember which is good, how did you ... :huh: )

Thanks for your help!

Last edit: 10 years 10 months ago by b_sz.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
10 years 10 months ago #138118

This means that the id that you added in the Itemid parameter of the URL is not a HikaShop type menu item.
Go in the menu manager of Joomla, edit the menu item with that id (if it exists, otherwise, change the menu item of your link to one which exists), and change the type of the menu item to a HikaShop type menu and it will work.

The following user(s) said Thank You: b_sz

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

  • Posts: 39
  • Thank you received: 0
10 years 10 months ago #138349

Hi i tried to do as you said but could not can show the path or screenshots?

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

  • Posts: 126
  • Thank you received: 0
10 years 5 months ago #158762

Hello! How to remove all: category, product, id etc. from URL-s?
My HikaShop version is 2.2.2 and Joomla 2.5.6

I have a small shop and I think I don't need a complicated structure, and instead of id product I will use code of product :dry:

Last edit: 10 years 5 months ago by neviqimka.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 5 months ago #158769

Hi,

Thanks to go to Configuration > Features > SEF url options, and disable the option "Remove products and categories id in URLs ". If you don't see this option, thanks to update your HikaShop version.

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

Time to create page: 0.115 seconds
Powered by Kunena Forum