Mini cart not update the data after execute custom actionHow can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?How to update mini cart on mobile after custom add to cart form submitsMagento 2 : Mini-cart quantity update button not working properlyMini cart is not working after adding custom themeUpdate Mini Cart count Magento 2Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom Options

Why is stat::st_size 0 for devices but at the same time lseek defines the device size correctly?

Identifying the interval from A♭ to D♯

The use of "touch" and "touch on" in context

Replacing Windows 7 security updates with anti-virus?

Do I need life insurance if I can cover my own funeral costs?

Be in awe of my brilliance!

Can the damage from a Talisman of Pure Good (or Ultimate Evil) be non-lethal?

Can elves maintain concentration in a trance?

Ban on all campaign finance?

Russian cases: A few examples, I'm really confused

Where is the 1/8 CR apprentice in Volo's Guide to Monsters?

Provisioning profile doesn't include the application-identifier and keychain-access-groups entitlements

Is it normal that my co-workers at a fitness company criticize my food choices?

Happy pi day, everyone!

What options are left, if Britain cannot decide?

Why would a flight no longer considered airworthy be redirected like this?

Professor being mistaken for a grad student

Is it true that real estate prices mainly go up?

Sword in the Stone story where the sword was held in place by electromagnets

PTIJ: Who should pay for Uber rides: the child or the parent?

How to deal with a cynical class?

What is IP squat space

Why are the outputs of printf and std::cout different

Should we release the security issues we found in our product as CVE or we can just update those on weekly release notes?



Mini cart not update the data after execute custom action


How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?How to update mini cart on mobile after custom add to cart form submitsMagento 2 : Mini-cart quantity update button not working properlyMini cart is not working after adding custom themeUpdate Mini Cart count Magento 2Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom Options













0















I have create a custom module and perform the action using ajax call. I have created the sections.xml and update the below code.



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Customer:etc/sections.xsd">
<action name="southlincprotection/Index/Index">
<section name="cart"/>
</action>
</config>


but it is not working and not updating the minicart item after succesfull ajax execution. can anyone please let me where I am doing mistakes.



Package Name >> Southlinc



Module Name >> Protection



Controller >> Index >> Index.php



I have defined the frontname "southlincprotection" in routes.xml



my Ajax code is below



var param = 'quoteid=<?php echo $quoteId; ?>&ajax=1';
$.ajax(
showLoader: true,
url: '<?php echo $baseUrl; ?>southlincprotection',
data: param,
type: "POST",
dataType: 'json'
);









share|improve this question














bumped to the homepage by Community 22 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • In which page are you going to implement this and what is your front name? Is it southlincprotection?

    – Purushotam Sangroula
    Jan 12 '18 at 6:58











  • My frontname is southlincprotection I want to use in my custom action when I tried to execute the Ajax call

    – Jack
    Jan 12 '18 at 9:10











  • Just try to debug the file which told you I had the same problem I fixed it by debugging :) @Jack

    – Keyur Shah
    Jan 12 '18 at 9:14











  • I have tried with your solution but not getting success. Thanks

    – Jack
    Jan 12 '18 at 9:15











  • Not getting success means ? You only need to debug the piece of code nothing else, after debugging you get to know that why your code is not working. @Jack

    – Keyur Shah
    Jan 13 '18 at 12:28















0















I have create a custom module and perform the action using ajax call. I have created the sections.xml and update the below code.



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Customer:etc/sections.xsd">
<action name="southlincprotection/Index/Index">
<section name="cart"/>
</action>
</config>


but it is not working and not updating the minicart item after succesfull ajax execution. can anyone please let me where I am doing mistakes.



Package Name >> Southlinc



Module Name >> Protection



Controller >> Index >> Index.php



I have defined the frontname "southlincprotection" in routes.xml



my Ajax code is below



var param = 'quoteid=<?php echo $quoteId; ?>&ajax=1';
$.ajax(
showLoader: true,
url: '<?php echo $baseUrl; ?>southlincprotection',
data: param,
type: "POST",
dataType: 'json'
);









share|improve this question














bumped to the homepage by Community 22 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • In which page are you going to implement this and what is your front name? Is it southlincprotection?

    – Purushotam Sangroula
    Jan 12 '18 at 6:58











  • My frontname is southlincprotection I want to use in my custom action when I tried to execute the Ajax call

    – Jack
    Jan 12 '18 at 9:10











  • Just try to debug the file which told you I had the same problem I fixed it by debugging :) @Jack

    – Keyur Shah
    Jan 12 '18 at 9:14











  • I have tried with your solution but not getting success. Thanks

    – Jack
    Jan 12 '18 at 9:15











  • Not getting success means ? You only need to debug the piece of code nothing else, after debugging you get to know that why your code is not working. @Jack

    – Keyur Shah
    Jan 13 '18 at 12:28













