Couple of invoice questions

This topic contains 11 replies, has 3 voices, and was last updated by  Stiofan O’Connor 6 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #1082

    marktowers
    Buyer
    Post count: 171

    Hi,
    I’ve got a couple of questions about invoices that I’m hoping you can help me with.

    1) I’d like to hide the Invoice History button. I’m guessing I need to add something like this (below) to CSS, however, adding it to my Geodirectory child theme’s CSS doesn’t work. Do I need to create a child plugin, and if so where would this need to go?

    .btn-warning {	display:none !important;}

    I couldn’t find anything else that uses btn-warning but if you could confirm that would be great.

    2) How can I remove the “Times Billed” section on the invoice?

    Thanks.

    #1083

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Mark,

    1. it depends on your theme, can you provide wp-admin details and i will give you the right CSS?

    2. This is kinds a vital part of the invoice.
    I’m not sure if you want to remove all info or just some, if all something like
    remove_action( ‘wpinv_invoice_print_middle’, ‘wpinv_invoice_subscription_details’, 10 );
    if just some CSS might be the best solution.

    Thanks,

    Stiofan

    #1085

    marktowers
    Buyer
    Post count: 171
    This reply has been marked as private.
    #1086

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    Those credentials do not appear to have WP Admin access. Can you please verify them and let us know?

    Thanks

    #1087

    marktowers
    Buyer
    Post count: 171
    This reply has been marked as private.
    #1088

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Do you just mean the link in the login box widget?
    If so, try this? (looks like u might have already did it):

    
    
    .geodir-loginbox-list .fa-shopping-cart,
    .geodir-loginbox-list .gd-invoice-link {
    display: none;
    }

    Thanks,

    Stiofan

    #1089

    marktowers
    Buyer
    Post count: 171
    This reply has been marked as private.
    #1091

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Ah ok, i added the below code snippet to remove the button

    
    
    add_action('wpinv_invoice_display_right_actions','_my_remove_invoice_history_button');
    function _my_remove_invoice_history_button(){
      echo "<style>.btn-warning.btn-sm{display:none;}</style>";
    }

    Thanks,

    Stiofan

    #1093

    marktowers
    Buyer
    Post count: 171

    Thanks Stiofan,

    I’ve added that to my clild theme’s functions.php and it works fine.

    Cheers,
    Mark

    #1095

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I had already added it to the code snippet plugin…

    Stiofan

    #1096

    marktowers
    Buyer
    Post count: 171

    Ah, that might explain why when I added to my live site that it went a bit pear-shaped. 🙂

    Would you advise using the snippet plugin instead of maintaining a functions.php file in the child theme? I’m thinking that more plugins add to the load times etc.

    cheers,
    Mark

    #1097

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I prefer to use the code snippet plugin, it means if there is a child theme update then it can easily be applied.

    more plugins dont add to the load time, more complex, heavy plugins do. 🙂

    Thanks,

    Stiofan

Viewing 12 posts - 1 through 12 (of 12 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket