![]() |
All products listing in a <DIV>
Hi, i have integrated HOVERALLS in xcart and now i want to display all products in a <DIV>. Kinda like sitemap does.
I know its very simple but cant figure it out. It has to generate a listing of all products on one page. (we dont have that much products) Want it to work like: customer clicks button, a div comes down with all the products. Just productname and SKU, no prices no thumbs etc etc. anyone know how to achieve that in a .tpl file? thanks. PS. i am talking about xcart 4.5.3 |
Re: All products listing in a <DIV>
The products would need to be assigned to a smarty variable in order to access them in a .tpl file.
You need to figure out the correct query to select all the products in the database, and then assign the array to smarty. Not very hard, but it will require some PHP knowledge, and you will need to look at some examples in the code. Take a look at products.php this code stores the products for a certain category in the $products array. Good starting point for understanding how this is done. |
Re: All products listing in a <DIV>
Thanks for ur answer.
I have a category. ALL PRODUCTS and set it as additional category at every product. The category has id 283 So now i need to now how to display all products from that category. The problem is, i know how to display them when a customer clicks on a button or something, but dont know how to do it without involvement of customer. I mean there is noone to click on button or something. It has to be generated bij the software itself. And i need to display it all over the shop, on every page. The DIV is hidden, but comes down when click on a button or something.... In my case i have the DIV connected to the. BROWSE OUR CATALOG text. Works great. I only want all products in the DIV. I hope my explanation is understandable. Lol. Thanks |
All times are GMT -8. The time now is 09:28 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.