Commit e1a2a6b6 by Muhammad Usman

testing order received data

parent 72195235
Pipeline #228 passed with stage
in 0 seconds
...@@ -73,6 +73,7 @@ function vq_render_lms_order_metabox() { ...@@ -73,6 +73,7 @@ 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));
if($price == null) $price = ""; if($price == null) $price = "";
......
...@@ -117,7 +117,7 @@ function vq_lms_process_order() ...@@ -117,7 +117,7 @@ function vq_lms_process_order()
$_mid = get_option("vq_lms_payment_merchant_id"); $_mid = get_option("vq_lms_payment_merchant_id");
$_requestid = substr(uniqid(), 0, 13); $_requestid = substr(uniqid(), 0, 13);
$_noturl = site_url("lms-notify");; // url where response is posted $_noturl = site_url("lms-notify?order_id{$oid}"); // url where response is posted
$_resurl = site_url("lms-payment-confirm"); //url of merchant landing page $_resurl = site_url("lms-payment-confirm"); //url of merchant landing page
$_cancelurl = site_url("lms-cancel"); //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]; // kindly set this to first name of the cutomer
...@@ -376,7 +376,7 @@ function vq_render_short_banner($attr) ...@@ -376,7 +376,7 @@ function vq_render_short_banner($attr)
$txt = isset($attr['txt']) ? $attr['txt'] : "Heading"; $txt = isset($attr['txt']) ? $attr['txt'] : "Heading";
$txtClr = isset($attr['txtclr']) ? $attr['txtclr'] : "#fff"; $txtClr = isset($attr['txtclr']) ? $attr['txtclr'] : "#fff";
$btnClr = isset($attr['btnclr']) ? $attr['btnclr'] : "#fff"; $btnClr = isset($attr['btnclr']) ? $attr['btnclr'] : "#fff";
$btnLink = isset($attr['btnlink']) ? $attr['btnlink'] : site_url("lms-checkout"); $btnLink = isset($attr['btnlink']) ? $attr['btnlink'] : site_url("download-all");
$btnTxt = isset($attr['btntxt']) ? $attr['btntxt'] : 'Click Here'; $btnTxt = isset($attr['btntxt']) ? $attr['btntxt'] : 'Click Here';
......
...@@ -41,5 +41,10 @@ function use_lms_template($data) ...@@ -41,5 +41,10 @@ function use_lms_template($data)
else if(is_page('lms-pricing')) { else if(is_page('lms-pricing')) {
return __DIR__ . '/template/pricing-request.php'; return __DIR__ . '/template/pricing-request.php';
} }
else if(is_page('lms-notify')) {
include(__DIR__ . '/template/order-redirection.php');
exit;
}
return $data; return $data;
} }
...@@ -689,8 +689,7 @@ ...@@ -689,8 +689,7 @@
.bootstrap-iso .loader { .bootstrap-iso .loader {
z-index: 10; z-index: 10;
margin: auto; margin: 10% auto auto;
margin-top: 10%;
border: 8px solid #f3f3f3; border: 8px solid #f3f3f3;
border-radius: 50%; border-radius: 50%;
border-top: 8px solid #000; border-top: 8px solid #000;
......
...@@ -4,7 +4,7 @@ add_action('wp_enqueue_scripts', 'register_third_party_styles'); ...@@ -4,7 +4,7 @@ add_action('wp_enqueue_scripts', 'register_third_party_styles');
function register_third_party_styles() { function register_third_party_styles() {
$version = '1.1.1'; $version = '1.1.2';
wp_enqueue_style('vq-chosen-css', plugin_dir_url(__FILE__) . '/chosen/chosen.min.css','',$version); wp_enqueue_style('vq-chosen-css', plugin_dir_url(__FILE__) . '/chosen/chosen.min.css','',$version);
wp_enqueue_script('vq-chosen-js', plugin_dir_url(__FILE__) . '/chosen/chosen.jquery.min.js', 'jQuery',$version); wp_enqueue_script('vq-chosen-js', plugin_dir_url(__FILE__) . '/chosen/chosen.jquery.min.js', 'jQuery',$version);
......
<?php
$order_id = $_GET['order_id'];
update_post_meta($order_id, 'order_redirection_data_get', $_GET);
update_post_meta($order_id, 'order_redirection_data_post', $_POST);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment