Forums / Developer / Associate differents workflows to a differents site access.

Associate differents workflows to a differents site access.

Author Message

Ahmed Arous

Tuesday 25 January 2011 4:46:43 am

Hello,

i have 2 sites access and for each one i want to use a different payment Method (Sips, Cyberplus), to activate those methods i have to add a specific workflow to each site access on the same function shop->checkout->before. the problem is when i associate a workflow to a site access it's automaticly associated to the other one.

is it possible to separate trigger list of each site access ?

Gaetano Giunta

Tuesday 25 January 2011 8:31:00 am

Not that I know of, as these are stored in the database. You could only have them separate if the two siteaccess use separate dbs (ie. separate websites within one eZP install).

But you can create custom workflow events in php code and ikn it check the current siteaccess - abit long, I agree...

Principal Consultant International Business
Member of the Community Project Board

Carlos Revillo

Tuesday 25 January 2011 10:59:07 am

I haven't tested, but what will happen if using ActiveAccessExtensions? i mean, suppose you have one worklow defined in extension1 and another one in extension2.

Then in your siteaccess1 you have

ActiveAccessExtensions[]=extension1

and in your siteacces2 you have

ActiveAccessExtensions[]=extension2

and in your admin siteaccess you have both of them enabled.

will this work?

Ahmed Arous

Wednesday 26 January 2011 1:21:11 am

Hello,

Thanks for your responses.

I thought about that solution and when creating the workflow i had 2 choices :

- creating event for each payment gateway on the same workflow (2 events) : the first one is always exectued so it works for the site access where the payment gteway is activated and don't for the other.

- creating an event and chosing "All" the payment gateways : in this case when the user validate the basket he will be redirected to page where he can select the payment gateway and where there is only the active one, and now im looking for a way to avoid this page and automatically redirect the user to the payment page

Gaetano Giunta

Wednesday 26 January 2011 2:03:46 am

@Carlos that would lead to the incarnation of XUUL methinks

Principal Consultant International Business
Member of the Community Project Board