I've tried to use $order_answer_postal_code$ & $order_answer_zip$ variables to display the postal code for the orders (for customers who don't create an account) and nothing is displayed.
When I use $customer_answer_zip$ for customer who have created an account, their postal code is displayed correctly.
If I use the #block order_answer with the $answer$ variable, it is displayed (as with all the other details) so I know the details are saved, just not displayed.
Do you mean in the email
Do you mean in the email messages that get sent?
We just use this and it works fine:
Customer information
------------------------------------------------
$question_postal_code$: $order_answer_postal_code$
http://a-vdistribution.com
It's so I can print off an
It's so I can print off an invoice and address label.
Within the customer questions I use the default "Zip Code" from the selection box but named it "Postal Code" as my customers are from the UK.
$order_answer_postal_code$ or $order_answer_zip$ don't display anything but $customer_answer_zip$ displays their postcode for customers who have made an account
Here is the code used in message settings --> templates...
<dl>
<dd><strong>$order_answer_name_and_surname$</strong></dd>
<dd>$order_answer_company$</dd>
<dd>$order_answer_street$</dd>
<dd>$order_answer_user_question_101$</dd>
<dd>$order_answer_user_question_102$</dd>
<dd>$order_answer_country$</dd>
<dd>$order_answer_zip$</dd>
<dd>$order_answer_postal_code$</dd>
<dl>
Then I click on Messages within the order details and click "Print HTML" to print off the invoice and address label...it's only postcode that's not printed.
If I use "Send custom mail" in the options and preview the email, it still doesn't display the postcode.
No reply on this...is
No reply on this...is anybody else not able to display the post/zip code or is it just me?
Hi, sorry for the late
Hi, sorry for the late answer.
I tested variables in message templates with "Send custom email" with preview option:
$question_postal_code$: $order_answer_postal_code
$question_zip$: $order_answer_zip$
Tested order with not registered customer,
both variables printed right answers(the same as in order details).
$customer_answer_xxx$ variables print customer information for registered customers, that is the information that customer filled during the registration.
$order_answer_xxx$ variables print information filled by customer during making an order, so variables should work with both registered and not registered customers.
The predefined message
The predefined message templates work fine (print or email) and the postal code is displayed - ie order confirmation email message.
But when I select my custom template called "#3 invoice" - it won't display the post code for the customer order by using $order_answer_zip$ as it does with the predefined templates that I've changed to suit what I want.
The only way to get the postal code displayed in this template is to use the block to display all Q&As...but I don
t want to include every question.
Because I couldn't get this
Because I couldn't get this resolved I decided to hide the zip code question and create a new custom question and call it "Post Code" using number 105
Now here is the strange part, when I edited the invoice that I have created to add "$order_answer_user_question_105$" - the post code from the previous orders are being displayed, I removed question #105 (my custom post code question) and it's now printing the post code on variable $order_answer_zip$ as it should be...this clearly is a bug and may have been caused by me changing the details of the customer questions while setting up the shop...
So, to clarify here what I did;
$order_answer_zip$ would NOT print out the post code for the order even though it worked fine in the order confirmation email, so I...
Hid the predefined "Zip Code" question with label of "Post Code" in the customer questions list
Created new question (number 105) with label of "Post Code"
Added #105 to print out and post codes from old orders were printed as I kept the $order_answer_zip$ variable
Un-hid predefined "Zip Code" question from the customer questions list
Deleted customer question number 105
Previewed invoice and it's still printing the post code
Hi, I still can't reproduce
Hi,
I still can't reproduce this bug. Here is the list of steps I did to try out the bug:
1) Created new template(not predefined template) with name "#3 invoice".
2) Added following text to this template:
"order_answer_zip: $order_answer_zip$
order_answer_postal_code: $order_answer_postal_code$" -
text added to both plain text and html text - both behaved similarly.
3) In Customer->Settings->Questions questions named "Postal number" and "Zip code" were defined.
Both questions Usage type is "Order" and In the Webshop - "Modifiable" (tested both in required or not-required modes, result was the same).
4) Opened shop and made order(as a not registered customer), filled order form:
- answered to the postal number question: 11111
- answered to the zip code question: 22222
5) Confirmed order.
6) In Workspace admin Orders-> Orders/search - selected last order
7) On the order information page I saw right Postal number and Zip code answers(11111 and 22222).
8) Clicked at "Messages" button and choosed #3 invoice template - "Send custom mail"
9) In appeared window clicked button "Send/Preview"..
10) ..and I saw the right answers here:
order_answer_zip: 22222
order_answer_postal_code: 11111
11) I saw the same right answers in the sent email if I clicked "Send" on the preview page
Please check if all steps I did are right or you did something different when you mentioned the bug.
If steps are right, please write on what step have you failed or received wrong value.
About custom question:
If you delete custom question, on order page answer to this question is still saved - that is the cause of answer still printing - I assume that used invoice still have variable to print out order answer on deleted question.