Changing Views on the fly

  • Posts: 12
  • Thank you received: 0
9 years 4 months ago #237889

-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.4
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : No errors

Is it possible to allow the user to change the "display view" on the fly?

I have a categories listing menu item created. What my client is asking is if they can change the display layout on the fly?

They would like to be able to change from Big Image / title, to a smaller image / title, to no image / just title.
I don't think there is a "smaller image / title" available or is there? They may have to choose from a big image / title and title only.

I cannot find a way to dynamically change the layout on the fly. Is that something that can be done? You see it around on site's like Amazon and others as well.

Is it also possible to change how things are sorted too or how many show up per page? For some reason, I may be missing those on the page. Perhaps I am just not recognizing them for what they are.

Thanks!

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

  • Posts: 84310
  • Thank you received: 13701
  • MODERATOR
9 years 4 months ago #237902

Hi,

There is no option to display that by default.
But since you can create different menu items with different display modes, you can just configure two menu items like that, and then add links to one another in order to handle the switch.

Regarding the sorting, the default one can be configured with the "ordering column" and "ordering direction" settings of the menu/module.
And if you want the sorting to be changed by the customer, you can create a filter applying on the "sort" element via the menu Display>Filters.

The number of elements on the page can be changed with the pagination. But it will only display if you have enough elements to have several pages based on the number of rows and columns you configured in your menu item.

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

  • Posts: 12
  • Thank you received: 0
9 years 4 months ago #238415

What it sounds like is that there is no default setup to do sorting "alphabetically", highest price to lowest price, etc, already built into the system. Is there any documentation on how I would set this up to be able to do that with the filtering system.

Based on what I'm seeing, I would need a filter on Price, title, etc. What I have seen on filters already is that it takes the "content" of that field and gives that for you to filter by. i'm not sure how I would get one to do Alpha descending or Alpha Ascending, unless they are default entries you can create as a filter.

As to setting up Menu links on those layout pages to go to different layouts, is there a way to pass what the current category location is to the "new layout"? For example, if I am showing view number 1 which is probably category view, is ther anyway to pass in what I'm looking at now to the next view? I'm guessing each view has its own parameters and may not actually make any sense at all in the end to pass things in.

It doesn't seem like this is something that was thought about with this cart. Am I really the first one to ask for something like this? I scoured the documentation and didn't find any reference to doing something like this.

Thanks! Just trying to give my client the best experiences possible with using Hikashop.

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

  • Posts: 84310
  • Thank you received: 13701
  • MODERATOR
9 years 4 months ago #238434

Hi,

1. Filters can be used in two ways: to filter the products, or to sort them.
As I said, you can create one filter with the "apply on" set to "sort". Then, you can select all the sortings you want to allow for it: price, alphabetical, etc (all in one filter).
So no, you don't need several filters to do that.

2. You can add a parameter &cid=XXX where XXX is the id of the current id to the URL of the other menu item and it will do it.

3. Having layouts selectable by the user is not something we had planned at first yes. It's something we want to add in the future.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum