receipt per category

For some products categories, we will have default receipts and email receipts and for other product categories, we will have a different receipt and email receipt. Is this possible?
  • fc_adamfc_adam FoxyCart Team

    It is - but requires a bit of duplication. Essentially the way you'd achieve this is to add some twig logic to both the email and web receipt templates. You would loop through the products and determine what categories are present, and what template needs to be displayed.

    Then using if statements, you would conditionally show certain templates to display what's needed. Depending on your requirements, that might mean you need to duplicate the whole template, or just a certain aspect - but it's achievable.
Sign In or Register to comment.