Problems with content that was added to a custom field does not show up on the receipt

flinx777flinx777 Member
in General edited July 2015
We have a client using foxycart 1.1 and on their checkout page they have a custom input field that allows users to enter messages for the recipient of the product.

When characters are introduced like an apostrophe (") or a forward slash (/) with their message (in the custom input field), when clicking "view" in the foxycart admin to load up the receipt (along with the message for print out purposes), the content stored for this custom field is not populated on the receipt page...none of it. I'm not 100% sure that's what is causing the problem, but it appears to be the characters being added by the customer. Do we need to sanitize the information on the checkout page to remove characters before it's submitted or is there another work around?

Btw, the information is all stored in the Foxycart admin...so technically the client can grab the content there, but they're wanting it to show up on the receipt after clicking "view" in the admin.

Thanks!
Comments
  • fc_jedfc_jed FoxyCart Team
    @flinx777

    Hey, Kris. This is a very interesting issue you stumbled upon. Let me forward this to the team and see what we can do. We'll let you know when there's a more definitive solution.
  • fc_adamfc_adam FoxyCart Team
    @flinx777,

    Could you whisper us your store domain and a transaction ID that we could take a look at this in action please?
  • fc_adamfc_adam FoxyCart Team
    @flinx777,

    Thanks for whispering that information!

    So this was a weird one to track down - but this is actually due to some custom CSS on your receipt. Specifically the following:
    #fc_receipt_custom_list li:first-child {
    display: none;
    }
    That's hiding the first list item in the custom fields - which happens to be the gift message in the transactions you shared. Removing that CSS should get everything working as you expect.
  • @fc_adam, thanks for taking the time to hunt that down.

    Question: why does the message show up 80% of the time and 20% of the time it does not? The CSS shown above I would assume completely hide all instances of that text (but it does not). Can you clarify?
  • fc_adamfc_adam FoxyCart Team
    @flinx777,

    It only hides the first list item. The newsletter selection could be the first item if the customer selects Yes for that.
  • @fc_adam...ah, got it. OK, thanks for clarifying...makes sense.
Sign In or Register to comment.