Hi guys, -- SEE UPDATE
To everybody involved in the project - thanks, its great work.
I have a successful setup of Gallery 2.2 with the ZenCart module installed and working as I require apart from one slight niggle...
Anybody know how to remove the "album actions" menu from the album pages without disabling "item actions" from the photo pages? I notice that plenty of people have had a similar query when using the [checkout] module (which I dont have installed) but I cant get a working solution for the Zencart/gallery setup that I am using.
I have the matrix theme set so that the album actions/item actions should NOT appear on the album pages, but it still does!
Thanks in advance.
----------------------------------------------
UPDATE!
I THINK I HAVE MANAGED TO GET IT WORKING WAS A SILLY ERROR ON MY PART REALLY WITH "}" IN WRONG PLACE. FOR ANYBODY ELSE TRYING TO DO THIS:
Made a change in modules/zencart/module.inc. Change: foreach ($items as $item) {
into: foreach ($items as $item) { if (!GalleryUtilities::isA($item, 'GalleryAlbumItem')) {
YOU WILL NEED TO CLOSE THIS OFF BY CHANGING THE EXISTING "}" TO "}}" DO THIS BELOW THE LINES:
'params' => array('controller' => 'zencart.ViewCart',
'itemId' => $item->getId(), 'return' => true));
I SHOULD ALSO ADD THAT THIS IS NOT REALLY MY SOLUTION, IT WAS SUBMITTED FOR THE [CART] AND [CHECKOUT] MODULES BY OTHER USERS SO THANK THEM!
Posts: 1
I just wanted to give a big thanks. Huge help!