Contributions
Association module V1.0
I profited many times of different contributions. With this (it's my first one) contribution I also want to make a contribute to the community.
This contribution was created for osCommerce Version 2.2-MS2.
What's the goal of this contribution?
-------------------------------------
This contribution allows the shop owner, to support any organization
(e.g. charity organizations, sports organizations and so on) with a
certain percentage of every order.
That means, the shop owner may create an account for an organization
via the administration interface. All the details of any organization
(account details, account balance, history of the payments made and so on)
will be shown in the administration interface.
The customer may choose during the order process which organization
to support with a percentage of his order.
Features
--------
- create / edit / delete an account for an organization
- activate / desacitvate an organization
- display the account details (number of orders, amount of the order, amount in favour to the organization, account balance,
amount already paid...
- create / edit a payment in favour of the organization (rem: the payment won't be made automatically! It's up to you to benefice the organization by a bank payment for example). This interface only serves to have an overview of all the payments made (outside).
- display the payment details: Date of the payment(s), Amount of the
payment, Remarks
- the customer may choose during the order process which organization to support with a percentage of his order
Limitation / To do List
-------------------------------------
1) At the moment, only the french language is supported. Translation to german and english will be made in the near future
2) It's planned to create an interface in the shop area, so the organization may fill out a formular and may apply for benefit with a certain percentage of every order
3) To planned - but would be nice to have :-): Generate the payment for an organization via the administration interface...
Expand All / Collapse All
Fix for activate/deactivate in admin to correspond with the display of the association in checkout payment.
Updated language files from French to English
Query to set permissions for admin to access Association pages in admin.
!May need to change the `admin_groups_id` values to correspond to admin id's that are in your database.
sorry I added to much and can't delete it..
here is the right one
I was missing this in my install file:
admin/includes/languages/english.php
add to the bottom just before ?>
// BOF Associations
define('BOX_HEADING_ASSOCIATIONS', 'Associations');
define('BOX_ASSOCIATIONS_ASSOCIATIONS', 'Associations');
define('BOX_ASSOCIATIONS_ACCOUNT', 'Account');
define('BOX_ASSOCIATIONS_PAYMENT', 'Payments');
// EOF Associations
Download is this same text , but I was missing this in my install file:
admin/includes/languages/english.php
add:
// BOF Associations
define('BOX_LINKS_LINKS_EXCHANGE', 'Links Exchange');
define('BOX_HEADING_ASSOCIATIONS', 'Associations');
define('BOX_ASSOCIATIONS_ASSOCIATIONS', 'Associations');
define('BOX_ASSOCIATIONS_ACCOUNT', 'Account');
define('BOX_ASSOCIATIONS_PAYMENT', 'Payments');
// EOF Associations
on line 62 this line has written $insert_sql_data = array('asc_info_date_account_created' => 'now()');
and it should be this
$insert_sql_data = array('asc_info_date_account_created' => 'now()','asc_info_date_account_last_modified' => 'now()');
and on line 561 there in syntax error in sql query
after p.asc_members no comma is there
This is similar to the previous version but now works with MS2.2. I took out a lot of the fields and changed some to make it work for more stores.
This still needs a lot of cleaning up but is functional, some new features would help it also if someone wants to help feel free.
I profited many times of different contributions. With this (it's my first one) contribution I also want to make a contribute to the community.
This contribution was created for osCommerce Version 2.2-MS2.
What's the goal of this contribution?
-------------------------------------
This contribution allows the shop owner, to support any organization
(e.g. charity organizations, sports organizations and so on) with a
certain percentage of every order.
That means, the shop owner may create an account for an organization
via the administration interface. All the details of any organization
(account details, account balance, history of the payments made and so on)
will be shown in the administration interface.
The customer may choose during the order process which organization
to support with a percentage of his order.
Features
--------
- create / edit / delete an account for an organization
- activate / desacitvate an organization
- display the account details (number of orders, amount of the order, amount in favour to the organization, account balance,
amount already paid...
- create / edit a payment in favour of the organization (rem: the payment won't be made automatically! It's up to you to benefice the organization by a bank payment for example). This interface only serves to have an overview of all the payments made (outside).
- display the payment details: Date of the payment(s), Amount of the
payment, Remarks
- the customer may choose during the order process which organization to support with a percentage of his order
Limitation / To do List
-------------------------------------
1) At the moment, only the french language is supported. Translation to german and english will be made in the near future
2) It's planned to create an interface in the shop area, so the organization may fill out a formular and may apply for benefit with a certain percentage of every order
3) To planned - but would be nice to have :-): Generate the payment for an organization via the administration interface...
Note: Contributions are used at own risk.