• Resolved ameliealthuser

    (@ameliealthuser)


    Hello,
    We want to add a content in our PDF. It is the plan which is in the tab “Part print”. We add this tab thanks to the plugin “Product Custom Tab Pro”. We have seen that with this codage, we can add something :

    add_filter(
        'bwsplgns_get_pdf_print_content', 
        function( $content ) {
            $my_content   = "Lorem ipsum dolor sit amet";
            $more_content = 'Donec fringilla libero ac sapien';
    
            /* if you want add some data before to the main content */
            return $my_content . $content;
    
            /* if you want add some data after the main content */
            return $content . $my_content;
    
            /* if you want add some data both sides the main content */
            return $my_content . $content . $more_content;
    
            /* if you want add some data instead of the main content */
            return $my_content;
        }
    );

    But we don’t know what we have to write/edit to add the plan in the PDF.
    We need your help, thank you in advance!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Thank you for contacting us!

    If you have programming skills, then you will cope with adding the necessary content to be displayed in pdf.
    To add the custom content, please use ‘bwsplgns_get_pdf_print_content’ hook:
    1) Go to the plugin settings page;
    2) Open “Custom code” tab, mark “Activate custom PHP code.” checkbox in the “PHP” section;
    3) Add the following code (as example):

    function get_pdf_print_content( $content ) {
    return $content . ‘Hello, world’;
    }
    add_filter( ‘bwsplgns_get_pdf_print_content’, ‘get_pdf_print_content’ );
    For more info see https://support.bestwebsoft.com/hc/en-us/articles/205454653

    Of course we can also help you with your problem, if you really need this. This is a paid service. Our specialist also need some time to investigate this 3rd party plugin and make the required changes.

    Hi,

    Since there is no reply from you, we consider this topic as resolved. We hope you’ve found the solution. If you have any questions, please feel free to contact us via our Help Center – https://support.bestwebsoft.com/.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘add content from the plugin Custom Tab Products Pro’ is closed to new replies.