| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
All products listing in a <DIV> | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#3
|
|||||||
|
|||||||
![]() 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 |
|||||||
|
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|