[checkout] I don't want 'Add Album to cart', only on individual photos

Landis

Joined: 2006-02-24
Posts: 15
Posted: Sat, 2006-02-25 00:29

I'd like to remove the 'add album to cart' link under each album, but keep the ability to add a particular image to the cart. Is this possible? If so, how?

Thanks for any guidance.


Gallery version = 2.0.2 core 1.0.0.2
PHP version = 5.1.2 apache
Webserver = Apache/1.3.33 (Darwin) PHP/5.1.2
Database = mysql 4.1.18-standard
Toolkits = ArchiveUpload, Exif, ImageMagick, Gd
Operating system = Darwin Tierra-Madre.local 8.5.0 Darwin Kernel Version 8.5.0: Sun Jan 22 10:38:46 PST 2006; root:xnu-792.6.61.obj~1/RELEASE_PPC Power Macintosh
Browser = Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/417.9 (KHTML, like Gecko) Safari/417.8

 
turnbulm

Joined: 2004-10-03
Posts: 431
Posted: Sat, 2006-02-25 09:06

You need to make a small change to Checkout's module.inc file - see http://gallery.menalto.com/node/37719 and http://gallery.menalto.com/node/37871 which both tell you what to change.

 
Dick Knod

Joined: 2006-02-18
Posts: 20
Posted: Sat, 2006-02-25 10:47
turnbulm wrote:
You need to make a small change to Checkout's module.inc file - see http://gallery.menalto.com/node/37719 and http://gallery.menalto.com/node/37871 which both tell you what to change.

Cool was looking for this aswell thanks !

 
Landis

Joined: 2006-02-24
Posts: 15
Posted: Sat, 2006-02-25 19:05

Thanks for the reply. Both those links seem to deal with the 'cart' module and not the 'checkout' module. But you did get me looking in the right place, thanks.

For anyone else looking for this in checkout 0.1.12, open the checkout/module.inc file and find the following lines:

	foreach ($items as $item) {
        //if (GalleryUtilities::isA($item, 'GalleryAlbumItem')) {
            //continue;
        //}

Now get rid of those slashes that comment out those three lines so it looks like this:

	foreach ($items as $item) {
        if (GalleryUtilities::isA($item, 'GalleryAlbumItem')) {
            continue;
        }

That did it for me.

 
giventofly76

Joined: 2005-01-01
Posts: 23
Posted: Thu, 2006-03-02 17:29

Thanks Landis for being more specific!