Summer 2023 promotion. Get 30% OFF for any extensions with code SUMMER2023

  • Best Magento

    Marketplace Extension

  • Most Reliable

    & Dedicated Support

  • Most Reasonable

    & Flexible Price

Add new vendor configuration

Configuration page is showing all vendor configurations. (see below image)

 

Defining sections and fields in vendor configuration similar with admin configuration.

You need to create a vendor.xml file in etc folder of your extension. The below xml code is a sample content of the vendor.xml file.

  1. <?xml version="1.0" ?>
  2. <config>
  3. <sections>
  4. <payment translate="label" module="vendorspage">
  5. <label>Payment Methods</label>
  6. <sort_order>100</sort_order>
  7. <groups>
  8. <paypal_adaptive translate="label">
  9. <label>Paypal</label>
  10. <sort_order>10</sort_order>
  11. <fields>
  12. <account>
  13. <label>Email Associated with PayPal Merchant Account</label>
  14. <sort_order>10</sort_order>
  15. <frontend_type>text</frontend_type>
  16. <frontend_class>required-entry validate-email</frontend_class>
  17. <comment>Money will be transferred to this paypal email account</comment>
  18. </account>
  19. </fields>
  20. </paypal_adaptive>
  21. </groups>
  22. </payment>
  23. </sections>
  24. </config>