|
Saturday, 09 May 2009 16:10 |
|
*PLEASE REPLY WITH EXAMPLES OF WORK WITH MAGENTO COMMERCE. NO AUTO REPLIES!*
Brief
The client intends that a percentage of all annual profits are distributed to charity. To do this he wants there to be three charities offered to new customers during the customer signup process and the customer should nominate one of these during the signup.
The nominated charity should display in the final page of the one page checkout.
Admin should be able to change the name of the charities
Admin needs to be able to generate a report showing the number of folks nominating each charity
Also they want an extra customer registration field - 'Are you a UK Taxpayer?' which should be available in an admin report alongside the charity details
We have gone partway to doing this – there are three options available as checkboxes in the customer signup (these are also visible in the customer account page). There is no admin function as yet although the file to call the report has been installed.
Coding notes
So far we have charities in the customer signup page based on this:
http://www.magentocommerce.com/wiki/custom_account/registration_fields which inputs an occupation field - I've taken this and adapted it slightly to use checkboxes rather than an input field.
(The name 'occupation' is still used in some files where the database entry is labelled/used)
app/code/core/mage/Customer/etc/config.xml
app/code/core/Mage?customer/Model/Entity/setup.php
app/design/frontend/default/gecco/template/customer/form/edit.php
app/design/frontend/default/gecco/template/customer/form/register.php
Elsewhere we use Charity:
app/code/core/Mage/Adminhtml/Block/Customer/Charity.php
app/code/core/Mage/Adminhtml/Block/Customer/Charity.php
app/code/core/Mage/Adminhtml/Block/Report/Customer/Charity/Grid.php
app/code/core/Mage/Reports/Mode/MySql/Charity/Collection.php
The client wants the ability to
(1) Update the name of the three charities from the admin
(2) Create a report showing the number of charities selected
(3) the selection on the customer signup page to be a dropdown list (rather than the selection boxes)
(4) the selection is also available on the customer account pages and the code there needs to be altered too
Most of the code is in there for generating the report - we need it linked to the backend somewhere along with the update the name.
No work has been done on the UK Taxpayer input field
Thank you.
|