Ravinder Kumar
Forum Replies Created
-
@abdhakim I want to suggest, starting a new discussion on https://github.com/impress-org/givewp/discussions if you have a custom development query.
Forum: Plugins
In reply to: [GiveWP - Donation Plugin and Fundraising Platform] Plugin Error@timelyinspiration Thank you for reporting this issue.
We are already working on a fix.
Github issue link: https://github.com/impress-org/givewp/issues/6292You can track progress on canny board: https://feedback.givewp.com/bug-reports/p/paypal-standard-references-a-missing-image
@radzio1615 Thank you for reporting this issue. I created a Github issue for this: https://github.com/impress-org/givewp/issues/5959
A fix will be released soon.
Forum: Plugins
In reply to: [GiveWP - Donation Plugin and Fundraising Platform] Deprecated JS CodeHi @jahrat,
We are using magnific-popup to show modals on the frontend which is using deprecated function jQuery.isFunction(). This warning will not stop the donation form from accepting donations, so you can ignore it for a while. We will contact magnific-popup to resolve the issue and update their code.Thank you for reaching us.
Forum: Plugins
In reply to: [GiveWP - Donation Plugin and Fundraising Platform] Trigger donation event@efbi You can use the
give_post_publish_paymentaction hook which fires when a donation completes. You will find this hook inGive_Payment::process_status.Let us know if you are facing trouble to implement it.
– The default expiration time of these cookies is 12 hours. You can edit this from Give admin setting
Settings -> General -> Access Control -> Session Lifetime– Give core setup these cookies when a donor donates but any other payment gateway can start it before as per there business logic.
– Give core use these cookies to store data which helps to identify donor to fetch session data on the server for business logic like show donor donation receipt.
code:
https://github.com/impress-org/givewp/blob/788ae794b47a15b5bbf4f18faf9259359ce94777/includes/process-donation.php#L203
https://github.com/impress-org/givewp/blob/788ae794b47a15b5bbf4f18faf9259359ce94777/includes/class-give-session.php#L379Let me know if you have any other queries. I will be happy to help.
Hey Gary,
You can set
show_contentshortcode attribute tononeand check if you will still able to reproduce this issue if yes then disablethe_content filteronSettings -> Advanced -> Advanced Optionsand try it.Forum: Developing with WordPress
In reply to: Convert number field to image@wiroverdiesen: @bcworkz already gave you a good example of code but please make sure that you use
wp_upload_dir()to getuploadsdirectory URL andfile_existsfunction to check if a file exists or not before displaying it.Forum: Fixing WordPress
In reply to: How do I re-enable my admin bar on home page.@bluemoon123 We have a setting in WordPress to show and hide admin bar from frontend. Did you try that?
screenshot: https://prnt.sc/lplfbk
- This reply was modified 7 years, 5 months ago by Ravinder Kumar.
@s_aron This is a known issue. This filter has been deprecated in the latest version of the Give, but this issue will not appear if you will update all Give addons.
Can you confirm that you updated all Give addon?Ref: https://ww.wp.xz.cn/support/topic/function-give_load_admin_scripts-not-found/
Forum: Plugins
In reply to: [GiveWP - Donation Plugin and Fundraising Platform] Get Comment@spacejam4 I created a Github issue to add that feature in the plugin.
@bghooke I also got this issue but I found that this issue only happens if you load admin edit screen when the editor is in
Textmode instead ofVisual.To fix this issue click on
Visualmode of the editor and reload the page. This trick fixed issue for me.@tmf33 Thank you for reporting the issue.
I created GitHub issue for this ticket: https://github.com/WordImpress/Give/issues/3602
We will keep you updated. Let me know if I can help you with anything else.
@tmf33 you can get donor total donation amount by following code.
$user = wp_get_current_user(); $donor = new Give_Donor( $user->ID, true ); $donor_total_donation_amount = $donor->id ? give_format_amount( $donor->purchase_value, array( 'currency' => give_get_option('currency') ) ) : 0; $custom_amount = $donor_total_donation_amount; // Add your logic here@tmf33 If you like plugin then you can rate use: https://ww.wp.xz.cn/support/plugin/give/reviews/
@tmf33 follow these step:
1.create set type donation form which accepts the custom amount
2.use this code as a base to set custom donation amount:function __give_custom_fixed_amount( $current_form_id ) { $form_id = 22190; // Bailout. if ( ! is_user_logged_in() || $form_id !== $current_form_id ) { return; } // Add code here for donation amount calculation. $custom_amount = 20; ?> <script> jQuery(document).ready(function ($) { var formWrapperContainder = $('#give-form-<?php echo esc_js( $form_id ); ?>-wrap'), formContainer = $( 'form', formWrapperContainder ), amountContainer = $('#give-amount', formContainer ), totalDonationAmountContainer = $('#give-final-total-wrap .give-final-total-amount', formContainer ); amountContainer.val(<?php echo esc_js( $custom_amount ); ?>); amountContainer.prop( 'readonly', true ); totalDonationAmountContainer.attr( 'data-total', '<?php echo esc_js( $custom_amount ); ?>' ); totalDonationAmountContainer.html( Give.fn.formatCurrency( '<?php echo esc_js( $custom_amount ); ?>', { symbol: Give.form.fn.getInfo( 'currency_symbol',formContainer ), position: Give.form.fn.getInfo( 'currency_position', formContainer ) }, formContainer ) ); }) </script> <?php } add_action( 'give_before_donation_levels', '__give_custom_fixed_amount' );3. Update logic in above code to set
$custom_amount.Let me know if you need function help.