Hello All!
I'm trying to add an option to the simplified theme so that from the photo view there will be an option/link/image clickable to encourage printing to the SnapGalaxy module. I thought I had gotten it with this:
---------------
[added to photo.tpl]
<a href="{g->url arg1="controller=snapgalaxy.SnapGalaxyPrintPhotos" arg2="itemId=`$theme.item.id`" arg3="return=true" useAuthToken=true}" id="printItem">Test</a>
---------------
The above statement represents hours of grepping through various gallery code looking for combinations that worked. I thought I'd never get the session token to work... Now, I can click the "test" link and it will send the image to SnapGalaxy. It appears as though the session data is working. I can use the back key and find additional images that get added to the cart on SnapGalaxy whenever I press the "test" link again.
The problem is that I can't get the returnUrl value set. I've tried passing various args to the url and nothing seems to make a difference. If I click on: cancel order, continue shopping, purchase additional photos, etc. it takes me to a blank SnapGalaxy Cart page. Only by hitting the back key several times do I make it back to the site. I tried adding an arg3="returnUrl='http://www.anywhere.com/main.php?g2_itemId={$theme.item.id}'", but no address or combo I try seems to change anything.
I've tried looking at how other themes handle this, but found no themes with the Print to SnapGalaxy option on the photo page. Seems like they are all done from some block somewhere so I have no themeable reference.
Any help would be GREATLY appreciated!
Alex