Web integration

Started by davidhernando, September 18, 2013, 03:18:49 PM

davidhernando

Hello,

I would like to integrate Hostbill contents in another web. For instance I would like to add a product comparison table rendered by Hostbill in a Hosting description page of a website that it's not Hostbill but drupal.

How can I accomplish that? Some hints?

Thank you all.

David

zero0097

I don't know if you can take a rendered table from hostbill to your drupal page, but you can take the content of the table (only the data), and then in drupal with that given data make a table. To do that you can use the HostBill API, you'll find a lot of functions to retrieve some data that you can use to build your comparison table in your drupal site, the only thing you need is register the IP in which your drupal site runs inside the security tab in your HostBill Panel to use the API.

tallship

#2
Another option is to create the graphics you want in place them as image maps pointing to direct cart links within your Drupal pages.

To do this you need to install the Direct Cart Links module in HostBill and then when you visit the order page you can see the actual URL for that particular direct cart link.

Here's a video: http://extras.hostbillapp.com/new-plugin-custom-direct-cart-links/

And another: http://blog.hostbillapp.com/2011/10/03/direct-order-link-plugin-few-updates-from-hostbill-dev-team/

I hope that helps :)

Kindest regards,
Bradley D. Thornton - Manager Network Services, NorthTech Computer   TEL: +1.310.388.9469 (US) | +44.203.318.2755 (UK) | +61.390.088.072 (AU) | +41.43.508.05.10 (CH)
Registered Linux User #190795 - "Ask Bill why the string in [MS-DOS] function 9 is terminated by a dollar sign. Ask him, because he can't answer. Only I know that." - Dr. Gary Kildall.

nibb

There is no easy to way to do that.

If its rendered by Hostbill, it cannot render in another server or website.

You could always load the data externally from the other site, but it means the other server needs access privileges which I don“t think is what you want.

If its just loading the CSS, Javascripts, etc, its a complete mess, because it would be easier to create this data on your than just trying to pull it externally.

Hostbill controls its data by accessing your database, so unless the other website has access to it, its not that simple, or secure.

Just make an iframe or some ajax calls that pull this directly from the page. First one is easy, second one may require more work.

tallship

Quote from: nibb on September 28, 2013, 10:54:56 PMJust make an iframe or some ajax calls that pull this directly from the page. First one is easy, second one may require more work.

The iframe is easy to do in Drupal, and would be another method, but you may have to contend w/scrollbars, and I'm not sure what the behavior would be during checkout either.

I *think* the hostbill way, would be to just take screenshots of those graphics on the hostbill order page, and use them as image maps that link to your custom direct cart links as in the example I gave above.

Let us know how the iframe method works for you if you go the route that Nibb suggested as an option - I'm especially interested in hearing about about how well the checkout process works that way.
Bradley D. Thornton - Manager Network Services, NorthTech Computer   TEL: +1.310.388.9469 (US) | +44.203.318.2755 (UK) | +61.390.088.072 (AU) | +41.43.508.05.10 (CH)
Registered Linux User #190795 - "Ask Bill why the string in [MS-DOS] function 9 is terminated by a dollar sign. Ask him, because he can't answer. Only I know that." - Dr. Gary Kildall.

tallship

I have a couple of other suggestions you might want to take a look at. Let us know how it works for you and how you work it into the flow of your business process okay?

First, there's the HBSlider module you can activate: http://hostbillapp.com/features/apps/hb_slider.html

Then, there's the "Integrator" module, which doesn't really have much in the way of docs or explanations except for this:

Quote
Integrator
Activate
Module Name: HTML Integration
        Version: 1
        Filename: class.integrator.php
                Description: Generate HTML code to put into your current website, and integrate with HostBill easily.
Bradley D. Thornton - Manager Network Services, NorthTech Computer   TEL: +1.310.388.9469 (US) | +44.203.318.2755 (UK) | +61.390.088.072 (AU) | +41.43.508.05.10 (CH)
Registered Linux User #190795 - "Ask Bill why the string in [MS-DOS] function 9 is terminated by a dollar sign. Ask him, because he can't answer. Only I know that." - Dr. Gary Kildall.