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

 

 

#   Plugin to Discount Entire Cart 



 

 



 

##  

 



- **[julieh](/forum/user/26940-julieh "View julieh's Profile")**
- [![julieh's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/26940-julieh "View julieh's Profile") Topic Author
- [ Offline](/forum/user/26940-julieh)
 
 Less More- Posts: 2
- Thank you received: 0
- 
- 
 
 

 

 

    13 years 2 months ago [\#119896](#119896) by [julieh](/forum/user/26940-julieh "View julieh's Profile")  *[Plugin to Discount Entire Cart](/forum/31-development/861314-plugin-to-discount-entire-cart#119896 "-- url of the page with the problem -- : N/A
-- HikaShop version -- : 2.2.0 Essential
-- Joomla version -- : 3.1.5
-- PHP version -- : 5.3.8
-- Browser(s) name and version -- : N/A
-- Error-message(debug-mod must be tuned on) -- : N/A

Hello.

I would like to apply a discount to the entire cart at checkout based on some logic tied to a custom component. Which trigger API and event would I use to achieve the attached result?

Thanks,
Julie")* was created by *[julieh](/forum/user/26940-julieh "View julieh's Profile")* 

 -- url of the page with the problem -- : N/A  
-- HikaShop version -- : 2.2.0 Essential  
-- Joomla version -- : 3.1.5  
-- PHP version -- : 5.3.8  
-- Browser(s) name and version -- : N/A  
-- Error-message(debug-mod must be tuned on) -- : N/A  
  
Hello.  
  
I would like to apply a discount to the entire cart at checkout based on some logic tied to a custom component. Which trigger API and event would I use to achieve the attached result?  
  
Thanks,  
Julie 

 

- [ ![hd94ff38.png](/forum/attachment/11834) ](/forum/attachment/11834 "hd94ff38.png") [ ](/forum/attachment/11834?download=1 "hd94ff38.png")
 
 

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

 

 

 

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)
 
 Less More- Posts: 2334
- Thank you received: 403
- 
- 
 
 

 

 

    13 years 2 months ago [\#119900](#119900) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Plugin to Discount Entire Cart](/forum/31-development/861314-plugin-to-discount-entire-cart#119900 "-- url of the page with the problem -- : N/A
-- HikaShop version -- : 2.2.0 Essential
-- Joomla version -- : 3.1.5
-- PHP version -- : 5.3.8
-- Browser(s) name and version -- : N/A
-- Error-message(debug-mod must be tuned on) -- : N/A

Hello.

I would like to apply a discount to the entire cart at checkout based on some logic tied to a custom component. Which trigger API and event would I use to achieve the attached result?

Thanks,
Julie")* 

 Hi Julie,  
  
I think you can use our Triggers on Discount to create an object $discount with the amount you calculated before plus some informations. Thus, you will simply have a Hikashop discount but with your values inside.  
You can take a look at our developer's documentation for more information: [ www.hikashop.com/support/documentation/6...tation.html#discount](http://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#discount) 

 

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2MTMxNC1wbHVnaW4tdG8tZGlzY291bnQtZW50aXJlLWNhcnQ/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.164 seconds 

 

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

 

  [](#top)