1 Reply Latest reply: Dec 21, 2012 3:56 AM by RMishra RSS

    add multiple item to shopping cart

    972484
      i have to add multiple skus of one product to the shopping cart..
      i need a checkbuttons and the corresponding skus get added to the shopping cart on add to cart button.
      plz help me out how to implement it..
        • 1. Re: add multiple item to shopping cart
          RMishra
          i have to add multiple skus of one product to the shopping cart..
          You can see follow below link:
          http://docs.oracle.com/cd/E23095_01/Platform.93/ATGCommStoreGuide/html/s1301addingitemstoshoppingcarts01.html
          <dsp:importbean
          bean="/atg/commerce/order/purchase/CartModifierFormHandler"/>
          <dsp:importbean bean="/atg/dynamo/droplet/ForEach"/>
          <dsp:form action="display_product.jsp" method="post">
          <input name="id" type="hidden" value='<dsp:valueof
          param="product.repositoryId"/>'>
          <dsp:input bean="CartModifierFormHandler.addItemToOrderSuccessURL"
          type="hidden" value="shoppingcart.jsp"/>
          <table border=1>
          <tr>
          <td>SKU</td>
          <td>Quantity</td>
          </tr>
          <dsp:droplet name="ForEach">
            <dsp:param name="array" param="product.childSKUs"/>
            <dsp:param name="elementName" value="sku"/>
            <dsp:param name="indexName" value="skuIndex"/>
            <dsp:oparam name="outputStart">
              <dsp:input bean="CartModifierFormHandler.addItemCount"
          paramvalue="size" type="hidden"/>
            </dsp:oparam>
            <dsp:oparam name="output">
              <tr>
              <td><dsp:valueof param="sku.displayName"/></td>
              <td>
                <dsp:input
          bean="CartModifierFormHandler.items[param:skuIndex].quantity" size="4"
          type="text" value="0"/>
                <dsp:input
          bean="CartModifierFormHandler.items[param:skuIndex].catalogRefId"
          paramvalue="sku.repositoryId" type="hidden"/>
                <dsp:input
          bean="CartModifierFormHandler.items[param:skuIndex].productId"
          paramvalue="product.repositoryId" type="hidden"/>
              </td>
              </tr>
            </dsp:oparam>
          
          </dsp:droplet>
          </table>
          <BR>
          <dsp:input bean="CartModifierFormHandler.addItemToOrder" type="submit"
          value="Add To Cart"/>
          </dsp:form>
          -RMishra

          Edited by: RMishra on Dec 21, 2012 3:24 PM