0












0








0








I have create a custom module and perform the action using ajax call. I have created the sections.xml and update the below code.



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Customer:etc/sections.xsd">
<action name="southlincprotection/Index/Index">
<section name="cart"/>
</action>
</config>


but it is not working and not updating the minicart item after succesfull ajax execution. can anyone please let me where I am doing mistakes.



Package Name >> Southlinc



Module Name >> Protection



Controller >> Index >> Index.php



I have defined the frontname "southlincprotection" in routes.xml



my Ajax code is below



var param = 'quoteid=<?php echo $quoteId; ?>&ajax=1';
$.ajax(
showLoader: true,
url: '<?php echo $baseUrl; ?>southlincprotection',
data: param,
type: "POST",
dataType: 'json'
);









share|improve this question














I have create a custom module and perform the action using ajax call. I have created the sections.xml and update the below code.



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Customer:etc/sections.xsd">
<action name="southlincprotection/Index/Index">
<section name="cart"/>
</action>
</config>


but it is not working and not updating the minicart item after succesfull ajax execution. can anyone please let me where I am doing mistakes.



Package Name >> Southlinc



Module Name >> Protection



Controller >> Index >> Index.php



I have defined the frontname "southlincprotection" in routes.xml



my Ajax code is below



var param = 'quoteid=<?php echo $quoteId; ?>&ajax=1';
$.ajax(
showLoader: true,
url: '<?php echo $baseUrl; ?>southlincprotection',
data: param,
type: "POST",
dataType: 'json'
);






magento2 magento-2.1.10






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 12 '18 at 6:42









JackJack

151113




151113





bumped to the homepage by Community 22 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 22 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • In which page are you going to implement this and what is your front name? Is it southlincprotection?

    – Purushotam Sangroula
    Jan 12 '18 at 6:58











  • My frontname is southlincprotection I want to use in my custom action when I tried to execute the Ajax call

    – Jack
    Jan 12 '18 at 9:10











  • Just try to debug the file which told you I had the same problem I fixed it by debugging :) @Jack

    – Keyur Shah
    Jan 12 '18 at 9:14











  • I have tried with your solution but not getting success. Thanks

    – Jack
    Jan 12 '18 at 9:15











  • Not getting success means ? You only need to debug the piece of code nothing else, after debugging you get to know that why your code is not working. @Jack

    – Keyur Shah
    Jan 13 '18 at 12:28

















  • In which page are you going to implement this and what is your front name? Is it southlincprotection?

    – Purushotam Sangroula
    Jan 12 '18 at 6:58











  • My frontname is southlincprotection I want to use in my custom action when I tried to execute the Ajax call

    – Jack
    Jan 12 '18 at 9:10











  • Just try to debug the file which told you I had the same problem I fixed it by debugging :) @Jack

    – Keyur Shah
    Jan 12 '18 at 9:14











  • I have tried with your solution but not getting success. Thanks

    – Jack
    Jan 12 '18 at 9:15











  • Not getting success means ? You only need to debug the piece of code nothing else, after debugging you get to know that why your code is not working. @Jack

    – Keyur Shah
    Jan 13 '18 at 12:28
















In which page are you going to implement this and what is your front name? Is it southlincprotection?

– Purushotam Sangroula
Jan 12 '18 at 6:58





In which page are you going to implement this and what is your front name? Is it southlincprotection?

– Purushotam Sangroula
Jan 12 '18 at 6:58













My frontname is southlincprotection I want to use in my custom action when I tried to execute the Ajax call

– Jack
Jan 12 '18 at 9:10





My frontname is southlincprotection I want to use in my custom action when I tried to execute the Ajax call

– Jack
Jan 12 '18 at 9:10













Just try to debug the file which told you I had the same problem I fixed it by debugging :) @Jack

– Keyur Shah
Jan 12 '18 at 9:14





Just try to debug the file which told you I had the same problem I fixed it by debugging :) @Jack

– Keyur Shah
Jan 12 '18 at 9:14













I have tried with your solution but not getting success. Thanks

– Jack
Jan 12 '18 at 9:15





I have tried with your solution but not getting success. Thanks

– Jack
Jan 12 '18 at 9:15













Not getting success means ? You only need to debug the piece of code nothing else, after debugging you get to know that why your code is not working. @Jack

– Keyur Shah
Jan 13 '18 at 12:28





Not getting success means ? You only need to debug the piece of code nothing else, after debugging you get to know that why your code is not working. @Jack

– Keyur Shah
Jan 13 '18 at 12:28










2 Answers
2






active

oldest

votes


















0














The main file responsible to update mini cart is,



MagentoCustomerviewfrontendwebjscustomer-data.js



