Menú

Getting Started with Promotion PRO - Cronjob Settings

To ensure the smooth functioning of your promotions and maintain an organized discount system, it's essential to set up cronjobs. This guide will walk you through the steps to configure cronjobs in the Promotion PRO module to automatically delete expired or used discount codes.

Accessing the cronjob settings

From your PrestaShop admin panel, navigate to the module configuration page. Select Settings >> Cronjob page.

Important notes before setting up a cronjob:

  • Cronjob frequency: It should be set to run at least twice per day. The recommended frequency is once per minute for optimal performance.
  • Server differences: The setup process may vary depending on your server. Alternatively, contact your hosting provider for support on setting up the cronjob.

 

Configuring the cronjob

To automatically delete expired or used discount codes, set up a cronjob on your server with the command provided by the Promotion PRO module:

AD_4nXf4iJAClDlEJriiJncVOQiz-IZKx4lrYt9v_V0OQRnb4DDgWKd7MqkG-Koz-hkURunVpXLBuibP7Uy4tVwm-i9YE97MC-r3RFbGWzfjOWEurrfj7g8Bnhp9ekVeFT8WcxHQMnUnCL8DnOsZG9PvQPYYq_UP?key=vLMLt1gSoMITXNVoMao7Wg

This command should be executed regularly as per the frequency notes mentioned above.

 

To learn how to configure cronjob on your server, please read our instruction article.

 

You can also manually execute the cronjob by clicking the "Execute cronjob manually" button on the “Cronjob” settings page.

 

Additional options

  • Cronjob secure token: Ensure that the cronjob secure token is correctly configured to maintain the security of your cronjob operations.
  • Save cronjob log: Enable this option only for debugging purposes. Keeping logs can help troubleshoot issues but may consume additional server resources.

 

By following these steps, you can effectively manage and automate the deletion of expired or used discount codes in your Promotion PRO module, ensuring a clean and efficient discount system.

Properly setting up cronjobs will help maintain the integrity of your promotional activities, providing a seamless experience for both you and your customers.

Recuento de vistas: 1430 vistas