Jump to content

How change BO product list to also show wholesale price


Recommended Posts

Create override/controllers/admin/AdminProductsController.php with the following:

<?php

class AdminProductsController extends AdminProductsControllerCore
{
    public function __construct()
    {
        parent::__construct();
        $this->fields_list['wholesale_price'] = array(
            'title' => $this->l('Wholesale'),
            'type' => 'price',
            'align' => 'text-right',
            'filter_key' => 'a!wholesale_price',
        );
    }
}

Remember to go to the Advanced Parameters > Performance tab and click the "Clear cache" button (or manually delete cache/class_index.php) so PrestaShop can find the override.

  • Like 1
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...