Jump to content

BO Product Listing - Available for Order field - to show in column listing


andrewcroberts

Recommended Posts

Hi,

 

Have just been looking to see if I could get a column showing whether a product is "Available for order" next to the active column. I looked at the following thread which saw this done on PS 1.5:

 

http://www.prestashop.com/forums/topic/302007-solved-bo-product-listing-available-for-order-online-only-fields-to-show-in-column-listing/

 

I've managed to adapt the code to the best of my ability to work with PS 1.6 as follows:

 

$this->fields_list['available_for_order'] = array(
'title' => $this->l('Available'),
'active' => 'available_for_order',
'filter_key' => $alias.'!available_for_order',
'type' => 'bool',
'align' => 'text-center',
'class' => 'fixed-width-sm',
'orderby' => false
);

however there is a slight issue. It works, but clicking the checkboxes does nothing, and filtering the value throws an error. Screenshots attached.

 

I was wondering if anybody might be able to help. I am not using stock control, so use the "available for order" option. Hence a column would be very handy.

 

Thanks,

 

 

post-677151-0-89870400-1407259188_thumb.png

post-677151-0-11635600-1407259190_thumb.png

Link to comment
Share on other sites

  • 10 months later...
  • 5 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...