Page 1 of 2 12 LastLast
Results 1 to 10 of 85

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,871
    Plugin Contributions
    96

    Default 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.

    I'm preparing to upload v1.0.0 BETA1 to the plugins area and will post its download link once I receive it.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,871
    Plugin Contributions
    96

    Default Re: Multiple Ship-To Addresses [Support Thread]

    Once approved, the plugin will be available here: http://www.zen-cart.com/downloads.php?do=file&id=1823

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,871
    Plugin Contributions
    96

    Default Re: Multiple Ship-To Addresses [Support Thread]

    Quote Originally Posted by lat9 View Post
    Once approved, the plugin will be available here: http://www.zen-cart.com/downloads.php?do=file&id=1823
    BETA1 is now available via the Zen Cart Plugins. You can also see the progress from beta to v1.0.0 on the plugin's github repository:

    https://github.com/lat9/multiship

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,871
    Plugin Contributions
    96

    Default Re: Multiple Ship-To Addresses [Support Thread]

    BETA2 is now available via github (https://github.com/lat9/multiship/ar....0.0-BETA2.zip). This version incorporates "understanding" that an order can contain a mixture of virtual and physical products.

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,871
    Plugin Contributions
    96

    Default Re: Multiple Ship-To Addresses [Support Thread]

    Looking for opinions!

    1. Is a one-time charge applied on a per-order or per-ship-to-address basis? The current implementation applies the charge on a per-ship-to-address. I'm not asserting that this is correct, just stating what's currently happening.
    2. Let's say a customer has 4 "Product 1" items in their cart and they choose to ship 2 to one address and 2 to another. Subsequently (and before confirming the order), the customer goes to the shopping_cart page and reduces the quantity of "Product 1" to 2. Does the "Ship-To" address for the 2 remaining items revert to the default shipping address?

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,871
    Plugin Contributions
    96

    Default Re: Multiple Ship-To Addresses [Support Thread]

    I've just uploaded BETA3 to the plugins area. This version includes changes that react to changes to the shopping cart from the shopping_cart page plus a variety of bugfixes.

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,682
    Plugin Contributions
    11

    Default Re: Multiple Ship-To Addresses [Support Thread]

    Sorry was rushing out the door to PT.
    the problem is the undefined constraints but, it's not pulling the image correctly before that. Only gets directory and folder

  8. #8
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,682
    Plugin Contributions
    11

    Default Re: Multiple Ship-To Addresses [Support Thread]

    Regardless of hard-coding the height and width or placing them in the database as configurations, the line still retrieves only the DIR_WS_CATALOG (/) and DIR_WS_IMAGES (images). Beyond that - nothing.
    Code:
    <table border="0" width="100%" cellspacing="0" cellpadding="2">      <tr class="dataTableHeadingRow">
      <!-- BOF Add Image 1 of 2 - dbltoe -->
            <td class="dataTableHeadingContent">Image</td>
      <!-- EOF Add Image 1 of 2 = dbltoe --> 
            <td class="dataTableHeadingContent" align="center">Qty</td>
            <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></td>
            <td class="dataTableHeadingContent">Option(s)</td>
          </tr>
    <?php
        foreach ($order->products as $currentProduct) {
            if ($currentProduct['orders_multiship_id'] != $multiship_id) {
            continue;
            }
    ?>
          <tr class="dataTableRow">
      <!-- BOF Add Image 2 of 2 - dbltoe -->
            <td class="dataTableContent" valign="top" align="left">
                <?php echo zen_image(DIR_WS_CATALOG . DIR_WS_IMAGES . zen_get_products_image($order->products[$i]['id']), 'Product Image', IMAGE_ON_INVOICE_IMAGE_WIDTH, IMAGE_ON_INVOICE_IMAGE_HEIGHT); ?>
            </td>
      <!-- EOF Add Image 2 of 2 - dbltoe -->
            <td class="dataTableContent" valign="top" align="center"><?php echo $currentProduct['qty']; ?></td>
            <td class="dataTableContent" valign="top"><?php echo $currentProduct['name']; ?>
    <?php
    
    
            if (isset($currentProduct['attributes']) && (sizeof($currentProduct['attributes']) > 0)) {
                foreach ($currentProduct['attributes'] as $currentAttribute) {
    ?>
              <br /><span class="nobreak"><small>&nbsp;<i> - <?php echo $currentAttribute['option'] . ': ' . nl2br(zen_output_string_protected($currentAttribute['value'])); ?></i></small></span>
    <?php
                }
    ?>
            </td>
            <td class="dataTableContent" valign="top"><?php echo $currentProduct['model']; ?></td>
    <?php
            }
    ?>
          </tr>
    <?php
        }
    ?>
        </table>
    Any more thoughts? Works like a champ with standard packing slip.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  9. #9
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,871
    Plugin Contributions
    96

    Default Re: Multiple Ship-To Addresses [Support Thread]

    Quote Originally Posted by dbltoe View Post
    Regardless of hard-coding the height and width or placing them in the database as configurations, the line still retrieves only the DIR_WS_CATALOG (/) and DIR_WS_IMAGES (images). Beyond that - nothing.
    Code:
    <table border="0" width="100%" cellspacing="0" cellpadding="2">      <tr class="dataTableHeadingRow">
      <!-- BOF Add Image 1 of 2 - dbltoe -->
            <td class="dataTableHeadingContent">Image</td>
      <!-- EOF Add Image 1 of 2 = dbltoe --> 
            <td class="dataTableHeadingContent" align="center">Qty</td>
            <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></td>
            <td class="dataTableHeadingContent">Option(s)</td>
          </tr>
    <?php
        foreach ($order->products as $currentProduct) {
            if ($currentProduct['orders_multiship_id'] != $multiship_id) {
            continue;
            }
    ?>
          <tr class="dataTableRow">
      <!-- BOF Add Image 2 of 2 - dbltoe -->
            <td class="dataTableContent" valign="top" align="left">
                <?php echo zen_image(DIR_WS_CATALOG . DIR_WS_IMAGES . zen_get_products_image($order->products[$i]['id']), 'Product Image', IMAGE_ON_INVOICE_IMAGE_WIDTH, IMAGE_ON_INVOICE_IMAGE_HEIGHT); ?>
            </td>
      <!-- EOF Add Image 2 of 2 - dbltoe -->
            <td class="dataTableContent" valign="top" align="center"><?php echo $currentProduct['qty']; ?></td>
            <td class="dataTableContent" valign="top"><?php echo $currentProduct['name']; ?>
    <?php
    
    
            if (isset($currentProduct['attributes']) && (sizeof($currentProduct['attributes']) > 0)) {
                foreach ($currentProduct['attributes'] as $currentAttribute) {
    ?>
              <br /><span class="nobreak"><small>&nbsp;<i> - <?php echo $currentAttribute['option'] . ': ' . nl2br(zen_output_string_protected($currentAttribute['value'])); ?></i></small></span>
    <?php
                }
    ?>
            </td>
            <td class="dataTableContent" valign="top"><?php echo $currentProduct['model']; ?></td>
    <?php
            }
    ?>
          </tr>
    <?php
        }
    ?>
        </table>
    Any more thoughts? Works like a champ with standard packing slip.
    My thought: I didn't pay enough attention to your original post. How about changing the highlighted section to reference the variable that's being used:
    Code:
      <!-- BOF Add Image 2 of 2 - dbltoe -->
            <td class="dataTableContent" valign="top" align="left">
                <?php echo zen_image(DIR_WS_CATALOG . DIR_WS_IMAGES . zen_get_products_image($currentProduct['id']), 'Product Image', IMAGE_ON_INVOICE_IMAGE_WIDTH, IMAGE_ON_INVOICE_IMAGE_HEIGHT); ?>
            </td>
      <!-- EOF Add Image 2 of 2 - dbltoe -->

  10. #10
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,682
    Plugin Contributions
    11

    Default Re: Multiple Ship-To Addresses [Support Thread]


    That did it!
    Didn't occur to me that it might be a different variable than all the other packing slips.
    THANX
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Multiple Ship - From addresses for Shipping (UPS module)
    By samueljjs in forum Addon Shipping Modules
    Replies: 1
    Last Post: 22 Apr 2014, 03:03 PM
  2. Ship to multiple addresses?
    By Nimbuz in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 3 Dec 2007, 06:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg