Edit page for auto-ship Item with a One Time item bundled with it – Solution Design

Requirement

Display message “This product is bundled with another. Pausing or canceling this item will cancel all items bundled with it.”

When the Next Order date, Shipping Address, or Payment method are changed it also updates for the One Time item

Web

  1. Add the message on the confirmation popup for Cancel and Pause action buttons.

ERP

Create a User Event script deployed to the Line Record, that triggers on After Submit (on Edit-mode only) to do the following:

  1. Cancel Add-On items attached to the parent Auto-Ship record when doing the following updates to the parent Auto-Ship:
    1. Pausing, or
    2. Canceling
  1. Update the fields to the Add-On items attached to the parent Auto-Ship record when updating the following fields on the parent Auto-Ship
    1. Next Order Date
    2. Shipping Address
    3. Payment Method

Note: This operation will search for the add-on items of the currently modified parent Auto-Ship record, and update these add-on items.

Leave a comment

Your email address will not be published. Required fields are marked *