Child pages
  • Event-Based Discounts
Skip to end of metadata
Go to start of metadata

Extension page:


The Event-Based Discounts Magento extension allows you to reduce the number of abandoned carts by offering automatic time-limited discounts to your registered customers.



The extension works for logged in users only


1. Backup your web directory and store database.

 Click to view details

You can make backup copies with any tool you find appropriate

If you are going to use the native Magento backup function, navigate to System -> Tools -> Backups and perform System and Database backups

 2. Log in to the Magento backend

 3. Disable compilation

 Click to view details

Navigate to System -> Tools -> Compilation.

If Compiler status is Disabled, you can skip to the next step

If Compiler is enabled, disable it.

IMPORTANT: after the extension is installed, you can enable the compilation again; IT IS CRUCIAL that you use "Run Compilation Process" function, not just "Enable button"


Installing an extension with the Compilation enabled will result in store downtime.

 4. Flush store cache

 Click to view details

You can flush the store cache in 2 ways:

  • via the backend:

Navigate to System -> Cache Management menu, and click Flush Magento Cache button

  • via filesystem:

On your server, navigate to Magento root folder, then proceed to /var/cache/; delete all the content there.

 5. Download the extension package from your account and extract the downloaded archive

 6. Copy the content of /Step_1/ folder to your store's root directory

If you are using a custom theme,

 read the instructions here.

In case you are using a custom theme, it is recommended to copy the design files to your current theme's folders. In case there are several themes in use at the same store, the design files must be copied to each of them.

  • Find this folder in the package: /step_1/app/design/frontend/base/default/ ; copy its content to /app/design/frontend/[your_package]/[your_theme]/
  • Find this folder in the package: /step_1/skin/frontend/base/default/ ; copy its content to /skin/frontend/[your_package]/[your_theme]/

 7. Copy the content of /Step_2/ folder to your store's root directory

 8. Flush store cache again; log out from the backend and log in again.


To configure the extension, navigate to Promotions > Event Based Discounts > Timer List.

Here you can add/edit/delete different timers. The conditions are the same as in Shopping cart price rules.


  • Place order
  • Cart update
  • New registration
  • Log in

Creating Design Packages

1. Create a directory in skin/frontend/default/default/aw_eventdiscount (use your store's values), e.g. "mypackage"

2. In this new directory, create timer.css or copy this file from any default package and edit it.

Use your package name as postfix in CSS rules.




color: #000;


3. Go to the Add New/Edit Timer page in the backend. The created package will appear in the Design package dropdown list of the Design tab.

Logging and Statistics

All notifications about starting/ending timers are saved in AW Core log. To see the log, go to the System > Configuration >aheadWorks Extensions > Info backend page and click the View log button in the aheadWorks Extensions logging tab.

Go to the Promotions → Event Based Discounts → Statistics backend page. Here you can view the full statistics about each timer.


Since Magento does not give ability to handle automatic uninstall for its modules, you need to run the following query on your database manually:

This will delete the extension attributes from the database. After that, you can safely remove the extension files from your store.


After the extension installation the store gives an error, or blank page, or suggests to start Magento installation procedure.

Change the owner of the extracted extension files to the web server user and set 775 permissions on them. Clear the store cache and try again.

There is no aheadWorks extensions under my configuration section, or having the extension tab clicked I get a blank page, or Access Denied error.

Clear the store cache, browser cookies, logout and login again.

I've set up everything correctly, inserted the HTML code but there is nothing on that page.

Clear the store cache, clear your browser cache and domain cookies and refresh the page.

My configuration changes do not appear on the store.

Clear the store cache, clear your browser cache and domain cookies and refresh the page.


You can always find the latest version of the software, full documentation, demos, screenshots and reviews at
License agreement:
Contact us:
Copyright © 2019 aheadWorks

  File Modified
PDF File AW_Event-Based_Discounts.pdf Oct 10, 2013 by Peter Samoilov

  • No labels