sadlyblue Posted April 15, 2013 Share Posted April 15, 2013 Hi, I'm wondering if anyone can help me. I need this for a module. What's the function that returns the product price for a given customer. We use a lot of specific prices with group/costumer reductions. I've tried priceCalculation, getPrice,... and none seem to get the correct price that we get in the orders/carts... Thanks Pedro Link to comment Share on other sites More sharing options...
PascalVG Posted April 15, 2013 Share Posted April 15, 2013 What about file /classes/SpecificPrice.php? There is a function: public static function getSpecificPrice($id_product, $id_shop, $id_currency, $id_country, $id_group, $quantity, $id_product_attribute = null, $id_customer = 0, $id_cart = 0, $real_quantity = 0) Does that what you need? (No experience with specific prices, but tis one sounded like what you need) Give it a look, Pascal Link to comment Share on other sites More sharing options...
sadlyblue Posted April 16, 2013 Author Share Posted April 16, 2013 That only returned the specific price if there is any. Of course i can use that. But i'm not 100% sure it does return the correct price for that client/product. I was wondering if there was a getPriceForCustomer (or whatever should it be called) that returned the correct product price for that customer. Link to comment Share on other sites More sharing options...
Paul C Posted April 16, 2013 Share Posted April 16, 2013 Not sure I understand your question as obviously the same technique to calculate the price in the cart should always get the same price if used elsewhere..... Exactly where/why are you trying to get the price? Link to comment Share on other sites More sharing options...
sadlyblue Posted April 16, 2013 Author Share Posted April 16, 2013 i'm developing some modules where i this this value. Most are in the back-office, some in front office. In back office, let's say i need to get the right price of a product for a given customer. Keep in mind that most products have groups discounts, most clients are in those groups and some products even have customer discounts. What's the correct way to do this? 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