less than a minute read • Updated 8 days ago
Add Store Address/Phone Information to Web Receipt
How to display your store address and phone number on the Foxy web receipt using custom footer code.
The web receipt doesn't include your store address or phone number by default. You can add them with a snippet in your custom footer code.
Steps
twig
{% if context == 'receipt' %}
<script>
$('.fc-container__grid--static-input--store-name').append('<p class="fc-form-control--static">Address Line 1</p><p class="fc-form-control--static">Address Line 2</p><p class="fc-form-control--static">City, State, Zip</p><p class="fc-form-control--static">Phone Number</p>');
</script>
{% endif %}Steps to test
Notes
Custom footer supports Twig and is injected before the closing
</body>tag. Custom header is HTML and CSS only, no Twig, so this snippet has to go in the footer.The
{% if context == 'receipt' %}wrapper keeps the block off the cart and checkout. Remove it only if you want it on every template.The snippet appends to the store name element. If your receipt is heavily customized and that element has been replaced, nothing will render and you'll need a different selector.