Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Panasonic
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
John
Panasonic
Commits
87217fc3
Commit
87217fc3
authored
Dec 20, 2016
by
John Punzalan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update predispatch
parent
7352aace
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
OnepageController.php
...local/Exa/OPCheckCoupon/controllers/OnepageController.php
+6
-0
No files found.
app/code/local/Exa/OPCheckCoupon/controllers/OnepageController.php
View file @
87217fc3
...
...
@@ -67,6 +67,12 @@ class Exa_OPCheckCoupon_OnepageController extends Mage_Checkout_Controller_Actio
$checkCode
=
Mage
::
getSingleton
(
'checkout/session'
)
->
getQuote
()
->
getAppliedRuleIds
();
if
(
empty
(
$checkCode
))
{
$getCurrentAction
=
Mage
::
app
()
->
getRequest
()
->
getActionName
();
if
(
$getCurrentAction
==
"success"
)
{
return
$this
;
}
Mage
::
getSingleton
(
'checkout/session'
)
->
addError
(
$this
->
__
(
'Coupon Code is required'
));
$this
->
_redirect
(
'checkout/cart'
);
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment