Add to Cart Link in Single Photo View?

Screenorama

Joined: 2009-08-25
Posts: 7
Posted: Tue, 2009-08-25 20:31

hey guys :)

as first, my english is not the best, but i will try to describe my problem :-)

I want to add the link "Add to Cart" from Checkout module in the Single Photo View.

From my search in this forum i've found some interest things, but not what i need.

Can somebody help me please?

I mean the photo.tpl in the carbon theme not the album.tpl

Thanks :)

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2009-08-26 09:51

"Add to cart" is one of the ItemActions, so if these are visible in your theme it should already be there.

Otherwise you can add something like this:

<a href="{g->url arg1="controller=checkout.AddToCart" arg2="itemId=`$theme.item.id`" arg3="return=1"}" rel="nofollow">{g->text text="Add to Cart"}</a>
 
Screenorama

Joined: 2009-08-25
Posts: 7
Posted: Fri, 2009-08-28 16:14

thank you very much alecmyers!

its worked!