Developer forum

Forum » Integration » Issue with group sorting

Issue with group sorting

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I have the XML as show below that contains product data, a group sorting and a comma separated list of group IDs. It all works fine, except for the group sorting. No matter what's in GroupSorting, it always ends up as 0 in the database. Is this a limitation when using multiple groups or is this a bug?

Thanks,

Imar

 

  <table tableName="EcomProducts">
    <item table="EcomProducts">
      <column columnName="ProductID"><![CDATA[170032]]></column>
      <column columnName="ProductType"><![CDATA[0]]></column>
      <column columnName="ProductPriceType"><![CDATA[0]]></column>
      <column columnName="ProductLanguageID"><![CDATA[LANG1]]></column>
      <column columnName="ProductNumber"><![CDATA[170032]]></column>
      <column columnName="ProductName"><![CDATA[BOXX Premium Support 1 Year (Years 2 and 3 Standard) - US and Canada Only]]></column>
      <column columnName="HasPdfInCart"><![CDATA[0]]></column>
      <column columnName="GroupSorting"><![CDATA[2]]></column>
      <column columnName="PrimaryGroup"><![CDATA[GROUP92]]></column>
      <column columnName="Active"><![CDATA[true]]></column>
      <column columnName="ProductStock"><![CDATA[10]]></column>
      <column columnName="ProductPrice"><![CDATA[0]]></column>
      <column columnName="ProductLongDescription"><![CDATA[]]></column>
      <column columnName="ProductImageLarge"><![CDATA[]]></column>
      <column columnName="BasicConfigurationSpecs"><![CDATA[]]></column>
      <column columnName="LeadTimeInDays"><![CDATA[6]]></column>
      <column columnName="ProductIsImported"><![CDATA[true]]></column>
      <column columnName="AlternateProductLink"><![CDATA[]]></column>
      <column columnName="Groups"><![CDATA[GROUP101,GROUP92]]></column>
    </item>
    <item table="EcomProducts">
      <column columnName="ProductID"><![CDATA[170060]]></column>
      <column columnName="ProductType"><![CDATA[0]]></column>
      <column columnName="ProductPriceType"><![CDATA[0]]></column>
      <column columnName="ProductLanguageID"><![CDATA[LANG1]]></column>
      <column columnName="ProductNumber"><![CDATA[170060]]></column>
      <column columnName="ProductName"><![CDATA[3 Year Standard Warranty]]></column>
      <column columnName="HasPdfInCart"><![CDATA[0]]></column>
      <column columnName="GroupSorting"><![CDATA[1]]></column>
      <column columnName="PrimaryGroup"><![CDATA[GROUP92]]></column>
      <column columnName="Active"><![CDATA[true]]></column>
      <column columnName="ProductStock"><![CDATA[10]]></column>
      <column columnName="ProductPrice"><![CDATA[0]]></column>
      <column columnName="ProductLongDescription"><![CDATA[]]></column>
      <column columnName="ProductImageLarge"><![CDATA[]]></column>
      <column columnName="BasicConfigurationSpecs"><![CDATA[]]></column>
      <column columnName="LeadTimeInDays"><![CDATA[1]]></column>
      <column columnName="ProductIsImported"><![CDATA[true]]></column>
      <column columnName="AlternateProductLink"><![CDATA[]]></column>
      <column columnName="Groups"><![CDATA[GROUP101,GROUP92]]></column>
    </item>
   .....


Replies

 
Jonas Krarup Dam
Reply

Hi Imar,

You need to have the sorting in the "GroupSorting" column,

 

Assuming you have groups "Group1,Group2,Group3" and groupSorting "1,3,2"

They will end up imported in the roder "group1, group3, group2".

looking at it now, it would probably make more sense to simply use the order that they are in (when one isn't specified), but clearly we didn't think of that when doing the implementation.

 

Regards, Jonas

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Great, thank you. I'll give that a try. I currently have just a single sorting in GroupSort, even when I have multipe groups.

Imar

 

You must be logged in to post in the forum