Jump to content

html template customization


1web

Recommended Posts

Hi Guys

 

I was browsing the documentation some time back and seen that there was a way of adding a link or html to your templates that synced product pricing so when I update it on my whmcs it will update on my html templates can any one point me in the right direction

 

 

Many Thanks

Link to comment
Share on other sites

I suspect that you're talking about Data Feeds. :idea:

 

Hi Brian. That is exactly what i was looking for thank you. My next question is where do I add the source code to this i want to add pricing and product name

 

<!--

*******************

HOSTING PLANS

*******************

-->

 

<div class="hosting-plans pricing classic">

<div class="container">

<div class="row">

<div class="col-sm-12 no-padding-sm">

<div class="table-responsive">

<table class="table">

<thead>

<tr>

<td></td>

<td>

<div class="title"><script language="javascript" src="feeds/productsinfo.php?pid=1&get=name"></script></div>

 

<div class="price"><sup>$</sup>3.49<span class="period">/mo</span></div>

 

<div class="info">Sed ut perspiciatis unde omnis iste<br />

natus error sit voluptatem</div>

<a class="btn" href="">get started</a></td>

<td>

<div class="title">Professional</div>

 

<div class="price"><sup>$</sup>9.99<span class="period">/mo</span></div>

 

<div class="info">Sed ut perspiciatis unde omnis iste<br />

natus error sit voluptatem</div>

<a class="btn" href="">get started</a></td>

<td>

<div class="title">Business</div>

 

<div class="price"><sup>$</sup>14.99<span class="period">/mo</span></div>

 

<div class="info">Sed ut perspiciatis unde omnis iste<br />

natus error sit voluptatem</div>

<a class="btn" href="">get started</a></td>

</tr>

</thead>

Link to comment
Share on other sites

My next question is where do I add the source code to this I want to add pricing and product name

you've already for the product name right, so it's just a case of adding the price - i'm guessing the billingcycle and currency, but you can change them if i'm wrong.

 

<div class="title"><script language="javascript"  src="feeds/productsinfo.php?pid=1&get=name"></script></div>
<div class="price"><sup>$</sup><script language="javascript"  src="feeds/productsinfo.php?pid=1&get=price&billingcycle=monthly&currency=1"></script><span class="period">/mo</span></div>

if you only want the price from the feed, e.g 3.49 and not $3.49, then you would need to edit the productsinfo.php data feed code and remove...

 

    $price = formatCurrency($price);

ideally instead of editing the feed file, duplicate the productsinfo.php file first and make your changes to the copy and then call your tweaked version in your feed URLS. :idea:

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