Forum Replies Created

Viewing 15 replies - 1 through 15 (of 54 total)
  • Thread Starter zkenstein

    (@zkenstein)

    Thanks for explanation Tom. Is work like a charm now. Very nice plugin, problem solved!!!!

    • This reply was modified 6 years, 3 months ago by zkenstein.
    Thread Starter zkenstein

    (@zkenstein)

    Hi Tom,

    Yes, finally figured out the connections, is working now with additional setting for allowing remote DB. But wlthe user from external DB cannot login, any advice or is the column data should be same with standard WP.

    Thanks,

    Thread Starter zkenstein

    (@zkenstein)

    Hi Tom, thanks for response. Is fixed now, the external DB should on the same server. Is there a chance to used on different host for a DB?

    Thread Starter zkenstein

    (@zkenstein)

    Hi Hudson,

    Thanks for the link, I checked several links on that. But it most likely admin setting up the contents view. What I mean is, users set it self what the contents categories they want read from the frontend. Like visitors filtering the contents based on they want.

    Thanks

    • This reply was modified 7 years, 6 months ago by zkenstein.
    Thread Starter zkenstein

    (@zkenstein)

    Hi Matt,

    Nice sample scripts, I tried to modified it for using the random number mt_rand. The unique number appeared on form, but when I pressed donate now the unique number not storing on to the DB. Can you please guide me? This is the part of code modified:

    
    function give_basic_fees_js() {
        ?>
        <script>
            <?php //Generate
    
    $digits_needed=3;
    
    global $random_number;
    
    $random_number =''; // set up a blank string
    
    $count=0;
    
    while ( $count < $digits_needed ) {
        $random_digit = mt_rand(0, 9);
    
        $random_number .= $random_digit;
        $count++;
    }?>
            var give_global_vars;
            //JS for Basic Fee calculation on the fly.
            jQuery(function ($) {
                /**
                 * Event Triggers
                 */
                //When document runs.
                $(document).ready(give_basic_update_percentage());
                //If donation amount update is triggered.
                $(document).on('give_donation_value_updated', function () {
                    give_basic_update_percentage();
                });
                //If the donation.
                $(document).on('blur', '.give-donation-amount .give-text-input', function (e) {
                    give_basic_update_percentage();
                });
                /**
                 * JS update logic - Basic update percentage JS.
                 */
                function give_basic_update_percentage() {
                    //Set vars
                    var percentage = <?php echo $random_number; ?>;
                    var current_total = $('input[name="give-amount"]').val();
                    //Unformat current total so fee calculation is correct for larger donations.
                    current_total = Math.abs(parseFloat(accounting.unformat(current_total, give_global_vars.decimal_separator)));
                    var fee = percentage;
                    var new_total = current_total + fee;
                    //Set the custom amount input value format properly
                    var format_args = {
                        symbol: give_global_vars.currency_sign,
                        decimal: give_global_vars.decimal_separator,
                        thousand: give_global_vars.thousands_separator,
                        precision: give_global_vars.number_decimals
                    };
                    fee = accounting.formatMoney(fee, format_args);
                    new_total = accounting.formatMoney(new_total, format_args);
                    //Update fee information text.
                    $('span.give-basic-fee-amount').text(fee);
                    //Update final total text.
                    $('.give-final-total-amount').text(new_total);
                }
            });
        </script>
    <?php }
    add_action( 'wp_print_footer_scripts', 'give_basic_fees_js' );
    /**
     * Adds the fee to the DB upon submit.
     *
     * @param $sanitized_amount
     *
     * @return string
     */
    function give_basic_fees_add_fee( $sanitized_amount ) {
        //$fee_percentage = (int) give_get_option( 399 );
        $fee            = $sanitized_amount;
        $new_total      = $fee + percentage;
        return $new_total;
    }
    add_filter( 'give_donation_total', 'give_basic_fees_add_fee', 1, 1 );
    Thread Starter zkenstein

    (@zkenstein)

    Nice!

    Thread Starter zkenstein

    (@zkenstein)

    Hi Eric,

    I plan the unique number for easiest to track and confirm the donation for the offline payment.

    Thread Starter zkenstein

    (@zkenstein)

    Thanks, for this. So I will left it as “No” than.

    Forum: Plugins
    In reply to: [Newsletters] Unsent Status
    Thread Starter zkenstein

    (@zkenstein)

    Solved

    Forum: Plugins
    In reply to: [Newsletters] Unsent Status
    Thread Starter zkenstein

    (@zkenstein)

    Hi Team,

    The scheduled task already set, but right now is something happened. The email not auto generated, what should I check on server side?

    Thanks,

    Forum: Plugins
    In reply to: [Newsletters] Unsent Status
    Thread Starter zkenstein

    (@zkenstein)

    Hi,

    The unsent status is under autoresponder, and click emails link under autoresponder name.

    Thanks,

    Thread Starter zkenstein

    (@zkenstein)

    Sorry for late reply, this actually wrong credentials input by our team.

    Thanks,

    Thread Starter zkenstein

    (@zkenstein)

    You right, the Cron not running.

    Thanks

    Thread Starter zkenstein

    (@zkenstein)

    Hi,

    I am following your guide after click “Run Now” the email queues. So how to fixed this, to run it automatically so I don’t need to click run now manually?

    Thanks,

    Thread Starter zkenstein

    (@zkenstein)

    Hi,

    I tried to set it “Yes” for the Daily Post update, and as you said it revert back to “No”. But the daily post update did not auto create for the next days. What I am doin is, go to setting again and set it to “Yes” and choose “Daily”

    Any guide for this?

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