Contrib type:
ModuleStatus:
Uploaded for testingSponsored by:
Sundays EnergyCompatibility:
Ubercart Dev CodeLatest version:
1.0This is a module that will alter the display of your catalog into a grid.
To Install: unzip the attached zip file into your modules folder.
It is easily configurable from the regular ubercart catalog settings page here...
admin/store/settings/catalog/edit
where you can turn it on or off, set the width of the grid, and optionally display the title, sell price, and add to cart form on each product.
| Attachment | Size |
|---|---|
| uc_catalog_grid.zip | 3.48 KB |


Re: Catalog Grid Display Module
I had been using Views to achieve something similar to this but scrapped that page to go with this. Creates a great view and the Add to Cart option is a welcome addition.
Thanks!
Re: Catalog Grid Display Module
I had achieved this with views, but was having some minor problems. Thank you very much for this module!
very nice grid action
Hey fully fantastic.... I am however at a loss regarding how to change the number of product nodes shown per page. (Usually this is specified in views but since this module does not use a view....) im sure there was something in the admin menus somewhere....hmmm
thanks great grids!
p.s. btw floating grids would be a cool option too... float number accross based on borders of browser window... just a thought...
Lyle directed me to:
Store administration > Configuration > Product settings
/admin/store/settings/products
Excellent module, It could
Excellent module,
It could be great to add an option to show or not the node teaser too..
Thank you again for this module !
zmove
Getting An Error On Category Pages
warning: Illegal offset type in isset or empty in XXXXX\modules\taxonomy\taxonomy.module on line 1172
warning: Illegal offset type in isset or empty in XXXXX\modules\taxonomy\taxonomy.module on line 1173
warning: Illegal offset type in isset or empty in XXXXX\modules\taxonomy\taxonomy.module on line 1176
Any ideas? If I disable this module then no error. The Grid is working.
illegal offset -> change your code
I'm not a programer but I was able to fix it:
got to \modules\taxonomy\ and open taxonomy.module
find that lines at about 1172
function taxonomy_get_term($tid) {
static $terms = array();
if (!isset($terms[$tid])) {
$terms[$tid] = db_fetch_object(db_query('SELECT * FROM {term_data} WHERE tid = %d', $tid));
}
return $terms[$tid];
}
and change it to:
function taxonomy_get_term($tid) {
static $terms = array();
if (!isset($terms[(string)$tid])) {
$terms[(string)$tid] = db_fetch_object(db_query('SELECT * FROM {term_data} WHERE tid = %d', $tid));
}
return $terms[(string)$tid];
}
for me this is working, hope for u2.
This did the trick.
Thanks.
now with cck fields
Hello,
I've been upgrading this module a bit because I needed to add a few new fields to the grid. So
please take a look and let me know what you think...this is what I added:
allows you to display in the catalog grid, cck fields from the product type.
it adds in the catalog configuration checkboxes for each product cck fields, so you can choose what to display in the grid and what not.
Also the fields are sorted as such:
1 - link + product name
2 - product image
3 - cck fields ordered according the field weight
4 - add to cart button.
that's it...pretty simple. Oh..now it requires cck to run too.
So, if someone could take a look and let me know what the proccess of adding this to the contributions...I don't want to take to much credit for this because 90% of the module was already there.
Idan
Re: now with cck fields
So, to clarify this contribution in my own mind and perhaps in others. Do we now have two separate ways to im plement a product grid? One is this uc_catalog_grid module and the other is Bwv's views solution in several parts?
Update to Ubercart
I just updated ubercart with bazaar (09/26/2007, 10:00AM GMT-6) and now this module will not work. No errors, just no grid displayed. I've run update.php.
Any ideas?
Re: now with cck fields
I have just downloaded the latest version (sept 25) - thank you for putting it together
Is it possible to edit the grid view so that the product image is the thickbox imagecache preset - or does this require changes to the catalog settings? If it requires changes to the catalog settings, can someone give me a pointer as i can't work it out.
I have recreated this with a custom view (bonus grid) minus the css incorporated into your module (can o this when i create my theme). As a suggestion, i think providing an option to choose a preferred imagecache preset (rather than just the product image) would be a good improvement - in my case, i have created another size specific to my project.
ps, i have the same errors as Insurrectus and whilst i am sure that snicers code will resovle this, i would prefer not to hack the Taxonomy module (problems with updates, etc).
cheers
c.
Wrong patch!
I am having the same issue with taxonomy. With my knowledge with drupal and php, I strongly suggest not to use snicers solution as it is a patch to drupal core module. This would really become a problem if you forget about it and try to upgrade drupal. It seems the grid module is giving array as $tid param to the taxonomy_get_term function, the real solution, if it would be to patch taxonomy module would be to add this like before the conditional block:
<?phpif (is_array($tid)) {return false;}
?>
BUT!!!! I need to understand the grid module to find out where the call to taxonomy_get_term function is and then apply my patch before the function is called.
Thanks!
worked, but edit core?
Thanks. It worked for me too. But as the previous poster mentioned, that would be changing Drupal core.
I blended it with uc_catalog.module, see the forum link
Hi you all.
I posted several days ago a modified uc_catalog.module using the useful code I found on uc_catalog_grid.module. It works, it has no problems regarding taxonomy.module, it reorganizes the catalog settings page for having more sense, and solves it all with just one module. Have a look at http://www.ubercart.org/forum/ideas_and_suggestions/1600/uc_catalog_modu... grab the module and see if it works for you, there are more details on that forum message.
I've just mixed the code I've found so thanks to the ones that provided the code
New versions
Hi you all.
I've improved the code with new additions and upgraded it to alpha8 on the same thread that previous comment. Have it a check and send your impressions
This is my guess
I would guess that previous versions of ubercart did not have the category name on the URL line. So instead of $args having only one value, it now has two.
So I switched out line 79 of uc_catalog_grid.module for this:
$catalog = uc_catalog_get_page($args[0]);
The addition is in bold.
Example?
I installed this module to try to get my catalog products to appear as the catagories of the catalog appear... in a grid type format. But after installing it, I wonder what it was supposed to do, heh.
Does someone have a link to what a page using this module is supposed to look like?
Differance?
So What's the differance between this and using the Views bonus pack and Panels?
Why product fields weight is not reflected?
I don't see anything related to product fields weight inside theme_uc_catalog_product_grid. Why?