in this file, you can find this piece of code,



$(document).on('ajaxComplete', function (event, xhr, settings) 
var sections,
redirects;

if (settings.type.match(/post);


So, I would suggest debugging only this code in chrome or firefox I am sure you will definitely get the reason.






share|improve this answer






























    0














    The problem could be the use of capital letter in action. Change it with:



    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Customer:etc/sections.xsd">
    <action name="southlincprotection/index/index">
    <section name="cart"/>
    </action>
    </config>


    Firstly make sure that your template is being run and your js is being loaded






    share|improve this answer























    • Thanks, but it didn't work for me

      – Jack
      Jan 12 '18 at 9:41











    • first load your controller in your browser and check if everything is working fine.

      – Purushotam Sangroula
      Jan 12 '18 at 9:43











    • My other things are working fine when I execute my action

      – Jack
      Jan 12 '18 at 9:51










    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f209191%2fmini-cart-not-update-the-data-after-execute-custom-action%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    The main file responsible to update mini cart is,



    MagentoCustomerviewfrontendwebjscustomer-data.js



    in this file, you can find this piece of code,



    $(document).on('ajaxComplete', function (event, xhr, settings) 
    var sections,
    redirects;

    if (settings.type.match(/post);


    So, I would suggest debugging only this code in chrome or firefox I am sure you will definitely get the reason.






    share|improve this answer



























      0














      The main file responsible to update mini cart is,



      MagentoCustomerviewfrontendwebjscustomer-data.js



      in this file, you can find this piece of code,



      $(document).on('ajaxComplete', function (event, xhr, settings) 
      var sections,
      redirects;

      if (settings.type.match(/post);


      So, I would suggest debugging only this code in chrome or firefox I am sure you will definitely get the reason.






      share|improve this answer

























        0












        0








        0







        The main file responsible to update mini cart is,



        MagentoCustomerviewfrontendwebjscustomer-data.js



        in this file, you can find this piece of code,



        $(document).on('ajaxComplete', function (event, xhr, settings) 
        var sections,
        redirects;

        if (settings.type.match(/post);


        So, I would suggest debugging only this code in chrome or firefox I am sure you will definitely get the reason.






        share|improve this answer













        The main file responsible to update mini cart is,



        MagentoCustomerviewfrontendwebjscustomer-data.js



        in this file, you can find this piece of code,



        $(document).on('ajaxComplete', function (event, xhr, settings) 
        var sections,
        redirects;

        if (settings.type.match(/post);


        So, I would suggest debugging only this code in chrome or firefox I am sure you will definitely get the reason.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 12 '18 at 7:43









        Keyur ShahKeyur Shah

        13.2k23964




        13.2k23964























            0














            The problem could be the use of capital letter in action. Change it with:



            <?xml version="1.0"?>
            <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Customer:etc/sections.xsd">
            <action name="southlincprotection/index/index">
            <section name="cart"/>
            </action>
            </config>


            Firstly make sure that your template is being run and your js is being loaded






            share|improve this answer























            • Thanks, but it didn't work for me

              – Jack
              Jan 12 '18 at 9:41











            • first load your controller in your browser and check if everything is working fine.

              – Purushotam Sangroula
              Jan 12 '18 at 9:43











            • My other things are working fine when I execute my action

              – Jack
              Jan 12 '18 at 9:51















            0














            The problem could be the use of capital letter in action. Change it with:



            <?xml version="1.0"?>
            <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Customer:etc/sections.xsd">
            <action name="southlincprotection/index/index">
            <section name="cart"/>
            </action>
            </config>


            Firstly make sure that your template is being run and your js is being loaded






            share|improve this answer























            • Thanks, but it didn't work for me

              – Jack
              Jan 12 '18 at 9:41











            • first load your controller in your browser and check if everything is working fine.

              – Purushotam Sangroula
              Jan 12 '18 at 9:43











            • My other things are working fine when I execute my action

              – Jack
              Jan 12 '18 at 9:51













            0












            0








            0







            The problem could be the use of capital letter in action. Change it with:



            <?xml version="1.0"?>
            <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Customer:etc/sections.xsd">
            <action name="southlincprotection/index/index">
            <section name="cart"/>
            </action>
            </config>


            Firstly make sure that your template is being run and your js is being loaded






            share|improve this answer













            The problem could be the use of capital letter in action. Change it with:



            <?xml version="1.0"?>
            <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Customer:etc/sections.xsd">
            <action name="southlincprotection/index/index">
            <section name="cart"/>
            </action>
            </config>


            Firstly make sure that your template is being run and your js is being loaded







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 12 '18 at 9:16









            Purushotam SangroulaPurushotam Sangroula

            1,085925




            1,085925












            • Thanks, but it didn't work for me

              – Jack
              Jan 12 '18 at 9:41











            • first load your controller in your browser and check if everything is working fine.

              – Purushotam Sangroula
              Jan 12 '18 at 9:43











            • My other things are working fine when I execute my action

              – Jack
              Jan 12 '18 at 9:51

















            • Thanks, but it didn't work for me

              – Jack
              Jan 12 '18 at 9:41











            • first load your controller in your browser and check if everything is working fine.

              – Purushotam Sangroula
              Jan 12 '18 at 9:43











            • My other things are working fine when I execute my action

              – Jack
              Jan 12 '18 at 9:51
















            Thanks, but it didn't work for me

            – Jack
            Jan 12 '18 at 9:41





            Thanks, but it didn't work for me

            – Jack
            Jan 12 '18 at 9:41













            first load your controller in your browser and check if everything is working fine.

            – Purushotam Sangroula
            Jan 12 '18 at 9:43





            first load your controller in your browser and check if everything is working fine.

            – Purushotam Sangroula
            Jan 12 '18 at 9:43













            My other things are working fine when I execute my action

            – Jack
            Jan 12 '18 at 9:51





            My other things are working fine when I execute my action

            – Jack
            Jan 12 '18 at 9:51

















            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f209191%2fmini-cart-not-update-the-data-after-execute-custom-action%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Masuk log Menu navigasi

            Identifying “long and narrow” polygons in with PostGISlength and width of polygonWhy postgis st_overlaps reports Qgis' “avoid intersections” generated polygon as overlapping with others?Adjusting polygons to boundary and filling holesDrawing polygons with fixed area?How to remove spikes in Polygons with PostGISDeleting sliver polygons after difference operation in QGIS?Snapping boundaries in PostGISSplit polygon into parts adding attributes based on underlying polygon in QGISSplitting overlap between polygons and assign to nearest polygon using PostGIS?Expanding polygons and clipping at midpoint?Removing Intersection of Buffers in Same Layers

            Старые Смолеговицы Содержание История | География | Демография | Достопримечательности | Примечания | НавигацияHGЯOLHGЯOL41 206 832 01641 606 406 141Административно-территориальное деление Ленинградской области«Переписная оброчная книга Водской пятины 1500 года», С. 793«Карта Ингерманландии: Ивангорода, Яма, Копорья, Нотеборга», по материалам 1676 г.«Генеральная карта провинции Ингерманландии» Э. Белинга и А. Андерсина, 1704 г., составлена по материалам 1678 г.«Географический чертёж над Ижорскою землей со своими городами» Адриана Шонбека 1705 г.Новая и достоверная всей Ингерманландии ланткарта. Грав. А. Ростовцев. СПб., 1727 г.Топографическая карта Санкт-Петербургской губернии. 5-и верстка. Шуберт. 1834 г.Описание Санкт-Петербургской губернии по уездам и станамСпецкарта западной части России Ф. Ф. Шуберта. 1844 г.Алфавитный список селений по уездам и станам С.-Петербургской губернииСписки населённых мест Российской Империи, составленные и издаваемые центральным статистическим комитетом министерства внутренних дел. XXXVII. Санкт-Петербургская губерния. По состоянию на 1862 год. СПб. 1864. С. 203Материалы по статистике народного хозяйства в С.-Петербургской губернии. Вып. IX. Частновладельческое хозяйство в Ямбургском уезде. СПб, 1888, С. 146, С. 2, 7, 54Положение о гербе муниципального образования Курское сельское поселениеСправочник истории административно-территориального деления Ленинградской области.Топографическая карта Ленинградской области, квадрат О-35-23-В (Хотыницы), 1930 г.АрхивированоАдминистративно-территориальное деление Ленинградской области. — Л., 1933, С. 27, 198АрхивированоАдминистративно-экономический справочник по Ленинградской области. — Л., 1936, с. 219АрхивированоАдминистративно-территориальное деление Ленинградской области. — Л., 1966, с. 175АрхивированоАдминистративно-территориальное деление Ленинградской области. — Лениздат, 1973, С. 180АрхивированоАдминистративно-территориальное деление Ленинградской области. — Лениздат, 1990, ISBN 5-289-00612-5, С. 38АрхивированоАдминистративно-территориальное деление Ленинградской области. — СПб., 2007, с. 60АрхивированоКоряков Юрий База данных «Этно-языковой состав населённых пунктов России». Ленинградская область.Административно-территориальное деление Ленинградской области. — СПб, 1997, ISBN 5-86153-055-6, С. 41АрхивированоКультовый комплекс Старые Смолеговицы // Электронная энциклопедия ЭрмитажаПроблемы выявления, изучения и сохранения культовых комплексов с каменными крестами: по материалам работ 2016-2017 гг. в Ленинградской области