The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Where do I find "receipt.inc.twig" ?

Hi FC,

I am on "edit receipt template" page. An extract from the template:

...


{% include 'svg.inc.twig' %}

{% import "utils.inc.twig" as utils %}
{% embed 'receipt.inc.twig' %}
{% endembed %}

<!--[if lt IE 9 ]>
...
Question. Where do I find "receipt.inc.twig" in my admin panel? This one here:

https://github.com/FoxyCart/2.0-templates/blob/master/receipt.inc.twig

Actually, it'd be nice if you linked all templates from admin panel to their GitHub sources.

Thanks!
Tagged:
Comments
  • fc_adamfc_adam FoxyCart Team
    @temuri416,

    The template you linked to there is indeed the receipt include template. You can see all templates listed at https://github.com/FoxyCart/2.0-templates/

    Thanks for your suggestion for linking to them in the admin too - we're working through a new rebuilt administration right now, and are planning some improvements to our templates to make them easier to work with as part of that.
  • Thanks,

    I think I didn't make my question clear.

    I would like to edit the contents of 'receipt.inc.twig' from my admin panel - I'd like to move things around when the receipt page is rendered.

    How can I do that?
  • fc_adamfc_adam FoxyCart Team
    @temuri416,

    Thanks for clarifying. Depending on the level of customisation you're wanting to do, there are a few ways to go about it. If you're wanting to rearrange the receipt page quite a bit, your best bet would be to copy the contents of "receipt.inc.twig" and paste it in the place of the following code in the default receipt template:
    {% embed 'receipt.inc.twig' %}
    {% endembed %}
    You can then alter the raw code as you need.

    You can also see some information on working with the raw templates here: https://wiki.foxycart.com/v/2.0/templates/advanced
  • BTW: that is exactly what i did too, when finding out that the receipt.inc.twig is not accessible from the admin menu.
Sign In or Register to comment.