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.

Advanced Template: How to customize ?

pixelchutespixelchutes Member
in Help edited January 2015
Hoping this is an easy question, probably Twig noob-worthy :)

I am trying to customize within, but I don't know exactly how to go about it? I think what may be throwing me is the usage of "with" keyword:
{% include "" with {'address': billing_address} %}
I've been able to replace full Twig "blocks" without issue, but how does one customize the address checkout fields, while maintaining the address variable via with?
  • fc_adamfc_adam FoxyCart Team

    The with option there is saying "load the template and pass this as a variable to the template". If you replace that include with the actual raw code from the template, add this right above the inserted template:
    {% set address = billing_address %}
    Or alternatively you can change any reference to address within the pasted template to billing_address
Sign In or Register to comment.