What module does during installation?


Module to sell license keys in PrestaShop during its installation process installs database and associates module with positions (hooks) in prestashop. Below you can find detailed information about installation procedure, what module does and what parts of installation are required.

 

Database installation

module creates new tables in shop's database (sql): 

  • cdkey
    This is cdkeys repository. All keys that you sell are stored in this table.
  • cdkey_group
    This is cdkeys groups repository. All keys can be grouped (for example you create group "Windows XP license" and uploads keys there.) Module allows to create unlimited number of groups and this means that you can sell unlimited number of "cdkeys" products.
  • cdkey_group_lang
    This is table for translation of groups (group name, description etc.)
  • cdkey_used
    This is repository of purchased (by your customers) cdkeys. You can find here all sold keys.

These tables are required . Without them - module will not work at all.

 


 

Hook Associations

Depending on version of your prestashop module associates itself with these positions

  • PrestaShop 1.7
    • displayadminOrder
    • orderDetailDisplayed
    • actionOrderStatusUpdate
    • actionAdminControllerSetMedia
    • displayCustomerAccount
    • displayBackOfficeHeader
    • header
  • PrestaShop 1.6
    • displayadminOrder
    • orderDetailDisplayed
    • actionOrderStatusUpdate
    • actionAdminControllerSetMedia
    • displayCustomerAccount
    • displayBackOfficeHeader
    • header

All of these positions are required. Our module will not work correctly if it will not be associated with all of them. The rest of hooks are requried for module appearance in your shop's front office and also its workflow in shop's back office.

 


 

Module configuration sections

After installation you can configure our cdkeys module on: its configuration page. Module creates also new menu items where you can create and manage cdkeys. Go to next part of documentation to see details about module configuration.

 

cdkeys module configuration page

configuration page od cdkeys module

 

menu items cdkeys module  new menu items created by module after its installation