Forums / Developer / Passing custom parameters from shop/userregister

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