Jump to content

Mass categories and products


Recommended Posts

Hi there,

I have 100 parents categories. In each, something like 3000 subcategories.
I did not imported the products yet because just after imported the categories (around 35000) , the application is tooooo slow (A few minutes to load the home page)

How to deal with mass categories and product with prestashop ?

Regards,

Link to comment
Share on other sites

PrestaShop's category block doesn't handle loading many categories very well. What it does is load all 3000 categories, then hides all but the top-level ones using Javascript. Obviously, loading 3000 categories is going to take a long time. I've written a module here that loads only the top-level categories, then dynamically loads the subcategories using AJAX only when needed. For sites with lots of subcategories, this dramatically improves the load time of the website.

If you are looking for a free module instead of a paid module, try this one.

Link to comment
Share on other sites

I've had many requests to ajaxify the categories in the "1. Info." tab of the product editor. The problem is that there must be a checkbox for every category so that all the categories are posted and saved. If I only load the top-level categories, then only the top-level categories will be saved. I suppose I could load all the categories using AJAX so that the whole page loads first, then the categories are loaded. It would still take a long time to load the page though. How about if I hide all the categories by default and add a "Show categories" link that loads them all? That would speed up the load time when you want to edit a product without changing its categories. You'd still have to click the link and wait a long time for the categories to load if you wanted to change categories though.

Link to comment
Share on other sites

How about if I hide all the categories by default and add a "Show categories" link that loads them all? That would speed up the load time when you want to edit a product without changing its categories. You'd still have to click the link and wait a long time for the categories to load if you wanted to change categories though.


Yes, it will be a good thing in a first time.
In a second time, what about generate the form on the fly with ajax :
First, the form will contain a check box for the mains categories and if you click on one of the main category, the form will be regenrated with categories inside ?

32101_sP5suXcCBTmsoYItPzUx_t

Link to comment
Share on other sites

The problem with that is that if you have selected a subcategory that is hidden, then click Save, you will lose the product from that category, since the checkbox doesn't exist. I suppose I could automatically expand all levels that have a box ticked.

Link to comment
Share on other sites

:question: In some cases, you need to have 15000 Categories (car model year).
This makes the admin page edit product to have 15000 rows and having 80 sec load time in each product
Could you display the tree as category same module Categories block menu as in magento

With the existing way view the tree in admin, the prestashop will no have future!!!

32813_UpVQXpB3J95LpqEoBb9Q_t

Link to comment
Share on other sites

×
×
  • Create New...