X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Bestsellers Into 2 Columns? (https://forum.x-cart.com/showthread.php?t=61554)

minfinger 12-03-2011 10:39 AM

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.

cflsystems 12-03-2011 11:09 AM

Re: Bestsellers Into 2 Columns?
 
bestsellers.php in modules/bestsellers

minfinger 12-03-2011 12:17 PM

Re: Bestsellers Into 2 Columns?
 
Steve, yes I know where it is. I don't get the part about adding categories to the array.

cflsystems 12-03-2011 12:19 PM

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

minfinger 12-04-2011 12:24 PM

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.

cflsystems 12-04-2011 02:50 PM

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

luckystorex 12-27-2011 04:19 AM

Re: Bestsellers Into 2 Columns?
 
need free template

cflsystems 12-27-2011 06:19 AM

Re: Bestsellers Into 2 Columns?
 
Quote:

Originally Posted by luckystorex
need free template

How is this realted to the thread?


All times are GMT -8. The time now is 06:24 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.