veladzic20 Posted June 15, 2014 Share Posted June 15, 2014 Hi, how to show products from here ( https://viahost.ch/cart.php?gid=1 ) on start page that is Homepage but only table products nothing else 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted June 15, 2014 Share Posted June 15, 2014 Please be more specific. It looks as if that page just has the products so i dont know what your question really is. Are you just wanting to grab that image display of products and stick it on another page? 0 Quote Link to comment Share on other sites More sharing options...
veladzic20 Posted June 15, 2014 Author Share Posted June 15, 2014 yes right , i need to grab yust products and to diplay it on index bzv home page 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted June 15, 2014 Share Posted June 15, 2014 (edited) well if you want to try to stay away from API stuff, the easiest and fastest ways are use an iframe or why not just do a screen shot of that page and display the image, youll have to crop it but it will be ok. If you dont need the buttons thats even better. If you do need the buttons you can either use PS to make you some buttons or just display that whole section and map the button locations for the click. does this work Edited June 15, 2014 by durangod 0 Quote Link to comment Share on other sites More sharing options...
veladzic20 Posted June 15, 2014 Author Share Posted June 15, 2014 no not yust the image i need to post whole products with butons that work so that the users can from index page select product and not to search through site, the now products with images on index i need to delete because when user is loged in the index page disapears and than is only shown client area 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted June 15, 2014 Share Posted June 15, 2014 well then you can grab the whole image with buttons, or make you some buttons, or just use the image and map the click area. Do you know how to do that? The link address for your products are listed on the product info section per product 0 Quote Link to comment Share on other sites More sharing options...
veladzic20 Posted June 15, 2014 Author Share Posted June 15, 2014 i have already images on home page and in bottom of them clickable butons that are connected to product but i need the product list with details and products and buttons that are on this link https://viahost.ch/cart.php?sld=eg&tld=.ch is there any way to yust put some code into homepage.tpl to show curent list of products like when you go to that link 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted June 15, 2014 Share Posted June 15, 2014 i was working on a quick iframe for you cause i thought you wanted to put it on your own site page index. But since you are talking about the homepage. I think there is, one sec.... - - - Updated - - - take a look at /templates/orderforms/comparison/products.tpl that is where the code it that displays that. You may be able to just capture that and have it display on the homepage as well. You do realize that all they have to do is click order and wham they are there, its not rocket science lol... 0 Quote Link to comment Share on other sites More sharing options...
veladzic20 Posted June 15, 2014 Author Share Posted June 15, 2014 i cant make it work i have copyed whole product.tpl and one piece it doesnt show the products only the title and some links 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted June 16, 2014 Share Posted June 16, 2014 which is why i suggested using an iframe, its the easiest way unless you really know how to build a special page. Do an iframe and wrap it in a div. The iframe css needs to capture the page content, just the content of what you want to capture on the page, nothing more (just like the image i sent you) thats all, so when you open your iframe that is all you see is a small box with just that content. The div will allow you to scroll up and down in the event the content changes and gets longer. Something like this (these are not the numbers i got this from one i did myself on my other site) notice the negative numbers, that means that it will come down from the top and over from the left before it captures the content. You need to align that up with your page content and measure it yourself. This is very simply coded so that i dont confuse you with a bunch of other stuff. Once you get it set up then people will be able to click the buttons because it is an actual capture of that page you wanted. <center> <div style="height:1230px;width:740px;overflow:hidden;position:relative;"> <iframe src="http://yoursite.com/pagetitle/" style="position:absolute;top:-368px;left:-20px;height:1230px;width:740px;"></iframe> <div> </center> hope that helps. 0 Quote Link to comment Share on other sites More sharing options...
veladzic20 Posted June 16, 2014 Author Share Posted June 16, 2014 that is nice thanks for helping , but problem by iframe is that when you klik on something that is in iframe i continuest to open that site "in iframe" and that is why i need the actual code of product list to shown with whmcs code in .tpl file so when client kliks on button it brings him there like he was on the original site of products if you understand what im meaning . im trying to show only products from froducts site generated trough whmcs on homepage so that client has it on home page and dont mus to search and when i change something on product in whmcs admin backend it autmaticali changes in home page beacuse it is generated trough whmcs but with no success i cant find working piece od whmcs code to work on home page .... 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted June 16, 2014 Share Posted June 16, 2014 understood... 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted June 16, 2014 Share Posted June 16, 2014 i did try to piece something together for you, i was able to get the cats and the currency on the page but not the products. Looking deeper it does not appear that products array is available on the portal level without some kind of hook or some customer php code. This is why it does not show up on your page. I have a feeling if you used the product code in that file on any other template file inside of comparison it would show just fine. However you are wanting to load it outside of the comparison cart templats so it will take some special coding. So now you have to decide how important this is to you. Do you feel it is really needed in the sense that it will convert sales. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted June 16, 2014 Share Posted June 16, 2014 Iframe or image isn't a professional, you will need to use PHP/Smarty solution to display this info. 0 Quote Link to comment Share on other sites More sharing options...
veladzic20 Posted June 16, 2014 Author Share Posted June 16, 2014 thank you durangod , yes sentq because its unprofesionel i don wont iframe or image , it isnt light to make it work 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 16, 2014 Share Posted June 16, 2014 if you can recreate the code for the five column table in your homepage template (not the content, just the table structure, css etc)... then you might be able to fill it using data feeds - they will be able to grab product names, descriptions and prices and display them wherever you want... http://docs.whmcs.com/Data_Feeds then you'll have to add the "Order Now" buttons, which you could make as an image, and then link them all to the appropriate products. http://docs.whmcs.com/Linking_to_WHMCS 0 Quote Link to comment Share on other sites More sharing options...
veladzic20 Posted June 16, 2014 Author Share Posted June 16, 2014 il try it tomorow , tnx in advance 0 Quote Link to comment Share on other sites More sharing options...
veladzic20 Posted June 17, 2014 Author Share Posted June 17, 2014 data feed works and buttons are working and are linked with whmcs products but how to make them all show in one line is there some simple code or mus i make complicated css to make it shown in one line.. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 17, 2014 Share Posted June 17, 2014 if it were me, I would have done one of two things if i'd wanted to do this quickly... I would either have edited your existing product table - the one at the bottom of the page that uses server images - and replaced the existing content with content pulled from the feeds... or I would have gone old-school and just put it in a table with five cells, with each cell containing the details for each product... once working, I could have played with the divs at a later point. long-term, it would be an option to turn this code into its own data feed - that way, it would only be called once on the homepage rather than 15+ times... but that's for another day! 0 Quote Link to comment Share on other sites More sharing options...
veladzic20 Posted June 17, 2014 Author Share Posted June 17, 2014 tnx now works all like i need it 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted June 18, 2014 Share Posted June 18, 2014 nice suggestion there brian i did know know about the feeds, i just played a bit with them, nice to know they exist very usefull.. again great fix brian, u da man 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.