We sell digital goods which are marked nonshippable so they are available for download after purchase. We need to collect a shipping address for these items as our resellers (billing address) purchase the software then pass it on to their customer (shipping address). We have tried a few different tweeks to make this work.
First we modified the onepagecheckout.aspx and made it so it always requests a shipping address regardless of whether or not there is a shippable item on the order. However, after the purchase is made the shipping address no longer appears on the receipt or view order pages.
Secondly we have tried to mark our digital items as "shippable" which works except then the customer is not able to download the software aftter purchase. FYI, to avoid charging shipping on those items we set up a "free shipping" warehouse and moved the digital items to that warehouse.
Any suggestions would be greatly appreciated.
Need to collect Shipping Address for non-shippable items
Re: Need to collect Shipping Address for non-shippable items
As you modified the OnPageCheckout to collect the shipping information from the customer for a digital good similarly you can modify the RecieptPage or ViewOrder page to show the collected shipping address such orders with digital goods.
Re: Need to collect Shipping Address for non-shippable items
I am unsure of how to do that, because ususally the shipping address displayed on the receipt and view order page is pulled from the ac_ordershipments table. Since the items are not shippable there is no record written to this table. The only place I can find the shipping address in the database is in the addresses table, however that does not tie to the order, but to the customer, so in future orders I would not know which address to display.
Re: Need to collect Shipping Address for non-shippable items
you can use the ac_CustomFields table to tie address with the order. Have a look at this post that how to use the custom fields
viewtopic.php?f=42&t=8684
viewtopic.php?f=42&t=8684