Jump to content

Let user choose when to get the delivery.


Recommended Posts

Hi, I want to add a new functionality to my store.

 

Let people decide when they want to receive their stuff. A couple or radio buttons that will show options like:

 

1. Delivered tomorrow after 12:00

2. Delivered today in three hours.

3. Delivered in 48 hours.

 

My questions are:

 

1. Should I create a carrier module?

2. Which object should I alter with the users choice so that I know when to ship it?

 

Thanks!

 

 

 

Link to comment
Share on other sites

It really depends on your needs.
If you have a single carrier, just create 3 instances of it and label them as needed.

If you have more, you might want to extend the cart and order objects, add a dropdown in the checkout and save it during the order process

Link to comment
Share on other sites

It really depends on your needs.

If you have a single carrier, just create 3 instances of it and label them as needed.

If you have more, you might want to extend the cart and order objects, add a dropdown in the checkout and save it during the order process

 

NemoPS, thank you for the reply.

 

I am going to build a new carrier for the purpose.

So when I create the carrier I will have to extend the cart object too and pass the info from the carrier to the cart in order to save the users choice, right?

 

And should I do that in the carrier module?

Link to comment
Share on other sites

Well it's not strictly necessary to have a module, as long as you override the classes. Basically you need an ajax call on the cart, which saves the user's choice when the selection is made. I don't think you need to override the carrier object, unless the price changes depending on the user's choice

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...