ClickCease

Fill the form & Get Installation Support





    Firstly, we have to create a custom module.

    Then, we have to declare a file named events.xml to catch an event that takes place after a product is added to the cart.

    Create events.xml file at the following path Magemonkeys/CustomPriceInCart/etc/frontend/events.xml

    The next step is to create the observer to make changes to the price.

    Create CustomPriceInCart.php file at the following path Magemonkeys/CustomPriceInCart/Observer/CustomPriceInCart.php

    By turning on super mode to the product through function setIsSuperMode(true), we can stop the system generating the price.

    Then we can set the custom prices for products in the cart.

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





      Recent Articles

      Author Info

      Author Image

      Magento Certified Developer

      Hire J. Lakum

      Get a Free Quote





        Close

        mage Monkeys

        Let’s initiate a discussion!!

        Book a call

        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.