[SOLVED] Show "Add Album to Cart" in dropdown under album name

smilem

Joined: 2009-02-25
Posts: 118
Posted: Fri, 2009-10-23 19:38

Hi, I'm using modified files:

ItemAddAlbum.inc from Core module
UserAlbumHelper.class from useralbum module

The modification restricts users from seeing another user albums and changing permissions.

My problem is with "Add photo to cart" and "Add album to cart" dropdown selections.

If I tick "Show 'Add to Cart' always?" then I see the "Add photo to cart" under my photos. Else it's not displayed.
I can't see "Add album to cart" anywhere.

I have checked the "Treat Albums as collections of contained images?" checkbox but that makes no effect.

I understand this is permission problem. I use Checkout module 0.4.3
Checkout by Email 0.4.0 Please help me to fix this.

AttachmentSize
ItemAddAlbum.inc_.txt6.49 KB
UserAlbumHelper.class_.txt7.39 KB
 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2009-10-23 20:22

Make sure that the relevant users have the "[checkout] Purchase Album" permission.

 
smilem

Joined: 2009-02-25
Posts: 118
Posted: Fri, 2009-10-23 20:36
alecmyers wrote:
Make sure that the relevant users have the "[checkout] Purchase Album" permission.

Please see attached files, I don't know what code to edit to do this.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2009-10-23 20:53

No files to edit.

Go to the root album, click on "Edit Permissions", give the Everybody group the "[checkout] Purchase Album" permission.

 
smilem

Joined: 2009-02-25
Posts: 118
Posted: Fri, 2009-10-23 21:08
alecmyers wrote:
No files to edit.

Go to the root album, click on "Edit Permissions", give the Everybody group the "[checkout] Purchase Album" permission.

Thanks, that did the trick :)