Features Dropdown

So I was whining about the new features dropdown thing in the admin when you go to select a feature for your product. Whenever there were a bunch of variants a new style of dropdown came up and it was a big pain in the butt. To top it off, once you selected a variant, you couldn't change it back to “None” again.



So after looking through the files this morning, I found out that this function is controlled from the config.php file.



On line 31 of my config.php file, I had:


// These constants define when select box with product feature variants list should be replaced with picker
define('PRODUCT_FEATURE_VARIANTS_THRESHOLD', 40); // if number of product feature variants less than this value, all product feature variants will be retrieved, otherwise product features variants will be retrieved by ajax




I just changed it to:


// These constants define when select box with product feature variants list should be replaced with picker
define('PRODUCT_FEATURE_VARIANTS_THRESHOLD', 200); // if number of product feature variants less than this value, all product feature variants will be retrieved, otherwise product features variants will be retrieved by ajax




Basically I just changed it from 40 to 200.



Now I'm a happy camper.



Hope that helps someone else.



Thanks,



Brandon

This was very helpful for us Brandon, thank you.



Andrew

Thanks,



“None” and “-enter other-”



I ve to clear the cache to work it.



Work fine!

I stumbled upon this recent topic while searching for a solutions to my Manufacturer features issue. I just upgraded to 2.2.4 and after the upgrade my Manufacturer features dropdown in the Products display was only displaying 10 items whereas before it was displaying all of my Manufacturers.



I'm not seeing the “new style of dropdown” as Brandon describes for this. It is simply cutting my selections off and only showing 10.



I found if I changed the “Elements per page” on Settings → Appearance → Administrator settings from 10 to a higher number that I'll see more items in the dropdown menu. I had more than 10 manufactures before the upgrade and wasn't having this issue.



Anyone have any insight or recommendations? Should I just bump my “Elements per page” to a higher number or is this a bug?



Thanks in advance.


  • Larry

Larry,



Well it all depends on exactly what you are talking about.



This thread was about the features dropdown in the features tab on the products page in the admin. Is that what you are talking about?



Or do you mean the filters on places like the home page?



The elements per page in the admin just change how many products and stuff are show in the listings pages and have nothing to do with this.



If you could specify a little more about where you are talking about, hopefully we can help. (A screenshot would be awesome)



Thanks,



Brandon

Yes, I am referring to the features dropdown in the features tab on the products page. Thanks for your willingness to help out Brandon.



I've attached a screenshot showing two windows showing (from left to right):


  • Admin → Settings → Appearance → Administrator Settings → Elements per Page



    In 2.2.3 and previous versions, my features dropdown for manufacturer showed all of my manufacturers and wasn't impacted by the “Elements per page.” Upon upgrade to 2.2.4, I notice the dropdown was only showing some of my manufacturers. Changing this setting to a higher number fixed my problem. (Bug? Or new feature?)




  • Right window shows a product page illustrating that only 6 elements are showing in the dropdown. In addition, the manufacturer of the selected item isn't even shown because it's not in the first 6 manufacturer entries.



    [attachment=4722:capture.png]

    capture.png

Thanks for the post Brandon, excellent as usual!