custom checkout field not appearing in order info, email nt.

General ShopSite user discussion

custom checkout field not appearing in order info, email nt.

Postby CarolA » Tue Mar 11, 2008 6:10 pm

Sorry to be asking so many questions - I will get this all figured out soon.

I inserted a "how did you find out about us" survey on my checkout page.
I put the HTML code in my custom template. I'm using field01 - Commerce Setup|Order System|Checkout. I've check the Emails box.

It shows and works great for the user on the checkout page. However, the field does not display on the order notification receipt or when you view the order through "Orders". I'm not sure what I missed. I've read the Help several times over - "The order confirmation e-mail messages that you receive will contain all the custom form fields for which you checked the "Emails" box. The name and content of all custom fields are automatically included when you view orders in the ShopSite back office. "

I even copied the survey example, and only tweaked the options listed in the box. Does something else need to be set somewhere? I republished the store in case that had something to do with it, but still nothing. I searched past posts here and didn't see anyone with this problem before, so it's got to be something easy I'm missing?

Here's my HTML code - there's not much to it. It's in my custom shopping cart template, inside the <form> for the whole page, after the email list, before the security image. Like I said, it looks fine on the page:
<b>How did you hear about us?</b><br>
<select name="field01" size="1">
<option value="Select One" selected>Select One</option>
<option value="Repeat Buyer">Repeat Buyer</option>
<option value="Friend or Family">Friend or Family</option>
<option value="Search Engine">Search Engine</option>
<option value="Billboard">Billboard</option>
<option value="Website Link">Website Link</option>
<option value="Mailer">Mailer</option>
<option value="Radio Ad">Radio Ad</option>
<option value="Retail Store">Retail Store</option>
<option value="Other">Other</option>
</select>

Thanks for your help.
CarolA
 
Posts: 70
Joined: Thu Nov 29, 2007 2:59 pm
Location: Utah

Postby Jim » Tue Mar 11, 2008 7:20 pm

Works for me. Maybe you are looking in the wrong spot on the receipt for it or if you have a custom template you didn't include the tag to display it?

I took your code and put it in the Commerce Setup > Order System > Checkout >HTML- Before Product Information field. I had field01 set with txt of Gift Wrap and had the checkboxes for Email, Conf and Thankyou all checked. The selection I made appeared on all of them.
On the email receipts (I had text not html enabled) the output is just below the Ordering Instructions section and above the product table like this:
Ordering Instructions

Gift Wrap: Billboard

Qty Name SKU Each Subtotal
------------------------------------------------------------------------
1 P033 $6.00 $6.00

After the above test I unchecked the Conf and Thankyou options and placed another order and the field again appeared on both receipts but not on the ThankYou screen.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby CarolA » Wed Mar 12, 2008 5:57 am

Interesting. Well, I'm hopeful that you got it to work.

Can you tell me if it's the custom field checkbox on the Commerce > Order System > Checkout page that the code looks at to place the field in the text email notification and the order page in "Orders"? I'm wondering if instead it's looking at the "Before" html fields on that same page. The only difference between what you and I did is that I put the code in my custom template, and you put it in one of those fields. I'm guessing that the "Orders" display and that text receipt don't look at my custom template to see where to put that field. I assumed it would look at the checkbox and put all the custom fields at the end of the page - or somewhere standard. But if as you say, it puts it before the product information, because you used the "Before product table" html field.....

Does that make sense? I'm thinking I'm going to have to add back those "before" fields to my custom template, and use those instead of putting the code directly in my shopping cart template...
CarolA
 
Posts: 70
Joined: Thu Nov 29, 2007 2:59 pm
Location: Utah

Postby Jim » Wed Mar 12, 2008 7:17 am

Yes, you need to use the fields on the Commerce Setup > Order System > Checkout fields. It will not work by putting the code directly into the template. There is a special code path when processing the order to keep the information from the fields indicated on the Commerce Setup > Order System > Checkout fields and display it on the checked places as the order proceeds.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby CarolA » Wed Mar 12, 2008 7:55 am

That explains it then. I'll make that change. Thanks so much.
CarolA
 
Posts: 70
Joined: Thu Nov 29, 2007 2:59 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 26 guests