products display

  • Posts: 20
  • Thank you received: 2
3 years 7 months ago #334982

-- url of the page with the problem -- : librairieberthuy.fr/index.php/nouveautes...imitstart=0&limit=24
-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.9.27
-- PHP version -- : 7.3.29
-- Browser(s) name and version -- : Chrome 92.0.4515.131

Hi everybody,

I am having difficulty creating a specific page.
I want this page to:
- displays the last 6 products offered for sale of each main product category
- if possible that this display be made in a carousel which allows to see more than 6 products (eg 12)

We sell used books and we have a lot of different categories: 11 main categories and at least 100 subcategories.
The main categories either contain products or are only used to group the sub-categories.

I have tried different methods but the display is not satisfactory:
- for some categories, only one product is displayed on the 1st page
- the subcategories are used whereas we do not wish to use them on this page.

Thanks in advance for your help. French language welcome.

Didier

Attachments:
Last edit: 3 years 7 months ago by Didier171. Reason: error on Url

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

  • Posts: 83403
  • Thank you received: 13497
  • MODERATOR
3 years 7 months ago #334985

Hi,

We can reply in French but in that case, please post your message in French in the French language section of our forum.
This part of the forum is in English and your message is in English, so I'll answer here in English.

What you want to do there is possible but not the way you did it.
First, you want to create 11 instances of the "HikaShop content module" via the Joomla module manager. And you'll want to configure each one to display 6 products ordered by "product_created" "descending", each one with its "main category" setting set to its corresponding category.
Then, you need to change the type of your menu item to a Joomla article.
In that Joomla article, you'll want to use Joomla's loadposition mechanism ( www.nosyweb.fr/astuce-joomla/loadpositio...articles-joomla.html ) in order to add to it these 11 modules.
That way, you'll get the 11 modules, one below the other, each one for a different main category, and each one displaying 6 products exactly.
And on top of that, you'll be able to activate the carousel setting in the modules to display each module with a carousel effect, which you can't do with a products listing menu item.

The following user(s) said Thank You: Didier171

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

  • Posts: 20
  • Thank you received: 2
3 years 7 months ago #334993

Many thanks for your quick answer, I'll try tonight.

The following user(s) said Thank You: Philip

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

  • Posts: 20
  • Thank you received: 2
3 years 7 months ago #334997

Done in a few minutes and very easy.

However, this message when the user creates a modules can lead to a misunderstanding :

Thanks again.
Didier

Attachments:

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

  • Posts: 83403
  • Thank you received: 13497
  • MODERATOR
3 years 7 months ago #334998

Hi,

Thanks for the feedback on the message.
That's an old thing which shouldn't be displayed anymore.
We'll look into removing that.

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

  • Posts: 20
  • Thank you received: 2
3 years 6 months ago #335142

Hello,

I'm coming back about this post.
I created an article with my modules without any problem.
Next, I created a menu link with this article.
Next, I have configured this menu link to be the default page of my site, and I have an error 500 when I try to access to the site (however,
it works when I reload the page).

Thanks in advance for your help.

Best regards.
Didier

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

  • Posts: 83403
  • Thank you received: 13497
  • MODERATOR
3 years 6 months ago #335170

Hi,

I don't get any error on your website when I access the homepage, even the first time.
However, I can see that you have a lot of products displayed on the page.
So it's probably linked. Maybe it had to generate a lot of thumbnails at once the first time and thus it created an error as it used up all the memory available and then it worked fine as many of the thumbnails were already generated ?
So in that case, you could:
- reduce a bit the number of products per page
- increase the memory_limit of your php.ini (or ask your hosting to do it for you if you don't have access to it)
- leave it like that since the thumbnails are now already generated and you can't reproduce the problem anymore (supposing that it's the case)

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

  • Posts: 20
  • Thank you received: 2
3 years 6 months ago #335175

Hello,

Many thanks for your answer.

I had made a modification to make the site work.

I just redefined the home page and the problem is still present: error 500.

I enclose screenshots of the relevant menu link, if you see an error somewhere.

I try to apply your advice on my side.

To be continued ;)

Attachments:

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

  • Posts: 83403
  • Thank you received: 13497
  • MODERATOR
3 years 6 months ago #335176

Hi,

When you have a 500 error display, it usually means that there is a Fatal error PHP message behind it which is logged in the PHP error log of the server. That's the real error, which contains the line number and file path where the problem happened and the reason.
So I would recommend you to check your PHP error log (you might need to ask your hosting company) for that Fatal error.
If it says "memory limit reached", then what I said in my previous message stands.
If it says something else, then we would need a copy of the exact message to be able to say what to do.

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

  • Posts: 20
  • Thank you received: 2
3 years 6 months ago #335185

Hello,

I attach the log file, I didn't find any error message.

I just configured the site with the problematic home page, if you want to try to access it

librairieberthuy.fr

Thanks.
Didier

Last edit: 3 years 6 months ago by Didier171. Reason: Tue log file is too big.

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

  • Posts: 20
  • Thank you received: 2
3 years 6 months ago #335189

I found an error message with Chrome :

Erreur: 500 Mise en page default-type_standard introuvable

Attachments:

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

  • Posts: 83403
  • Thank you received: 13497
  • MODERATOR
3 years 6 months ago #335191

Hi,

This indicates that it's not a PHP error but a Joomla error.
Please rename the error.php file of your template via FTP to deactivate the custom error page of your template and activate the "debug system" and "error reporting" settings of the Joomla configuration.
It should hopefully provide on that page more information about the issue.

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

  • Posts: 20
  • Thank you received: 2
3 years 6 months ago #335198

Hello,

I attach the page ; it doesn't give many more information.

Didier

Attachments:

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

  • Posts: 20
  • Thank you received: 2
3 years 6 months ago #335199

Sorry, the right copy attached

Attachments:

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

  • Posts: 20
  • Thank you received: 2
3 years 6 months ago #335200

I can no longer connect to the site administration

Attachments:

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

  • Posts: 83403
  • Thank you received: 13497
  • MODERATOR
3 years 6 months ago #335202

Hi,

The error message with the callstack indicates that the error originates from a template override of your JSN bookstore template trying to load a layout type which doesn't exist for the display of a Joomla article.
It doesn't seem to be linked to HikaShop.
I would recommend you to contact JSN support to check with them what they can tell you about this error.
Regarding the connexion to the backend, it comes from the deprecated message coming from the nice google analytics plugin.
Rename the file of that deprecated message via FTP and you'll be able to access the backend of Joomla, where you'll be able to turn off the debugging, and then you can restore the nice GA plugin file name.

The following user(s) said Thank You: Didier171

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

  • Posts: 20
  • Thank you received: 2
3 years 6 months ago #335204

Yes, there is a problem with the template, it works perfectly xwith an other one.

thank you for all.

Didier

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

Time to create page: 0.097 seconds
Powered by Kunena Forum