Custom template not used for printable_order_copy

dme

Hi all

Not sure whether this is a bug or a feature, but it seems more like a bug to me...

I use an amended version of the standard template and have installed a copy according to the wiki. It works in the frontend and is activated in the backend.
When I open the printable_order_copy however, Litecart behaves a bit strange:
– It uses the custom template when I use links in emails or frontend/ customer area
– It only uses the standard template when I open the printable_order_copy from the order list in the backend. If the standard template is deleted, it procuces and error instead.

Is this behavior on purpose?

Thanks for the great work on Litecart!

Cheers
daniel

PS: Litecart 2.2.1, downloaded a few days ago

dme

Hm, I found the issue on Github https://github.com/litecart/litecart/issues/161 and applied the code changes (new line)

– The custom template is used then (I can see some changes I made like deleting the weight or so)
– BUT the CSS seems broken and the printable_order_copy loses all formatting.

Este tópico foi fechado devido à longa inatividade. Não é possível postar nele.
Veja o código no GitHub