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

#   Dont want discount on 1 to 6 items

##

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 2 weeks ago -  13 years 2 weeks ago [\#127470](#127470) by [spydig29](/forum/user/28580-spydig29 "View spydig29's Profile")  *[Dont want discount on 1 to 6 items](/forum/46-discount-coupon/862731-dont-want-discount-on-1-to-6-items#127470 "-- url of the page with the problem -- :   www.salg-af-braende.dk  -- HikaShop version -- : HikaShop Essential: 2.2.2 -- Joomla version -- : 3.1.5  I dont want to give custommers a DISCOUNT on 1 to 6 item but if they order more than 6 I would like to give them 10%.  How do I do that, i dont want to use COUPONS as I want the 10% to appear on the product list ????")* was created by *[spydig29](/forum/user/28580-spydig29 "View spydig29's Profile")*

-- url of the page with the problem -- : [ www.salg-af-braende.dk](http://www.salg-af-braende.dk)
-- HikaShop version -- : HikaShop Essential: 2.2.2
-- Joomla version -- : 3.1.5

I dont want to give custommers a DISCOUNT on 1 to 6 item but if they order more than 6 I would like to give them 10%.

How do I do that, i dont want to use COUPONS as I want the 10% to appear on the product list ????

Last edit: 13 years 2 weeks ago by [spydig29](/forum/user/28580-spydig29 "View spydig29's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 2 weeks ago -  13 years 2 weeks ago [\#127478](#127478) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Dont want discount on 1 to 6 items](/forum/46-discount-coupon/862731-dont-want-discount-on-1-to-6-items#127478 "-- url of the page with the problem -- :   www.salg-af-braende.dk  -- HikaShop version -- : HikaShop Essential: 2.2.2 -- Joomla version -- : 3.1.5  I dont want to give custommers a DISCOUNT on 1 to 6 item but if they order more than 6 I would like to give them 10%.  How do I do that, i dont want to use COUPONS as I want the 10% to appear on the product list ????")*

Hi,

Discounts are directly applied to products, and coupons to orders, what you want to do is to apply a discount for order that have more than 6 item in their cart, so the discount have to automatically be applied through the checkout process by using a **coupon** that will be "**Auto loaded**" in your cart if possible so that you customers won't have to enter any coupon code through the checkout process.

Last edit: 13 years 2 weeks ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 2 weeks ago [\#127480](#127480) by [spydig29](/forum/user/28580-spydig29 "View spydig29's Profile")  Replied by *[spydig29](/forum/user/28580-spydig29 "View spydig29's Profile")* on topic *[Dont want discount on 1 to 6 items](/forum/46-discount-coupon/862731-dont-want-discount-on-1-to-6-items#127480 "-- url of the page with the problem -- :   www.salg-af-braende.dk  -- HikaShop version -- : HikaShop Essential: 2.2.2 -- Joomla version -- : 3.1.5  I dont want to give custommers a DISCOUNT on 1 to 6 item but if they order more than 6 I would like to give them 10%.  How do I do that, i dont want to use COUPONS as I want the 10% to appear on the product list ????")*

But I want to show the discount in the product list, and it doesnt do that with a coupon

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 2 weeks ago [\#127481](#127481) by [spydig29](/forum/user/28580-spydig29 "View spydig29's Profile")  Replied by *[spydig29](/forum/user/28580-spydig29 "View spydig29's Profile")* on topic *[Dont want discount on 1 to 6 items](/forum/46-discount-coupon/862731-dont-want-discount-on-1-to-6-items#127481 "-- url of the page with the problem -- :   www.salg-af-braende.dk  -- HikaShop version -- : HikaShop Essential: 2.2.2 -- Joomla version -- : 3.1.5  I dont want to give custommers a DISCOUNT on 1 to 6 item but if they order more than 6 I would like to give them 10%.  How do I do that, i dont want to use COUPONS as I want the 10% to appear on the product list ????")*

see this sample

- [ ![h5b893f3.jpg](/forum/attachment/12809) ](/forum/attachment/12809 "h5b893f3.jpg") [ ](/forum/attachment/12809?download=1 "h5b893f3.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 2 weeks ago [\#127500](#127500) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Dont want discount on 1 to 6 items](/forum/46-discount-coupon/862731-dont-want-discount-on-1-to-6-items#127500 "-- url of the page with the problem -- :   www.salg-af-braende.dk  -- HikaShop version -- : HikaShop Essential: 2.2.2 -- Joomla version -- : 3.1.5  I dont want to give custommers a DISCOUNT on 1 to 6 item but if they order more than 6 I would like to give them 10%.  How do I do that, i dont want to use COUPONS as I want the 10% to appear on the product list ????")*

Hi,

Your needs will require a plugin.
It's not possible to do that by default in HikaShop, but with a simple plugin you can add this feature.

Here is the developer documentation:
[ www.hikashop.com/support/documentation/6...r-documentation.html](http://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html)

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 2 weeks ago [\#127502](#127502) by [spydig29](/forum/user/28580-spydig29 "View spydig29's Profile")  Replied by *[spydig29](/forum/user/28580-spydig29 "View spydig29's Profile")* on topic *[Dont want discount on 1 to 6 items](/forum/46-discount-coupon/862731-dont-want-discount-on-1-to-6-items#127502 "-- url of the page with the problem -- :   www.salg-af-braende.dk  -- HikaShop version -- : HikaShop Essential: 2.2.2 -- Joomla version -- : 3.1.5  I dont want to give custommers a DISCOUNT on 1 to 6 item but if they order more than 6 I would like to give them 10%.  How do I do that, i dont want to use COUPONS as I want the 10% to appear on the product list ????")*

is it "onBeforeProductListingLoad" ?

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 2 weeks ago [\#127542](#127542) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Dont want discount on 1 to 6 items](/forum/46-discount-coupon/862731-dont-want-discount-on-1-to-6-items#127542 "-- url of the page with the problem -- :   www.salg-af-braende.dk  -- HikaShop version -- : HikaShop Essential: 2.2.2 -- Joomla version -- : 3.1.5  I dont want to give custommers a DISCOUNT on 1 to 6 item but if they order more than 6 I would like to give them 10%.  How do I do that, i dont want to use COUPONS as I want the 10% to appear on the product list ????")*

> **onBeforeProductListingLoad(&amp;$filters,&amp;$order,&amp;$parent, &amp;$select, &amp;$select2, &amp;$a, &amp;$b, &amp;$on)**
>
> This function will be triggered by HikaShop the products are loaded in order to be displayed on products listings on the front end. The $filters variable will be an array of conditions which will then be combined in order to form the MySQL query which will be used to load the products. That can enable you to change the way the products are loaded on your website listings by adding or removing conditions on that query.
> And you can also potentially add a left join by appending it at the end of the $on variable like that:
> $on .= 'LEFT JOIN #\_\_hikashop\_price AS p ON b.product\_id=p.price\_product\_id';
> And then change the $order variable to use the p.price\_value field so that the products get ordered by price.

Sure, this function will be triggered during the displaying of a product listing.

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 2 weeks ago [\#127543](#127543) by [spydig29](/forum/user/28580-spydig29 "View spydig29's Profile")  Replied by *[spydig29](/forum/user/28580-spydig29 "View spydig29's Profile")* on topic *[Dont want discount on 1 to 6 items](/forum/46-discount-coupon/862731-dont-want-discount-on-1-to-6-items#127543 "-- url of the page with the problem -- :   www.salg-af-braende.dk  -- HikaShop version -- : HikaShop Essential: 2.2.2 -- Joomla version -- : 3.1.5  I dont want to give custommers a DISCOUNT on 1 to 6 item but if they order more than 6 I would like to give them 10%.  How do I do that, i dont want to use COUPONS as I want the 10% to appear on the product list ????")*

sorry, but I cant get the function to work, it dont triggers. I have installed the plugin using the Joomla installer and of cause published it. but it wont work

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 2 weeks ago [\#127644](#127644) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Dont want discount on 1 to 6 items](/forum/46-discount-coupon/862731-dont-want-discount-on-1-to-6-items#127644 "-- url of the page with the problem -- :   www.salg-af-braende.dk  -- HikaShop version -- : HikaShop Essential: 2.2.2 -- Joomla version -- : 3.1.5  I dont want to give custommers a DISCOUNT on 1 to 6 item but if they order more than 6 I would like to give them 10%.  How do I do that, i dont want to use COUPONS as I want the 10% to appear on the product list ????")*

Hi,
Code:

class plgHikaShop_discount_amount extends JPlugin {

Should be Code:

class plgHikaShopDiscount_amount extends JPlugin {

There is no "underscore" between the category and the name in the Joomla plugin structure.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

[](#top)
