Try the Demo

Magento Forum

   
Page 1 of 2
cost plus pricing / custom price rules
 
uni-man
Member
 
Total Posts:  34
Joined:  2008-04-04
 

Hi
We operate both a wholesale and retail business from the same web site. Currently Magento supports a percentage discount on the retail price using catalog price rules: this is very easy to set up (thanks!)
We have created hidden categories “Retail minus 10%”, “retail minus 20%”, ‘Retail minus 30%” etc with appropriate price rules, and then added products to each category based on our margins.

But some wholesale customers are special: we give them “Cost plus 20%” (or whatever) across a range of products. It would be very handy to have this as an option on the catalog price rules.

I rummaged in the source code for an hour or so but it looks like there is no simple way to extend the pricing rules with our own custom ones. Either creating an event, or making little subclasses for by_percent, to_percent etc with the option to dynamically load others would allow us to create any price rule we liked…

thanks

 Signature 

http://www.unicycle.co.nz

 
Magento Community Magento Community
Magento Community
Magento Community
 
keberg99
Jr. Member
 
Total Posts:  1
Joined:  2008-07-06
 

I have the same problem. Have you found a solution?

 
Magento Community Magento Community
Magento Community
Magento Community
 
uni-man
Member
 
Total Posts:  34
Joined:  2008-04-04
 

no… the code is written with a lot of switch/case statements in a not-very-extensible way.
the only way to create this functionality would be to edit the core code, which I’m reluctant to do because magento is still under rapid development. I have put in a feature request with a suggestion that they refactor it using dynamically loadable methods to make it extensible

 Signature 

http://www.unicycle.co.nz

 
Magento Community Magento Community
Magento Community
Magento Community
 
seudo
Guru
 
Avatar
Total Posts:  344
Joined:  2008-04-21
 

This would be a great feature for us as well.

 Signature 

- Magento ver. 1.5.1.0, 1.7.0.2
seudo.com - Making data look good!

 
Magento Community Magento Community
Magento Community
Magento Community
 
l781
Sr. Member
 
Total Posts:  109
Joined:  2008-11-09
 

yes, it is interesting to me too - any news on this topic?

 
Magento Community Magento Community
Magento Community
Magento Community
 
htleetw
Jr. Member
 
Total Posts:  8
Joined:  2009-02-11
 

We, like many other wholesalers, need this “cost plus pricing” feature too!

 
Magento Community Magento Community
Magento Community
Magento Community
 
xondeo
Member
 
Total Posts:  40
Joined:  2009-04-08
 

+1

Yes, it would be great.

 
Magento Community Magento Community
Magento Community
Magento Community
 
tnemrap
Jr. Member
 
Total Posts:  2
Joined:  2009-11-16
 

+1

Realy need this.

 
Magento Community Magento Community
Magento Community
Magento Community
 
epli.is
Jr. Member
 
Total Posts:  9
Joined:  2010-03-23
 

+1

Been trying to find a solution for a long time… hope someone has it!

 
Magento Community Magento Community
Magento Community
Magento Community
 
amartinez
Guru
 
Avatar
Total Posts:  347
Joined:  2008-11-14
Spain
 

I find your post by chance…

I think I have the solution for you, even at the 1 customer = 1 special price

If you are still interested, let me know!

Regards!

 Signature 

amartinez {web/developer/designer} free modules: CustomImportExport Like it? Donate!

 
Magento Community Magento Community
Magento Community
Magento Community
 
isitfree
Jr. Member
 
Total Posts:  2
Joined:  2011-02-23
 

+1
need a solution for that

amartinez, what can you suggest?

 
Magento Community Magento Community
Magento Community
Magento Community
 
amartinez
Guru
 
Avatar
Total Posts:  347
Joined:  2008-11-14
Spain
 

this method may be right:

1/ from your ERP-CRM-ACCOUNT SYSTEM export your customers and his special price rules

2/ them, export your products & base prices

3/ Import customers and products to your website

4/ in your website again, create an additional custom price table, use some SQL file like:

