Skip to content

Commit

Permalink
Export Feature
Browse files Browse the repository at this point in the history
  • Loading branch information
abpaytm committed Jun 21, 2021
1 parent 6f9fc35 commit 9192a4f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 115 deletions.
109 changes: 0 additions & 109 deletions paytm-donation/csv_export.php

This file was deleted.

4 changes: 2 additions & 2 deletions paytm-donation/includes/PaytmConstantsDonation.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class PaytmConstantsDonation{
CONST CONNECT_TIMEOUT = 10;
CONST TIMEOUT = 10;

CONST LAST_UPDATED = "202106018";
CONST PLUGIN_VERSION = "2.6";
CONST LAST_UPDATED = "20210621";
CONST PLUGIN_VERSION = "2.7";
CONST PLUGIN_DOC_URL = "https://developer.paytm.com/docs/eCommerce-plugin/wordpress/";

CONST CUSTOM_CALLBACK_URL = "";
Expand Down
4 changes: 0 additions & 4 deletions paytm-donation/paytm-donation-listings.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public function __construct()
{

global $wpdb;
//echo "<pre>";print_r($_GET);die;
if(isset($_GET['filter_action'])){
if(!empty($_GET['payment_status'])){
$filter1 = "and payment_status = '".$_GET['payment_status']."'";
Expand All @@ -25,7 +24,6 @@ public function __construct()
$filter2 = "";
}
$donationEntries = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "paytm_donation where 1 ".$filter1.$filter2." order by date desc", ARRAY_A);
//echo $wpdb->last_query;die;
}else{
$donationEntries = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "paytm_donation order by date desc", ARRAY_A);
}
Expand Down Expand Up @@ -140,7 +138,6 @@ function wp_paytm_donation_listings_page() {
</form>
<?php
global $wpdb;
//echo "<pre>";print_r($_GET);
$records_per_page = 10;
$page = isset( $_GET['cpage'] ) ? abs( (int) $_GET['cpage'] ) : 1;
$str = '';
Expand All @@ -161,7 +158,6 @@ function wp_paytm_donation_listings_page() {
}
$donationEntries = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "paytm_donation where 1 ".$filter1.$filter2." order by date desc limit ".$offset. " , ".$records_per_page);
$total = $wpdb->get_var("SELECT COUNT(id) FROM " . $wpdb->prefix . "paytm_donation where 1 ".$filter1.$filter2."");
//echo $wpdb->last_query;die;
}else{
$donationEntries = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "paytm_donation order by date desc limit ".$offset. " , ".$records_per_page);
$total = $wpdb->get_var("SELECT COUNT(id) FROM " . $wpdb->prefix . "paytm_donation");
Expand Down

0 comments on commit 9192a4f

Please sign in to comment.