5.1 File / Directory Structure

All third party scripts must be uploaded into the /cgi-bin/xflow/modules/shop/scripts/ directory of your web server. Every time one of many actions occur, the Shopping Cart will check to see if a script exists at the needed location, and if exists, will automatically execute that script. The below table lists the exact location where all scripts must be placed, and the action which will execute them.

All locations listed in the below table are relative to the /cgi-bin/xflow/modules/shop/scripts/ directory. For example, if the location is "/customer/create.pl", the actual location of the script is /cgi-bin/xflow/modules/shop/scripts/customer/create.pl.
Action
Script Location
Description
New customer created
/customer/create.pl
When a new customer is added to the database
Customer activated
/customer/activate.pl
When a customer's account is activated
Customer deactivated
/customer/deactivate.pl
When a customer's account is deactivated
Customer expired
/customer/expired.pl
When a customer's account has expired.
Order processed
/order/[STATUS].pl
When an order is submitted / processed. The [STATUS] represents the status of the order, and can be:
  • approved
  • declined
  • error
  • pending
  • refunded
  • expired
For example, /order/approved.pl would be executed every time an order is approved.
Product purchased
/product/[PRODUCT_ID]_[STATUS].pl
When a specific product is purchased. The [PRODUCT_ID] is the ID# of the product in your database, and the [STATUS] is the status of the order, and can be:
  • approved
  • declined
  • error
  • pending
  • refunded
  • expired
For example, /product/CD427_approved.pl would be executed every time someone purchased the product ID# CD427, and the order was approved.