• Hi Steve

    We have noticed that when a brochure is updated in the back end of 10ninety it doesn’t seem to update on the website

    There is a property under essex road within 10ninety that is imported via XML all details are updated apart from the PDF brochure (not sure if this is an issue with how the PDF is saved into the media library as it ends up with a different file name to what is in the 10ninety backend (Essex Road Brochure 4.pdf in the backend compared to 9.pdf in WordPress)

    https://www.saltersresidential.co.uk/property/essex-road-watford-wd17-4ep/
    https://www.saltersresidential.co.uk/wp-content/uploads/2018/07/9.pdf

    (the price has been updated to 225,000 instead of 230,000 and the website still shows an old version of the brochure)

    Can take a look at this and let me know what the issue is

    Thanks in advance

    Craig

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Property Hive

    (@propertyhive)

    Hi Craig,

    The link to the brochure we get in the XML is as follows:

    https://salters.10ninety.co.uk/PublicProperty/DisplayBrochure/9

    That’s why it’s called 9.pdf in WordPress. We get no reference to the file name you mention (Essex Road Brochure 4.pdf).

    As for it not updating, you’re right. I see this too. The reason is because we only import new or updated media. Otherwise we’d be importing the same PDF and images etc over and over each time the import ran.

    We try to tell if it’s different/changed or not by looking at the URL provided and comparing it to what we imported the last time the import ran.

    So if we import a file with URL https://test.com/123 one time, and then the next time the data is received the URL is https://test.com/456 we know it’s a new/changed PDF.

    Now in this case, the PDF isn’t getting a new URL when it’s been updated so we can’t tell it’s changed and therefore don’t import it.

    At this time I honestly don’t have a solution for this. The only thing I can think to do is compare filesizes of existing PDF vs the one sent and if the filesizes differ we know it’s changed. This does mean we’d have to download every single brochure though to do this comparison which I’m not keen on (though might not have a choice).

    Alternatively, we do have this item on our roadmap (https://trello.com/c/1dpCcDEB) which talks about not even downloading the media to WordPress but instead linking to it on the third parties (i.e. 10ninety) server. That would also solve this but isn’t a quick change.

    I’ve waffled on but here’s my conclusion:

    Short Term – Manually delete the brochure from WordPress and wait for another import to run. That’ll then bring in the new brochure

    Long Term – I look at a more solid solution to this and let you know the outcome.

    This is the only format we have this problem with as all other providers either change the filename/URL or provide a data modified we can use.

    So do the short term fix mentioned above just to get this one sorted and I’ll have a think about a solution going forward and update this thread once I’ve come up with something.

    Steve

    Thread Starter craigjacko

    (@craigjacko)

    Hi Steve

    I think I may have a solution that (I think) would work if we made the brochure link on the site link back to the brochure sitting on the 10ninety server instead of importing the filename into the wordpress server this would mean that there is no issue with overwriting the existing file in the wp media library

    Can you advise if this is an easy enough update to make to the plugin so that it opens the PDF in a new window from the 10ninety server

    I look forward to your thoughts on this

    Regards

    Craig

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘10ninety XML feed Brochure PDF not updating’ is closed to new replies.