• Resolved pritsshah

    (@pritsshah)


    Hello there,

    on clicking print invoice, delivery note etc I get a page where only text is displayed – HTML is not being rendered.

    What could be the cause of this? Thanks in advance.

    <!DOCTYPE html>
    <html>
    	<head>
    		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    		<title>deliverynote_5913</title>
    		<style>
    		body, html{margin:0px; padding:0px; }
    		.clearfix::after {
    		    display: block;
    		    clear: both;
    		  content: "";}
    		.wfte_hidden{ display:none !important; }
    		.wfte_text_right{text-align:right !important; }
    		.wfte_text_left{text-align:start !important; }
    		.wfte_text_center{text-align:center !important; }
    		.pagebreak {
    			page-break-after: always;
    		}
    		.no-page-break {
    			page-break-after: avoid;
    		}
    		</style>
    		<style id="template_font_style">
    					</style>
    		<style>
    			</style>
    		<style>
    		@media print {
    		  body{ -webkit-print-color-adjust:exact; color-adjust:exact;}
    		  #Header, #Footer { display:none !important; }
    		  @page { size:auto;  margin:0;  }
    		   body,html{ margin:0; background-color:#FFFFFF; }
    		   table.wfte_product_table tr, table.wfte_product_table tr td, table.wfte_payment_summary_table tr, table.wfte_payment_summary_table tr td{
    		        page-break-inside: avoid;
    		   }
    		}
    		.wfte_received_seal{ page-break-inside:avoid; }
    		</style>
    		<script>
    		function wf_document_options(print_preview)
    		{
    			if(print_preview=='enabled')
    			{
    				window.print();
    			}
    		}
    		</script>
       </head>
    <body onload="wf_document_options('enabled')"><style type="text/css">
    .clearfix::after {
        display: block;
        clear: both;
      content: "";}
    .wfte_invoice-main{ color:#73879C; font-family:"Helvetica Neue", Roboto, Arial, "Droid Sans", sans-serif; font-size:12px; font-weight:400; line-height:18px; box-sizing:border-box; width:100%; margin:0px;}
    .wfte_invoice-main *{ box-sizing:border-box;}
    .wfte_invoice-header{ background:#fff; color:#000; padding:10px 20px; width:100%; }
    .wfte_invoice-header_top{ padding:15px 0px; padding-bottom:10px; width:100%;}
    .wfte_left_box{width:40%;}
    .wfte_doc_title{ padding: 9px 0px; color:#23a8f9; font-size:30px; font-weight:bold; height:auto; width:auto; float:left; line-height:22px;}
    .wfte_company_logo{ float:left; }
    .wfte_company_logo_img{ width:150px; max-width:100%; }
    .wfte_company_name{ font-size:18px; font-weight:bold; }
    .wfte_company_logo_extra_details{ font-size:12px; }
    .wfte_barcode{ width:100%; height:auto; margin-top:10px; }
    .wfte_order_data{ margin-top:20px; width:100%; padding:0px .5%; float:left; }
    .wfte_order_number{ font-size:14px; font-weight:bold; }
    .wfte_order_date{ font-size:14px;}
    .wfte_addrss_field_main{ width:100%; font-size:12px; padding-top:5px; }
    .wfte_from_address{ width:30%; }
    .wfte_addrss_fields{ width:30%; padding:0px .5%; line-height:16px;}
    .wfte_address-field-header{ font-weight:bold; }
    .wfte_invoice_data{ width:100%; margin-top:10px; }
    .wfte_email_label,.wfte_tel_label,.wfte_vat_number_label,.wfte_shipping_method_label,.wfte_tracking_number_label,.wfte_ssn_number_label{ font-weight:bold; }
    .wfte_invoice-body{background:#ffffff; color:#23272c; padding:10px 20px; width:100%;}
    .wfte_product_table{ width:100%; border-collapse:collapse;}
    .wfte_product_table_head{}
    .wfte_product_table_head th{ border:solid 1px #000; height:36px; padding:0px 5px; font-size:.75rem; text-align:center; line-height:10px;}
    .wfte_product_table_body td{padding:8px 5px; text-align:center; font-size:12px; line-height:10px; border:solid 1px #dadada; }
    .wfte_return_policy{ width:100%; height:auto; border-top:solid 1px #dfd5d5; padding:5px 0px; margin-top:10px; }
    .wfte_footer{width:100%; height:auto; border-top:solid 1px #dfd5d5; padding:5px 0px; margin-top:10px; font-size:10px;}
    
    .wfte_product_table_head_bg{background-color:#000;}
    .wfte_table_head_color{ color:#ffffff; }
    
    .float_left{ float:left; }
    .float_right{ float:right; }
    </style>
    <div class="wfte_rtl_main wfte_invoice-main">
      <div class="wfte_invoice-header clearfix">
        <div class="wfte_invoice-header_top clearfix">
          <div class="wfte_doc_title wfte_template_element" data-hover-id="doc_title">Delivery note</div>
        </div>
          <div class="wfte_invoice-header_top clearfix">
            <div class="float_left wfte_left_box">
              <div class="wfte_company_logo">
                <div class="wfte_company_logo_img_box">
                  <img src="https://shop.bidcoafrica.com/wp-content/uploads/2021/12/logo.png" class="wfte_company_logo_img">
                </div>
                <div class="wfte_company_name wfte_hidden">Bidco Shop</div>
                <div class="wfte_company_logo_extra_details"></div>
              </div>
              <div class="wfte_order_data wfte_text_left">
                <div class="wfte_order_number">
                  <span class="wfte_order_number_label">Order No:</span> 1762
                </div>
                <div class="wfte_order_date" data-order_date-format="m-d-Y">
                  <span class="wfte_order_date_label">Date:</span> 09-26-2022
                </div>
              </div>
            </div>
            <div class="wfte_from_address float_right wfte_text_left">
              <div class="wfte_address-field-header wfte_from_address_label">From Address:</div>
              <div class="wfte_from_address_val">Bidco shop<br />49 Kandara Road<br />Nairobi, NBO, 001<br />Kenya<br />011 417 8421</div>
            </div>
          </div>
          <div class="wfte_addrss_field_main clearfix">
             <div class="wfte_addrss_fields float_left">
               <div class="wfte_billing_address wfte_text_left">
                 <div class="wfte_address-field-header wfte_billing_address_label">Billing Address:</div>
                 Niku Channa<br />Byte Ryte Meals<br />Bandari Road, Off Dunga Road, Industrial area<br />No 8, Next to Sumitto Auto parts<br />Nairobi, NBO, 00500<br />Kenya
               </div>
                <div class="wfte_invoice_data wfte_text_left">
                  <div class="wfte_email">
                    <span class="wfte_email_label">Email:</span>
                    <span>byterytemeals@gmail.com</span>
                  </div>
                  <div class="wfte_tel">
                    <span class="wfte_tel_label">Tel:</span>
                    <span>0722404444</span>
                  </div>
                  <div class="wfte_vat_number wfte_hidden">
                    <span class="wfte_vat_number wfte_hidden_label">VAT:</span>
                    <span>[wfte_vat_number wfte_hidden]</span>
                  </div>
                  <div class="wfte_order_item_meta wfte_hidden">[wfte_order_item_meta wfte_hidden]</div>
                </div>
             </div>
             <div class="wfte_addrss_fields float_right">
               <div class="wfte_shipping_address wfte_text_left">
                 <div class="wfte_address-field-header wfte_shipping_address_label">Shipping Address:</div>
                 Byte Ryte Meals<br />Bandari Road, Off Dunga Road, Industrial area<br />No 8, Next to Sumitto Auto parts<br />Nairobi, NBO, 00500<br />Kenya
               </div>
               <div class="wfte_invoice_data wfte_text_left">
                  <div class="wfte_tracking_number wfte_hidden">
                    <span class="wfte_tracking_number wfte_hidden_label">Tracking number:</span>
                    <span>[wfte_tracking_number wfte_hidden]</span>
                  </div>
                  <div class="wfte_ssn_number wfte_hidden">
                    <span class="wfte_ssn_number wfte_hidden_label">SSN:</span>
                    <span>[wfte_ssn_number wfte_hidden]</span>
                  </div>
                  
                  <div class="wfte_box_name wfte_hidden">[wfte_box_name wfte_hidden]</div>
                </div>
             </div>
          </div>
      </div>
      <div class="wfte_invoice-body clearfix">
           
        <table class="wfte_product_table">
          <thead class="wfte_product_table_head wfte_table_head_color wfte_product_table_head_bg">
            <tr><th class="wfte_product_table_head_serial_no" col-type="serial_no">S.No</th><th class="wfte_product_table_head_sku" col-type="sku">SKU</th><th class="wfte_product_table_head_product" col-type="product">Product</th><th class="wfte_product_table_head_quantity" col-type="quantity">Quantity</th><th class="wfte_product_table_head_total_weight wfte_right_column" col-type="total_weight">Total Weight</th><th class="wfte_product_table_head_image wfte_hidden" col-type="image">Image</th></tr>
          </thead>
          <tbody class="wfte_product_table_body wfte_table_body_color"><tr><td class=" serial_no_td ">1</td><td class=" sku_td "></td><td class=" product_td ">Sungold Lite Sunflower - 5 Ltr, Per Carton <br><small style="word-break: break-word;"><span class="wt_pklist_meta_item" data-meta-id="pa_size"><label>Size</label> : 5-ltr </span><br><span class="wt_pklist_meta_item" data-meta-id="pa_packaging"><label>Packaging</label> : per-carton </span></small></td><td class=" quantity_td ">1</td><td class=" total_weight_td ">n/a</td><td class="wfte_hidden -image_td "><img src="https://shop.bidcoafrica.com/wp-content/uploads/2022/04/Sungold-1L-150x150.jpg" style="max-width:30px; max-height:30px; border-radius:25%;" class="wfte_product_image_thumb"/></td></tr>
          </tbody>
        </table>
        
        <div class="wfte_hidden clearfix wfte_text_left wfte_hidden">
          
        </div>
      </div>
    </div><p class="no-page-break"></p></body>
    </html>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @pritsshah,

    Thanks for reaching out.

    We couldn’t replicate the issue when we tested the scenario on our end. Could you please share your WooCommerce system status report (WooCommerce>status>system status report) via this link for a better understanding of your system environment?

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @pritsshah,

    Greetings from WebToffee.

    This thread has been inactive for a bit, so we are going to mark it as Resolved now. Please feel free to open a new thread or follow-up if you have any further questions or still need help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HTML not rendered’ is closed to new replies.