Jump to content

Group Discounts: How to get Retail Price to still show and amount of discount give and final price in product.


Recommended Posts

Is there any way to get the Full Retail Price,
Discount Percentage
and Final Price to show in the product

when using Group Discounts.

When I set the price under the price tab in the product, and say select 10% reduction,
the product does show full retail price slashed out, percentage discount and final price.

Why can't I do the same when I am using a discount in the Customer Groups.

I am using Customer Groups, Default Group
and assigning discounts to specific product categories and to the group as a whole

Link to comment
Share on other sites

  • 3 months later...

I think it might be different to handle it in PrestaShop 1.3x and 1.4x.

but the idea is the same, you can call static function of Product class to get price value.

Pass different parameter to get different price based on your purpose.

 

Product::getPriceStatic(....);

 

Here is the function definition

 

 
  public static function getPriceStatic($id_product, $usetax = true, $id_product_attribute = NULL, $decimals = 6, $divisor = NULL, $only_reduc = false, $usereduc = true, $quantity = 1, $forceAssociatedTax = false, $id_customer = NULL, $id_cart = NULL, $id_address_delivery = NULL)
{
.....
}


Link to comment
Share on other sites

  • 6 months later...
×
×
  • Create New...