1web Posted January 29, 2017 Share Posted January 29, 2017 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 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 29, 2017 Share Posted January 29, 2017 I suspect that you're talking about Data Feeds. 0 Quote Link to comment Share on other sites More sharing options...
1web Posted January 29, 2017 Author Share Posted January 29, 2017 I suspect that you're talking about Data Feeds. 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> 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 30, 2017 Share Posted January 30, 2017 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¤cy=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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.