Overview


Description

This module modifies the behavior on how gifts certificates are sent. Zencart allows a customer to purchase a gift certificate and allow the customer to send an amount to someone else. When sending the amount to another person Zencart sends the gift amount immediately to the guest customer. This module allows that email to be sent to the guest customer at a later date. Say you purchase a gift certifcate, but someone's birthday isn't until next week. You can set the date and time that the email will be sent out to them. It can now arrive on their birthday.

There is only one original file overwritten:

/includes/modules/pages/gv_send/header_php.php

Requirements

You need to be able to schedule cron jobs on your server. Typically, for most users, this will be done through your control panel for you hosting account like cPanel.


Installation

  1. Download and unzip the file.
  2. Rename folder in includes/templates/CUSTOM to match the name of your template folder
  3. Upload files
  4. Login to your admin page, and click on the "Admin Home" link in the header menu.
  5. Install Button will be shown at top. Click install button to install queries.
  6. You will now need to setup a cron job to schedule the email script. Login into your control panel and navigate to link for adding a cron job. The command you will need to enter is: 0/30 * * /path-to-zencat-folder/cron_gv_delay_send.php This will run the script every 30 minutes.
  7. You are done.

Removal

You can remove this by navigation to your Admin page. Click on the "Admin Home" link in the header menu. In your address bar add "?remove_gv_delay_send=yes" without quotes. This should look like http://www.yoursite.com/admin-folder/index.php?remove_gv_delay_send=yes

Delete the file:

/admin-folder/includes/function/extra_function/gv_delay_send_functions.php

You will need to restore the original version of the file: /includes/modules/pages/gv_send/header_php.php or remove the block of code documented as //GV Delay Send comments