Display like restaurant menu

  • Posts: 4
  • Thank you received: 0
11 years 10 months ago #118580

Hi,

Is there a default template or one i can pay for which can show the products much like a restaurant menu? Perhaps some existing code I can modify?

So a bit like an unordered list (perhaps with images). Some might call it a grid view or is that something else?

Category Name 1
Category Description 1
- Product Name 1 + price + addtocart
- Product Name 2 + price + addtocart
- Product Name 3 + price + addtocart

Category Name 2
Category Description 2
- Product Name1 + price + addtocart
- Product Name2 + price + addtocart
- Product Name3 + price + addtocart
....

Big thanks.

Regards,

Christopher

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

  • Posts: 4
  • Thank you received: 0
11 years 10 months ago #118586

So category and products nicely below each other, much like a tree view. All I can see is product views and category views, but not both. There is also one with all the catgories above (as filter I presume) and all products below. This i don't need.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 10 months ago #118632

Hi,

I think the best way is to customize the view "product / listing_list" to display the category name and category description before the products listing. With that you will have one category and the products of this category.

Create as many module with "listing_list" display as number of categories.

Then you can create a Joomla article and load modules inside this article. By this way you should have the desired template for products listing.

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

  • Posts: 4
  • Thank you received: 0
11 years 10 months ago #118642

In all honesty, that seems quite a lot of workaround to make it possible.

And everytime a categories gets added, you need to go through this process?

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

  • Posts: 13201
  • Thank you received: 2322
11 years 10 months ago #118652

To have it more dynamic, you can edit the file "view.html.php" of the "components/com_hikashop/views/product" folder.
Then change the SQL request to get the product category, and order the results on the category.

After that in the view, "product / listing_list" for each product, if the category is not the same as the previous product, so get the data of the category and display the result.

It require more changes than the other method which is more simple.
Here, at each update you will loose the changes, not in the other method.

With the load module method, you will only have to create a new module, and add a tag in the article.
The modification of the view is required only once.

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

Time to create page: 0.069 seconds
Powered by Kunena Forum