Passing custom parameters from shop/userregister

Author Message

Igor Vrdoljak

Monday 16 July 2007 9:33:47 am

Hi

I need to pass a custom parameter to workflow event that activates on "before confirm" trigger, from shop/userregister.tpl template.

I tried adding a custom input field to HTML form on shop/userregister.tpl, but I can not get that parameter using eZHTTP in workflow event code (there is a redirection in between, and post data is lost).

Is there a clean way of passing parameters from shop/userregister.tpl to "before confirm" workflow event, without changing kernel files (I can add aditional XML field to shopaccount data, but then I need to change kernel/shop/userregister.php, and I don't want to do that).

Thanx in advance

http://www.netgen.hr/eng
http://twitter.com/ivrdoljak

Heath

Monday 16 July 2007 1:00:50 pm

Why not instead create an module extension? This would allow you to create the customizations you need without modifying the kernel. You could create a copy of the shop module within an extension and then edit as needed the userregister view.

Cheers!

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Igor Vrdoljak

Tuesday 17 July 2007 1:17:09 am

Yes, that is always a possible solution. But, the problem here is that we are on really tight budget (and schedule), and passing custom parameters from shop/userregister is the only modificiation on shop module needed.

So, it seems to me like a rather drastic solution for such a minor funcionality.

Thnx

http://www.netgen.hr/eng
http://twitter.com/ivrdoljak

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 18 2025 21:04:46
Script start
Timing: Jan 18 2025 21:04:46
Module start 'layout'
Timing: Jan 18 2025 21:04:46
Module start 'content'
Timing: Jan 18 2025 21:04:46
Module end 'content'
Timing: Jan 18 2025 21:04:46
Script end

Main resources:

Total runtime0.0158 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.0469152.6406
Module start 'layout' 0.00490.0030 740.687539.4766
Module start 'content' 0.00790.0061 780.164193.2734
Module end 'content' 0.01400.0018 873.437534.3047
Script end 0.0158  907.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002616.2113140.0002
Check MTime0.00117.0144140.0001
Mysql Total
Database connection0.00074.384710.0007
Mysqli_queries0.002616.756530.0009
Looping result0.00000.101210.0000
Template Total0.00148.610.0014
Template load0.00074.174810.0007
Template processing0.00074.422510.0007
Override
Cache load0.00052.894010.0005
General
dbfile0.001710.782880.0002
String conversion0.00000.040840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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