Jump to content

Upgrading to 1.6.1.0 - Admin products


Recommended Posts

Hello Everyone,

 

We use Prestashop since August 2012 for our website. Every update was fine until 1.6.1.0 (stay calm, small bugs only :))

 

First, at every update, I need to modify the AdminProductController.php because the admin products page is slow to load. This is due to the loading of thousands of images (I only have 3 images by product) but this code load all our images :

$images = Image::getImages($this->context->language->id, $product->id);

        if (is_array($images))
        {
            foreach ($images as $k => $image)
                $images[$k]['src'] = $this->context->link->getImageLink($product->link_rewrite[$this->context->language->id], $product->id.'-'.$image['id_image'], ImageType::getFormatedName('small'));
            $data->assign('images', $images);
        }

The only solution I found is to comment this lines because I don't need it.

 

Second problem :

 

When I want to create a new product or edit a product already created, I have the save buttons disabled. I looked at firebug in order to find a pending request but everything is fine. No modules affect the admin product page, i tried to run without overrides but nothing changed. Do you have any solution to this problem ? We can't add any product right now.

 

Thanks for your help.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...