Jump to content

WordPress and Data Feeds


Roger Pic

Recommended Posts

Dear  friends.

I'm really new on WHMCS (At least new on this I'm 63), I need to update some pages that I have developed with Wordpress from products that I've on WHMCS.

Is there anybody here that could point me the rigth direction? I don't want to use ready make plugIns I'd like to do by myself.

Regards

Rogerio

Link to comment
Share on other sites

On 09/09/2019 at 11:38, Roger Pic said:

Thank you Brian. Thats  my problem Í dont know how  call  those scripts  from WordPress 

you can add them to the content of the page - so if we take adding a product price as an example...

in the WordPress page editor....

rxLNmiK.png

and then when you publish/preview it, it will add the current price to the output..

r5COyXM.png

although as a general rule, you don't want to use too many feeds on the same page as it will slow the page down.

Link to comment
Share on other sites

  • 1 year later...
On 10/09/2019 at 8:38 PM, brian! said:

you can add them to the content of the page - so if we take adding a product price as an example...

in the WordPress page editor....

rxLNmiK.png

and then when you publish/preview it, it will add the current price to the output..

r5COyXM.png

although as a general rule, you don't want to use too many feeds on the same page as it will slow the page down.

hi brian tried this way but front output not coming https://s4talk.in/domains here is the image....

 

 

Screenshot 2021-06-06 at 7.04.51 PM.png

Link to comment
Share on other sites

On 06/06/2021 at 14:39, s4talk hosting said:

tried this way but front output not coming https://s4talk.in/domains here is the image....

any chance it's being blocked by a firewall rule etc ?

you could just add the code output from the feed directly into the WordPress page...

<form action="https://hosting.s4talk.in/domainchecker.php" method="post">
<input type="hidden" name="direct" value="true">www. 
<input type="text" name="domain" size="30">
<select name="ext">
<option>.com</option>
<option>.net</option>
<option>.org</option>
<option>.in</option>
<option>.biz</option>
<option>.info</option>
</select>
<input type="submit" value="Go">
</form>

that said, your existing basic domain search form should work if it had the correct URL and fields...

<form action="https://hosting.s4talk.in/domainchecker.php">Find your Domain: 
<input name="domain" size="20" type="text">
<input type="submit" value="Go">
</form>

BFSa1Ff.png

if you add the relevant CSS classes to your code, then it should look as it currently does on your site, but actually pass the search term to your WHMCS cart to begin the automatic domain lookup....

Link to comment
Share on other sites

Redirecting to the domain checker page or cart is the normal behavior as usually the client would want to then order an available domain.  If you want to provide a lookup only, you can use the DomainWhois API call to check and then go from there.   How to call that API is up to you but I suppose using a form with an listen event that has an ajax request to a data feed that then calls that API via the internal API might be the "easiest" method and the ajax then checking that result and displaying as needed.  

Link to comment
Share on other sites

14 hours ago, s4talk hosting said:

I want to fetch the datas from whmcs to wordpress pages like products,domains. i have installed whmcs under sub domain hosting.s4talk.in and wordpress under main domain s4talk.in, i have searched regarding this and got this document url here https://docs.whmcs.com/Data_Feeds is the url is the right one as per my above request?

using data feeds should work - I can view your domain pricing feed directly in the browser, but is seemingly blocked when trying to add it to a page.... I suspect this isn't a WHMCS issue itself, but either a WordPress redirection, htaccess or server issue.

seeing as your using WordPress, you might be better off taking a look at WHMPress and using that instead to access the WHMCS pricing, domain search etc... but be aware that it's not free!

13 hours ago, s4talk hosting said:

if i search the domain by using domain checker form in my wordpress page. am expecting to fetch the domain availability datas in the same url not in to the whmcs url.....

Steven is right in what he said on this - what you're seeing is what WHMCS does by default and what you're asking it to do (either using the data feed or in the default code), e.g pass the domain search term to the cart to begin a search in WHMCS and NOT on the WP page.

if you want to see the results on the WP page, then WHMPress would be an option... check out their demo.

alternatively, there would be free WP domain search extensions, e.g Ajax Domain Checker available from WordPress.... though I really do think in your case you might be better off investing in WHMPress or a WordPress theme for WHMCS - that's probably going to be a lot quicker and cheaper in the long run that trying to use data feeds.

Link to comment
Share on other sites

40 minutes ago, brian! said:

using data feeds should work - I can view your domain pricing feed directly in the browser, but is seemingly blocked when trying to add it to a page.... I suspect this isn't a WHMCS issue itself, but either a WordPress redirection, htaccess or server issue.

without whm press by using data feeds able to use like whm press?

 

 

40 minutes ago, brian! said:

alternatively, there would be free WP domain search extensions, e.g Ajax Domain Checker available from WordPress.... though I really do think in your case you might be better off investing in WHMPress or a WordPress theme for WHMCS - that's probably going to be a lot quicker and cheaper in the long run that trying to use data feeds.

you are saying setting data feed is very long  process you are suggesting to buy whmpress or wordpress theme for whmcs? and wordpress theme for whmcs will feed all the datas from whmcs without integration of whmpress?

Link to comment
Share on other sites

49 minutes ago, brian! said:

using data feeds should work - I can view your domain pricing feed directly in the browser, but is seemingly blocked when trying to add it to a page.... I suspect this isn't a WHMCS issue itself, but either a WordPress redirection, htaccess or server issue.

 

server asking evidence for blocking how to trouble shoot this one now?

Link to comment
Share on other sites

1 hour ago, brian! said:

using data feeds should work - I can view your domain pricing feed directly in the browser, but is seemingly blocked when trying to add it to a page.... I suspect this isn't a WHMCS issue itself, but either a WordPress redirection, htaccess or server issue.

am getting this verbose error violation message in chrome inspect here i have attached the screenshot....

Screenshot 2021-06-11 at 10.26.52 PM.png

Link to comment
Share on other sites

May be they are using one page checkout and cart url redirection of WHMCS?

1.is that able to fetch domain regiter like that brian? 

2.and i saw one article about login and logged out of urs is that  able to help fetch logged in logged out of users for login button?

i need feeds for domain register, login button, knowledgebase, support ticket and announcements 

Link to comment
Share on other sites

6 hours ago, S4hosting said:

May be they are using one page checkout and cart url redirection of WHMCS?

they are not using WHMCS for the cart - they have their billing solution (AMP).... lots of hosting companies have moved away from using WHMCS for their own billing over the last few years. 😎

https://www.inmotionhosting.com/support/billing/

their domain even fails the WHMCS license verification - that's no longer definitive anymore, but i'm sure they aren't using WHMCS - though they might still be resellers for them.

7 hours ago, S4hosting said:

1.is that able to fetch domain register like that brian? 

I have previously given you solutions, both free and commercial, to do that in WordPress - I suppose you could write a data feed to do it, but why bother when there are existing, and probably better, solutions available ?

7 hours ago, S4hosting said:

2.and i saw one article about login and logged out of urs is that  able to help fetch logged in logged out of users for login button?

again, WHMPress can handle different content based on the login status.

7 hours ago, S4hosting said:

i need feeds for domain register, login button, knowledgebase, support ticket and announcements 

do you? or is what you really need to integrate your main WordPress website into WHMCS so that they are styled the same and the user cannot tell if they're in WordPress or in WHMCS ?? hence why I said you should be looking at a theme, or optionally an integration specialist.

for WordPress themes, you could look in Marketplace - Zomex has designed some WordPress templates (and may be able to help with integration) - though there are other integration specialists out there... even WHMCS will do it themselves for a fee, but I wouldn't recommend using them.

with regards to using feeds for those 5 items, then they would have to be custom written - but as I have said previously, if you don't treat them as two separate sites, then you don't need to think of using feeds on the WordPress site to reproduce features of WHMCS.

in practical terms, you could use a feed to show a single announcement, or a kb article - but if you're thinking of using them to recreate the entire functionality of the knowledgebase or announcement sections, then that would not be a good use of a data feed.

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