| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Bestsellers Into 2 Columns? | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() Anyone?
__________________
Gary M. Twing Eagle Mountain Outfitters eaglemtnoutfitters.com Version 4.3.0 Gold 4.4.4 in operibus |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Thanks for the info!
__________________
Gary M. Twing Eagle Mountain Outfitters eaglemtnoutfitters.com Version 4.3.0 Gold 4.4.4 in operibus |
|||||||||
#5
|
|||||||
|
|||||||
![]() 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 ![]() |
|||||||
#6
|
|||||||||
|
|||||||||
![]() 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) |
|||||||||
#7
|
|||||||
|
|||||||
![]() 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 ![]() |
|||||||
#8
|
|||||||||
|
|||||||||
![]() 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) |
|||||||||
#9
|
|||||||
|
|||||||
![]() Well the {$bestsellers} array doesn't have a category value in it.
__________________
X-Cart 4.3 Joomla Among other things ![]() |
|||||||
#10
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|