Gift Certificate custom Feilds

By Jody Edgar
Posted in News, on March 12, 2015

We had a project a few months back that wanted to add custom fields for gift certificates. So they could put the person's name on the Gift card when it was sent out. We racked our brains for hours and in the end couldn't figure out how to do it. We easily got it to capture them but couldn't get it to display it on the checkout.

So I posted a question on the partners help board and today I got a reply.

If you are looking to add custom personalized fields here is the code.

 

{% for p in gift_card.properties %}

            {% unless p.last == blank %}
                             {{ p.first }}: {{ p.last }  
            {% endunless %}

{%endfor%}

 


Comments

No comments have been posted.

Leave a comment