How to get user discount

  • Posts: 16
  • Thank you received: 1
3 weeks 3 days 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: 66889
  • Thank you received: 9887
  • MODERATOR
3 weeks 3 days 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.050 seconds
Powered by Kunena Forum