Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 03-09-2014 12:58:08

mixer25
Member
From: Ireland
Registered: 04-02-2006
Posts: 601

Form to go back to cart after submission?

I was wondering where I would program a form (just one of them) to go back to the cart after rather than show the:

<b>Thank you. The information you submitted has been processed. Your information will be reviewed immediately and you will receive a reply if required.</b>

If its not possible, is it then possible to change the above standard text and possibly add a button?

Thanks

Offline

 

#2 03-10-2014 10:53:09

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Form to go back to cart after submission?

You could edit the dynamic form confirmation script to do this.  Edit the file {private}/apps/cms/CMS_DynForm/CMS_DynForm.php.  In the function dynform_proc() at the bottom, look for:

Code:

return $this->exec_namespace(array('app'       => 'cms',
                                   'namespace' => 'genericconf',
                                   'type'      => '*',
                                   'params'    => null));

Change to:

Code:

$this->exec_namespace(array('app'       => 'cms',
                            'namespace' => 'genericconf',
                            'type'      => '*',
                            'params'    => null));

return $this->exec_namespace(array('app'       => 'ecom',
                                   'namespace' => 'viewcart',
                                   'type'      => '*',
                                   'params'    => null));

Nick Hendler

Offline

 

#3 03-12-2014 19:30:52

mixer25
Member
From: Ireland
Registered: 04-02-2006
Posts: 601

Re: Form to go back to cart after submission?

Cool, almost it returns to viewcart rather than checkout, I take it I change the namespace, but to what?

Offline

 

#4 03-13-2014 08:31:57

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Form to go back to cart after submission?

Namespace would be 'checkout' not 'viewcart'.


Nick Hendler

Offline

 

#5 03-16-2014 12:27:41

mixer25
Member
From: Ireland
Registered: 04-02-2006
Posts: 601

Re: Form to go back to cart after submission?

Fantastic, works really well... as I am doing a VAT return form, is it possible to change the end text which says:

"Thank you. The information you submitted has been processed. Your information will be reviewed immediately and you will receive a reply if required"

and if I do will this change other form sendings too?

Last edited by mixer25 (03-16-2014 12:43:33)

Offline

 

#6 03-17-2014 08:29:13

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Form to go back to cart after submission?

Look in the code above where you just edited for a print_messag() call.  That's what's printing tat message.  You might want to comment that out and print your own message in the code.


Nick Hendler

Offline

 

Board footer