<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: How to get CartSession, Iterate the list of carts in session and add new custom attributes for one of them? in CRM and CX Q&amp;A</title>
    <link>https://community.sap.com/t5/crm-and-cx-q-a/how-to-get-cartsession-iterate-the-list-of-carts-in-session-and-add-new/qaa-p/12071292#M408604</link>
    <description>&lt;P&gt;I am assuming you only need to know how you can add any new custom attribute in cart entry,
&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2019 15:44:11 GMT</pubDate>
    <dc:creator>rohit31_raj92</dc:creator>
    <dc:date>2019-07-03T15:44:11Z</dc:date>
    <item>
      <title>How to get CartSession, Iterate the list of carts in session and add new custom attributes for one of them?</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/how-to-get-cartsession-iterate-the-list-of-carts-in-session-and-add-new/qaq-p/12071290</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I need your help to show how could I iterate a list of cart in session, and add new attribute values for one of them, &lt;/P&gt;
&lt;P&gt;I need to extend the cartentry to have new atrributes, and save new attributes in model. &lt;/P&gt;
&lt;P&gt;Thank you!
&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 21:35:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/how-to-get-cartsession-iterate-the-list-of-carts-in-session-and-add-new/qaq-p/12071290</guid>
      <dc:creator>former_member615069</dc:creator>
      <dc:date>2019-07-02T21:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get CartSession, Iterate the list of carts in session and add new custom attributes for one of them?</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/how-to-get-cartsession-iterate-the-list-of-carts-in-session-and-add-new/qaa-p/12071291#M408603</link>
      <description>&lt;P&gt;Hi  &lt;/P&gt;
&lt;P&gt;You need to add new attributes in AddToCartParams &amp;amp; CommerceCartParameter , 
and get the values into CommerceCartParameter by override the cart facade once values are passed from controller to facade in and saved to AddToCartParams  and pass the parameters to service where you can pass the parameter values to cart strategy (CommerceAddToCartStrategy) and  save value in the strategy class(in cart entry model or cart model)  .&lt;/P&gt;
&lt;P&gt;You can reference if qty attribute which is passed from Controller to Strategy(service) and value is saved in cart models.&lt;/P&gt;
&lt;P&gt;AddToCartController--&amp;gt;DefaultCartFacade---&amp;gt; CommerceCartService--&amp;gt;CommerceAddToCartStrategy&lt;/P&gt;
&lt;P&gt;Thanks
&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 22:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/how-to-get-cartsession-iterate-the-list-of-carts-in-session-and-add-new/qaa-p/12071291#M408603</guid>
      <dc:creator>rohit31_raj92</dc:creator>
      <dc:date>2019-07-02T22:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get CartSession, Iterate the list of carts in session and add new custom attributes for one of them?</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/how-to-get-cartsession-iterate-the-list-of-carts-in-session-and-add-new/qaa-p/12071292#M408604</link>
      <description>&lt;P&gt;I am assuming you only need to know how you can add any new custom attribute in cart entry,
&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 15:44:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/how-to-get-cartsession-iterate-the-list-of-carts-in-session-and-add-new/qaa-p/12071292#M408604</guid>
      <dc:creator>rohit31_raj92</dc:creator>
      <dc:date>2019-07-03T15:44:11Z</dc:date>
    </item>
  </channel>
</rss>

