Developer forum

Forum » Development » Rebuilding assortments

Rebuilding assortments

Anders Ebdrup
Reply

Hi DW,

 

I have some issues when importing assortments:

  1. The assortments is only rebuilt with the EcomProvider - can this also be done with the DynamicwebProvider as we have a lot of data to import?
  2. It seems to me that the assortments is rebuilt after indexing the products which causes wrong informations to the be indexed

Please see this lines from the EcomProvider where indexing is done before rebuilding:

                writer.cleanRelationsTables(sqlTransaction);                            
                sqlTransaction.Commit();
                ABasePovider.KillAll();                
                UpdateProductIndex(job);
                writer.RebuildAssortments();

 

I hope for a soon fix for 8.6.1-branch as this causes some troubles for our client.

 

Best regards, Anders


Replies

 
Jonas Krarup Dam
Reply

Hi Anders,

That's not good enough.

I've created bugs for each item, to be implemented for the next 8.6.1 hotfix (if possible)

Regards, Jonas

 
Anders Ebdrup
Reply

Hi Jonas,

 

Thanks, sounds great. Will it be possible to add a notifier when rebuilding is done as it seems like I will have to manipulate this data?

 

Say you have these preconditions:

  • Assortments: A1 and A2
  • Products: P1 and P2
  • Clients (users/customers): C1 and C2.
    • C1 is in A1 and C2 is in A2

A1 and A2 have access to the group with the two products, but only A2 should be able to see P2.

 

Can I set this up in a standard way without needing a notifer to modify the data in EcomAssortmentItems?

 

Best regards, Anders

 
Jonas Krarup Dam
Reply

Hi Anders,

Such a notification can definitely be implemented, if it makes sense, but it should be a seperate item, not part of this bugfix. If you need it, please add a request to the feature request forum.

Your scenario is not really clear to me, but I'll give it a shot :-)

If you have two products that are in the same group, but you want some users to have access and other users to not have access to one of them, you will have to set up your assortment on the product level instead of the group level. That is, directly give user C1 access to an assortment (A1) containing product P1 and P2,  and give C2 access to a different assortment (A2) containing only P1.

Regards, Jonas

 

 
Anders Ebdrup
Reply

Hi again,

 

I will add is a feature request :-)

 

The thing is that they need to handle this on the group level as well because C3 in A3 should not have access to the group at all, and the products can be in many different groups, so this needs to be handled as well.

 

I know it is a bit tricky, and I have tried different work arounds, but I haven't succeeded yet...

Best regards, Anders

 
Kristian Kirkholt
Reply

Hi Anders

This feature has now been implementet in version 8.6.1.20

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

 

You must be logged in to post in the forum