Copied to clipboard

Flag this post as spam?

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


  • Matt Taylor 873 posts 2086 karma points
    Aug 21, 2014 @ 17:06
    Matt Taylor
    0

    Get all stores or updating the username for all orders accross all stores

    Some websites like to use an email address as a username.
    The trouble is that email addresses can change so we need to provide a method for changing it on the website.

    In the past I've written code to run though all a customers finalized orders and update the username whenever the they change it

    I see now that GetAllFinalizedOrdersForCustomer and GetAllFinalizedOrdersAsXml all require a StoreID parameter.
    In this situation if a site had multiple stores you'd resonably want to update all the orders accross all stores.

    Is there a GetStores method or some other way to simply update all the orders for a customer?

    Regards,

    Matt

     

  • Anders Burla 2560 posts 8256 karma points
    Aug 22, 2014 @ 08:58
    Anders Burla
    100

    Hi Matt

    You have the StoreService.Instance.GetAll() where you get all the stores. That should do the trick for you.

    Kind regards
    Anders

  • Matt Taylor 873 posts 2086 karma points
    Aug 22, 2014 @ 11:09
    Matt Taylor
    0

    Just what I was looking for. Thanks.

Please Sign in or register to post replies

Write your reply to:

Draft