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
  #1  
Old 11-09-2011, 04:31 PM
  gtwing's Avatar 
gtwing gtwing is offline
 

Advanced Member
  
Join Date: Jan 2006
Location: Running Springs, CA
Posts: 66
 

Default Bestsellers Into 2 Columns?

I am running a 3 column skin and when I turn on the best sellers module along with show icons, it stacks all the best sellers in a single column on the left side of the box and leaves 3/4 of the box empty on the right side. Does anyone know how I can modify the template to show the list in 2 or 3 columns across instead in order to use up all that blank space?
__________________
Gary M. Twing
Eagle Mountain Outfitters
eaglemtnoutfitters.com
Version 4.3.0 Gold
4.4.4 in operibus
Reply With Quote
  #2  
Old 11-10-2011, 11:24 PM
  gtwing's Avatar 
gtwing gtwing is offline
 

Advanced Member
  
Join Date: Jan 2006
Location: Running Springs, CA
Posts: 66
 

Default Re: Bestsellers Into 2 Columns?

Anyone?
__________________
Gary M. Twing
Eagle Mountain Outfitters
eaglemtnoutfitters.com
Version 4.3.0 Gold
4.4.4 in operibus
Reply With Quote
  #3  
Old 11-12-2011, 07:58 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Bestsellers Into 2 Columns?

Bestsellers are displayed in a simple list. Take a look at your bestsellers.tpl and compare it to your products_t.tpl. You will notice that "bestsellers" uses <ul> and <li> and "products_t" uses a table. You should be able to strip out the <ul>'s and <li>'s in "bestsellers" and replace them with <tr>'s and <td>'s inside a <table> using the "products_t" as a guide.

Good Luck!
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #4  
Old 11-12-2011, 09:28 AM
  gtwing's Avatar 
gtwing gtwing is offline
 

Advanced Member
  
Join Date: Jan 2006
Location: Running Springs, CA
Posts: 66
 

Default Re: Bestsellers Into 2 Columns?

Thanks for the info!
__________________
Gary M. Twing
Eagle Mountain Outfitters
eaglemtnoutfitters.com
Version 4.3.0 Gold
4.4.4 in operibus
Reply With Quote
  #5  
Old 12-02-2011, 03:17 PM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Bestsellers Into 2 Columns?

Jwait,

I need to run an if statement in the bestsellers.tpl. I need it to check if the product is a member of a specific category and then perform and action and if it's not perform another action. I've tried $cat eq '1' but that does work. I also tried $bestseller.category and many other things. Any ideas?

I just can't figure out what value is holding the category number. The other problem is that these might be in a main category 10, but a member of another root or sub category that I need to check for.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #6  
Old 12-02-2011, 03:46 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Bestsellers Into 2 Columns?

You can use webmaster mode to see what variables are available in the array holding the bestseller information. If its main category is available, you will see it in the array. If it is not, you will have to modify php to change the query to get the information you want to display.

---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #7  
Old 12-02-2011, 05:10 PM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Bestsellers Into 2 Columns?

Yeah I tried that. I don't really know what I'm looking for in Webmaster Mode. Where is this array?
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #8  
Old 12-02-2011, 05:30 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Bestsellers Into 2 Columns?

I don't use bestsellers - so someone else will have to tell you exactly what it is named.

But it should not be difficult to distinguish. In the webmaster mode window, search for something in the best sellers that is being displayed on the page, like a title or image name. That should point you right to the array. QT usually names things appropriately - it probably has bestsellers in the name. You should be able to look at the array and its contents and see familiar things, like the titles of the products in the bestsellers array.

---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #9  
Old 12-02-2011, 10:34 PM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Bestsellers Into 2 Columns?

Well the {$bestsellers} array doesn't have a category value in it.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #10  
Old 12-03-2011, 07:07 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Bestsellers Into 2 Columns?

If not then you need to modify bestsellers php script and include product category in the the array for each product
__________________
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 03:44 PM.

   

 
X-Cart forums © 2001-2020