Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not show the menu in the admin menu settings #103

Open
jon4god opened this issue Sep 15, 2017 · 1 comment
Open

Does not show the menu in the admin menu settings #103

jon4god opened this issue Sep 15, 2017 · 1 comment

Comments

@jon4god
Copy link

jon4god commented Sep 15, 2017

You need to add
if (! $ Woocommerce ||! Isset ($ woocommerce-> cart)) return;
in
woocommerce-quick-donation.php

/**
 * Checks If Donation Product Exists In Cart
 */
public function check_donation_exists_cart(){
    global $woocommerce;
    $found = false;
    if( ! $woocommerce || !isset($woocommerce->cart) ) return;
    if( sizeof($woocommerce->cart->get_cart()) > 0){
        foreach($woocommerce->cart->get_cart() as $cart_item_key=>$values){
            $_product = $values['data'];
            if($_product->id == self::$donation_id)
                $found = true;
        }

    }
    return $found;
}
@varunsridharan
Copy link
Owner

Hi,

Thanks for the fix.

As you already seen its too old plugin. but i have made a brand new version with many improvements and changes. if you are interested in testing it. please do ping me @ skype : varunsridharan23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants