How to remove "add album to cart" from the album pages after installing Checkout module and Checkout module by email.
|
vdd
Joined: 2005-08-11
Posts: 111 |
Posted: Mon, 2005-10-03 07:27
|
|
After installing G2 with the matrix theme, I was able to remove "add album to cart" from the albums pages with the Made a change in modules/cart/module.inc. Change: foreach ($items as $item) { Now that I have installed the modules Checkout and Checkout by e-mail I got back the "add album to cart" beneath the |
|
| Login or register to post comments |

Posts: 5
for anyone still trying to do it... modify for modules/checkout/module.inc and uncomment the following three lines 257-259:
if (GalleryUtilities::isA($item, 'GalleryAlbumItem')) {
continue;
}
Posts: 33
I just wanted to add, in case someone else was doing like me:
do not create a /local directory for this, just over-write the original module.inc.
I kept trying it with /local and it didn't work (I thought everything in G2 looked for the /local files first, but I guess not!)
Posts: 14
/local only applies for the template directory. This file is part of the main module code.
As an aside, I made a similar change and it works well.
Posts: 6
Just wanted to add that the three lines hemlockz mentions are now lines 316-318 (in version 0.1.14). Your version lines may vary, but you can do a search for the first line of course: "if (GalleryUtilities::isA($item, 'GalleryAlbumItem')) {" (remove the quotes)
or the function name is getItemLinks.
Thanks hemlockz, your instructions worked for me.
Posts: 616
Just to add, in the version of checkout in the community repository (0.1.18) and all later versions this is a configurable option in the admin page so there's no need to edit any code.