Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

All products listing in a <DIV>

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-28-2012, 02:11 PM
 
weckie weckie is offline
 

eXpert
  
Join Date: Feb 2005
Location: Netherlands
Posts: 220
 

Default 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
__________________
Herman Steijn

Using: X-cart 4.5.4
AT: http://www.weckonline.com LIVE
Reply With Quote
  #2  
Old 10-28-2012, 07:28 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
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.
Reply With Quote
  #3  
Old 10-29-2012, 12:01 AM
 
weckie weckie is offline
 

eXpert
  
Join Date: Feb 2005
Location: Netherlands
Posts: 220
 

Default 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
__________________
Herman Steijn

Using: X-cart 4.5.4
AT: http://www.weckonline.com LIVE
Reply With Quote

The following user thanks weckie for this useful post:
earthtrack (11-08-2012)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:09 PM.

   

 
X-Cart forums © 2001-2020