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
b997e8d4
Commit
b997e8d4
authored
Feb 14, 2018
by
Muhammad Usman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
experiment
parent
69bbbc29
Pipeline
#304
passed with stage
in 0 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
42 deletions
+10
-42
handle-metaboxes.php
...ontent/plugins/apex_global_lms/admin/handle-metaboxes.php
+3
-1
order-info.html
...nt/plugins/apex_global_lms/admin/includes/order-info.html
+6
-0
file.txt
WWW_DATA/wp-content/plugins/apex_global_lms/file.txt
+0
-0
template.php
WWW_DATA/wp-content/plugins/apex_global_lms/template.php
+0
-40
order-redirection.php
...nt/plugins/apex_global_lms/template/order-redirection.php
+1
-1
No files found.
WWW_DATA/wp-content/plugins/apex_global_lms/admin/handle-metaboxes.php
View file @
b997e8d4
...
@@ -73,7 +73,8 @@ function vq_render_lms_order_metabox() {
...
@@ -73,7 +73,8 @@ function vq_render_lms_order_metabox() {
$price
=
get_post_meta
(
get_the_ID
(),
'total_amount'
,
true
);
$price
=
get_post_meta
(
get_the_ID
(),
'total_amount'
,
true
);
$payment_status
=
get_post_meta
(
get_the_ID
(),
'payment_status'
,
true
);
$payment_status
=
get_post_meta
(
get_the_ID
(),
'payment_status'
,
true
);
print_r
(
get_post_meta
(
get_the_ID
(),
'order_redirection_data'
,
true
));
$test
=
get_post_meta
(
get_the_ID
(),
'order_redirection_data_post'
,
true
);
// print_r(get_post_meta(get_the_ID(), 'order_redirection_data', true));
if
(
$price
==
null
)
$price
=
""
;
if
(
$price
==
null
)
$price
=
""
;
...
@@ -85,6 +86,7 @@ function vq_render_lms_order_metabox() {
...
@@ -85,6 +86,7 @@ function vq_render_lms_order_metabox() {
$file
=
str_replace
(
'[[PRICE]]'
,
$price
,
$file
);
$file
=
str_replace
(
'[[PRICE]]'
,
$price
,
$file
);
$file
=
str_replace
(
'[[PAY_STAT]]'
,
$payment_status
,
$file
);
$file
=
str_replace
(
'[[PAY_STAT]]'
,
$payment_status
,
$file
);
$file
=
str_replace
(
'[[RESPONSE]]'
,
$test
,
$file
);
echo
$file
;
echo
$file
;
...
...
WWW_DATA/wp-content/plugins/apex_global_lms/admin/includes/order-info.html
View file @
b997e8d4
...
@@ -9,6 +9,12 @@
...
@@ -9,6 +9,12 @@
<label
for=
""
>
Payment Status:
</label>
<label
for=
""
>
Payment Status:
</label>
<input
type=
"text"
name=
"payment_status"
class=
"form-control"
value=
"[[PAY_STAT]]"
/>
<input
type=
"text"
name=
"payment_status"
class=
"form-control"
value=
"[[PAY_STAT]]"
/>
</div>
</div>
<div
class=
"field"
>
<label
for=
""
>
Response:
</label>
<input
type=
"text"
class=
"form-control"
value=
"[[RESPONSE]]"
/>
</div>
</div>
</div>
...
...
WWW_DATA/wp-content/plugins/apex_global_lms/file.txt
deleted
100644 → 0
View file @
69bbbc29
WWW_DATA/wp-content/plugins/apex_global_lms/template.php
View file @
b997e8d4
...
@@ -42,50 +42,10 @@ function use_lms_template($data)
...
@@ -42,50 +42,10 @@ function use_lms_template($data)
return
__DIR__
.
'/template/pricing-request.php'
;
return
__DIR__
.
'/template/pricing-request.php'
;
}
}
else
if
(
is_page
(
'lms-notify'
))
{
else
if
(
is_page
(
'lms-notify'
))
{
$id
=
$_GET
[
'order_id'
];
$content
=
get_the_content
(
$id
);
$d
=
$content
.
json_encode
(
$_GET
);
$d
.=
json_encode
(
$_POST
[
'paymentresponse'
]);
$file
=
'file.txt'
;
file_put_contents
(
$file
,
$d
);
array
(
'ID'
=>
$id
,
'post_content'
=>
$d
,
);
wp_update_post
(
$post
);
include
(
__DIR__
.
'/template/order-redirection.php'
);
include
(
__DIR__
.
'/template/order-redirection.php'
);
exit
;
exit
;
}
else
if
(
is_page
(
'learning-management'
))
{
}
else
if
(
is_page
(
'learning-management'
))
{
return
__DIR__
.
'/template/management.php'
;
return
__DIR__
.
'/template/management.php'
;
}
else
if
(
is_page
(
'lms-notify'
))
{
$id
=
$_GET
[
'order_id'
];
$content
=
get_the_content
(
$id
);
$d
=
$content
.
json_encode
(
$_GET
);
$d
.=
json_encode
(
$_POST
[
'paymentresponse'
]);
$file
=
'file.txt'
;
file_put_contents
(
$file
,
$d
);
array
(
'ID'
=>
$id
,
'post_content'
=>
$d
,
);
wp_update_post
(
$post
);
}
}
return
$data
;
return
$data
;
...
...
WWW_DATA/wp-content/plugins/apex_global_lms/template/order-redirection.php
View file @
b997e8d4
...
@@ -3,5 +3,5 @@
...
@@ -3,5 +3,5 @@
$order_id
=
$_GET
[
'order_id'
];
$order_id
=
$_GET
[
'order_id'
];
update_post_meta
(
$order_id
,
'order_redirection_data_get'
,
json_encode
(
$_GET
));
update_post_meta
(
$order_id
,
'order_redirection_data_get'
,
json_encode
(
$_GET
));
update_post_meta
(
$order_id
,
'order_redirection_data_post'
,
json_encode
(
$_POST
)
);
update_post_meta
(
$order_id
,
'order_redirection_data_post'
,
$_POST
[
'paymentresponse'
]
);
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