Jump to content

function that returns the product price for a customer


sadlyblue

Recommended Posts

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...