How to get coupon code in controller_action_postdispatch_checkout_cart_couponPost eventIs there an event for apply coupon action in cartCoupon code always returns errorCreate coupon for special productcoupon code error message for guest customersCoupon Code is not working when overwrite the discount calculationHow to remove coupon programmatically in salesrule_validator_process eventMagento2: Apply coupon code to regular price not to special priceWorking of discount coupons on the checkout page in Magento 2.2.2Magento 2: Applying Coupon to non sale items onlyApply discount on specific product using coupon Magento2

Client team has low performances and low technical skills: we always fix their work and now they stop collaborate with us. How to solve?

Roll the carpet

Revoked SSL certificate

I'm flying to France today and my passport expires in less than 2 months

Rock identification in KY

expand `ifthenelse` immediately

What does the "remote control" for a QF-4 look like?

meaning of に in 本当に?

High voltage LED indicator 40-1000 VDC without additional power supply

"You are your self first supporter", a more proper way to say it

How much RAM could one put in a typical 80386 setup?

Theorems that impeded progress

Could an aircraft fly or hover using only jets of compressed air?

How do I deal with an unproductive colleague in a small company?

Why can't I see bouncing of switch on oscilloscope screen?

Why doesn't H₄O²⁺ exist?

Does detail obscure or enhance action?

When a company launches a new product do they "come out" with a new product or do they "come up" with a new product?

Modeling an IP Address

Why do I get two different answers for this counting problem?

How can bays and straits be determined in a procedurally generated map?

How does quantile regression compare to logistic regression with the variable split at the quantile?

A case of the sniffles

If human space travel is limited by the G force vulnerability, is there a way to counter G forces?



How to get coupon code in controller_action_postdispatch_checkout_cart_couponPost event


Is there an event for apply coupon action in cartCoupon code always returns errorCreate coupon for special productcoupon code error message for guest customersCoupon Code is not working when overwrite the discount calculationHow to remove coupon programmatically in salesrule_validator_process eventMagento2: Apply coupon code to regular price not to special priceWorking of discount coupons on the checkout page in Magento 2.2.2Magento 2: Applying Coupon to non sale items onlyApply discount on specific product using coupon Magento2






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I want to do some customisation to cart on submit coupon code from cart, for this I added controller_action_postdispatch_checkout_cart_couponPost event and there I want to get coupon code and check its validation, if it is not valid then I want to apply some custom discount to cart.



But How to get coupon code here and check validity of it in event controller_action_postdispatch_checkout_cart_couponPost ?










share|improve this question














