CVS edit link for Alex Lawrence
My company is currently working on a webshop with Ubercart 2. During the development I wrote 2 modules.uc_preferred_payment:
Introduces a new payment method where a profile field (profile.module) can be specified of which users can choose their preferred payment method which will be used as default for every order. Additionally extra profile data can be send together with the preferred payment method. The payment option will be displayed on the order, the checkout and the invoice. The module provides a token (e.g. for invoice e-mails)
We are building a webshop for a german b2b (business to business, instead of business to customer) webshop and our customer does not want to provide real gateways and payments but instead only wants to recevie an e-mail with the preferred payment as message. I think this could be useful for some others.
uc_customer_discount:
Another important thing of the webshop is that each customer has an individual discount and all prices should be discounted already when customers are browsing through the webshop. Similar to the preferred payment you can choose a profile field for the customer discount (in our case this field is not available to customers and can only be changed through the admins). Prices are then displayed discounted everywhere in the shop. Additionally this discount will also be displayed on the order, checkout and invoice and the module provides a token.
Both modules have settings, are documented and conform to the coding standards.
Our company (artecho, www.artecho.de) is realising a lot of projects with Drupal and we like it very much. We are also trying to help by creating issues and providing suggestions for patches. I developed myself small scaled cms solutions but since I looked deeper into Drupal I´d like to become a module developer.
Best
P.S.: Forgive me if I english is not too good, I am not a native speaker.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | uc_preferred_payment.zip | 3.05 KB | Alex Lawrence |
| #11 | uc_customer_discount.zip | 2.66 KB | Alex Lawrence |
| #9 | uc_preferred_payment.zip | 3.06 KB | Alex Lawrence |
| #8 | uc_customer_discount.zip | 2.67 KB | Alex Lawrence |
| #2 | uc_preferred_payment.zip | 3.02 KB | Alex Lawrence |
Comments
Comment #1
Alex Lawrence commenteduc_customer_discount
Comment #2
Alex Lawrence commenteduc_preferred_payment
NOTE: The settings dialog needs some ajax to be better in usability. Currently working on it.
Comment #3
avpadernoComment #4
Alex Lawrence commentedForgive me but I don´t quite understand. What would you like to know?
Comment #5
Alex Lawrence commentedIf you want to know more about my person you might want to take look at this page http://alex-lawrence.com/about
Comment #6
avpaderno@Alex Lawrence: The status is changed to "needs review" when there is new code to be reviewed, and it is changed to "needs work" when you need to change the code as it is. After you change the code, you change the status to "needs review".
Comment #7
avpadernoSee the Drupal coding standards to understand how a module code should be written.
The code misses another hook implementation; without it, this hook is useless.
The index defined is already the primary key.
Module tables are created only in
hook_install().The code should be simpler.
Comment #8
Alex Lawrence commentedOh okay, Sorry. Thanks for the explanation.
I corrected everything you mentioned. But I am not sure about the first issue. Is this only a matter of style or am I doing something which I shouldn´t be doing (like trim(), altough I did not find anything about it on drupal.org)? If it is about the style I now have it the right way I think.
Comment #9
Alex Lawrence commentedComment #10
Alex Lawrence commentedDamn it, forgot point 3.
Comment #11
Alex Lawrence commentedOkay, now I´m good. Sorry for the mass of posts.
Comment #12
avpadernoThat means you don't make a call like
trim( $string ).Comment #13
avpadernoThe code must be changed to follow the Drupal coding standards.
There are few points that we insist on, when reviewing the code:
Read well the coding standards, and correct the code where it doesn't follow the indications given there.
For the second module (uc_customer_discount.module), I notice there are already 3 modules for Ubercart that do the same task. I am not sure if another one is really needed.
Comment #14
Alex Lawrence commentedAlright, Thanks. I will read them carefully and make the changes.
Concerning the uc_customer_discount I found no module which was suitable for our customer needs. If there are however similar modules in general it won´t make sense to upload the customer discount module, you are right.
Comment #15
avpadernoDrupal philosophy is "join forces"; when a module doesn't do what you expect it to do, you can propose patches, or ask to become co-maintainer.
Comment #16
Alex Lawrence commentedYes that´s one reason why I use Drupal. But to be honest I found no module which I thought would be the right one for the functional requirements. However if you have some modules in mind I would be glad if you gave me the links.
Thank you
Comment #17
avpadernoThe one that caught my attention is UC Discount Framework; you can find some more modules by searching for uc discount.
Comment #18
Alex Lawrence commentedHi,
Sorry that I didn´t give you an update on the module development. Right now I am very busy and I don´t know when I will have the time to work on the modules. Hope you understand.
Cheers
Comment #19
avpadernoThat fine, Alex. Take in mind that we don't normally take open an application for more than 2 weeks, when we don't get back any feedback; in such cases, we decline the CVS account, but you can always apply again.
Comment #20
avpadernoComment #21
avpadernoThere have not been replies from the OP in the past 7 days. I am marking this report as .