Patrik

Forum Replies Created

Viewing 15 posts - 151 through 165 (of 391 total)
  • Author
    Posts
  • in reply to: Hooking into invoice paid #3014

    Patrik
    Moderator
    Post count: 1971

    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,
    Patrik


    Patrik
    Moderator
    Post count: 1971

    Hi,

    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,
    Patrik

    in reply to: Hooking into invoice paid #3008

    Patrik
    Moderator
    Post count: 1971

    Yes, 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,
    Patrik

    in reply to: Item Limit (Bug?) #2999

    Patrik
    Moderator
    Post count: 1971

    Hi,

    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,
    Patrik

    in reply to: "invalid invoice user id" error (like others) #2998

    Patrik
    Moderator
    Post count: 1971
    This reply has been marked as private.
    in reply to: Error: The invalid invoice user id #2994

    Patrik
    Moderator
    Post count: 1971

    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,
    Patrik

    in reply to: Invoicing Checkout issues #2989

    Patrik
    Moderator
    Post count: 1971

    Hi,

    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,
    Patrik

    in reply to: Invoicing Checkout issues #2987

    Patrik
    Moderator
    Post count: 1971

    Hi,

    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,
    Patrik

    in reply to: Item Limit (Bug?) #2986

    Patrik
    Moderator
    Post count: 1971
    This reply has been marked as private.
    in reply to: "invalid invoice user id" error (like others) #2985

    Patrik
    Moderator
    Post count: 1971
    This reply has been marked as private.
    in reply to: Invoicing Checkout issues #2981

    Patrik
    Moderator
    Post count: 1971
    This reply has been marked as private.

    Patrik
    Moderator
    Post count: 1971

    Hi,

    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,
    Patrik

    in reply to: "invalid invoice user id" error (like others) #2961

    Patrik
    Moderator
    Post count: 1971
    This reply has been marked as private.
    in reply to: Import clients #2960

    Patrik
    Moderator
    Post count: 1971
    This reply has been marked as private.
    in reply to: Import clients #2957

    Patrik
    Moderator
    Post count: 1971
    This reply has been marked as private.
Viewing 15 posts - 151 through 165 (of 391 total)