How deleting old productPrice, please Help!

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How deleting old productPrice, please Help!

alisi
Hello,

i have imported 140000 products with ( prices, images, inventory,...etc) in to the Database successfully, but after updating product-prices the old ones still showing under pricetab in the product admin page.
my question is: are there any way to delete the old product Prices befor or after updating them ?

THX
Reply | Threaded
Open this post in threaded view
|

Re: How deleting old productPrice, please Help!

paramjit.saini
Run the given below query:-

Delete from product_price where product_price_type_id='WhichPriceYouWantDelete' and from_date < 'LastPriceUpdatedDate';  

Same as given query,

Delete from product_price where product_price_type_id='LIST_PRICE' and from_date < '2011-01-11';
Reply | Threaded
Open this post in threaded view
|

Re: How deleting old productPrice, please Help!

alisi
Thank you for your help  paramjit.saini !
it works!

but, are there an other way to override the old product-price at the same time when importing the new ones?
Reply | Threaded
Open this post in threaded view
|

Re: How deleting old productPrice, please Help!

paramjit.saini
1st, let me know, how you import product price, through any product price service or xml import?