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 ?
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.
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 ?
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
is working on a reply...