Jump to content

Fetch Domain names and Prices


Recommended Posts

19 hours ago, ksammy2000 said:

I want to know how to fetch domain names TLDs and prices from my WHMCS to my website.

the usual way would be to use the Domain Pricing Table data feed - though you may have to play with the CSS to get it suitable for your site.

19 hours ago, ksammy2000 said:

I also want to know if it can be done for products/services too.

there are other similar data feed examples on the above docs page that shows you how to pull product names, descriptions and prices.

Link to comment
Share on other sites

7 minutes ago, ksammy2000 said:

But please, how can I add a register button here so that clients can easily click on them to register

you would need to edit the domainpricing.php data feed code, or more accurately, duplicate the code into a new file and edit the duplicate.

though bear in mind that you can't easily search for specific TLDs in the cart, e.g you can't add a register button to the feed for .com that only searches .com domains - so those buttons would just be a generic link to the domain cart page.

Link to comment
Share on other sites

5 minutes ago, ksammy2000 said:

But how can I show more of the .net TLD shown up there?

they're known as Spotlight TLDs and you can add additional, upto a total of 8...

https://docs.whmcs.com/Domain_Pricing#Spotlight_TLDs

Quote

Spotlight TLDs

The Spotlight TLDs feature is used to highlight specific TLDs on the domain results page, the first suggested result for the spotlighted TLD will appear in highlighted boxes directly below the client's check result. Select the TLDs you wish to bring to prominence on the results page and clients can easily add these to their shopping cart with a single click.

Spotlight_TLD.png
 
Managing Spotlight TLDs

To add a Spotlight TLD:

  • Click the lightbulb icon next to the TLD you wish to spotlight
  • It will then appear in the Spotlight TLD section at the top of the page
  • Repeat this process for up to 8 TLDs
  • Spotlighted TLDs can be dragged left and right to change the order in which they appear on the domain results page.

To remove a Spotlight TLD

  • Click the X next to the TLD in the Spotlight section at the top of the page
  • The TLD is now removed from the spotlight section on the domain results page

For information on adding logos for Spotlight TLDs that do not already have a PNG logo file in the /assets/img/tld_logos folder or applying custom styling, please refer to https://docs.whmcs.com/Domain_Pricing_Matrix#Spotlight_Extensions

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.

×
×
  • 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