Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apex_micro_site
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Ali Arshad
apex_micro_site
Commits
7b25ed6e
Commit
7b25ed6e
authored
May 16, 2018
by
jenkins
Browse files
Options
Browse Files
Download
Plain Diff
Merge Request accepted by jenkins build success
parents
7e241c32
e48045eb
Pipeline
#533
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
download-now.php
...content/plugins/apex_global_lms/template/download-now.php
+1
-1
order-redirection.php
...nt/plugins/apex_global_lms/template/order-redirection.php
+10
-1
No files found.
WWW_DATA/wp-content/plugins/apex_global_lms/template/download-now.php
View file @
7b25ed6e
...
@@ -29,7 +29,7 @@ if ( 'POST' === $_SERVER['REQUEST_METHOD'] && isset( $_POST['download_submit'] )
...
@@ -29,7 +29,7 @@ if ( 'POST' === $_SERVER['REQUEST_METHOD'] && isset( $_POST['download_submit'] )
$course_cat
=
get_terms
(
array
(
$course_cat
=
get_terms
(
array
(
'taxonomy'
=>
'vq_course_taxonomy'
,
'taxonomy'
=>
'vq_course_taxonomy'
,
'parent'
=>
0
,
//
'parent' => 0,
'hide_empty'
=>
false
,
'hide_empty'
=>
false
,
));
));
...
...
WWW_DATA/wp-content/plugins/apex_global_lms/template/order-redirection.php
View file @
7b25ed6e
<?php
<?php
$to_mail
=
get_option
(
'vq_lms_payment_notify_email'
);
var_dump
(
$to_mail
);
die
();
$order_id
=
$_GET
[
'order_id'
];
$order_id
=
$_GET
[
'order_id'
];
...
@@ -35,6 +39,10 @@ if($data && (string) $req_id === (string) $data->application->request_id) {
...
@@ -35,6 +39,10 @@ if($data && (string) $req_id === (string) $data->application->request_id) {
/* Email Configuration */
/* Email Configuration */
$to
=
get_option
(
'vq_lms_payment_notify_email'
);
$to
=
get_option
(
'vq_lms_payment_notify_email'
);
//$to = "ammaryasir14@gmail.com";
//var_dump($to);
$sub
=
get_option
(
'vq_lms_payment_email_subject'
);
$sub
=
get_option
(
'vq_lms_payment_email_subject'
);
$body
=
get_option
(
'vq_lms_payment_email_template'
);
$body
=
get_option
(
'vq_lms_payment_email_template'
);
...
@@ -49,8 +57,9 @@ if($data && (string) $req_id === (string) $data->application->request_id) {
...
@@ -49,8 +57,9 @@ if($data && (string) $req_id === (string) $data->application->request_id) {
$body
=
str_replace
(
'[[STATUS]]'
,
$status
,
$body
);
$body
=
str_replace
(
'[[STATUS]]'
,
$status
,
$body
);
$body
=
str_replace
(
'[[RESPONSE]]'
,
$pmsg
,
$body
);
$body
=
str_replace
(
'[[RESPONSE]]'
,
$pmsg
,
$body
);
$mail_status
=
wp_mail
(
$to
,
$sub
,
$body
);
if
(
wp_mail
(
$to
,
$sub
,
$body
)
)
{
if
(
$mail_status
)
{
update_post_meta
(
$order_id
,
'email_status'
,
1
);
update_post_meta
(
$order_id
,
'email_status'
,
1
);
}
else
{
}
else
{
update_post_meta
(
$order_id
,
'email_status'
,
0
);
update_post_meta
(
$order_id
,
'email_status'
,
0
);
...
...
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