0

Is it possible to get System > Config values through ajax. Or jQuery?

  • 1
    No, but you can write a controller which will do so. – user487772 Sep 26 '16 at 20:16
1

you can create your own controller for that just follow these are the steps for that create your config.xml file in your module

<config>
  <frontend>
    <routers>
        <yourid>
            <use>standard</use>
            <args>
                <module>YourPackge_YourExtension</module>
                <frontName>yourfrontname</frontName>
            </args>
        </yourid>
    </routers>
  </frontend>
</config>  

in your module controller folder create IndexController.php file with below code

<?php
class YourPackage_YourModule_IndexController extends Mage_Core_Controller_Front_Action {
    indexAction(){
          echo Mage::getStoreConfig('sectionName/groupName/fieldName');
    }
}

And that file where you firing ajax call you will get this text or value in response.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.