Skip to content

Commit

Permalink
Merge pull request #24 from iamsayan/develop
Browse files Browse the repository at this point in the history
added v1.3.6
  • Loading branch information
iamsayan committed Jul 22, 2023
2 parents 6d4f210 + 385cc75 commit 925cebd
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 99 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Changelog
All notable changes to this project will be documented in this file.

## 1.3.6
Release Date: July 22, 2023

* Fixed: Persistent admin notices.
* Tweak: Added CSS fixes.
* Tested with WooCommerce v7.9.

## 1.3.5
Release Date: June 11, 2023

Expand Down
2 changes: 1 addition & 1 deletion includes/class-payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function __construct() {
add_filter( 'woocommerce_thankyou_order_received_text', array( $this, 'order_received_text' ), 99, 2 );

// Disable upi payment gateway
add_filter( 'woocommerce_available_payment_gateways', array( $this, 'disable_gateway' ), 99 );
add_filter( 'woocommerce_available_payment_gateways', array( $this, 'disable_gateway' ), 999 );

// Add order column data ( HPOS compatibility )
add_filter( 'woocommerce_shop_order_list_table_columns', array( $this, 'column_item' ) );
Expand Down
2 changes: 1 addition & 1 deletion includes/css/checkout.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

164 changes: 82 additions & 82 deletions includes/css/checkout.scss
Original file line number Diff line number Diff line change
@@ -1,104 +1,104 @@
.payment_box.payment_method_wc-upi {
.wc_payment_method.payment_method_wc-upi > .payment_box.payment_method_wc-upi {
display: flex;
flex-direction: column;
gap: 12px;

p {
> p {
margin: 0 !important;
}
}

.upiwc-checkout-payment-form {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
background: transparent;
margin: 0 !important;
padding: 0 !important;
border: none;
gap: 20px;

@media only screen and (max-width: 576px) {
flex-direction: column;
}

.upiwc-input {
> .upiwc-checkout-payment-form {
display: flex;
flex-direction: column;
gap: 5px;
flex-direction: row;
justify-content: space-between;
align-items: center;
background: transparent;
margin: 0 !important;
padding: 0 !important;
width: 100%;

border: none;
gap: 20px;

@media only screen and (max-width: 576px) {
width: 100%;
}

label {
font-size: 13px;
font-weight: 700;
margin: 0;

.required {
color: #ff0000;
}
flex-direction: column;
}

.upiwc-input-field {
.upiwc-input {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;

input {
flex-direction: column;
gap: 5px;
margin: 0 !important;
padding: 0 !important;
width: 100%;

@media only screen and (max-width: 576px) {
width: 100%;
max-height: 36px;
min-height: 36px;
text-transform: lowercase;
margin: 0 !important;
border: 1px solid #d0d0d0;
padding: 8px 8px;
position: relative;
z-index: 1;
box-sizing: border-box;
border-radius: 3px;
}

label {
font-size: 13px;
color: #303030;
background-color: #FAFBFC;
outline: 0;
box-shadow: none;
background-image: none;
-webkit-appearance: none;

&.show-handle {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
font-weight: 700;
margin: 0;

&:focus {
border-color:#d0d0d0;
.required {
color: #ff0000;
}
}

.selectize-control:before{
content: '@';
position: absolute;
display: block;
top: 50%;
transform: translateY(-50%);
left: 8px;
z-index: 3;
font-weight: 700;
}

.upiwc-input-field {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;

input#upiwc-address {
width: 100%;
max-height: 36px;
min-height: 36px;
text-transform: lowercase;
margin: 0 !important;
border: 1px solid #d0d0d0;
padding: 8px 8px;
position: relative;
z-index: 1;
box-sizing: border-box;
border-radius: 3px;
font-size: 13px;
color: #303030;
background-color: #FAFBFC;
outline: 0;
box-shadow: none;
background-image: none;
-webkit-appearance: none;

&.show-handle {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}

.selectize-input {
box-shadow: none !important;
padding-left: 26px !important;
background-color: #FAFBFC !important;
border-left: 0;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
&:focus {
border-color:#d0d0d0;
}
}

.selectize-control:before{
content: '@';
position: absolute;
display: block;
top: 50%;
transform: translateY(-50%);
left: 8px;
z-index: 3;
font-weight: 700;
}

.selectize-input {
box-shadow: none !important;
padding-left: 26px !important;
background-color: #FAFBFC !important;
border-left: 0;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
}
}
}
Expand Down
11 changes: 9 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: infosatech
Tags: upi, upi payment, woocommerce, qrcode, bhim upi, paytm upi, india
Requires at least: 4.6
Tested up to: 6.2
Stable tag: 1.3.5
Tested up to: 6.3
Stable tag: 1.3.6
Requires PHP: 5.6
Donate link: https://www.sayandatta.co.in/donate
License: GPLv3
Expand Down Expand Up @@ -106,6 +106,13 @@ Post detailed information about the issue in the [support forum](https://wordpre

If you like UPI QR Code Payment Gateway for WooCommerce, please take a moment to [give a 5-star rating](https://wordpress.org/support/plugin/upi-qr-code-payment-for-woocommerce/reviews/?rate=5#new-post). It helps to keep development and support going strong. Thank you!

= 1.3.6 =
Release Date: July 22, 2023

* Fixed: Persistent admin notices.
* Tweak: Added CSS fixes.
* Tested with WooCommerce v7.9.

= 1.3.5 =
Release Date: June 11, 2023

Expand Down
26 changes: 13 additions & 13 deletions upi-qr-code-payment-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* Plugin Name: UPI QR Code Payment Gateway
* Plugin URI: https://wordpress.org/plugins/upi-qr-code-payment-for-woocommerce/
* Description: It enables a WooCommerce site to accept payments through UPI apps like BHIM, Google Pay, Paytm, PhonePe or any Banking UPI app. Avoid payment gateway charges.
* Version: 1.3.5
* Version: 1.3.6
* Author: Sayan Datta
* Author URI: https://www.sayandatta.co.in
* License: GPLv3
* Text Domain: upi-qr-code-payment-for-woocommerce
* Domain Path: /languages
* WC requires at least: 3.1
* WC tested up to: 7.8
* WC tested up to: 7.9
*
* UPI QR Code Payment Gateway is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -48,7 +48,7 @@ final class UPIWC {
*
* @var string
*/
public $version = '1.3.5';
public $version = '1.3.6';

/**
* Minimum version of WordPress required to run UPIWC.
Expand Down Expand Up @@ -324,8 +324,8 @@ public function admin_notice() {
}

if ( $show_rating ) {
$dismiss = wp_nonce_url( add_query_arg( 'upiwc_rating_notice_action', 'dismiss_rating_true' ), 'upiwc_dismiss_rating_true' );
$no_thanks = wp_nonce_url( add_query_arg( 'upiwc_rating_notice_action', 'no_thanks_rating_true' ), 'upiwc_no_thanks_rating_true' ); ?>
$dismiss = wp_nonce_url( add_query_arg( 'upiwc_notice_action', 'dismiss_rating' ), 'upiwc_notice_nonce' );
$no_thanks = wp_nonce_url( add_query_arg( 'upiwc_notice_action', 'no_thanks_rating' ), 'upiwc_notice_nonce' ); ?>

<div class="notice notice-success">
<p><?php esc_html_e( 'Hey, I noticed you\'ve been using UPI QR Code Payment Gateway for more than 2 week – that’s awesome! Could you please do me a BIG favor and give it a <strong>5-star</strong> rating on WordPress? Just to help me spread the word and boost my motivation.', 'upi-qr-code-payment-for-woocommerce' ); ?></p>
Expand All @@ -336,16 +336,16 @@ public function admin_notice() {
<?php
}

$show_donate = true;
if ( $this->calculate_time() > strtotime( '-240 hours' )
|| '1' === get_option( 'upiwc_plugin_dismiss_donate_notice' )
|| apply_filters( 'upiwc_plugin_hide_sticky_donate_notice', false ) ) {
$show_donate = false;
}
$show_donate = false;
// if ( $this->calculate_time() > strtotime( '-15 days' )
// || '1' === get_option( 'upiwc_plugin_dismiss_donate_notice' )
// || apply_filters( 'upiwc_plugin_hide_sticky_donate_notice', false ) ) {
// $show_donate = false;
// }

if ( $show_donate ) {
$dismiss = wp_nonce_url( add_query_arg( 'upiwc_donate_notice_action', 'dismiss_donate_true' ), 'upiwc_dismiss_donate_true' );
$no_thanks = wp_nonce_url( add_query_arg( 'upiwc_donate_notice_action', 'no_thanks_donate_true' ), 'upiwc_no_thanks_donate_true' ); ?>
$dismiss = wp_nonce_url( add_query_arg( 'upiwc_notice_action', 'dismiss_donate' ), 'upiwc_notice_nonce' );
$no_thanks = wp_nonce_url( add_query_arg( 'upiwc_notice_action', 'no_thanks_donate' ), 'upiwc_notice_nonce' ); ?>

<div class="notice notice-success">
<p><?php esc_html_e( 'Hey, I noticed you\'ve been using UPI QR Code Payment Gateway for more than 2 week – that’s awesome! If you like UPI QR Code Payment Gateway and you are satisfied with the plugin, isn’t that worth a coffee or two? Please consider donating. Donations help me to continue support and development of this free plugin! Thank you very much!', 'upi-qr-code-payment-for-woocommerce' ); ?></p>
Expand Down

0 comments on commit 925cebd

Please sign in to comment.