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

#   How to display coupons only in front-end

##

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

Less More

- Posts: 285
- Thank you received: 42
-
-

4 years 9 months ago [\#339197](#339197) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  *[How to display coupons only in front-end](/forum/23-market-how-to/903931-how-to-display-coupons-only-in-front-end#339197 "-- HikaShop version -- : 4.4.5 -- HikaMarket version -- : 3.0.0 -- Joomla version -- : 3.10.5  Hi guys, I know that I have an old version of Hikamarket, but hei... :silly: What I try to achieve is to have a menu in the front-end where some specific users (like managers) have access to this menu and they will be able to unpublish coupons only. I want want to change the front-end like so: 1) To remove / hide the 3 dropdown filters (all discounts, all statuses, all vendors). - I know how to do this, I will edit the view. 2) I want that view to display by default only published coupons - This is wat I don't know how to do it  Thank you!")* was created by *[oxido](/forum/user/29793-oxido "View oxido's Profile")*

-- HikaShop version -- : 4.4.5
-- HikaMarket version -- : 3.0.0
-- Joomla version -- : 3.10.5

Hi guys,
I know that I have an old version of Hikamarket, but hei... :silly:
What I try to achieve is to have a menu in the front-end where some specific users (like managers) have access to this menu and they will be able to unpublish coupons only.
I want want to change the front-end like so:
1) To remove / hide the 3 dropdown filters (all discounts, all statuses, all vendors). - I know how to do this, I will edit the view.
2) **I want that view to display by default only published coupons - This is wat I don't know how to do it**
Thank you!
[ ![oxido&#95;hikamarket&#95;hide&#95;set&#95;coupons.jpg](/forum/attachment/54324) ](/forum/attachment/54324 "...et&#95;coupons.jpg")

- [ ![oxido&#95;hikamarket&#95;hide&#95;set&#95;coupons.jpg](/forum/attachment/54324) ](/forum/attachment/54324 "...et&#95;coupons.jpg") [ ](/forum/attachment/54324?download=1 "...et&#95;coupons.jpg")

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

4 years 9 months ago [\#339238](#339238) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to display coupons only in front-end](/forum/23-market-how-to/903931-how-to-display-coupons-only-in-front-end#339238 "-- HikaShop version -- : 4.4.5 -- HikaMarket version -- : 3.0.0 -- Joomla version -- : 3.10.5  Hi guys, I know that I have an old version of Hikamarket, but hei... :silly: What I try to achieve is to have a menu in the front-end where some specific users (like managers) have access to this menu and they will be able to unpublish coupons only. I want want to change the front-end like so: 1) To remove / hide the 3 dropdown filters (all discounts, all statuses, all vendors). - I know how to do this, I will edit the view. 2) I want that view to display by default only published coupons - This is wat I don't know how to do it  Thank you!")*

Hello,

Having an old version is not problematic but it cannot guarantee that it will be compatible with the latests version of Joomla.
Joomla 4 introduced major modifications and HikaMarket 3.0.0, published 3 years ago, cannot be compatible with.
CF : [ www.hikashop.com/support/documentation/1...arket-changelog.html](https://www.hikashop.com/support/documentation/147-hikamarket-changelog.html)

You can customize and override HikaMarket views.
Unfortunately, since your HikaMarket subscription expired 3 years ago, the support team won't be able to help you with that task.

Regards,

---

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

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

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

Less More

- Posts: 285
- Thank you received: 42
-
-

4 years 9 months ago [\#339299](#339299) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  Replied by *[oxido](/forum/user/29793-oxido "View oxido's Profile")* on topic *[How to display coupons only in front-end](/forum/23-market-how-to/903931-how-to-display-coupons-only-in-front-end#339299 "-- HikaShop version -- : 4.4.5 -- HikaMarket version -- : 3.0.0 -- Joomla version -- : 3.10.5  Hi guys, I know that I have an old version of Hikamarket, but hei... :silly: What I try to achieve is to have a menu in the front-end where some specific users (like managers) have access to this menu and they will be able to unpublish coupons only. I want want to change the front-end like so: 1) To remove / hide the 3 dropdown filters (all discounts, all statuses, all vendors). - I know how to do this, I will edit the view. 2) I want that view to display by default only published coupons - This is wat I don't know how to do it  Thank you!")*

Hi
i'm back with Hikamarket 4.1.0 :woohoo:
What can I do now to display by default only published coupons in front-end?

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

4 years 9 months ago [\#339313](#339313) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to display coupons only in front-end](/forum/23-market-how-to/903931-how-to-display-coupons-only-in-front-end#339313 "-- HikaShop version -- : 4.4.5 -- HikaMarket version -- : 3.0.0 -- Joomla version -- : 3.10.5  Hi guys, I know that I have an old version of Hikamarket, but hei... :silly: What I try to achieve is to have a menu in the front-end where some specific users (like managers) have access to this menu and they will be able to unpublish coupons only. I want want to change the front-end like so: 1) To remove / hide the 3 dropdown filters (all discounts, all statuses, all vendors). - I know how to do this, I will edit the view. 2) I want that view to display by default only published coupons - This is wat I don't know how to do it  Thank you!")*

Hello,

We can add a trigger if you want to have a custom plugin which would override the default values.
With the current version, the easier would be to edit the "components/com_hikamarket/views/discountmarket/view.html.php" and change the lines Code:

if(!empty($pageInfo-&gt;filter-&gt;type) &amp;&amp; in_array($pageInfo-&gt;filter-&gt;type, array('discount', 'coupon'))) { $filters['discount_type'] = 'discount.discount_type = ' . $db-&gt;Quote($pageInfo-&gt;filter-&gt;type); } if($pageInfo-&gt;filter-&gt;published &gt;= 0) { $filters['published'] = 'discount.discount_published = ' . ($pageInfo-&gt;filter-&gt;published ? '1' : '0'); }

You can force the values to always load the published coupons.

Regards,

---

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

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

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

Less More

- Posts: 285
- Thank you received: 42
-
-

4 years 9 months ago [\#339373](#339373) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  Replied by *[oxido](/forum/user/29793-oxido "View oxido's Profile")* on topic *[How to display coupons only in front-end](/forum/23-market-how-to/903931-how-to-display-coupons-only-in-front-end#339373 "-- HikaShop version -- : 4.4.5 -- HikaMarket version -- : 3.0.0 -- Joomla version -- : 3.10.5  Hi guys, I know that I have an old version of Hikamarket, but hei... :silly: What I try to achieve is to have a menu in the front-end where some specific users (like managers) have access to this menu and they will be able to unpublish coupons only. I want want to change the front-end like so: 1) To remove / hide the 3 dropdown filters (all discounts, all statuses, all vendors). - I know how to do this, I will edit the view. 2) I want that view to display by default only published coupons - This is wat I don't know how to do it  Thank you!")*

"We can add a trigger if you want to have a custom plugin which would override the default values."
This it will be great!

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

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

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

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

Time to create page: 0.062 seconds

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