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

Bestsellers Into 2 Columns?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 12-03-2011, 10:39 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Bestsellers Into 2 Columns?

So this is something I have not had to do before, and I'm pretty lost as to where the array value would be added.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #12  
Old 12-03-2011, 11:09 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Bestsellers Into 2 Columns?

bestsellers.php in modules/bestsellers
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #13  
Old 12-03-2011, 12:17 PM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Bestsellers Into 2 Columns?

Steve, yes I know where it is. I don't get the part about adding categories to the array.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #14  
Old 12-03-2011, 12:19 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Bestsellers Into 2 Columns?

You have to query each product from the bestsellers array, get its category id from products_categories table and save it in that product array inside the bestsellers array
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #15  
Old 12-04-2011, 12:24 PM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Bestsellers Into 2 Columns?

Steve,

Yeah I figured that much, but I have no idea how to do that. I understand how to query tables in PHP, but not how to make this tpl stuff add something to an array.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #16  
Old 12-04-2011, 02:50 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Bestsellers Into 2 Columns?

The bestsellers array is already there in the php script, you need to get the info from the query to a variable in that array, this is not related to template files
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #17  
Old 12-27-2011, 04:19 AM
 
luckystorex luckystorex is offline
 

Newbie
  
Join Date: Dec 2011
Posts: 6
 

Default Re: Bestsellers Into 2 Columns?

need free template
__________________
http://www.luckystorex.com

X-cart Version 4.3.2
Reply With Quote
  #18  
Old 12-27-2011, 06:19 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Bestsellers Into 2 Columns?

Quote:
Originally Posted by luckystorex
need free template
How is this realted to the thread?
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 02:27 AM.

   

 
X-Cart forums © 2001-2020