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

eZ debug

Timing: Jan 18 2025 03:05:07
Script start
Timing: Jan 18 2025 03:05:07
Module start 'content'
Timing: Jan 18 2025 03:05:07
Module end 'content'
Timing: Jan 18 2025 03:05:07
Script end

Main resources:

Total runtime0.1568 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.1016180.8047
Module start 'content' 0.00730.0056 769.906398.0234
Module end 'content' 0.01290.1439 867.9297526.1563
Script end 0.1568  1,394.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00372.3892200.0002
Check MTime0.00140.8652200.0001
Mysql Total
Database connection0.00090.552310.0009
Mysqli_queries0.110970.73491410.0008
Looping result0.00140.91951390.0000
Template Total0.143591.510.1435
Template load0.00080.510210.0008
Template processing0.142791.020210.1427
Override
Cache load0.00060.374910.0006
Sytem overhead
Fetch class attribute can translate value0.00070.451510.0007
XML
Image XML parsing0.00020.155110.0002
General
dbfile0.00352.2142200.0002
String conversion0.00000.006230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs