How to change the product numbers dropdown menu?


How can I edit the product numbers dropdown menu?

When the number of items is set to 2000, it causes slowdown in Firefox.
I want to change it to a input field of type number instead of the select box.

​Is that possible?

Thank You!

Not built in, but there is a plugin:

(unfortunately in German only)

Best regards


But I need to know which files are related to this part so I can change them.

Best regards!

The select field is generated here: shopware/buy.tpl at 5.3 · shopware/shopware · GitHub

Please do not modify this file directly as it would be overridden within the next update. Follow this guide to extend the theme without loosing the changes after an update: Getting started with Shopware templating

Best regards

1 Like

Thank you very much!

In the file frontend/detail/buy.tpl,
I am trying to replace the following code:

    {section name="i" start=$sArticle.minpurchase loop=$maxQuantity step=$sArticle.purchasesteps} 
        {$smarty.section.i.index}{if $sArticle.packunit}{$sArticle.packunit}{/if}


I assigned the same id and name attributes so that it does not affect any related script.
I am not sure if I am doing it correctly or if It will work this way.

Any help will be appreciated.
Thanks in advance!