brad-w Posted August 17, 2010 Share Posted August 17, 2010 My company is interested in updating pricing across the entire site (over 700 products).I was wondering if it's possible to write an SQL query that would round all prices up (ideally to the nearest .50 increment above what they are currently at).For example, $14.08 ---> $14.50and $14.78 ---> $15.00I really appreciate any advice you can offer, such a time saver to not do this by hand..Thanks,Brad Link to comment Share on other sites More sharing options...
rocky Posted August 18, 2010 Share Posted August 18, 2010 What version of PrestaShop are you using? In v1.3.1, you can simply go to the Preferences tab and change the "Round mode" to "Superior" to round all prices up. Link to comment Share on other sites More sharing options...
brad-w Posted August 18, 2010 Author Share Posted August 18, 2010 I'm using 1.3.1 but I'm not looking to round prices up to a dollar and cents value, I'm looking to round all prices to the nearest half dollar. Link to comment Share on other sites More sharing options...
DutchCoding Posted August 18, 2010 Share Posted August 18, 2010 Got access to PHPMyAdmin? Link to comment Share on other sites More sharing options...
DutchCoding Posted August 18, 2010 Share Posted August 18, 2010 Here is a freebie incase you have another databas prefix change the 'ps_' to the example 'am_product'Just run this sql query in your PHPMyAdmin and your done UPDATE `ps_product` SET `price` = (SELECT (CEILING((`price`)*2)/2)) hope this helps Link to comment Share on other sites More sharing options...
brad-w Posted August 20, 2010 Author Share Posted August 20, 2010 Thanks a lot, EXACTLY what I was looking for =) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now