Mark-UK Posted January 10, 2005 Posted January 10, 2005 Just wanted to test somethings on my UK site and i was wondering is there a quick way to reduce all your products prices by a certain amount say 10%. Or even at checkout take off a percent of the total costs, I know theres a contribution for this but ive heard its quite big and takes a while and i don think im that advanced yet in oscommerce. I wanted to try and start something tonight perhaps. ? Thankyou
RyanSmith Posted January 10, 2005 Posted January 10, 2005 Just wanted to test somethings on my UK site and i was wondering is there a quick way to reduce all your products prices by a certain amount say 10%. Or even at checkout take off a percent of the total costs, I know theres a contribution for this but ive heard its quite big and takes a while and i don think im that advanced yet in oscommerce. I wanted to try and start something tonight perhaps. ? Thankyou <{POST_SNAPBACK}> All products reduced by 10%: open up mySQL UPDATE products SET products_price = products_price * .9; osCommerce is a great piece of software with wonderful contributions. Spend some time in the contribution area. There are a lot of gems there.
Mark-UK Posted January 10, 2005 Author Posted January 10, 2005 Sorr I DONT UNDERSTAND WHAT YOU MEAN i DO, SORRY.
RyanSmith Posted January 10, 2005 Posted January 10, 2005 Sorr I DONT UNDERSTAND WHAT YOU MEAN i DO, SORRY. <{POST_SNAPBACK}> Open up the MySQL command line prompt. This should be located in the bin directory of where you installed mySQL. From there it will ask you for you password. Enter it and type: USE oscommerce; or whatever you named your oscommerce database. Next type: UPDATE products SET products_price = products_price * .9; This should make all products 90% of what their previous price was. osCommerce is a great piece of software with wonderful contributions. Spend some time in the contribution area. There are a lot of gems there.
glamourfish Posted August 17, 2006 Posted August 17, 2006 this is more or less what I need to do as well but I don't know where to look for this.....? any advice? or is there some contribution where one can apply a discount to EVERYTHING andinclude & start & end date & time? if at first you do succeed...try not to look surprised!
glamourfish Posted August 17, 2006 Posted August 17, 2006 sorry...how do you make it full price again? if at first you do succeed...try not to look surprised!
warleb Posted August 17, 2006 Posted August 17, 2006 sorry...how do you make it full price again? * 1.10 I don't bother doing backups. I love the thrill of screwing it all up!
glamourfish Posted August 17, 2006 Posted August 17, 2006 thanks I just firgured that out! simple maths eh? ;-) so just incase anybody else needs to do it with any other values - this might help...I HOPE! UPDATE products SET products_price = products_price * .9; to reset invert it. eg: new price = old price x 0.9 old price x 0.9 = new price old price = new price / 0.9 ---------------------------> (0.9 = 90/100) old price = new price x (100/90) old price = new price x 1.111111 run new query as before but with new value: UPDATE products SET products_price = products_price * 1.11111111; if at first you do succeed...try not to look surprised!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.