Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Form processor : how to...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-16-2004, 01:31 AM
 
FX FX is offline
 

Member
  
Join Date: May 2004
Location: US
Posts: 12
 

Default 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
Reply With Quote
  #2  
Old 06-17-2004, 06:35 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,091
 

Default

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
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #3  
Old 09-21-2004, 08:58 AM
 
subidu subidu is offline
 

Newbie
  
Join Date: Apr 2004
Posts: 9
 

Default

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
Reply With Quote
  #4  
Old 09-21-2004, 09:02 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,091
 

Default

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
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #5  
Old 09-21-2004, 09:20 AM
 
subidu subidu is offline
 

Newbie
  
Join Date: Apr 2004
Posts: 9
 

Default

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...
Reply With Quote
  #6  
Old 09-21-2004, 10:08 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,091
 

Default

Great. Glad you got it figured out.

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:18 PM.

   

 
X-Cart forums © 2001-2020