Jump to content

Customizing data feed output (Domain Pricing)


ITKoolKidd

Recommended Posts

Hello,

I am using the domain pricing  table data feed on my website and would like to remove the second column that has the number 1 in it. The idea is that the table would display Extension | New Registration Price | Renew Price | Transfer Price

domainfeed.png.55dbd0a8cf879d807cda86c663334a07.png

Thanks

Link to comment
Share on other sites

4 hours ago, ITKoolKidd said:

I am using the domain pricing  table data feed on my website and would like to remove the second column that has the number 1 in it. The idea is that the table would display Extension | New Registration Price | Renew Price | Transfer Price

you should just need to remove the line below from the feed (~ line 51)...

        $year,

and the part used to display the column heading...

<th>' . \Lang::trans('domainminyears') . '</th>

however, there's no point editing the existing domainpricing.php file as any changes you make to it will get overwritten during a WHMCS update - therefore, duplicate the feed file, remove the above line and save it with a different filename - and then reference that new feed filename in your main website.

Link to comment
Share on other sites

12 hours ago, brian! said:

you should just need to remove the line below from the feed (~ line 51)...


        $year,

That's what I thought, but when I remove that line the table doesn't get populated. So I gave it a break and tried again today with some fresh eyes, you also need to remove the html for the 2nd column on line 49 


<td>%d</td>

Thanks @brian!

Also yes I am using a copy of domainpricing.php

 

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