Bulk Price Change for Downloadables

TonyTony Member
in Help
My company wants to permanently increase all prices for all of its downloadable products (https://admin.foxycart.com/admin.php?ThisAction=ManageDownloadables) by a certain algorithm, which roughly equates to about a 35% increase. Is there a way to do this in bulk, or does it need to be done by hand? I just want to check here before we start doing it by hand, just in case there is a way to do it in bulk.
Tagged:
Comments
  • fc_adamfc_adam FoxyCart Team
    @Tony,

    Good question. We don't currently have a bulk way to edit downloadables within our administration. It is possible to edit downloadables using our Hypermedia API though - if you had a larger number of downloadables to update, scripting something up may make sense. If it's only a handful though, doing it manually may make the most sense.

    If you wanted to use the API, you can see details on it here: https://api.foxycart.com, and details on the downloadables resource here: https://api.foxycart.com/rels/downloadables
  • TonyTony Member
    Oh sweet, thanks! This particular store is still on 1.0. Does this API apply to all FoxyCart store versions or just the newest? Is there documentation specifically for 1.0?
  • fc_adamfc_adam FoxyCart Team
    @Tony,

    Thanks for clarifying - good question. Our Hypermedia API does rely on a 2.0 store unfortunately, and our legacy API doesn't support working with downloadables - so you will need to adjust them manually.

    If you do have a stack of downloadables - one other option I didn't think of earlier would be a browser automation plugin - Selenium for example. You could potentially use something like that to click through each downloadable and adjust the price as needed.
  • TonyTony Member
    Okay, thanks! I guess now I just have to decide if it is faster to upgrade FoxyCart and write a script, use Selenium, use mechanize.py, or adjust the prices manually. Lots of choices.
  • brettbrett FoxyCart Team
    @Tony, I'm going to whisper you some other info. But if you do script something in the browser, set a timeout on things so it doesn't make requests too quickly. The admin's got some abuse-prevention that'll kick in if you start to hammer it too hard :)
Sign In or Register to comment.