Hide "Add Album to Cart" and "Add Photo to Cart" on album pages?

Gremlin098

Joined: 2007-03-30
Posts: 9
Posted: Fri, 2007-03-30 19:13

How can I remove the 'add to cart' links on the album pages but keep them in the Item Actions drop down? I've tried several different modifications to module.inc getitemlinks but adding an if, or commenting out code, disables them completely and I still want them in the drop down.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2007-04-01 05:05

find the line:
if (isset($permissions[$item->getId()]['cart.add'])) {
and change to:
if (isset($permissions[$item->getId()]['cart.add']) && $wantsDetailedLinks[$item->getId()]) {

 
kferranti4

Joined: 2008-02-10
Posts: 26
Posted: Tue, 2008-03-04 07:22

Woohoo I have been looking for this for days. Thank You Thank You

:D
Karen

 
yoannelyankee

Joined: 2009-09-12
Posts: 9
Posted: Sun, 2009-09-13 16:36

And do you know if its possible of change "Add Photo To Cart" with a icon .gif ?

thank you