bumped to the homepage by Community 8 hours ago


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





















    0















    I want to do some customisation to cart on submit coupon code from cart, for this I added controller_action_postdispatch_checkout_cart_couponPost event and there I want to get coupon code and check its validation, if it is not valid then I want to apply some custom discount to cart.



    But How to get coupon code here and check validity of it in event controller_action_postdispatch_checkout_cart_couponPost ?










    share|improve this question














    bumped to the homepage by Community 8 hours ago


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

















      0












      0








      0








      I want to do some customisation to cart on submit coupon code from cart, for this I added controller_action_postdispatch_checkout_cart_couponPost event and there I want to get coupon code and check its validation, if it is not valid then I want to apply some custom discount to cart.



      But How to get coupon code here and check validity of it in event controller_action_postdispatch_checkout_cart_couponPost ?










      share|improve this question














      I want to do some customisation to cart on submit coupon code from cart, for this I added controller_action_postdispatch_checkout_cart_couponPost event and there I want to get coupon code and check its validation, if it is not valid then I want to apply some custom discount to cart.



      But How to get coupon code here and check validity of it in event controller_action_postdispatch_checkout_cart_couponPost ?







      magento-1.9 coupon






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 14 '17 at 13:19









      Vinaya MaheshwariVinaya Maheshwari

      1,18711847




      1,18711847





      bumped to the homepage by Community 8 hours 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 8 hours ago


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






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Mage::app()->getRequest()->getParam('coupon_code');


          Take a look at Mage_Checkout_CartController::couponPostAction at how Magento natively deals with the coupon codes.






          share|improve this answer























          • Hello @nikola99, Mage::app()->getRequest()->getParam('coupon_code') working for getting coupon_code but how to check its validity?

            – Vinaya Maheshwari
            Jan 16 '17 at 4:30











          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%2f154738%2fhow-to-get-coupon-code-in-controller-action-postdispatch-checkout-cart-couponpos%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Mage::app()->getRequest()->getParam('coupon_code');


          Take a look at Mage_Checkout_CartController::couponPostAction at how Magento natively deals with the coupon codes.






          share|improve this answer























          • Hello @nikola99, Mage::app()->getRequest()->getParam('coupon_code') working for getting coupon_code but how to check its validity?

            – Vinaya Maheshwari
            Jan 16 '17 at 4:30















          0














          Mage::app()->getRequest()->getParam('coupon_code');


          Take a look at Mage_Checkout_CartController::couponPostAction at how Magento natively deals with the coupon codes.






          share|improve this answer























          • Hello @nikola99, Mage::app()->getRequest()->getParam('coupon_code') working for getting coupon_code but how to check its validity?

            – Vinaya Maheshwari
            Jan 16 '17 at 4:30













          0












          0








          0







          Mage::app()->getRequest()->getParam('coupon_code');


          Take a look at Mage_Checkout_CartController::couponPostAction at how Magento natively deals with the coupon codes.






          share|improve this answer













          Mage::app()->getRequest()->getParam('coupon_code');


          Take a look at Mage_Checkout_CartController::couponPostAction at how Magento natively deals with the coupon codes.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 15 '17 at 2:55









          nikola99nikola99

          48825




          48825












          • Hello @nikola99, Mage::app()->getRequest()->getParam('coupon_code') working for getting coupon_code but how to check its validity?

            – Vinaya Maheshwari
            Jan 16 '17 at 4:30

















          • Hello @nikola99, Mage::app()->getRequest()->getParam('coupon_code') working for getting coupon_code but how to check its validity?

            – Vinaya Maheshwari
            Jan 16 '17 at 4:30
















          Hello @nikola99, Mage::app()->getRequest()->getParam('coupon_code') working for getting coupon_code but how to check its validity?

          – Vinaya Maheshwari
          Jan 16 '17 at 4:30





          Hello @nikola99, Mage::app()->getRequest()->getParam('coupon_code') working for getting coupon_code but how to check its validity?

          – Vinaya Maheshwari
          Jan 16 '17 at 4:30

















          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%2f154738%2fhow-to-get-coupon-code-in-controller-action-postdispatch-checkout-cart-couponpos%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

          Best approach to update all entries in a list that is paginated?Best way to add items to a paginated listChoose Your Country: Best Usability approachUpdate list when a user is viewing the list without annoying themWhen would the best day to update your webpage be?What should happen when I add a Row to a paginated, sorted listShould I adopt infinite scrolling or classical pagination?How to show user that page objects automatically updateWhat is the best location to locate the comments section in a list pageBest way to combine filtering and selecting items in a listWhen one of two inputs must be updated to satisfy a consistency criteria, which should you update (if at all)?

          Вунгтау (аеропорт) Загальні відомості | Див. також | Посилання | Навігаційне меню10°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.0833310°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.083337731608Vinh AirportVinh airport facelift improves serviceвиправивши або дописавши їївиправивши або дописавши їїр

          Тонконіг бульбистий Зміст Опис | Поширення | Екологія | Господарське значення | Примітки | Див. також | Література | Джерела | Посилання | Навігаційне меню1114601320038-241116202404kew-435458Poa bulbosaЭлектронный каталог сосудистых растений Азиатской России [Електронний каталог судинних рослин Азіатської Росії]Малышев Л. Л. Дикие родичи культурных растений. Poa bulbosa L. - Мятлик луковичный. [Малишев Л. Л. Дикі родичи культурних рослин. Poa bulbosa L. - Тонконіг бульбистий.]Мятлик (POA) Сем. Злаки (Мятликовые) [Тонконіг (POA) Род. Злаки (Тонконогові)]Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Description from Flora of China) [Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Опис від Флора Китаю)]Poa bulbosa L. – lipnice cibulkatá / lipnica cibulkatáPoa bulbosa в базі даних Poa bulbosa на сайті Poa bulbosa в базі даних «Global Biodiversity Information Facility» (GBIF)Poa bulbosa в базі даних «Euro + Med PlantBase» — інформаційному ресурсі для Євро-середземноморського розмаїття рослинPoa bulbosa L. на сайті «Плантариум»