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;
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
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.
add a comment |
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
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.
add a comment |
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
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
magento-1.9 coupon
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.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Mage::app()->getRequest()->getParam('coupon_code');
Take a look at Mage_Checkout_CartController::couponPostAction at how Magento natively deals with the coupon codes.
Hello @nikola99,Mage::app()->getRequest()->getParam('coupon_code')working for gettingcoupon_codebut how to check its validity?
– Vinaya Maheshwari
Jan 16 '17 at 4:30
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Mage::app()->getRequest()->getParam('coupon_code');
Take a look at Mage_Checkout_CartController::couponPostAction at how Magento natively deals with the coupon codes.
Hello @nikola99,Mage::app()->getRequest()->getParam('coupon_code')working for gettingcoupon_codebut how to check its validity?
– Vinaya Maheshwari
Jan 16 '17 at 4:30
add a comment |
Mage::app()->getRequest()->getParam('coupon_code');
Take a look at Mage_Checkout_CartController::couponPostAction at how Magento natively deals with the coupon codes.
Hello @nikola99,Mage::app()->getRequest()->getParam('coupon_code')working for gettingcoupon_codebut how to check its validity?
– Vinaya Maheshwari
Jan 16 '17 at 4:30
add a comment |
Mage::app()->getRequest()->getParam('coupon_code');
Take a look at Mage_Checkout_CartController::couponPostAction at how Magento natively deals with the coupon codes.
Mage::app()->getRequest()->getParam('coupon_code');
Take a look at Mage_Checkout_CartController::couponPostAction at how Magento natively deals with the coupon codes.
answered Jan 15 '17 at 2:55
nikola99nikola99
48825
48825
Hello @nikola99,Mage::app()->getRequest()->getParam('coupon_code')working for gettingcoupon_codebut how to check its validity?
– Vinaya Maheshwari
Jan 16 '17 at 4:30
add a comment |
Hello @nikola99,Mage::app()->getRequest()->getParam('coupon_code')working for gettingcoupon_codebut 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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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