<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.foxycart.com/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>Foxy Wiki - snippets:receipt</title>
        <description></description>
        <link>https://wiki.foxycart.com/</link>
        <lastBuildDate>Mon, 27 Jul 2026 22:29:11 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://wiki.foxycart.com/_media/wiki/dokuwiki.svg</url>
            <title>Foxy Wiki</title>
            <link>https://wiki.foxycart.com/</link>
        </image>
        <item>
            <title>conditional_content</title>
            <link>https://wiki.foxycart.com/snippets/receipt/conditional_content?rev=1493190150&amp;do=diff</link>
            <description>Display Conditional Content

Using the sample code below, you can display custom html, javascript, etc. based on any criteria. For example, set parameter as false if specific product category is found:


{% if context == 'receipt' %}

    {% set candy = true %}

    {% for item in items %}
        {% if item.category == 'WHOLESALE' %}
            {% set categoryFound = false %}
        {% endif %}
    {% endfor %}

    {% if categoryFound %}
&lt;h1&gt;Success!&lt;/h1&gt;
    {% endif %}

{% endif %}{# conte…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>print_css_on_the_receipt</title>
            <link>https://wiki.foxycart.com/snippets/receipt/print_css_on_the_receipt?rev=1493190150&amp;do=diff</link>
            <description>Print CSS on the receipt

Go into the receipts admin (under templates) and copied the location of the standard foxycart css file.


&lt;link rel=&quot;stylesheet&quot; href=&quot;https://your_foxycart_store_domain/themes/standard/styles.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; charset=&quot;utf-8&quot; /&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
    </channel>
</rss>
