Copied to clipboard

Flag this post as spam?

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


  • NicolaiJee 30 posts 91 karma points
    Jan 31, 2022 @ 13:00
    NicolaiJee
    0

    Migration of prices from TeaCommerce.

    HI I am currently in process with moving a website from TeaCommerce to Vendr. I am trying to move as much as possible automatically. I have made a new property called price and want to copy the oldprice using this code: w.SetValue("price", "{\r\n \"682da845-d696-402b-a66c-017e8befc52e\": " + w.GetValue("oldPrice").ToString().Replace(',', '.') + "\r\n}");

    I am very unsure about where the Id 682da845-d696-402b-a66c-017e8befc52e comes from, is that going to be the same on new site ?

    Is this the best way to migrate prices and so on ?

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Jan 31, 2022 @ 14:59
    Matt Brailsford
    100

    Hi Dr

    682da845-d696-402b-a66c-017e8befc52e is the ID of the currency the price value is for, so this will be unique per install so you might need to fetch the stores currencies and find the ID's for the ones you are trying to set.

    Assuming you only have 1 store and 1 currency, and you are just trying to do a single migration, you could probably just find this ID in the back office and then yea, that value will be the same for every price field you import.

    If you only have one price, this should work, but if you have multiple prices there might be more to it as TC stored it's prices in multiple fields priceGBP, priceUSD etc so you might need to pull from multiple sources.

    Hope this helps

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft