Commit 84b1e070 authored by Varun Sridharan's avatar Varun Sridharan

Issue Fix And Tweaks Done + POT File UPDATED

* Fixed #57
* Updated Pot File
* Tweaks Done
parent e42b0148
...@@ -81,6 +81,17 @@ class WC_QD_INSTALL{ ...@@ -81,6 +81,17 @@ class WC_QD_INSTALL{
add_option('wc_qd_message', $message_settings); add_option('wc_qd_message', $message_settings);
add_option('wc_qd_shortcode',$shortcode_settings); add_option('wc_qd_shortcode',$shortcode_settings);
add_option('wc_qd_anh_notices', ''); add_option('wc_qd_anh_notices', '');
$message = __('Please Configure Any One Payment Gatway To Get Plugin Work :) ', WC_QD_TXT);
$message = sprintf(
__( '<p>Please Configure Any One Payment Gatway To Get Plugin Work :) </p>
<p class="submit">%s Config Gateway %s %s</p>',
WC_QD_TXT),
'<a class="button button-primary" href="' . admin_url( 'edit.php?post_type='.WC_QD_PT.'&page=wc_qd_settings' ) . '">','</a>',
wc_qd_remove_link('class="button" ')
);
wc_qd_notice($message,'error',array('times' => 0,'wraper' => false));
} }
......
...@@ -249,8 +249,8 @@ class WooCommerce_Quick_Donation_Functions { ...@@ -249,8 +249,8 @@ class WooCommerce_Quick_Donation_Functions {
public function remove_gateway($gateways){ public function remove_gateway($gateways){
if(WC_QD()->check_donation_exists_cart()){ if(WC_QD()->check_donation_exists_cart()){
// var_dump($gateway);
$allowed_gateway = WC_QD()->settings()->get_option(WC_QD_DB.'payment_gateway'); $allowed_gateway = WC_QD()->settings()->get_option(WC_QD_DB.'payment_gateway');
if($allowed_gateway === false){return $gateways;}
foreach($gateways as $gateway){ foreach($gateways as $gateway){
if(! in_array($gateway->id,$allowed_gateway)){ if(! in_array($gateway->id,$allowed_gateway)){
unset($gateways[$gateway->id]); unset($gateways[$gateway->id]);
......
This diff is collapsed.
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