Keiro Posted July 29, 2011 Share Posted July 29, 2011 So, I have a web designer working on our design. I forget, how'd one integrate pricing from a subdomain that WHMCS is installed on, to a main domain that is just static HTML and the like? If possible, I'd like to ensure that the pricing is updated automatically... whatever that day's pricing is, it's automatically shown without us having to update pricing on the pages themselves each time we change it. I'd appreciate it. Thanks! 0 Quote Link to comment Share on other sites More sharing options...
jeremyhaber Posted July 29, 2011 Share Posted July 29, 2011 You have two options. One is a dynamic call to the database. Or the simpler option is use the widget. http://docs.whmcs.com/Widgets Place this where you want the price to appear and change the variables. <script language="javascript" src="widgets/productsinfo.php?pid=1&get=price &billingcycle=monthly"></script> 0 Quote Link to comment Share on other sites More sharing options...
Keiro Posted July 29, 2011 Author Share Posted July 29, 2011 (edited) ... Looking at the Widget documentation, it looks far easier to work with. I think we'll use that option. Thanks for posting that, Jeremy, and glad to be of help to others for posting this and asking the same question. I'll pass this on to my web designer that I mentioned in the OP, he just barely signed on with us, so I'll be teaching him how to play with our billing system and work it into our site design. Though, to ensure I get what you said, I use that script bit and change the pid for each product and let it dynamically pull the price via the widget, correct? This shouldn't interfere with the ordering links, if I recall correctly, so that shouldn't be too much of an issue to pass to our designer. Edit: Looking at the documentation again, all of the Widget provides us with basically everything we need to provide for all of our products. Awesome, this should reduce our designer's work. Edited July 29, 2011 by Keiro 0 Quote Link to comment Share on other sites More sharing options...
mikejs Posted August 8, 2011 Share Posted August 8, 2011 are there any options to show anual or six month prices ? or will it only pull monthly? 0 Quote Link to comment Share on other sites More sharing options...
jeremyhaber Posted August 9, 2011 Share Posted August 9, 2011 Yes you can use any WHMCS billing period: <script language="javascript" src="widgets/productsinfo.php?pid=1&get=price &billingcycle=[b]yearly[/b]"></script> 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.