Copyright © 2014-2017, Vinos de Frutas Tropicales (lat9). Current Support Thread at Zen Cart Forums: http://www.zen-cart.com/showthread.php?211914-Multiple-Ship-To-Addresses-Support-Thread
This plugin enables your store to offer your customers multiple shipping addresses on a single order, so long as the currently-selected payment method supports shipping to multiple addresses! Many payment modules will not provide a store-owner with seller protection if a customer's products are shipped to an unvetted address.
For the initial release of the plugin, only the moneyorder payment method has been updated to provide this support. The intent with this plugin's release is to provide a basic framework that can be tested (and otherwise improved) by the Zen Cart community and within which other, more intricate, payment methods can also support multiple ship-to addresses.
Every effort has been made to reduce the core-file changes required. Where possible, the change has been limited to the insertion of one or more Zen Cart notifiers at significant points. When it was not possible, the changes are spanned by comments indicating the beginning (//-bof-multiship) and end (//-eof-multiship) of the code-fragments. In all cases, Zen Cart v1.5.5 provides the code-basis for any core- or template-file changes.
The first time an admin signs into (or refreshes the screen of) your Zen Cart admin after you have installed the files for Multiple Ship-to Addresses, an initialization script runs that creates new tables in your Zen Cart database:
and modifies your orders_products table to add a field to provide the correlation to the multiship order id for each product. Entries are created in the admin_pages table to support the use of the invoice_multiship and packingslip_multiship pages.
When you view the orders for your Zen Cart, the orders' listing display identifies those orders that have multiple ship-to addresses using a blue dot, as shown by the following screenshot:
If you click either the invoice or packing slip buttons, the page's navigation takes you to different admin pages depending on whether or not the order has been shipped to multiple addresses — invoice_multiship.php and packingslip_multiship.php or invoice.php and packingslip.php, respectively. This allowed the restructuring of the invoice and packing-slip printouts without modifying (yet another) core file.
When you click the edit button for an order that has multiple ship-to addresses, the information is displayed as shown by the screenshot that follows. If you click either the invoice or packing slip buttons, the page's navigation takes you to the like-named admin page that provides the multiple ship-to address formatting — as described above.
There are a couple of differences between this display and that provided for a product that ships to a single address.
When you click the invoice button for an order that has multiple ship-to addresses, the information is displayed as shown by the screenshot that follows. There are a couple of differences between this display and that provided for a product that ships to a single address:
When you click the packing slip button for an order that has multiple ship-to addresses, the information is displayed as shown by the screenshot that follows. There are a couple of differences between this display and that provided for a product that ships to a single address:
This plugin modifies the interfaces presented to your customers during the checkout process and, if an order is shipped to multiple addresses, their account history display for that order.
When a customer's current order qualifies for multiple ship-to addresses, a new link, as shown by the screenshot to the left, is displayed on your store's Checkout Confirmation page. If the customer clicks that link, they're taken to the Choose Multiple Shipping Addresses (checkout_multiship) page. An order qualifies for multiple ship-to addresses if:
The checkout_multiship page is presented to the customer when they click the Ship to multiple addresses? link presented in the checkout_confirmation page. This page's processing breaks down the customer's order into a collection of single-quantity line items so that the customer can choose the ship-to address for each item in their cart.
Note: The processing for this page automatically disables the left and right sidebox display, to provide sufficient display width for the dropdown address menus.
This page operates as follows:
checkout_shipping page).address_id. If the customer chooses to send all items to a single address, then all virtual products are also "sent" to that address.checkout_multiship page to correct the problem (as displayed by the screenshot to the left).
Once the customer has chosen multiple ship-to addresses, the display of the Checkout Confirmation page changes to show the customer the order's breakdown by address.
This page operates as follows:
checkout_multiship page.When a customer has placed an order with Multiple Ship-To Addresses, that order's display within the customer's account-related pages changes to reflect the multiple addresses:
There are core-file overwrites in this plugin; you should always backup your cart's database and files prior to making any changes. Unzip the plugin's package file and then:
Note: All changes to core and template-override files are notated with the characters multiship to make the changes easy to locate!
First, delete the files that were copied to your zen-cart installation's folders (restoring the prior contents of the core and template-override files) then use your admin's Tools->Run SQL Patches to run the file uninstall_multiship.sql that ships with this plugin.
Legend for the File Changes: Changed — Added — Removed
| Version | Files Changed/Added | Database Changes |
|---|---|---|
| v1.2.0 |
|
— |
| v1.1.4 |
|
— |
| v1.1.3 |
|
— |
| v1.1.2 |
|
— |
| v1.1.1 |
|
— |
| v1.1.0 |
|
— |
| v1.0.0 |
|
Added admin_pages for invoice_multiship and packingslip_multiship pages. |
| v1.0.0 BETA3 |
|
— |
| v1.0.0 BETA2 |
|
— |