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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 19:51:06
Script start
Timing: Jan 30 2025 19:51:06
Module start 'layout'
Timing: Jan 30 2025 19:51:06
Module start 'content'
Timing: Jan 30 2025 19:51:08
Module end 'content'
Timing: Jan 30 2025 19:51:08
Script end

Main resources:

Total runtime1.7570 sec
Peak memory usage8,192.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 588.3906151.2422
Module start 'layout' 0.00780.0057 739.6328220.7578
Module start 'content' 0.01361.7427 960.39064,498.6406
Module end 'content' 1.75630.0007 5,459.031311.7813
Script end 1.7570  5,470.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.1990160.0002
Check MTime0.00120.0708160.0001
Mysql Total
Database connection0.00060.036710.0006
Mysqli_queries1.661194.5401650.0256
Looping result0.00070.0376630.0000
Template Total1.677495.520.8387
Template load0.00200.114520.0010
Template processing1.675495.354320.8377
Template load and register function0.00140.080110.0014
states
state_id_array0.00360.205810.0036
state_identifier_array0.00220.123920.0011
Override
Cache load0.00160.0935270.0001
Sytem overhead
Fetch class attribute can translate value0.00180.104530.0006
Fetch class attribute name0.00200.113160.0003
XML
Image XML parsing0.00100.056430.0003
class_abstraction
Instantiating content class attribute0.00000.001370.0000
General
dbfile0.00200.1145160.0001
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs