Web Analytics

Fill the form & Get Installation Support

    In today’s article we are going to describe that how to create cookie variable and assign value into it. We made a module for it and named it “Magemonkeys_General”

    The first step is to create a block file for this in Cookie.php location which is  app/code/Magemonkeys/General/Block/

    Then create cookie.phtml file in below location app/code/Magemonkeys/General/view/

    Set cookie :

    Get cookie :

    That’s it.

    Fill the below form if you have any Magento programming need.

      Recent Articles

      Author Info

      Author Image

      Magento 2 Developer

      Hire P. Garchar

      Get a Free Quote

        Let our Magento expert connect to discuss your requirement.

          We offer Magento
          certified developers.

          Our Magento clientele
          is 500+.

          We sign NDA for the
          security of your projects.

          We’ve performed 100+
          Magento migration projects.

          Free quotation
          on your project.

          Three months warranty on
          code developed by us.