empty rows in invoice address Task

0
Hi again

I appreciate IM more every day I use it, but I would like the following cosmetic change made in the software.

When an individual customer (i.e. not a company) places an online order, he would typically have:

first + last name
address (one line)
zipcode + city

The IM invoice template caters for:

{to_company}
{to_address}
{to_zipcode} {to_city}

(I already deleted state + country since it makes no sense for our company)

In more than 9 out of 10 orders placed online, it results in:

Invoiced to: first + last name (in bold)
Address blank row as company name does not exist
address line 1
blank row as address line 2 does not exist
zipcode + city

So, two out of five row are blank ones.


Would it be possible to first gather the available address details and have it published without empty lines ?

Thanks again for your support
Ron
Responses (4)
  • Accepted Answer

    Wednesday, November 23 2016, 04:53 PM - #Permalink
    0
    for this you will need to duplicate the template, and simply have a separate template for non-company users... that's why templates are for..:)
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, November 23 2016, 05:09 PM - #Permalink
    0
    Sorry, but no:

    - company field: the company-field could still be required for a part of the online orders (e.g. a secretary ordering a gift). So I will need that field for online orders although it is not always filled.

    - address: if I could choose the Hikashop-field street1 (and not both street 1 and 2) instead of "address" I could avoid having two lines all the time for the address of which one is always empty.

    Your solution would work for orders I create manually in the backend and use a different template there. So the suggestion is OK but I still miss the flexibility to populate the address field depending on which fields are or aren't entered by the customer.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, November 23 2016, 05:12 PM - #Permalink
    0
    but you still have the flexibility of the template, which is FREE HTML. you can put anything in there.
    you can, for instance, wrap the {{company}} tag inside a SPAN that has a STYLE tag that will render only when not empty.
    do you know what I mean? it's all doable with HTML and CSS...
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, November 23 2016, 05:20 PM - #Permalink
    0
    Ah OK. That is a hint worth investigating.
    I'm not a HTML nor CSS ninja (yet) but I will figure it out with the help of Google.

    Cheers
    The reply is currently minimized Show
Your Reply