Results 1 to 10 of 26

Threaded View

  1. #1
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Possible Module installer/upgrader [for mod developers]

    Here is the idea:
    Mods should be automatically installed and upgraded if possible.

    The current version of this mod takes care of the database part only.

    Brief intro:

    What it can do:
    1. Automatically install new module database patches
    2. Execute all database patches in order, so that it will work even if the users skipped several versions.

    How it works:

    1. All your sql patches should be put inside:
    admin/includes/module_installation/your_mod/db/
    naming from 0.sql to n.sql

    2. For each new version, you will need to pack a specific file called current_version.txt placed in admin/includes/module_installation/your_mod/

    module_installer will check compare the patch level it found in database against the current patch level, and will execute all new sql patches in order.



    This mod contains 2 classes:
    sqlPatch class:
    https://svn.rubikintegration.com/zen...atch_class.php

    --> This class simply uses all the functions found in ZenCart admin/sqlpatch.php, packed into a class with minor changes.

    module_installer class:
    https://svn.rubikintegration.com/zen..._installer.php

    --> The core of this installer
    Comments, code suggestions are all welcome.
    It'd be great if we can develop this mod to improve its functionality to make life easier for both developers and users.
    Last edited by yellow1912; 26 Jan 2008 at 08:39 AM.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

 

 

Similar Threads

  1. Is it possible to have tax exemption with VAT-mod for European companies?
    By stomm in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 16 Jun 2009, 04:39 PM
  2. Is it possible to disable an active shipping module for certain items?
    By Eticam in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 4 Dec 2006, 10:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg