• Online Demo
  • 30-day Free Trial

Go Back   Blesta Forums > Developer Corner > API & Order Forms

Reply
 
Thread Tools Display Modes
  #1  
Old 08-10-2010, 07:10 PM
OkTeck OkTeck is offline
Junior Member
 
Join Date: Aug 2010
Location: Ottawa, Ontario, Canada
Posts: 2
Default Where do we create our OWN Order Form templates?

Hey guys,

I tried copying the "order_forms/general/" to "order_forms/okteck/" but it doesn't appear in Wizard to create Order Forms. Is this normal? Is there a way to create my own type of form without having to modify/tweak the default forms?

Thanks!
Reply With Quote
  #2  
Old 08-11-2010, 04:38 PM
Paul's Avatar
Paul Paul is offline
Blesta Developer
 
Join Date: Apr 2006
Location: Wherever I go, there I am.
Posts: 1,464
Send a message via AIM to Paul Send a message via MSN to Paul
Default

You can create your own, but it's usually a good idea to study an existing order form template. Essentially there are 2 types of order forms.. Integrated order forms which use order templates in the order_forms directory and API based order forms that use the API.

The reason that copying an order template didn't make it appear as an option in Blesta is likely that you didn't change the name of the class file, and the name of the class.
__________________
Paul
Misc Stuff Guy

Blesta
Professional Billing
www.blesta.com
Reply With Quote
  #3  
Old 02-09-2011, 12:28 PM
PositionOne PositionOne is offline
Junior Member
 
Join Date: Feb 2011
Posts: 6
Unhappy Yes but...

Can you point me in the direction of a walk-through of exactly how you create a custom order form?

All I want to do for now is set up Hosting only order forms, but I'm totally confused by the way things appear to work.

I can copy the order_forms/subdirectory, but exactly how does the template fit together? What bits are editable? Where do I start?

Also, re the API, where is the documentation which details all the calls, etc? In particular as to how the Order process is controlled?

This is really holding me back to the point that I've almost given up...
Reply With Quote
  #4  
Old 02-09-2011, 01:14 PM
naja7host's Avatar
naja7host naja7host is offline
Senior Member
 
Join Date: May 2007
Posts: 688
Default

You can check the folder api_samples in blesta directory to see a example of multible files .
Reply With Quote
  #5  
Old 02-09-2011, 10:12 PM
PositionOne PositionOne is offline
Junior Member
 
Join Date: Feb 2011
Posts: 6
Default

Yes, I've seen those, but that doesn't tell me anything other than what I can already glean.

What template elements are editable?
What calls are required, and to where, to ceate an API order form and what syntax is required? Variable values?
What authentication is required if called from a remote server?

The documentation is seriously lacking here.

All I want is a simple step-by-step process explaining how to create a custom order form via the API. That really isn't too much to ask is it?
Reply With Quote
  #6  
Old 02-09-2011, 11:44 PM
naja7host's Avatar
naja7host naja7host is offline
Senior Member
 
Join Date: May 2007
Posts: 688
Default

in this foled , you will find another folder named order , there you will find the tempaltes folder for every step , also included a order php class with step . i think if you have check all this file you will find a good way to code your own order via API or at least modify the default one to a custom need .
Reply With Quote
  #7  
Old 02-10-2011, 02:19 AM
Paul's Avatar
Paul Paul is offline
Blesta Developer
 
Join Date: Apr 2006
Location: Wherever I go, there I am.
Posts: 1,464
Send a message via AIM to Paul Send a message via MSN to Paul
Default

If you want to do a hosting only order form, we recommend using the "General" order template.

Writing custom integrated, or API based order forms is no easy task, and requires extensive programming knowledge.
__________________
Paul
Misc Stuff Guy

Blesta
Professional Billing
www.blesta.com
Reply With Quote
  #8  
Old 02-10-2011, 07:35 PM
PositionOne PositionOne is offline
Junior Member
 
Join Date: Feb 2011
Posts: 6
Default

I guess I'll have to leave Blesta until the API is documented.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
API Sample Order Form davidolaj API & Order Forms 1 07-05-2009 10:50 PM
API Order Form davidolaj General Discussion 3 05-08-2009 03:11 PM
Integrated order form suggestions FB-Ryan Feature Requests 7 04-12-2009 06:35 PM
Order Form - Again naja7host API & Order Forms 4 12-20-2008 12:33 PM
Configuring Your Order Form (version 1.1.0-1.3.3) Cody API & Order Forms 2 09-13-2007 07:17 PM


All times are GMT. The time now is 06:15 AM.