Jump to content

Edit History

Prestachamps

Prestachamps

Hi @fourmarketing,

I've had some time and there is a JavaScript solution for this, to show more than 5 suggestions for the combination selector:

inside the file: /ADMINFOLDER/themes/default/js/bundle/product/form.js after line  947 add the  "limit: 20,"  to show up to maximum 20 results:

        /** init input typeahead */
        $('#form_step3_attributes').tokenfield({
          typeahead: [{
            hint: false,
            cache: false,
          }, {
            source(query, syncResults) {
              engine.search(query, (suggestions) => {
                syncResults(filter(suggestions));
              });
            },
            display: 'label',
            limit: 20,
          }],
          minWidth: '768px',
        });

Cheers, 

Leo.

 

PS; I just realized what you where asking.

Keeping things calm can bring you further ;) 

Prestachamps

Prestachamps

Hi @fourmarketing,

I've had some time and there is a JavaScript solution for this, to show more than 5 suggestions for the combination selector:

inside the file: /ADMINFOLDER/themes/default/js/bundle/product/form.js after line  947 add the  "limit: 20,"  to show up to maximum 20 results:

        /** init input typeahead */
        $('#form_step3_attributes').tokenfield({
          typeahead: [{
            hint: false,
            cache: false,
          }, {
            source(query, syncResults) {
              engine.search(query, (suggestions) => {
                syncResults(filter(suggestions));
              });
            },
            display: 'label',
            limit: 20,
          }],
          minWidth: '768px',
        });

Cheers, 

Leo.

×
×
  • Create New...