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

#   Products in promotion

##

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

Less More

- Posts: 134
- Thank you received: 6
-
-
-
- [](https://madein-bg.com)
-

11 years 8 months ago [\#193248](#193248) by [filiar](/forum/user/33070-filiar "View filiar's Profile")  *[Products in promotion](/forum/23-market-how-to/875424-products-in-promotion#193248 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.0 -- Joomla version -- : 3.3.6  Hi,  I would like to list all the products from all the vendors, that have discounts. Is there a way to? I tried using product&#95;sales as Ordering field, in HikaShop options, but it is not the case.  Thank you!")* was created by *[filiar](/forum/user/33070-filiar "View filiar's Profile")*

-- HikaShop version -- : 2.4.0
-- HikaMarket version -- : 1.6.0
-- Joomla version -- : 3.3.6

Hi,

I would like to list all the products from all the vendors, that have discounts. Is there a way to?
I tried using **product\_sales** as **Ordering field**, in HikaShop options, but it is not the case.

Thank you!
[ ![prom.jpeg](/forum/attachment/22818) ](/forum/attachment/22818 "prom.jpeg")

- [ ![prom.jpeg](/forum/attachment/22818) ](/forum/attachment/22818 "prom.jpeg") [ ](/forum/attachment/22818?download=1 "prom.jpeg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc1NDI0LXByb2R1Y3RzLWluLXByb21vdGlvbj90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 8 months ago [\#193276](#193276) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Products in promotion](/forum/23-market-how-to/875424-products-in-promotion#193276 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.0 -- Joomla version -- : 3.3.6  Hi,  I would like to list all the products from all the vendors, that have discounts. Is there a way to? I tried using product&#95;sales as Ordering field, in HikaShop options, but it is not the case.  Thank you!")*

Hi,

It will first depends on how you set discounts on the products.

Regards,

---

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

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

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

Less More

- Posts: 134
- Thank you received: 6
-
-
-
- [](https://madein-bg.com)
-

11 years 8 months ago [\#193291](#193291) by [filiar](/forum/user/33070-filiar "View filiar's Profile")  Replied by *[filiar](/forum/user/33070-filiar "View filiar's Profile")* on topic *[Products in promotion](/forum/23-market-how-to/875424-products-in-promotion#193291 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.0 -- Joomla version -- : 3.3.6  Hi,  I would like to list all the products from all the vendors, that have discounts. Is there a way to? I tried using product&#95;sales as Ordering field, in HikaShop options, but it is not the case.  Thank you!")*

There is an example of discount that is not listet this way.

What is the wright way to set them or could I find example somewhere?

Regards
[ ![prom&#95;2015-03-05.jpeg](/forum/attachment/22831) ](/forum/attachment/22831 "...015-03-05.jpeg")

- [ ![prom&#95;2015-03-05.jpeg](/forum/attachment/22831) ](/forum/attachment/22831 "...015-03-05.jpeg") [ ](/forum/attachment/22831?download=1 "...015-03-05.jpeg")

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

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

Less More

- Posts: 134
- Thank you received: 6
-
-
-
- [](https://madein-bg.com)
-

11 years 8 months ago [\#193293](#193293) by [filiar](/forum/user/33070-filiar "View filiar's Profile")  Replied by *[filiar](/forum/user/33070-filiar "View filiar's Profile")* on topic *[Products in promotion](/forum/23-market-how-to/875424-products-in-promotion#193293 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.0 -- Joomla version -- : 3.3.6  Hi,  I would like to list all the products from all the vendors, that have discounts. Is there a way to? I tried using product&#95;sales as Ordering field, in HikaShop options, but it is not the case.  Thank you!")*

The only way that I found searching the forum is by adding all the discounted products in a category and then listing that category. But for the multivendor case where each of the vendors creates his own discounts this is not so suitable.

Is there another way to do that?

Thank You!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc1NDI0LXByb2R1Y3RzLWluLXByb21vdGlvbj90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 8 months ago [\#193319](#193319) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Products in promotion](/forum/23-market-how-to/875424-products-in-promotion#193319 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.0 -- Joomla version -- : 3.3.6  Hi,  I would like to list all the products from all the vendors, that have discounts. Is there a way to? I tried using product&#95;sales as Ordering field, in HikaShop options, but it is not the case.  Thank you!")*

Hi,

That's right, there is no such kind of filter in the HikaShop product listing (menu/modules).
But it is possible to add such feature using a plugin and there are two different solutions for the implementation.

You can use a plugin which will add settings when you configure a product listing menu/module (like HikaMarket do for the settings "show sold by" or "link vendor category to vendor page").
Then the plugin can read the setting when a product listing is displayed.

The other solution is to have a plugin which contains the ID of the modules/menu it has to filter.
The plugin "hikashop / productvendorfilter" currently do this job and you can use this plugin as a base for a new one.
Thanks to it, you can copy the plugin (to have a new one) and change the part of the filter Code:

$vendor = hikamarket::loadVendor(false); $filters[] = 'b.product_vendor_id = ' . (int)$vendor;

Into something like Code:

$c .= ' INNER JOIN ' . hikashop_table('discount').' AS discount ON discount.discount_type = \'discount\' AND (discount.discount_product_id = b.product_id OR discount.discount_product_id LIKE CONCAT(\'%,\', b.product_id, \',%\')'; $filters[] = 'discount.discount_published = 1'; $filters[] = '(discount.discount_start = 0 OR discount.discount_start &gt;= ' . time().')'; $filters[] = '(discount.discount_end = 0 OR discount.discount_end &lt;= ' . time() .')';

(which should be improve if you want to manage the ACL ; I did not test it so I can't guarantee that it will work directly).

Regards,

---

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

The following user(s) said Thank You: [filiar](/forum/user/33070-filiar "View filiar's Profile")

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

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

Less More

- Posts: 134
- Thank you received: 6
-
-
-
- [](https://madein-bg.com)
-

11 years 8 months ago [\#193343](#193343) by [filiar](/forum/user/33070-filiar "View filiar's Profile")  Replied by *[filiar](/forum/user/33070-filiar "View filiar's Profile")* on topic *[Products in promotion](/forum/23-market-how-to/875424-products-in-promotion#193343 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.0 -- Joomla version -- : 3.3.6  Hi,  I would like to list all the products from all the vendors, that have discounts. Is there a way to? I tried using product&#95;sales as Ordering field, in HikaShop options, but it is not the case.  Thank you!")*

Thank You, Jerome.

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

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.067 seconds

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