Pagination not showing and wrong product image displaying

  • Posts: 5
  • Thank you received: 0
8 years 7 months ago #254726

-- url of the page with the problem -- : apc-ncc.de/hikashop-menu-for-categories-...070-024-vintage.html
-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4

Hello!

We have a strange issue with a shop of one our clients. The product pages doesn't show pagination (anymore). Random products is definitely off.
We had to change the number of rows to display, so all the products are visible at the moment, but we want to get the pagination back working.
What could be the issue, so that the pagination is not showing up?

The other issue we have is the product image shown in the product overview. We want to have a main "group" image. In the backend overview of the product, we see the correct image, but in the frontend the image does not always gets shown.

For example on this site: apc-ncc.de/hikashop-menu-for-categories-...070-024-vintage.html
The first item is not showing the group (main) image, but the second one is showing the correct image. If you click on the first product, you will see the correct image on the overview page.
What is the correct way to retrieve the main image in the template?

Thank you very much!

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

  • Posts: 83993
  • Thank you received: 13605
  • MODERATOR
8 years 7 months ago #254728

Hi,

1. First, make sure that the "pagination" setting of the HikaShop configuration is not turned off.
Also, note that the pagination can only be displayed for products or categories listing menu items, not for modules since modules are supposed to be displayed on the side of the pages and thus shouldn't need any pagination.

On the page:
apc-ncc.de/hikashop-menu-for-categories-...28-damenboersen.html
I see that it's not the categories listing menu item which displays the products listing, but a module which is positioned below the main area of your template: take.ms/qU7GG (the title should normally be before the green comment).
So it's normal that you don't see any pagination on that listing.
You should instead disable that module, and configure your menu item with the alias "/hikashop-menu-for-categories-listing" to display the products properly. And if the menu item is properly configured and you don't see the products listing, then the problem is probably coming from the view override templates/YOUR_TEMPLATE/html/com_hikashop/category/listing.php coming from your template and you can try renaming it via FTP to fix the issue.

2. The image displayed on the listing will be the first image that you set in the main product. If you don't set any image in your main product and only in your variants, then you might end up with a random image of the variants. So please check on that.

The following user(s) said Thank You: rocket.works

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

  • Posts: 5
  • Thank you received: 0
8 years 7 months ago #255186

Hello!

Thank you for the fast reply.

How can I change the options for problem number one? I tried to hide the products module, but then no products are showing up at all.
Is there an tutorial how to setup the shop like that?

2. Is there no easy way to retrieve (via code in php) the same image as shown in the backend for the products? This would already solve my problem.

Cheers,
Dom

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
8 years 7 months ago #255198

Hello,

Right now when I go to your link and by using the inspector tool, and I see this :



So right know, you already use a module, instead of an Item Menu, that you can create here :



There is a tutorial in order to define and understand different method to create and manage modules and Item Menus.

Hope this will help you.

Regards

Attachments:
Last edit: 8 years 7 months ago by Philip.

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

  • Posts: 5
  • Thank you received: 0
8 years 6 months ago #258003

Hello!

I fixed the problem with the product listing. It was really the evil template we are using.

But I still can't fix the issue with the images. It is really strange. In the backend of the shop, the images are getting displayed correctly, but in the frontend it almost seems like a random image is getting shown. How is that?
It is not on all products but on some.

Is there no easy way to get the exact same picture that is displayed in the backend of the shop in the frontend?
It would fix my problem.

Cheers,
Dom

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

  • Posts: 83993
  • Thank you received: 13605
  • MODERATOR
8 years 6 months ago #258012

Hi,

As I said, it is the same image that is used on the listing: the first image of the main product.
So make sure that you set it like you want and it should work.

The following user(s) said Thank You: rocket.works

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

  • Posts: 5
  • Thank you received: 0
8 years 5 months ago #258075

Unfortunatly, the frontend displays a different picture then the backend.

So I guess my template is again the problem. Do you have a code snipped, how retrieving the image should look like in the template file?

Cheers,
Dom

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

  • Posts: 12953
  • Thank you received: 1778
8 years 5 months ago #258076

Hello Dom,

It will actually depend on which product image and where you want to display it, can you give us more information about what you want to do through some screenshots for example ?

Thank you.

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

Time to create page: 0.069 seconds
Powered by Kunena Forum