Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
woocommerce-quick-donation
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wordpress
woocommerce-quick-donation
Commits
84b1e070
Commit
84b1e070
authored
Nov 09, 2015
by
Varun Sridharan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue Fix And Tweaks Done + POT File UPDATED
* Fixed #57 * Updated Pot File * Tweaks Done
parent
e42b0148
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
848 additions
and
247 deletions
+848
-247
class-install.php
includes/class-install.php
+11
-0
class-quick-donation-functions.php
includes/class-quick-donation-functions.php
+2
-2
woocommerce-quick-donation.pot
languages/woocommerce-quick-donation.pot
+835
-245
No files found.
includes/class-install.php
View file @
84b1e070
...
@@ -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
));
}
}
...
...
includes/class-quick-donation-functions.php
View file @
84b1e070
...
@@ -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
]);
...
...
languages/woocommerce-quick-donation.pot
View file @
84b1e070
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment