Jump to content

WPCDN WHMCS Integration


WPCDN

Recommended Posts

How did you achieve this level of integration?

 

I see two issues:

 

  • Minor - Shopping Cart page title is duplicated
  • Major - Page layout fails miserably in IE because of a popup alerting user that some content is HTTPS and some not and if user clicks YES (I want to view only content delivered securely), it breaks apart...

Link to comment
Share on other sites

Hi All,

 

Thanks for the feedback.

 

How did you achieve this level of integration?

 

We ended up using the header/footer method, copying our site's HTML source into header.tpl and footer.tpl in our WHMCS theme. The main content on the support page is hard-coded into homepage.tpl. We wanted to avoid using a wrapper for various reasons mentioned in other threads.

 

When a client logs in, the login form is replaced by a client area menu.

 

Shopping Cart page title is duplicated

 

We are not sure why that happened, as the page titles just feed from the template files. We didn't notice this in initial testing, but we did do a last-minute switch to the Web 2.0 cart. We're looking at the cart template and our theme to find the reason for the duplication, and eliminate it.

Major - Page layout fails miserably in IE because of a popup alerting user that some content is HTTPS and some not and if user clicks YES (I want to view only content delivered securely), it breaks apart...

 

Thank you for this feedback. We are working on it now.

 

Thanks to everyone. Any additional comments will also be appreciated.

Link to comment
Share on other sites

Shopping Cart page title is duplicated

 

Fixed. I think this might be a cosmetic issue in the Web 2.0 cart? We didn't change any headers or anything that should have made "Shopping Cart" appear twice. We ended up removing that header entirely from the main cart template file, and the duplication went away.

 

Major - Page layout fails miserably in IE because of a popup alerting user that some content is HTTPS and some not and if user clicks YES (I want to view only content delivered securely), it breaks apart...

 

I think we've found the issue and fixed it. Testing continues...

 

Thanks again to everyone for your feedback.

Link to comment
Share on other sites

WPCDN - at some point could you provide some guidance to your integration so we may be able to achieve the same and avoid the pitfalls?

 

I initially found your post as I was looking into how I can integrate WHMCS pages with a WordPress website. Your site is the first succesful integration - particularly after your recent fixes - that I've seen. Also, which WordPress theme did you use and would switching themes preserve the integrity of your integration?

 

Greta job!

Link to comment
Share on other sites

Retry:

 

Strategerizer,

 

Thanks for the kind words.

 

WPCDN - at some point could you provide some guidance to your integration so we may be able to achieve the same and avoid the pitfalls?

 

Sure. I'm not sure how much you've tried yet, so please forgive me if I touch on things you already know.

 

In summary, we used the method of copying and pasting our site design (page source code) into the following WHMCS template files:

 

  • header.tpl - basically contains everything up to your main page content
  • homepage.tpl - contains the main page content
  • footer.tpl - contains everything after the main page content (including, in our case, the right column)

 

This method is essentially the same whether you're using WordPress, Joomla!, any other CMS, or just plain HTML. But here's how we did it in conjunction with WP:

 

  • We created a WordPress page (that appears in the main menu) called "Support".
  • In this WP page, we added all the content we want our main support portal to have. This page actually does not appear in the final site, but serves as a master for our integration.
  • In the early stages of our integration, we named our WHMCS folder something other than "support". This way, when we went to the "Support" menu item, we could access the WP page we created.
  • We copied the source code of the WP page, then renamed our WHMCS folder to "support". This makes the WHMCS system appear (instead of the WP page) when you click the "Support" menu link. WP will defer to a directory if there is one with the same name as a page.
  • We pasted the appropriate bits of code into the template files. Note that you may need to experiment and pay careful attention to closing <div> tags, etc. Be sure to clear the templates_c folder after uploading any changed files. Also note that you can easily edit the .tpl files by changing their extension for editing, then changing it back before uploading. Or you can use a program that edits them directly, for example we used gedit in Linux.

 

avoid the pitfalls

 

The SSL "mixed content" issue turned out to be an absolute link to our page background that one of our designers added during our CDN testing. That caused the background to be loaded as an http item instead of https. After we restored the original relative link, the issue went away.

 

which WordPress theme did you use

 

The Station from WooThemes.

 

would switching themes preserve the integrity of your integration?

 

The procedure would be the same, but you'd need to view the source of a page generated with the different theme, then copy and paste the appropriate parts into the template files. Of course, you can create multiple WHMCS templates by copying and renaming a template folder. So, if you change themes but want to keep the possibility of returning to the old one, create a new WHMCS template for each WP theme.

 

I hope this points you in the right direction. Please don't hesitate to ask for any additional information.

 

Best regards,

 

Mark

Link to comment
Share on other sites

Yeh I have found the same with posting in this forum, from time to time it says awaiting moderation and after waiting the post never appears. Odd setup somewhere I think.

 

I like the integration as its clean and the little details have been taken care of, but overall it is rather stock template style. Its clean and matches your site so thats a +1. :)

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

 

Our post above is somewhat of a step-by-step. There are other step-by-step posts in these forms and elsewhere on the web. The basic concepts are fairly easy, but sometimes it takes trial and error to get them to start working. Then it flows pretty easily.

 

Good luck!

 

Mark

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated