Skip to content

Commit

Permalink
Merge pull request #108 from retainful/master-release-customer-oder-c…
Browse files Browse the repository at this point in the history
…ount

- order count check improved
  • Loading branch information
rameshelamathi authored Sep 27, 2023
2 parents e518c2b + 3cfa662 commit e5cad03
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions developer.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ svn add trunk/*
3. Commit code
svn ci -m 'Adding first version of my plugin'
or
svn ci -m 'v2.6.23 release' --username retainful
svn ci -m 'v2.6.25 release' --username retainful

4. check upto date code
svn up
Expand All @@ -17,8 +17,8 @@ svn stat
svn diff

6. Tagging New Version
svn cp trunk tags/2.6.23
svn ci -m "tagging version 2.6.23"
svn cp trunk tags/2.6.25
svn ci -m "tagging version 2.6.25"


Release Checklist:
Expand Down
4 changes: 2 additions & 2 deletions retainful-next-order-coupon-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Recover abandoned carts and drive repeat purchases by sending single-use, unique coupon codes to customers for their next purchase
* Author: Retainful
* Author URI: https://www.retainful.com
* Version: 2.6.24
* Version: 2.6.25
* Slug: retainful-next-order-coupon-for-woocommerce
* Text Domain: retainful-next-order-coupon-for-woocommerce
* Domain Path: /i18n/languages/
Expand All @@ -30,7 +30,7 @@
* Current version of our app
*/
if (!defined('RNOC_VERSION'))
define('RNOC_VERSION', '2.6.24');
define('RNOC_VERSION', '2.6.25');
/**
* Set base file URL
*/
Expand Down
2 changes: 1 addition & 1 deletion retainful.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ copy_folder(){

remove_files(){
remove_path="vendor/jaybizzle/crawler-detect/";
remove_folder=("export.php")
remove_folder=("export.php", ".github",".php_cs.dist","composer.json")
if [ -d "$pack_compress_folder" ]
then
# shellcheck disable=SC2068
Expand Down
2 changes: 1 addition & 1 deletion src/WcFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1956,7 +1956,7 @@ function getCustomerTotalOrders($email)
if(!$this->isHPOSEnabled()){
$query = $wpdb->prepare("SELECT COUNT(*) as total FROM {$wpdb->prefix}posts as p
LEFT JOIN {$wpdb->prefix}postmeta as pm ON pm.post_id = p.id
WHERE pm.meta_key=%s AND pm.meta_value=%s AND p.post_type=%s",array('_billing_email',$email.'shop_order'));
WHERE pm.meta_key=%s AND pm.meta_value=%s AND p.post_type=%s",array('_billing_email',$email,'shop_order'));
}else{
$query = $wpdb->prepare("SELECT COUNT(*) as total FROM {$wpdb->prefix}wc_orders
WHERE billing_email = %s",array($email));
Expand Down

0 comments on commit e5cad03

Please sign in to comment.