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

#   recurring discount

##

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

Less More

- Posts: 424
- Thank you received: 11
-
-

5 years 1 day ago [\#337031](#337031) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  *[recurring discount](/forum/46-discount-coupon/903472-recurring-discount#337031 "-- HikaShop version -- : 4..1.1 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.4.x  Hello,  Is there the option within Hikashop to set a recurring discount? For example, every Thursday a 10% discount on a certain category or product? Or is there a specific plugin for this?  Regards, Michiel")* was created by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")*

-- HikaShop version -- : 4..1.1
-- Joomla version -- : 3.10.2
-- PHP version -- : 7.4.x

Hello,

Is there the option within Hikashop to set a recurring discount? For example, every Thursday a 10% discount on a certain category or product?
Or is there a specific plugin for this?

Regards,
Michiel

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi85MDM0NzItcmVjdXJyaW5nLWRpc2NvdW50P3RtcGw9bWFya2Rvd24=) 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: 86556
- Thank you received: 14304
-
-

5 years 1 hour ago [\#337051](#337051) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[recurring discount](/forum/46-discount-coupon/903472-recurring-discount#337051 "-- HikaShop version -- : 4..1.1 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.4.x  Hello,  Is there the option within Hikashop to set a recurring discount? For example, every Thursday a 10% discount on a certain category or product? Or is there a specific plugin for this?  Regards, Michiel")*

Hi,

There is no direct option to do that.
However, you could create a mass action with a trigger "every week" and an action "run MySQL query" and the MySQL query being: Code:

UPDATE #__hikashop_discount SET discount_start = discount_start + 604800, discount_end = discount_end + 604800 WHERE discount_code = 'XXX';

and you need to replace XXX by the code of the discount you wish to make recurring.
Note that 604800 is the number of seconds in 1 week.
Note also that this require the cron task to be running : [ www.hikashop.com/support/documentation/5...ashop-cron-task.html](https://www.hikashop.com/support/documentation/55-hikashop-cron-task.html)
Note also that this mass action will run once directly after the next tic of the cron task. So you should create that mass action when the validity of the discount is in the past, less than 1 week.
For example, if I create a discount for tomorrow and I want it to be recurring, I need to wait 2 days to create the mass action.
Finally, note also that after you create the mass action, it won't run immediately since it will run on the next tic of the cron task. So I would recommend you to wait 1h after you created it to check that the discount dates were properly updated.

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

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

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