Patrik
Forum Replies Created
-
AuthorPosts
-
Hi,
You can use the wpinv_get_invoice($post_id) to get the invoice object and then use get_total() method to get the invoice total amount.
Regards,
PatrikMay 10, 2019 at 8:22 am in reply to: WP invoicing Recurring payment Paypal Payment update issues #3009Hi,
Kindly provide admin details into a private reply to look more into the settings and if you have debug log enabled then provide FTP details so that we can check if IPN is received properly or not.
Regards,
PatrikYes, there are few hooks you can use as per your requirements:
do_action( 'wpinv_status_' . $new_status, $this->ID, $old_status ); do_action( 'wpinv_status_' . $old_status . '_to_' . $new_status, $this->ID, $old_status ); do_action( 'wpinv_update_status', $this->ID, $new_status, $old_status );
So you can use the following hooks as per your requirements:
‘wpinv_status_paid’, ‘wpinv_status_draft_paid’, ‘wpinv_update_status’.Regards,
PatrikHi,
We have limited the items dropdown values to 100. This can be changed using the filter. Try to put the following code in your functions.php file of current active theme or create a snippet in snippet plugin if used:
add_filter('wpinv_item_dropdown_query_args', 'wpinv_item_dropdown_query_args_cb'); function wpinv_item_dropdown_query_args_cb($item_args){ $item_args['posts_per_page'] = 999; return $item_args; }
You can change the number 999 to whatever items you have. Let me know if this works for you or not.
Regards,
PatrikThis reply has been marked as private.We have fixed this and created PR for this on our GIT repository here: https://github.com/AyeCode/invoicing/pull/199
You can directly do the changes on your site from there or let me know the FTP details of your site here in private reply and I will do it on your site.
Regards,
PatrikHi,
I have created a snippet for that called “change placeholder of address on checkout page “. Please review it from your side and let me know if any issues.
Regards,
PatrikHi,
There is no filter to change the address placeholder. So you have one way to change the address placeholder is using translation or you can try the following JS code:
if(jQuery("#wpinv_address").length > 0){jQuery("#wpinv_address").attr("placeholder", "Straße und Hausnummer");}
Let me know if this works fine for you or not.
Regards,
PatrikThis reply has been marked as private.This reply has been marked as private.This reply has been marked as private.May 6, 2019 at 5:36 am in reply to: Hiding State & Country (Address) from Invoices & Email Notifications #2980Hi,
You can do this by a few steps. First, you need to make them not mandatory fields from the Settings->Misc->Fields Settings->Address fields by unchecking them.
Then you will need to hide the fields from the checkout page using the CSS:
p#wpinv_country_box, p#wpinv_state_box { display: none; }
Then you will need to override the email template “wpinv-email-billing-details.php” from invoicing/templates/emails/ folder in your theme and remove the country and state fields HTML output from the template file.
Let me know if you have any queries.
Regards,
PatrikThis reply has been marked as private.This reply has been marked as private.This reply has been marked as private. -
AuthorPosts