Cart module and Cart information

Lapinoo
Lapinoo's picture

Joined: 2004-05-08
Posts: 378
Posted: Fri, 2005-08-05 21:05

I've been playing with the cart lately.

By default, activating the cart module doesn't modify the blocs displaying in the theme.
You have no problem to add an album or a photo to the cart, but after you've done it, there is no way you can view its content!
All you have to do is to add the view cart bloc to the theme.

I think some user will find it troublesome. They might never think of checking the theme for this bloc.

Could it be possible to add this bloc to the theme when the cart module is activated?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-08-07 15:22

We don't have a good solution for this yet. Other modules are affected too (lilke customfield). Do we add a block to every theme that has a sidebarBlocks parameter? Just the default theme? What if a theme doesn't have a sidebarBlocks param?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2005-08-07 16:23

I thought about this when I was doing the theme refactor. I was thinking that when you use the site admin interface to activate a module, it could take you to a page where it shows you what blocks are available and asks you what you want to do. For example:

The cart module has the following blocks:
    [x] View Cart
    [  ] Some Other Block

Choose which blocks you want to add to all appropriate themes.
   [ Add Button ]

We can add it to the themes that have a sidebarBlocks params that way.

 
derrickk

Joined: 2005-08-10
Posts: 1
Posted: Wed, 2005-08-10 22:41

Thank you Lapinoo,

I was tinkering around, and going around & around trying to figure out what I was doing wrong.

Thanks for saving me a couple hours of hair pulling.