reverbdotcom / reverb-magento

Magento 1.x plugin for syncing with Reverb
Other
7 stars 10 forks source link

Handling for Local Pickup orders (no address in magento) #144

Closed StevenWolfe closed 8 years ago

StevenWolfe commented 9 years ago

We've had several orders imported which have not yet had a shipping address provided by the customer in Reverb. Off the cuff I can think of two solutions–both aren't great:

  1. Add a configurable address to the extension's configuration options which can be used as a placeholder when an address hasn't been provided. This has the benefit of creating the order in Magento immediately and updating the product's availability, but the extension (currently) won't ever retrieve the actual address once it's been provided.
  2. Prevent the extension from retrieving orders without addresses, perhaps showing a warning that some orders haven't yet been imported. This creates inventory drift, but would prevent the orders from becoming stuck in the import process.
dunagan5887 commented 9 years ago

@skwp are shipping addresses required for an order to be shipped in Reverb? If so I would recommend solution 2 from a technical perspective

skwp commented 9 years ago

Some orders are local pickup which does not require an address. Is that what's happening or are you talking about offer based orders? We have a big out to prevent orders from getting invoiced until they are paid

Sent from my iPhone

On Nov 6, 2015, at 12:59 PM, Sean Dunagan notifications@github.com wrote:

@skwp are shipping addresses required for an order to be shipped in Reverb? If so I would recommend solution 2 from a technical perspective

— Reply to this email directly or view it on GitHub.

dunagan5887 commented 9 years ago

Based on this, it sounds like we may want solution 1: allowing merchants to define the shipping address which is attached to a shipping order. Once the order is created, an admin could go into the system and edit the order to whatever the specific local pickup address is

StevenWolfe commented 9 years ago

This came up with Order #719857, which was for a listing without local pickup. The order was picked up by the sync queue before an address or payment was provided, so it became stuck in an Error state.

Option 1 would be preferred to avoid overselling; we would setup an obvious address (i.e. "CHECK REVERB FOR ADDRESS") to use as a placeholder.

Local pickup might warrant a second configurable address for order imports.

skwp commented 9 years ago

a fake address can be confusing. Let's be explicit. If it's local pickup it should specifically say local pickup in the address field if that's a problem for magento

Also for offers that don't yet have an address we can put in an explicit adress saying 'awaiting address at time of payment'. Additionally we will not magento invoice the unpaid order in a fix coming soon

Yan

Sent from my iPhone

On Nov 6, 2015, at 1:35 PM, Steve Wolfe notifications@github.com wrote:

This came up with Order #719857, which was for a listing without local pickup. The order was picked up by the sync queue before an address or payment was provided, so it became stuck in an Error state.

Option 1 would be preferred to avoid overselling; we would setup an obvious address (i.e. "CHECK REVERB FOR ADDRESS") to use as a placeholder.

Local pickup might warrant a second configurable address for order imports.

— Reply to this email directly or view it on GitHub.

dunagan5887 commented 9 years ago

Once we have the fix to prevent orders from being automatically invoiced, will there still be a need for action here?

StevenWolfe commented 9 years ago

@dunagan5887 this will still be an issue. An order can't be created without an address, regardless of its payment status

skwp commented 8 years ago

So the fix we need here is for local_pickup orders, set the address to "Local Pickup" or whatever is required to satisfy magento's requirements internally

dunagan5887 commented 8 years ago

@skwp Can you create an order for my test account which has local pickup, meaning there's no address included in the JSON? Also, what values should I use for the City/State/Zip in this case?

skwp commented 8 years ago

I would just put "Local Pickup" in all fields. If it must be numeric use 0000 or whatever for the zip. What's your account email?

dunagan5887 commented 8 years ago

The region field will be required. If a valid region is required, which state should I use?

skwp commented 8 years ago

you can use "IL"

skwp commented 8 years ago

oh you mean for fake data?

skwp commented 8 years ago

does it have to be a real place?

dunagan5887 commented 8 years ago

It doesn't have to be a real address, just needs to have valid values for each field

skwp commented 8 years ago

Order 112 is now local_pickup / no address

I would use the value "Local Pickup" whenever possible

dunagan5887 commented 8 years ago

Amazingly Magento somehow allowed me to set every field in the address to "Local Pickup" (I copied the buyer_name field to the address name though). Can't believe it was allowed, it doesn't look great, but it works. I'm going to test this on 1.7 before creating a PR