[Skip to main content](#vessel-content)

#   How to get user discount

##

- **[fernandoIncerco](/forum/user/58147-fernandoincerco "View fernandoIncerco's Profile")**
- [![fernandoIncerco's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58147-fernandoincerco "View fernandoIncerco's Profile") Topic Author
- [ Offline](/forum/user/58147-fernandoincerco)

Less More

- Posts: 26
- Thank you received: 1
-
-

7 years 2 months ago [\#310321](#310321) by [fernandoIncerco](/forum/user/58147-fernandoincerco "View fernandoIncerco's Profile")  *[How to get user discount](/forum/33-customers/898176-how-to-get-user-discount#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&#95;block&#95;cart.php view.  Thanks")* was created by *[fernandoIncerco](/forum/user/58147-fernandoincerco "View fernandoIncerco's Profile")*

-- url of the page with the problem -- : [ www.incerco.es/puerta-seguridad-top-door/configurador](https://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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84OTgxNzYtaG93LXRvLWdldC11c2VyLWRpc2NvdW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

7 years 2 months ago [\#310327](#310327) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to get user discount](/forum/33-customers/898176-how-to-get-user-discount#310327 "-- 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&#95;block&#95;cart.php view.  Thanks")*

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-&gt;discount there. Also, in the price of the price, you have discount amounts.
For example: Code:

$product-&gt;prices[0]-&gt;discount_flat_amount

or Code:

$product-&gt;prices[0]-&gt;discount_percent_amount

or Code:

$product-&gt;prices[0]-&gt;price_value_without_discount_with_tax

It depends what you want to display exactly.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84OTgxNzYtaG93LXRvLWdldC11c2VyLWRpc2NvdW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
