Advanced Template: How to customize address.checkout.inc.twig ?

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

I am trying to customize address.checkout.inc.twig within checkout.inc.twig, 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 "address.checkout.inc.twig" 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?
Comments
  • fc_adamfc_adam FoxyCart Team
    @pixelchutes,

    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.