Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • John C Scott 473 posts 1183 karma points
    Feb 20, 2014 @ 11:38
    John C Scott
    0

    address line 2

    Another day a new TeaCommerce project :)

    It's a customer requirement to have a second address line.

    EG: 
    Street, Address: 55 Ashtree Road
    Address Line 2: Stonebridge
    City: Frome
    Region: Somerset
    Zip: BA11 2SE

    So the one I'd like to add is the one in bold above.

    Is there any way to add this to the order model? I have it as an order property.

    The main question is how would the user of the TeaCommerce section see this data. We thought about concatenating line 1 & 2 in the shipping details for street address but are using the html api to post these values in.

    I have the following as the hidden value in the form that submits the data.

    <input name="properties" type="hidden" value="email:email, firstName:firstName, lastName:lastName, phone:phone, streetAddress:billingStreetAddress, streetAddress2:billingStreetAddress2, city:billingCity, state:billingState, zipCode:billingZipCode, shipping_check:shippingCheck" />

    The address line 2 is then stored as a order property called "streetAddress2" but how could I concatenate them together?

     

     

  • Anders Burla 2560 posts 8256 karma points
    Feb 21, 2014 @ 08:15
    Anders Burla
    100

    If you want them from a UI perspective to be concatenated you must use javascript to update a hidden field named - eg. addressConcat. And the use that property as the address property in your setup.

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft