No announcement yet.

Writing to a custom field

  • Filter
  • Time
  • Show
Clear All
new posts

    Writing to a custom field

    I'm trying to write to some custom fields on the customer. I have confirmed that the values and customer email is coming in correctly, but it's not working. Am I misunderstanding something about how this function is supposed to work?

    <mvt:item name="customfields" param="Write_Customer_Login( g.customer:login, 'customer:business_website', g.business_website; )" />
    Last edited by rwilder; 12-29-20, 10:08 AM.

    You don't mention where you are using this function. That is important.

    You have a semi-colon after the variable value containing the source. (business_website)

    Also, that custom field name looks suspicious. Even if correct I'd recommend against using a semi-colon in custom field code.

    try this as well

    <!-- debug: Login=&mvt:global:customer:login; | website= &mvt:global:business_website -->
    <mvt:item name="customfields" param="Write_Customer_Login( g.customer:login, 'customer:business_website', g.business_website )" />
    And then view the source output to ensure you are getting what you need.
    Bruce Golub
    Phosphor Media - "Your Success is our Business"

    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook


      Yes, it was the semi-colon! Thank you so much!