Jump to content

Multiple Order Forums On Client Portal


Daniel B

Recommended Posts

Updated to the version 3.2 Portal!

 

I believe that Paul mentioned somewhere that they are currently working on a better method for allowing clients to place multiple orders (domain + hostng, etc) from one order page...but until then, I figured I would share my portal page edits with everyone.

 

This rearranges things a little bit, and then adds a separate link for different order forms...to allow clients to pick which one they want directly from the portal page.

 

(in this example, the Register link will be whatever you set as the default order form...so I would suggest creating a registration order form for this).

 

You can of course add in as many order forms as you want, it should be fairly obvious how to do so if you read the code...however, if anyone has any trouble, I'm happy to help generate the needed code for your specific situation :).

 

End Result:

 

hTD1NQQ.png

 

In order to implement this:

 

Go to Settings > Plugins > Manage Portal

 

the replace the Index Page Content with the below:

(you will need to edit the direct links to each of your order forums, the example below is for my site...you'll have different links)

 

    {% if plugins.order %}<div class="col-md-4 col-sm-6 portal-box">
        <a href="{blesta_url}order/">
            <div class="well">
                <i class="fa fa-cogs fa-4x"></i>
                <h4>Register</h4>
                <p>Don't have an account?  Create one now.  Or you can create one while ordering a package later.</p>
            </div>
        </a>
    </div>{% endif %}
    <div class="col-md-4 col-sm-6 portal-box">
        <a href="{client_url}login/">
            <div class="well">
                <i class="fa fa-cogs fa-4x"></i>
                <h4>My Account</h4>
                <p>Have an account with us? Log in here to manage your account.</p>
            </div>
        </a>
    </div>
    {% if plugins.support_manager %}<div class="col-md-4 col-sm-6 portal-box">
        <a href="{client_url}plugin/support_manager/client_tickets/add/">
            <div class="well">
                <i class="fa fa-ticket fa-4x"></i>
                <h4>Support</h4>
                <p>Looking for help? You can open a trouble ticket here.</p>
            </div>
        </a>
    </div>{% endif %}
    {% if plugins.download_manager %}<div class="col-md-4 col-sm-6 portal-box">
        <a href="{client_url}plugin/download_manager/">
            <div class="well">
                <i class="fa fa-download fa-4x"></i>
                <h4>Download</h4>
                <p>You may need to be logged in to access certain downloads here.</p>
            </div>
        </a>
    </div>{% endif %}
    {% if plugins.order %}<div class="col-md-4 col-sm-6 portal-box">
        <a href="{blesta_url}order/main/packages/shared/?group_id=1">
            <div class="well">
                <i class="fa fa-shopping-cart fa-4x"></i>
                <h4>Order Shared Hosting</h4>
                <p>Start your presence on the web, order a web hosting package today!</p>
            </div>
        </a>
    </div>
    <div class="col-md-4 col-sm-6 portal-box">
        <a href="{blesta_url}order/main/packages/reseller/?group_id=2">
            <div class="well">
                <i class="fa fa-shopping-cart fa-4x"></i>
                <h4>Order Reseller Hosting</h4>
                <p>Shared hosting not enough for you, need to host your own clients?  A Reseller plan will be perfect.</p>
            </div>
        </a>
    </div>
    <div class="col-md-4 col-sm-6 portal-box">
        <a href="{blesta_url}order/config/preconfig/domains">
            <div class="well">
                <i class="fa fa-shopping-cart fa-4x"></i>
                <h4>Order a Domain Name</h4>
                <p>It's always good to have your own place on the net...so get your domain before someone else does.</p>
            </div>
        </a>
    </div>{% endif %}
Edited by Daniel B
Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

You need a order form with the type: Client Registration.

 

-facepalms- I should've realized that. Thanks for the pointer.

 

Changed my portal about to look much better. Man, I keep forgetting how customizable Blesta is... WHMCS is not exactly as easily customizable, really. Thanks for the guide to customizing the portal.

Link to comment
Share on other sites

-facepalms- I should've realized that. Thanks for the pointer.

 

Changed my portal about to look much better. Man, I keep forgetting how customizable Blesta is... WHMCS is not exactly as easily customizable, really. Thanks for the guide to customizing the portal.

 

This is only the beginning.

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...
  • 2 months later...
  • 1 month later...

Awesome! This will solve the issue I'm having with order forms. Thanks Daniel!

 

Not a problem at all, your issue is what made me remember to update it :).

 

If you need any help getting it setup for your site, let me know.  Should be pretty straightfoward to edit the appropriate links though.

Link to comment
Share on other sites

  • 6 months later...
  • 5 months later...
  • 3 months later...

Hi,

 

I'm playing around with this code on my site (new to Blesta) and trying to rearrange the portal boxes, but every so often I stumble upon an error where the home page simply will not load. As far as I know I am copy and pasting the correct sections of code, or am I?

 

Is it normal behaviour for errors in the portal plugin code to trigger this type of error?

post-11440-0-73445600-1443304370_thumb.j

Link to comment
Share on other sites

Hi,

 

I'm playing around with this code on my site (new to Blesta) and trying to rearrange the portal boxes, but every so often I stumble upon an error where the home page simply will not load. As far as I know I am copy and pasting the correct sections of code, or am I?

 

Is it normal behaviour for errors in the portal plugin code to trigger this type of error?

 

The screenshot you included indicates the error is with the tags you are using in the portal. i.e. you have a {% if .... %} tag but no subsequent {% endif %} tag that follows it. It's important to ensure the tag syntax is valid.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...