Forums / Install & configuration / some advice please: billing + shipping address

some advice please: billing + shipping address

Author Message

Pascal Specht

Wednesday 11 July 2007 4:24:13 am

Hi friends,

I need a quick advice on how to best proceed to customize eZ Publish's user class for doing e-commerce. I'm pretty sure some of you already did that before, and I would like to avoid reinventing the wheel. It may well be that I've overseen some contributions or configuration settings, so I'm looking forward for your feedback.

Here's what I need, and how I solved it so far:

<i>1. a user should be able to add products to a cart without being identified.</i>
(solved with a role: anonymous:shop/buy/no limits)

<i>2. a user should be able to sign up with just a few infos: e-mail, first and last name and username.</i>
Since I didn't like the way it was done in ezwebin, I wrote an extension, and wrote templates
for user/login.tpl, user/register.tpl etc to fit my needs.

<i>3. If a user goes to actually buy something, I need the user to complete both a billing AND a shipping adress latest now.</i>
I did not really find if there's a best/easiest way to do that: Should I modify the user class and add all the address fields as class attributes? Or should I create an address class, and attach it to the user? Did someone already write this kind of things as an extension? I didn't find it... The user's information should be persistant, i.e. the user should be able to change it via 'my account' at a later moment.

<i>4. Is there already a good shipping handler?</i>
I've been looking into the fedexshipping extension, but it looks very hard-coded and more of a quick solution for a field problem than a generic approach...

Thanks a lot in advance!

-Pascal

Clay Pereira

Wednesday 11 July 2007 10:20:47 am

Hi Pascal,

We we released our older version of our shipping extension through Brookins Consulting. Graham added significant documentation and cleaned up the code. You can find it in the projects area, BC_Static_shipping. http://projects.ez.no/bcstaticshipping

This is a good example to follow. We will be releasing our real time shipping extension which grabs current UPS and USPS shipping rates in the near future. You can see it in action by going to http://Alconeco.com The static shipping was the base for our real time extension developed by Ez Partner Xrowe.

Additionally you may want to look at this extension http://projects.ez.no/recurringorders

Pascal Specht

Friday 13 July 2007 6:20:39 am

Hi Clay,

Many thanks you for the information, I'm going to have a look at the topics and ideas you suggested.

Pascal