Number of Products per Row changeable in admin
Cos I'm in a good mood today, a little mod to give and option in admin to specify the number of products per row that are displayed.
SQL to insert: Code:
INSERT into `xcart_config` VALUES ('products_per_row','Product per row','2','General','66','text') (Note that this includes the add to cart button) Code:
{* $Id: products.tpl,v 1.21 2002/11/19 12:57:48 alfiya Exp $ and amended further by funkydunk.net*} You will then have an option in admin to specify the number of products per row that you want displayed. Obviously you will encounter problems with more than 3 in a row if you are using a three column layout for the shop. Enjoy. |
Once again, nice work :wink:
|
Re: Number of Products per Row changeable in admin
[quote="funkydunk"]Cos I'm in a good mood today, a little mod to give and option in admin to specify the number of products per row that are displayed.
SQL to insert: Code:
INSERT into `xcart_config` VALUES ('products_per_row','Product per row','2','General','66','text') where do i insert SQL? waht does that mean? pardon my retardedness, but this looks like a cool feature |
forget my last post. i figured out how to look in my database :roll:
|
products.tpl
thx 4 the mod. you did mean products.tpl right?
|
good spot eleven- just checking that you were paying attention :wink:
I have amended the previous post to avoid tripping people up. |
Am I missing something here ? I don't have buttons/showdetail.tpl on my system. For me it throws that error and makes the screen width much bigger.
|
Sorry, that was a button that I created to show the details of the product.
You could do the same or remove it or use details.tpl instead. |
Thanks I will try take it out for now and then if all works I can add my own.
Thanks again :D |
great mod Mr Funky !!!!! (again)
|
All times are GMT -8. The time now is 03:58 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.