X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Form processor : how to... (https://forum.x-cart.com/showthread.php?t=8117)

FX 06-16-2004 01:31 AM

Form processor : how to...
 
Hello,
Does anyone know if form processor can be implemented in 3.5.x similar to Contact Us?

I want to create form for RMA (return merchandize authorization) just like Contact Us form but with different field names, validation and stuff, and I want to keep Contact Us form.
Could you please point me to what files needs to be edited/added to create additional processing form.

thank you

BCSE 06-17-2004 06:35 AM

You can do this if you understand php and smarty. Just use the contact us form as a template for what you want to do.

Carrie

subidu 09-21-2004 08:58 AM

I've tried to use contactus form as a template, but the system simply doesn't recognize new template!?

I want to make "user_testing_survey.tpl", and I assume that I have to do something with the following part of the code...

Quote:

{if $smarty.get.mode eq "update"}
<table width=100% border=0 cellspacing=0 cellpadding=2>
<form action="help.php?section=contactus&mode=update&act ion=contactus" method=post name=registerform>

....and to change "contactus" to "user_testing_survey".

But, of course, nothing happens. What else do I need to do (beside changing fields, which I know how to do).

Can somebody help me?

Regards,
Ivan

BCSE 09-21-2004 09:02 AM

Smarty will also need to know which template to display. If you're trying to show something on the customer side, look in skin1/customer/home_main.tpl There you will need to put similar code to this:

{elseif $main eq "user_testing_survey"}
{include file="path_to/user_testing_servey.tpl}

Hope that helps.

Carrie

subidu 09-21-2004 09:20 AM

Since it all happens in HELP section, I did what you suggested, but in index.tpl file of HELP section.

I added:

Quote:

{elseif $section eq "user_testing_survey"}
{include file="help/user_testing_survey.tpl"}

And it works!!

Thanks a lot...

BCSE 09-21-2004 10:08 AM

Great. Glad you got it figured out. :)

Carrie


All times are GMT -8. The time now is 10:21 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.