This topic contains 6 replies, has 0 voices, and was last updated by david.smith 8 years, 2 months ago.

  • Author
    Posts
  • #2179

    john.chick

    As far as i can see it should now be possable to start to add images into the pdf’s by 1. adding the url link of the item onto the sales order line (yet to work out) and 2 then useing the new advanced template to have the img command with the url link, if this is the case has any one done this and what is the 2 sets of codes/setups or is it done another way

    Thanks for any help in this matter
    This is a cached copy. Click here to see the original post.

  • #2180

    john.chick

    Would add javascript i think be the only way to get the url, but have a little knowage so not looked at the code yet till i can see if possable and would not know the code for the advanced template

  • #2181

    rgonzales

    Create a custom transaction column field and source it from the item’s image field. You can then use that new field to display the items image

  • #2182

    john.chick

    you cant directly source an image field into a transaction only the url, which you should be able to use the adv aced templates to then display but its the template code i need

  • #2183

    sterlingr

    I have not been able to get this to work. In theory it should be working but I end up getting some generic error.

    What I did was this:

    I created a custom item field that stores the image url.

    I created a column field sourced from from the item field to pull the url into the sales order.

    Then I update the transaction template and add

    *This is where the error occurs. No printing after adding the image variable. I’ve tried many different versions of this method and it just seems that the image inside the list loop doesn’t work.

    What is strange is that I also used the same thing to add the image to confirmation emails and it does work! Instead of using the advanced forms for the email I have a slightly modified version of it saved as an email template.

  • #2184

    Prathibha Ganneruvaram

    The code works fine but using the field(Type:Hyperlink) ends up with error!!!

    So, you need to store the image url in field(Type: Free form text) on Item record and source it on custom column Field(Type: Free form text) of Sales order.

    Use it in PDF template and check it out.

    Hope it works fine.


    jaky426 replied on 09/12/2016, 04:51 AM: Does it mean we can only see the url in sales order, but we can see image in printed PDF?

    How about I want to see image also in the sales order?

    Thank you !

  • #2185

    david.smith

    The item records already have an image field. I tried to set this up with that join but it would only pull the first image and not any of the rest.

    So I did a custom column field (text not hyperlink) as suggested above and then input the item’s image link. Here is the code part of the template that works. The only thing to be aware of is size of the image.

    Code:


    sterlingr replied on 11/03/2016, 07:42 PM: Unfortunately I missed the responses here but this is what I ended up doing too. Sourced the field value as free form text from the item record and it has been working.

You must be logged in to reply to this topic.