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
16d333b3
Commit
16d333b3
authored
May 16, 2018
by
jenkins
Browse files
Options
Browse Files
Download
Plain Diff
Merge Request accepted by jenkins build success
parents
88e34849
eb67278d
Pipeline
#537
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
functions.php
WWW_DATA/wp-content/plugins/apex_global_lms/functions.php
+5
-1
order-redirection.php
...nt/plugins/apex_global_lms/template/order-redirection.php
+1
-8
No files found.
WWW_DATA/wp-content/plugins/apex_global_lms/functions.php
View file @
16d333b3
...
...
@@ -117,6 +117,7 @@ function vq_lms_process_order()
}
$options
=
get_option
(
'vq_lms_settings_options'
);
$to
=
get_option
(
'vq_lms_payment_notify_email'
);
$itemsXML
=
""
;
$totalCost
=
0
;
...
...
@@ -210,7 +211,7 @@ function vq_lms_process_order()
$_noturl
=
site_url
(
"lms-notify?order_id=
{
$oid
}
"
);
//////site_url("https://requestb.in/1cz13lh1"); // url where response is posted
$_resurl
=
site_url
(
"thank-you-download"
);
//url of merchant landing page
$_cancelurl
=
site_url
(
"lms-cancel"
);
//url of merchant landing page
$_fname
=
$name
[
0
];
// kindly set this to first name of the cutomer
$_fname
=
$name
[
0
]
.
' , Email: '
.
$to
;
// kindly set this to first name of the cutomer
$_lname
=
$name
[
1
];
// kindly set this to last name of the cutomer
$_addr1
=
"online"
;
// kindly set this to address1 of the cutomer
$_sec3d
=
"try3d"
;
//
...
...
@@ -273,6 +274,9 @@ function vq_lms_process_order()
$strxml
=
$strxml
.
"<signature>"
.
$_sign
.
"</signature>"
;
$strxml
=
$strxml
.
"</Request>"
;
//$to .= ' ,'.$_email;
wp_mail
(
$to
,
"test"
,
"hello checkout"
);
echo
base64_encode
(
$strxml
);
die
;
...
...
WWW_DATA/wp-content/plugins/apex_global_lms/template/order-redirection.php
View file @
16d333b3
<?php
$to_mail
=
get_option
(
'vq_lms_payment_notify_email'
);
$order_id
=
$_GET
[
'order_id'
];
...
...
@@ -36,10 +35,6 @@ if($data && (string) $req_id === (string) $data->application->request_id) {
/* Email Configuration */
$to
=
get_option
(
'vq_lms_payment_notify_email'
);
//$to = "ammaryasir14@gmail.com";
//var_dump($to);
$sub
=
get_option
(
'vq_lms_payment_email_subject'
);
$body
=
get_option
(
'vq_lms_payment_email_template'
);
...
...
@@ -53,11 +48,9 @@ if($data && (string) $req_id === (string) $data->application->request_id) {
$body
=
str_replace
(
'[[PRICE]]'
,
$price
,
$body
);
$body
=
str_replace
(
'[[STATUS]]'
,
$status
,
$body
);
$body
=
str_replace
(
'[[RESPONSE]]'
,
$pmsg
,
$body
);
$body
.=
' __ Email Test:'
.
$to_mail
;
$mail_status
=
wp_mail
(
$to
,
$sub
,
$body
);
if
(
$mail_status
)
{
if
(
wp_mail
(
$to
,
$sub
,
$body
)
)
{
update_post_meta
(
$order_id
,
'email_status'
,
1
);
}
else
{
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