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

#   extra line in order summery

##

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

Less More

- Posts: 240
- Thank you received: 13
-
-

9 months 1 week ago [\#370443](#370443) by [khashiz](/forum/user/61259-khashiz "View khashiz's Profile")  *[extra line in order summery](/forum/35-orders-management/910114-extra-line-in-order-summery#370443 "-- HikaShop version -- : 6.3 -- Joomla version -- : 6.0.2 -- PHP version -- : 8.3  Hello dear support team,  We have developed a custom component for Joomla that allows our users to collect points.  We need to develop a payment gateway plugin so that users can use their accumulated points to pay for products in the store (HikaShop).  There are two main scenarios:  1. The user’s points are equal to or greater than the total amount of the shopping cart. In this case, the user does not need to make any bank payment. 2. The user’s points are less than the total amount of the shopping cart. In this case, an amount equal to the user’s available points should be deducted from the cart total, and the remaining balance should be paid through the bank payment gateway.  In the first scenario, we have no issues, because we can redirect the user to the after&#95;end page in the onAfterOrderConfirm event and confirm the order in the onPaymentNotification function.  However, for the second scenario, we need your guidance on how we can, via a plugin, display an extra line (as a discount or any suitable label) before the total payment block shown to the user (similar to a coupon discount). This line should indicate that a certain amount has been deducted from the cart total based on the user’s points—for example: “An amount of X has been deducted from the cart total due to your points.”  I hope I have been able to clearly explain my requirement.  If possible, please provide assistance in the form of code examples, as I am also a programmer and have a reasonable level of familiarity with HikaShop.  Thank you very much.")* was created by *[khashiz](/forum/user/61259-khashiz "View khashiz's Profile")*

-- HikaShop version -- : 6.3
-- Joomla version -- : 6.0.2
-- PHP version -- : 8.3

Hello dear support team,

We have developed a custom component for Joomla that allows our users to collect points.

We need to develop a payment gateway plugin so that users can use their accumulated points to pay for products in the store (HikaShop).

There are two main scenarios:

1. The user’s points are equal to or greater than the total amount of the shopping cart. In this case, the user does not need to make any bank payment.
2. The user’s points are less than the total amount of the shopping cart. In this case, an amount equal to the user’s available points should be deducted from the cart total, and the remaining balance should be paid through the bank payment gateway.

In the first scenario, we have no issues, because we can redirect the user to the after_end page in the onAfterOrderConfirm event and confirm the order in the onPaymentNotification function.

However, for the second scenario, we need your guidance on how we can, via a plugin, display an extra line (as a discount or any suitable label) before the total payment block shown to the user (similar to a coupon discount). This line should indicate that a certain amount has been deducted from the cart total based on the user’s points—for example: “An amount of X has been deducted from the cart total due to your points.”

I hope I have been able to clearly explain my requirement.

If possible, please provide assistance in the form of code examples, as I am also a programmer and have a reasonable level of familiarity with HikaShop.

Thank you very much.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkxMDExNC1leHRyYS1saW5lLWluLW9yZGVyLXN1bW1lcnk/dG1wbD1tYXJrZG93bg==) 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: 86583
- Thank you received: 14324
-
-

9 months 1 week ago [\#370444](#370444) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[extra line in order summery](/forum/35-orders-management/910114-extra-line-in-order-summery#370444 "-- HikaShop version -- : 6.3 -- Joomla version -- : 6.0.2 -- PHP version -- : 8.3  Hello dear support team,  We have developed a custom component for Joomla that allows our users to collect points.  We need to develop a payment gateway plugin so that users can use their accumulated points to pay for products in the store (HikaShop).  There are two main scenarios:  1. The user’s points are equal to or greater than the total amount of the shopping cart. In this case, the user does not need to make any bank payment. 2. The user’s points are less than the total amount of the shopping cart. In this case, an amount equal to the user’s available points should be deducted from the cart total, and the remaining balance should be paid through the bank payment gateway.  In the first scenario, we have no issues, because we can redirect the user to the after&#95;end page in the onAfterOrderConfirm event and confirm the order in the onPaymentNotification function.  However, for the second scenario, we need your guidance on how we can, via a plugin, display an extra line (as a discount or any suitable label) before the total payment block shown to the user (similar to a coupon discount). This line should indicate that a certain amount has been deducted from the cart total based on the user’s points—for example: “An amount of X has been deducted from the cart total due to your points.”  I hope I have been able to clearly explain my requirement.  If possible, please provide assistance in the form of code examples, as I am also a programmer and have a reasonable level of familiarity with HikaShop.  Thank you very much.")*

Hi,

You want to use the additional system of the HikaShop cart implementing the onAfterCartProductsLoad event:
[ www.hikashop.com/forum/taxes/873285-fix-tax-import.html#190511](https://www.hikashop.com/forum/taxes/873285-fix-tax-import.html#190511)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkxMDExNC1leHRyYS1saW5lLWluLW9yZGVyLXN1bW1lcnk/dG1wbD1tYXJrZG93bg==) 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.037 seconds

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