Visual Catalog for Ubercart 2

2 replies [Last post]
Joined: 09/22/2007
Juice: 95

Hi,

This was going to be a request for help, but I figured out a solution, and thought I'd post it here in case it's of use to anyone (apologies if this is the wrong forum).

I'm upgrading from Ubercart 1 to UC2rc3, and almost everything seems to be working. However, under UC1 I was using the Marketing module to provide a Visual Catalog block, displaying the catalog as a grid within a panel. Unfortunately the Marketing module isn't available for UC2.

However, I was able to achieve the same result by pasting a very small amount of PHP code into "Custom" panel. On my panel I set the imput filter to PHP, and inserted the following:

<?php
print theme('uc_catalog_browse');
?>

Hope this helps someone. If I've missed a better way of doing this, please let me know.

James

Joined: 04/23/2009
Juice: 9

Hi James

Thanks for the code snippet. It's so easy to set up thanks.
I thought I'd provide some feedback on a problem I found though.

I was using it inside a Mini-Panel to be displayed on certain pages in my content region (at the bottom of the page after nodes etc...). On each page that it was displayed on, it overrides the page title. So for example, instead of reading "My Blog" followed by blog entries, it would read "Catalog" followed by the Blog entries.

I wondered whether there was a quick solution to this? Adding something to the snippet to disable the Catalog title, thus leaving the correct page title where it should be and using a Block/Panel specific title for the Block/Panel? Sadly my PHP skills aren't able to help much!

Thanks again.

Joined: 09/15/2007
Juice: 11

First off, THANK YOU James for posting this! I have checked back over the months looking for a solution to this very problem, only to leave empty handed and frustrated that this hasn't become an integrated part of Ubercart... I tried your suggestion and it works beautifully!

Next, to joyltd, I figured out a fix for the page title problem, presented by the above code. It requires an extra module to help with the annoyingly nasty little problem...

After finding this post, I decided to blog on it to help gain more exposure to the (very easy) solution of adding the catalog to a panel pane.

For the title fix check out: http://thewichitacomputerguy.com/blog/ubercart-catalog-panel-pane