Developer forum

Forum » Development » RenderBackend dosen't render

RenderBackend dosen't render

Mads Kold
Reply

Hi DW

I'm trying to create a ShippingProvider, i have ran into a problem with RenderBackend, it dosen't render anything into the backend (I'm expecting it ro render out on the order page?)

I'm using this code

        public override string RenderBackend(Order order)
        {

            var product = this.GetFreightProduct(order);

            return "DETTE ER EN SHIPMENT INFO TEST";

                if (product != null)
                    return
                        $"{ string.Join("</br>", new List<object>() { product.WebShopProductId, product.ProductName, product.Price, product.ErrorMessage })}";
            
            return base.RenderBackend(order);
        }


Replies

 
Nicolai Pedersen
Reply

Hi Mads

Looking into our code, RenderBackend is not implemented and does nothing. I would not understand what it should do either, so I think it is a left over from a developer smoking illegal substances... Sorry about that.

Can you tell me what you want to achieve - there is probably another approach.

BR Nicolai

 
Mads Kold Sjørslev
Reply

Hi Nicolai

I'm trying to render some custom data into the backend under order shipment. Is there another way to achive that?

 
Nicolai Pedersen
Reply

Hi Mads

I am affraid that is not possible. You can however create one or more custom order fields and add the information to those fields...

 
Mads Kold Sjørslev
Reply

Hi Nicolai

 

Thanks for your answer, now that you can save generic shipping data on the order, it would be nice to have a way to render it out on the backend urder smiley

 

You must be logged in to post in the forum