Add item hyperlink

calchin

Joined: 2006-02-19
Posts: 5
Posted: Sun, 2006-02-19 01:18

Im not great at php or any other languages other than English, but im sure this one is just laugjing in my face :(

I wish to add a link to the photo page, saying "order a print".

So i've somehow got to this stage:

Quote:
<a href="{g->url arg1="controller=cart.AddToCart" arg2="itemId=`$theme.item.id`"}">Order a print</a>

Well, doesnt seem to work; anyone got a solution?

 
calchin

Joined: 2006-02-19
Posts: 5
Posted: Sun, 2006-02-19 10:52

if it's any help im using the checkout script with the paypal script... :)

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Thu, 2006-02-23 01:30

FAQ: What information is required when I ask for help in the forums?

Also, what are the "paypal script" and "checkout script" that you are refering to and what versions of them are you using?

 
calchin

Joined: 2006-02-19
Posts: 5
Posted: Thu, 2006-02-23 21:47

Thank you for your reply, after hours of going round the same php code over and over, i found out that it should be "checkout.AddToCart" and with permissions given on each picture... silly me..! :) I appreciate the help tho thanks :)

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Fri, 2006-02-24 05:33

Glad you figured it out!

--
http://ckdake.com/

If you found my help useful, please consider donating to Gallery.