Jump to content

How to get wholesale_price


Noxikus

Recommended Posts

Hello,

There is standard method to get each type of prices -

// Static way
Product::getPriceStatic($id_product, $usetax = true, $id_product_attribute = null, $decimals = 6, $divisor = null,
$only_reduc = false, $usereduc = true, $quantity = 1, $force_associated_tax = false, $id_customer = null, $id_cart = null,
$id_address = null, &$specific_price_output = null, $with_ecotax = true, $use_group_reduction = true, Context $context = null,
$use_customer_price = true);

but there is no wholesale price...

May be someone know how to get wholesale price in a similar way?
Thank you.

Link to comment
Share on other sites

Hi,

I think there is no direct function to get the wholesale price. Either you need to write the query from the yourself OR you need to create the new product object i.e.

 

$product = new Product(14); //14 is the product id
echo $product->wholesale_price;

 

On the product template page, you can get the whole price directly using the $product->wholesale_price. 

I hope it will help.

 

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...