Call product and category id's from default url

  • Posts: 28
  • Thank you received: 0
10 years 8 months ago #147725

If I want to access a specific category or product view page and load a specific id, how would I go about doing that in this format:

index.php?option=com_hikashop&view=category&layout=listing&category_id=id

By default, index.php?option=com_hikashop&view=category&layout=listing goes to a category listing page that I can't seem to locate on the backend (assuming it is a default view in the mvc). What I would like is to use a specific module I've created through the display->content module config screen as the default view module when using the url above - is that possible?

Also does the current code allow me to pass the category/product id through the url?
Ie.
index.php?option=com_hikashop&view=category&module=cat_display&cat_id=69

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

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #147772

Hi,

I think that what you need is to edit the menu present in the HikaShop default menus.
You can reach them via the joomla "menus" menu" or via Display > Content menus in HikaShop.

Then for the category listing menu, you can select the desired category id, and in the display options.
You can too edit its associated module to change the product display.

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

  • Posts: 28
  • Thank you received: 0
10 years 8 months ago #147823

For future reference

I turned off sef and figured it out:

index.php?option=com_hikashop&view=category&layout=listing&Itemid=xxx&cid=yyy

Where xxx = a menu item (display->content menu) which defines the category view and the associated view
Then yyy = the category id

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

Time to create page: 0.054 seconds
Powered by Kunena Forum