PDA

View Full Version : HOW TO: Singlepage order form with auto-scroll



diligent
05-15-08, 07:42 AM
Hello everyone, my first post here just thought I'd give my input about a few tricks I've used..

This one is where I wanted to put the order form inside of a Wrapper, using the single page layout WHMCS comes with. I didn't want scroll bars, but I liked the idea of the order form being dynamically loaded on the same page, so I edited the forms a bit to make it scroll automatically if needed.

You can see a working example on the order page of site in my sig..

Installation:

Download attached zip file
Extract zip and edit order-stepone.tpl, go to last line and change http://PATH-TO-WHMCS-DIRECTORY/
Backup the current "templates/orderforms/singlepage" directory
Replace singlepage directory with new files


You can adjust the speed of the scroll with the first line of the "scroll.js" file. Should be good to go :)

SoftDux
05-31-08, 10:19 AM
I jusy want to report that this script doesn't work on Firefox 2.0.0.14. The moment I open the order page, it scrolls right down to the bottom of the page, and I can't click on any of the top links.

diligent
05-31-08, 09:34 PM
I made this while running 2.0.0.14, because I mainly use Firefox... Can you get me a screenshot of the problem?

It's supposed to scroll to the bottom once you start filling in the form. I have my iframe set to auto-resize the height, so that when the form loads, it will show the entire form until you start filling in details, then will scroll down without resizing the iframe.

JasonO
06-02-08, 08:43 AM
I'm unable to access WHMCs at the moment to apply this and have a look. Does anyone have a demo?

Lethanialist
06-09-08, 06:02 PM
I'm able to use it, but my concern is that the script is completely functionless without JavaScript enabled. I know a lot of people, including myself, prefer not to have JavaScript enabled due to security issues.

Just a thought.

diligent
06-12-08, 02:39 AM
I'm able to use it, but my concern is that the script is completely functionless without JavaScript enabled. I know a lot of people, including myself, prefer not to have JavaScript enabled due to security issues.

Just a thought.

While this is true, it wouldn't be very hard to put in a link to a different order page..