Copied to clipboard

Flag this post as spam?

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


  • Amir Khan 1287 posts 2744 karma points
    Feb 27, 2013 @ 16:07
    Amir Khan
    0

    Change field value based on csv post

    Hi,

    I'm trying to read an XML feed and adjust the value of a node property based on a value in the feed.

    Basically I'd like to read an XML feed and adjust a nodes stock value based on the nodes sku.

    I realize this is a broad question, but does anyone have experience doing this in razor?

    Thanks!

    Amir

  • Rich Green 2246 posts 4008 karma points
    Feb 27, 2013 @ 16:32
    Rich Green
    0

    Hey Amir,

    You can update the node via the API, reading the XML feed can be done using any code you like.

    Does that help?

    Rich

  • Amir Khan 1287 posts 2744 karma points
    Feb 27, 2013 @ 18:18
    Amir Khan
    0

    Yeah kinda. I guess the part I'm struggling with, which i didn't mention before, is that I need a URL to post to everytime an external transaction happens. Is this an appropriate use for altTemplate?

  • Rich Green 2246 posts 4008 karma points
    Feb 27, 2013 @ 18:29
    Rich Green
    0

    altTemplate will work perfectly for this.

    You can call this via ?alttemplate=NameOfTemplate or /pageName/NameOfTemplate

    Rich

  • Rich Green 2246 posts 4008 karma points
    Feb 27, 2013 @ 18:30
    Rich Green
    0

    and of course you can still use querystrings shoud you need to

    Rich

Please Sign in or register to post replies

Write your reply to:

Draft