Monday, November 9, 2009

Creloaded

Commercial shopping cart
http://www.creloaded.com/

after downloading backup,
import db
edit path and db variables in
configure.php
includes/configure.php
admin/includes/configure.php

UPDATE `admin` SET `admin_password` = 'ac0501ee3073f680a3a77c66d8c3edb1:09' WHERE `admin`.`admin_id` =5 LIMIT 1 ;

for setting password = 123456 as encrypted in function tep_encrypt_password($plain) in includes/functions/password_funcs.php

SEF module
Installation_and_Guide_To_PCI_Compliance_v_1.1.pdf 
Shipping module development
it is saved in should contain the functions l\includes\modules\shipping\ folder name of file and class should be same.should contain following functions
  1. constructor(same as classname)
  2. quote($method = '') :fucntion that returns the text and vlayues to display below shopping cart.should return in the format
    $this->quotes = array('id' => $this->code,
                               'module' => titelOfTheShippingModule,
                               'methods' => array(array('id' => $this->code,
                                                         'title' => $shipping_method,
                                                        'cost' => $shipping_cost)));
  3. check() : to check if this module is installed when shown in admin section,basically checks the configuration table
  4. install() :should enter values into configuration table .contains     
    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('
  5. remove() : remove all entries in configuration table
  6. keys() : returns keys to be stored as 'configuration_key' in TABLE_CONFIGURATION,used in install,remove etc
Should contain the following variables
  1.  $code, 
  2. $title,
  3. $description
In admin its the admin/modules.php that handles(install/edit/remove) shipping modules

      No comments:

      Post a Comment