Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)
  • Hi,
    Its not my plugin, but yes you are correct if the owner does update it will over write. Make sure you keep a copy of what you change, then you can make the changes again if updated…. but the plugin has not been updated in 11 months.

    You can add the code to the woo-donations.php file in the plugins/woo-donations folder.

    For add to cart, go to line 138, this is the on_cart_page.
    Line 139:
    global $woocommerce;
    Add below:
    $amount1 = floatval( preg_replace( ‘#[^\d.]#’, ”, $woocommerce->cart->get_cart_total() ) );
    $amount2 = ceil($amount1);
    $amount3 = $amount2-$amount1;

    Then line 155… find:
    class=”wdgk_donation” placeholder=”Ex. ‘.get_woocommerce_currency_symbol().’200″>
    Add after the 200″ value=”‘.$amount3.'”>

    so should be
    class=”wdgk_donation” placeholder=”Ex. ‘.get_woocommerce_currency_symbol().’200″ value=”‘.$amount3.'”>

    If will for example take a cart total of 10.50, round it up to next whole number (11) and then does round up subtract the cart total.. to give the round up difference for the donation.

    You can update the code on the other lines if using donations on checkout.

    Hope that helps

    You can change it manually if you want. Open the woo-donations.php file from the wp-content/plugins/woo-donations folder.

    Around lines 114, 152 and 170 you will find along the line: (Change on each)
    class=”wdgk_donation” placeholder=”Ex. ‘.get_woocommerce_currency_symbol().’200″>

    If you want to keep the currency symbol, then just change the Ex. to your needs and the 200 to the value you want. If no currency symbol you can just have placeholder=”text here”> and remove the ‘.get_woocomer… bit

    Thread Starter eastanglianevents

    (@eastanglianevents)

    I have it running on two servers, but one is WP 5.0 with woocommerce 3.5.4 which works fine and removes the other payment method if the credit and cart are the same value. The other server is running WP 5.1.1 with woocommerce 3.6.2 and that does not work.

    Thread Starter eastanglianevents

    (@eastanglianevents)

    Thank you so much… I have trying to figure it out for over 2 hours!

    Regards,
    Dean.

    Thread Starter eastanglianevents

    (@eastanglianevents)

    Thank you for your help and for the health check plugin link.. That will be so helpful moving forward. I have found the issue, I have no idea how or when the custom functions.php file was updated… It had a line ‘ function disable_reset_lost_password() {return false;}add_filter( ‘allow_password_reset’, ‘disable_reset_lost_password’);’ It was only reported to me a couple of weeks ago by a customer but I have no idea how long it has not been working.. I just cannot figure out why or when the line was ever placed in the file??

    Thanks again,
    Dean.

    Thread Starter eastanglianevents

    (@eastanglianevents)

    The line I found is below… have no idea how it got there.
    Thanks,
    Dean.

    function disable_reset_lost_password() {return false;}add_filter( ‘allow_password_reset’, ‘disable_reset_lost_password’);

    Thread Starter eastanglianevents

    (@eastanglianevents)

    I have found it… Not sure how or why or when?!?! But there was a line in the custom functions.php file that was disabling password reset! Thanks again for your help towards this.

    Thread Starter eastanglianevents

    (@eastanglianevents)

    Hi,
    Thanks, it wasn’t for my password it was for the customers. I have an issue with the functions.php file. Thanks for your input.

    Thread Starter eastanglianevents

    (@eastanglianevents)

    Not sure when it started for sure, people have only said the last couple of weeks… I upgraded to 3.6.2 to see if it would fix it.. but no. I have looked at your great list. Of the 4 options: 1) not a multisite 2) Tick box in woocommerce for email is ok 3) I do not use Captcha.. 4) Happy to try the php code. Where do I put it??

    Only thing that has come to mind, but this was 4+ weeks ago, could have been since then.. just thought customers would have said something, as see forgotten emails sent out most days. I now use Nginx instead of Apache with the SSL done through the load balancer and no ssl on the box. Thanks

    Thread Starter eastanglianevents

    (@eastanglianevents)

    I dont have any privacy plugins either… strange. It’s difficult turning all plugins off as I cannot put the site into maintance mode while I do it, as then I cannot test the password reset! I will have to try late night. Thanks

    Thread Starter eastanglianevents

    (@eastanglianevents)

    No other sites in the root and no Clef. Its running nginx so no htaccess file. No not using cloudflare or anyone for php/scripts. I only use AWS cloudfront for showing the saved image files only. I have double checked the file permissions..

    Thread Starter eastanglianevents

    (@eastanglianevents)

    Hi,
    Yeah I have tried deactivating but didn’t know if it left something without me deleting it. I have Keyy install but I have disabled that as well and it only runs on the admin. It’s only been the last couple of weeks (that someone has reported) it has not worked, but I cannot remember what I have updated over or before that time. It has been working fine for the last year. I have the below installed.

    Thanks,
    Dean

    Tickera
    All In One SEO Pack
    WP Offload Media Lite
    Autocomplete WooCommerce Orders
    Tickera Bridge for WooCommerce
    Tickera CSV Export
    Simple Custom CSS and JS
    Tickera – Custom Forms Add-on
    WC Marketplace
    Google Analytics Dashboard for WP (GADWP)
    Product Sales Report Pro for WooCommerce
    T(-) Countdown
    Keyy Two Factor Authentication
    LudicrousDB
    Mailgun
    Redirection
    Scheduled Email Reports for WooCommerce
    Tickera – Seat Number ticket Template Element
    Tickera Seating Charts
    Tickera – serial ticket codes
    Tickera – custom QR code
    Tickera Terms & Conditions
    Twilio SMS Notifications for Tickera
    GDPR Cookie Consent Banner
    UpdraftPlus – Backup/Restore
    WCMp Legacy Settings
    Advanced Order Export For WooCommerce
    WooCommerce Cart Stock Reducer
    WooCommerce Dynamic Pricing
    WooCommerce Stripe Gateway
    WooCommerce Product Fees
    WooCommerce Social Login
    WooCommerce
    Wordfence Security
    WP Maintenance Mode
    WP-Optimize
    WP Support Plus
    WP Support Plus FAQ

    Thread Starter eastanglianevents

    (@eastanglianevents)

    Hi,
    We are on AWS so can check any permissions needed.. The directories are 755 with files 644 and it has www-data:www-data as the owner. Wordfence is currently running but I have disabled that and checked but still get the same error.

    The website is https://www.eatickets.co.uk/my-account

    Thanks

    Thread Starter eastanglianevents

    (@eastanglianevents)

    I had a go, but not 100% on php and couldn’t work out how to write it into the functions.php file.

Viewing 15 replies - 1 through 15 (of 19 total)