New Zenner
- Join Date:
- Feb 2011
- Posts:
- 40
- Plugin Contributions:
- 0
Price-Range Percentage Profit Markup [SEMI-WORKING] Need Help!
Hi there,
I searched high and low for a way to set a profit margin based on the product price.
For example if you are importing from a distributors stock list then you may need to calculate how much profit you make from the "cost price" in the stock list.
ie:
£0 - £20 = 20%
£21 - £40 = 15%
£41 - £60 = 10%
Having not found a solution I decided to try and edit the values in the database.
Here is what ive got so far:
UPDATE `products` SET `products_price` = (`products_price` * 1.20) WHERE `products_price` >= 0 AND `products_price` <= 20 ;
UPDATE `products` SET `products_price` = (`products_price` * 1.15) WHERE `products_price` >= 21 AND `products_price` <= 40 ;
UPDATE `products` SET `products_price` = (`products_price` * 1.10) WHERE `products_price` >= 41 AND `products_price` <= 60 ;
It does appear to be working for some of the handle values ive tried, like products between 41-60 seem to work correctly and have the new price but others like the 0-20 and 21-40 dont seem to have changed.
Am I doing this correctly? or is there a better way to add a cost based markup on products.
I would really appreciate some assistance on this, im no expert in mysql but I do have a little knowledge but hopefully someone can point me in the right direction.
Im sure many others would benefit from this mod too :)
Thanks in advance.
Andy