Support » Plugin: WP-Invoice - Web Invoice and Billing » html stripping from quote to invoice

  • Resolved nofski



    Can you tell me if you think this might be my set up or something that is done intentionally by your plugin?

    I use the quotes plugin and a custom template. I have to add video into my quotes and after I eventual found a way of doing this using HTML 5 I have started to get the quotes functioning something like I want.

    However, when a user accepts quote all of the HTML 5 video is stripped out. Also If I add any scripted widgets, for instance, an Amazon affiliate widget it shows up fine in the quote, but after it becomes an invoice it just shows the script but does not execute it and looks awful.

    Also, is there a way to keep the comments open after a quote has been accepted, these become closed when the user accepts the quote.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor MariaKravchenko



    Can you clarify, are you using a custom invoice or quotes template? That is 2 different templates. So if you customized quotes template, you will also need to do the same with invoice one.

    Also, are you putting video to the content of to line item?



    I use the custom template check box provided within wp invoice, the one that says “if checked, wp-invoice will use templates in the ‘wpi’ folder in your active theme.

    I’ve not customised the template much, in fact, all I’ve done is change where a couple of the statements display. As I said it all works fine on the quote side of things and I add the following HTML 5 to display video in the quote form.
    <video width=600 height=480 controls>
    <source src= type=video/mp4>
    <source src= type=video/webm>
    Your browser does not support the video tag.

    This then displays the inspection I’ve done into the quote form.
    it is only when a user accepts the quote when the html 5 video stops working

    So is there a template somewhere I am missing somewhere, in the wpi folder there is only the invoice_page.php template?

    Plugin Contributor MariaKravchenko


    Can you make screenshot where did you put that code in that template?


    I don’t actually add the code to the template within the wpi folder, that html 5 gets inserted with a new video on each quote.

    All I have done to manipulate the template is to try to show the quote as well after it becomes an invoice, it acts like a before and after as I do cleaning work.

    Once the user has clicked accept the quote, I want the quote details( the video that i added) to appear below. All the text appears but it seems like any html gets stripped out. I then have to add the video manually again and it appears. I have to do a lot of steps to get this quote working for me.

    A better example is something that happened recently that might highlight the issue better.
    I did my normal quote and added a video but a customer needed some extra work doing and I suggested a product that would be a better way of dealing with the issue. I added my Amazon search widget, which has my affiliate id, to the quote.

    This all appeared in in the quote fine but once she accepted the quote the video and the search widget disappear leaving only the widget code and the blank video controls. What makes this worse is she needed the widget to buy the product, so she might have bought it without getting the affiliate tracking id – that’s a massive 34pence I may have lost Maria, 34 pence! 😉

    The screen shot is the bottom of the invoice with the quote history stripped out.

    Whilst I am on it, is there a way to keep the questions from closing once the accept quote is clicked.


    • This reply was modified 2 years, 5 months ago by nofski.
    Plugin Contributor MariaKravchenko


    Unfortunately, that information is not enough to answer your question. That should be checked directly on your site. We can provide custom service if you are interested.


    I will say this only once but I will never want custom service from you and never suggest it again.

    I will provide more information for you later about this and I will see if it is my set up causing this.

    Not sure why this was mark as resolved.

    Anyway, I have stripped back all the plugins and am just using your quote plugin and the default layout. ie not the wpi custom template

    If I add this code into the quote form everything shows up and the amazon search widget displays fine

    <script type=”text/javascript”>amzn_assoc_ad_type =”responsive_search_widget”; amzn_assoc_tracking_id =”*1″; amzn_assoc_marketplace =”amazon”; amzn_assoc_region =”GB”; amzn_assoc_placement =””; amzn_assoc_search_type = “search_widget”;amzn_assoc_width =”auto”; amzn_assoc_height =”auto”; amzn_assoc_default_search_category =””; amzn_assoc_default_search_key =””;amzn_assoc_theme =”light”; amzn_assoc_bg_color =”FFFFFF”; </script><script src=”//”></script>

    When accept quote is clicked the code shows up only and does not display as the search widget. This happens with all my quote inspection videos too, which is the real problem.

    Your last response to me made me think it might be because I used the custom template but it is not that.

    I don’t know how much more information I need to give you or even if you’re bothered, as demonstrated by your perfunctory response the last time I pointed out the apostrophes problem.

    What I do expect is this to display the same on the invoice page as it did on the quote page. or you in the very least to say that you have tested on your set up.

    Plugin Contributor MariaKravchenko


    Where particular did you add that code? To the content of Quote?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘html stripping from quote to invoice’ is closed to new replies.