SET SQL_MODE=NO_AUTO_VALUE_ON_ZERO;
USE 
magento_store_database;
DROP TABLE IF EXISTS amartinez_custom_prices;
CREATE TABLE amartinez_custom_prices (
  
customer varchar(15),
  
product_id varchar(15),
  
minimal_qty varchar(15),
  
price varchar(15),
  
discount_1 varchar(15),
  
discount_2 varchar(15),
  
discount_3 varchar(15),
  
some_other_price varchar(15),
  
KEY customer (customerproduct_id)
ENGINE=MyIsam DEFAULT CHARSET=utf8;
insert into amartinez_custom_prices values("-1","0003.0119","15","1.5649999999999999","10","0","0","1.41");
insert into amartinez_custom_prices values("-1","0003.0120","15","2.0529999999999999","10","0","0","1.84");
insert into amartinez_custom_prices values("-1","0003.0121","15","2.5099999999999998","10","0","0","2.26");
...

5/ extend magento price model by creating and editing app/code/local/Mage/Catalog/Model/Product/Type/Price.php. I suggest to edit these functions: getPrice, getFinalPrice and getTierPrice

all these steps can be automatized

I have this solution working smile

What do you think?

 Signature 

amartinez {web/developer/designer} free modules: CustomImportExport Like it? Donate!

 
Magento Community Magento Community
Magento Community
Magento Community
 
clayman80
Jr. Member
 
Total Posts:  23
Joined:  2010-02-20
 

I still find it hard to believe that Magento doesn’t come with an ability to create a Catalog Price Rule based off of an attribute such as cost right out of the box…

 
Magento Community Magento Community
Magento Community
Magento Community
 
coer
Jr. Member
 
Total Posts:  18
Joined:  2011-03-14
 

Hi,
I saw this post from you from a long time ago which may solve an issue I have.

I’m building a website with a wholesale and retail business from the same web site.
- For Retail customers I use the ‘price’ variable, default in Magento.
- For wholesale customers I want to use cost plus.
It’s important to be able to do this at the same time, because the retail price has a relation to ‘what the market bears’, whilst wholesale has a relation to cost.

I tried making a custom category called ‘listprice’, from which I wanted to give a discount for all wholesale customers, depending on customer group. This way I can still build the relationship to cost, by making the listprice three times the cost, and then giving % discounts off listprice. But even that doesn’t seem possible in Magento.

Your post below makes me think that you have managed to crack this second approach, and still leave the default Magento retail pricing mechanism intact. I guess it comes down to a simple mechanism whereby depending on customer group the discount is either applied on ‘price’ or on ‘listprice’.

Do you know how to do this?

I bet you can make a small fortune if you build this simple mechanism into an extension. But for now, please help me, lol.

Best regards,
Paul

--------------

amartinez - 11 March 2011 12:35 AM

this method may be right:

1/ from your ERP-CRM-ACCOUNT SYSTEM export your customers and his special price rules

2/ them, export your products & base prices

3/ Import customers and products to your website

4/ in your website again, create an additional custom price table, use some SQL file like:

SET SQL_MODE=NO_AUTO_VALUE_ON_ZERO;
USE 
magento_store_database;
DROP TABLE IF EXISTS amartinez_custom_prices;
CREATE TABLE amartinez_custom_prices (
  
customer varchar(15),
  
product_id varchar(15),
  
minimal_qty varchar(15),
  
price varchar(15),
  
discount_1 varchar(15),
  
discount_2 varchar(15),
  
discount_3 varchar(15),
  
some_other_price varchar(15),
  
KEY customer (customerproduct_id)
ENGINE=MyIsam DEFAULT CHARSET=utf8;
insert into amartinez_custom_prices values("-1","0003.0119","15","1.5649999999999999","10","0","0","1.41");
insert into amartinez_custom_prices values("-1","0003.0120","15","2.0529999999999999","10","0","0","1.84");
insert into amartinez_custom_prices values("-1","0003.0121","15","2.5099999999999998","10","0","0","2.26");
...

5/ extend magento price model by creating and editing app/code/local/Mage/Catalog/Model/Product/Type/Price.php. I suggest to edit these functions: getPrice, getFinalPrice and getTierPrice

all these steps can be automatized

I have this solution working smile

What do you think?

 
Magento Community Magento Community
Magento Community
Magento Community
 
FMEExtensions
Guru
 
Avatar
Total Posts:  689
Joined:  2009-08-07
 

Hello All,

We have a solution for this

http://www.magentocommerce.com/magento-connect/fme-cost-based-pricing-8769.html

Looking forward to feedback now

 Signature 

One Step Checkout - $85| Ajax Add to Cart - $79 | Background Images - $59| Additional Checkout Attributes - $89 Square Foot Pricing Calculator - $119 Product Quick View - $79 Featured Product Layout - $79

 
Magento Community Magento Community
Magento Community
Magento Community
 
AndyRobins
Jr. Member
 
Avatar
Total Posts:  22
Joined:  2011-12-22
 

I have got just the right solution for this problem. It’s an extension I came across some time back and i’ve been using it ever since. It works perfect for the Magento Custom Price option. Anyone interested can find it here: http://bit.ly/magentocustomprice

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 1 of 2