How to get user discount

  • Posts: 26
  • Thank you received: 1
5 years 2 months ago #310321

-- url of the page with the problem -- : www.incerco.es/puerta-seguridad-top-door/configurador
-- HikaShop version -- : 4.1
-- Joomla version -- : 3.9

Hello,
I wanted to know if is possible to obtain the user discount, I mean, I have configured different discounts and I have added the users I want to them. And I want to get this info inside the show_block_cart.php view.

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
5 years 2 months ago #310327

Hi,

The data is loaded but there is no option to display it. So yes, you'll have to edit show_block_cart.php to display it.
Normally, you should be able to find the discount information in $product->discount there. Also, in the price of the price, you have discount amounts.
For example:

$product->prices[0]->discount_flat_amount
or
$product->prices[0]->discount_percent_amount
or
$product->prices[0]->price_value_without_discount_with_tax
It depends what you want to display exactly.

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum