12 replies [Last post]
Sophia's picture
Offline
Joined: 11/17/2007
Juice: 58
Was this information Helpful?

Here I am again, with another question Smiling I am busy setting up a webstore, and the first page is set up using panels. Now I would really like to implement the first page of the catalog within the panel, but there is no way... any suggestions? Thanks!

I have another catalog question but I shall create a separate thread so as not to cause confusion Smiling

PS I could offer my assistance in translating this module into Dutch, when a release is stable enough to commence Smiling

jorditr's picture
Offline
Getting busy with the Ubercode.
Joined: 10/31/2007
Juice: 256
Hi Sophia. I would like to

Hi Sophia.

I would like to know the same Laughing out loud, that's something I wanted but maybe it's not possible since panels is able to allocate onto the containers either node pages (whatever node types), blocks or views lists, and the catalog view doesn't correspont to any of this categories.

I had no time to investigate how to make it compatible, instead I created a variation on the catalog module that you could catch at:
http://www.ubercart.org/forum/ideas_and_suggestions/1600/uc_catalog_modu...
where I offer grid view and extra blocks (by now for cheapeast products and best sellers) that are regular drupal blocks that could be called inside panels Smiling

jorditr's picture
Offline
Getting busy with the Ubercode.
Joined: 10/31/2007
Juice: 256
Re: Hi Sophia. I would like to

Hi Sophia, I've been coding all morning, find now a new v.06 version of the modified catalog module which places the whole catalog page inside a block accesible from panels. Maybe that's what you was looking for your site, if not, keep sending your suggestions Smiling

Sophia's picture
Offline
Joined: 11/17/2007
Juice: 58
Re: Re: Hi Sophia.I would like to

Oh WOW, yours is exactly the catalog version I already used... as I do love the grid view. I will grab your new version immediately, whoo hooooooooooooooo! I'm so happy!

Just a quicky, it's getting late, I uploaded it and I am getting

warning: Invalid argument supplied for foreach() in /home/.../public_html/.../modules/ubercart/uc_catalog/uc_catalog.module on line 880.

Thanks again, you guys rock!

jorditr's picture
Offline
Getting busy with the Ubercode.
Joined: 10/31/2007
Juice: 256
Re: Re: Re: Hi Sophia.I would like to

Hi Sophia, did it work finally?

Sophia's picture
Offline
Joined: 11/17/2007
Juice: 58
hi jorditr, I have to go out

hi jorditr,

I have to go out now, but I shall try in a few hours and let you know!

webmasterkai's picture
Offline
Uber DonorBug Finder
Joined: 08/09/2007
Juice: 299
Re: hi jorditr,

I'm getting the error too.
warning: Invalid argument supplied for foreach() in public_html/sites/all/modules/ubercart/uc_catalog/uc_catalog.module on line 880.
Any ideas?

Biodiesel * (ubercart + drupal) = Sundays Energy

webmasterkai's picture
Offline
Uber DonorBug Finder
Joined: 08/09/2007
Juice: 299
Re: Re: hi jorditr,

Biodiesel * (ubercart + drupal) = Sundays Energy

Sophia's picture
Offline
Joined: 11/17/2007
Juice: 58
Re: Re: Re: hi jorditr,

Fantastic!!! I am still wresting to get it into a view and will get back on that... (I am testing views2)

Just one tiny little nitpicking thing: The catalog page looks a tiny bit messy, see screenshot. I could mess with the module and add br-s all over de place, but I thought it might be better to just report it...

Thanks!

AttachmentSize
screenshot.jpg 54.48 KB
jorditr's picture
Offline
Getting busy with the Ubercode.
Joined: 10/31/2007
Juice: 256
Hi Sophia. That messy

Hi Sophia.

That messy arrangement is forced by styles. You need to polish your css style sheet. I had introduced a center tag on every cell that has been eliminated on the final version for good css validation, but you could add it on your style sheet something like:

div.category-grid-products td {
  text-align: center;
}

I hope it works (add it at the end of the catalog.css style sheet inside the catalog module). Tell me if it doesn't work, I'll try to verify tomorrow morning Smiling

Sophia's picture
Offline
Joined: 11/17/2007
Juice: 58
Re: Hi Sophia. That messy

So sorry... no it did not make a difference Sad I am using the beautiful theme Sky, everything works but not this. I have a feeling line breaks are missing, but I may well be mistaken. Any ideas?

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Hi Sophia. That messy

That style is already in uc_catalog.css, so it may be the Sky theme overriding it somehow. If you have the Firebug extension for Firefox, you can inspect the HTML elements to see which CSS rules are actually being applied. It even shows the overridden ones, which is nice.

Sophia's picture
Offline
Joined: 11/17/2007
Juice: 58
Re: Re: Re: Hi Sophia. That messy

Thanks for the tip, Lyle, I did that and lo and behold! I found the reason, however it has nothing to do with the style... I had "compress styles" ticked and that buggered up my view. Unticked it, and it looks lovely!

Hope this tip helps others with the same problem!