Jump to content

How to add a wholesale price column to the back office product list


climaticmoments

Recommended Posts

Hello,

 

One of my suppliers is going to be adjusting their wholesale prices on 4000 plus products over the next couple weeks. I am trying to prepare by adding a wholesale price column to the back office product list so I can see it without having to click the product every time.

I don't know if this what I should edit on the AdminProductsController.php.

        $this->_select .= 'shop.name as shopname, a.id_shop_default, ';
        $this->_select .= 'MAX('.$alias_image.'.id_image) id_image, cl.name `name_category`,       '.$alias.'.`price`,'.$alias.'.`wholesale_price`, 0 AS price_final, a.`is_virtual`, pd.`nb_downloadable`, sav.`quantity` as sav_quantity, '.$alias.'.`active`, IF(sav.`quantity`<=0, 1, 0) badge_danger';
        
And..

        $this->fields_list['wholesale_price'] = array(
            'title' => $this->l('Wholesale price'),
            'width' => 90,
            'type' => 'price',
            'align' => 'right',
            'filter_key' => 'wholesale_price'     <--------- How do I get the filter key?
        );

Would something like this work? Or am I way off?

I am so confused and would really appreciate if someone could help me add a wholesale price column to the back office product list.

I currently have version 1.6.0.14

Thank you

 

Athena

Link to comment
Share on other sites

Hello

 

I can recommend you Store Manager for PrestaShop application, that allows to adjust product grid and add extra columns to it, including Wholesale Price. You can instantly filter products (or configure custom filters) and update them using Mass Product Changer.      

 

post-783503-0-56373400-1432208763_thumb.jpg

 

Check how it works using fully-functional Store Manager for PrestaShop trial - http://addons.prestashop.com/en/administration-tools-prestashop-modules/2937-store-manager-for-prestashop.html

Link to comment
Share on other sites

  • 1 month later...

If someone fall on this topic I take an answer:

 

  $this->fields_list['wholesale_price'] = array(
            'title' => $this->l('Wholesale price'),
            'width' => 90,
            'type' => 'price',
            'align' => 'right',
            'filter_key' => $alias.`!wholesale_price`  
        );

 

Cheers!

Link to comment
Share on other sites

  • 4 months later...
  • 8 months later...
Hello,

It has been a great help !! Many thanks.

 

I would like to know if there is possibility to add a new column with the wholesale price with tax included.

 

Thank you very much in advance!!

Link to comment
Share on other sites

  • 3 months later...

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...