On my magento 2.4.4 I’m creating a new module with its configuration in system.xml. The file itself works fine, I’ve created a yes/no field to enable/disable my feature plus an input text to add some data:
<field id="enabled" translate="label comment" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enabled</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="customfield" translate="label comment" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Custom Field</label>
</field>
My issue is that my “custom field” should have a price inside, so I’d like to have the field not as a simple text but as a proper field price (like the one in the product form). I’ve looked on the internet but I cannot find what type to use instead of “type to order to have a price input field.
Does such a type even exist? How can I edit my field to have a proper price field?
Thanks