I have a client using Gallery 2 as a catalog selling the items in the photos. He was able to paste in the code for a Paypal shopping cart button in the photo description and use Paypal's shopping cart. Each button had to be hand coded with the item price, stock number, etc. Note: "Raw html" has to be enabled in item descriptions. The Gallery plug-in cart for selling photos did not adapt well to selling a wide range of products.
When we upgraded to 2.2.2 we found that the "name" tag in the html form input lines was being edited out by Gallery rendering the button inoperable. I found the file that does the html safe-edit and took out the reference to the attribute "name" Now the Paypal buttons are working fine.
In the folder, gallery/lib/pear/
Edit the file Safe.php
On line 274, change:
var $attributes = array('dynsrc', 'id', 'name', );
to
var $attributes = array('dynsrc', 'id', );
This catalog is configured to allow only the admin to post or edit text on Gallery. Allowing raw html and disabling a function of the safe html tool are not recommended if you allow public comments and descriptions to be posted.
Paypal button or shopping cart code can be generated by logging into your Paypal account and then clicking on "Merchant Services."
Posts: 20
This question is for Gallery 1.5x
I have found no extensions for Gallery 1 for PayPal. ... But since it was straight php, I thought it might be relatively easy to cannibalize the eCard set and modify it to a paypal set. ...
On the other hand
It may not be that elaborate. ...
I would be happy to be able to include three buttons on each image page that passed the image information to PayPal, so that I could fill the orders.
Nothing else, just pass the information of the current image/address and size to paypal. I do have my PayPal account all set up and for each button I could use set prices.
I can make the buttons, but I do not know how to use php to extract, then use, the specific image information from the current page. ... Since there are over 20,000 images on the gallery site, I do need some kind of variable discovery to make passing information on to myself, for printing, and to PayPal, for collection.
Maybe it could even send me an email?
---------------------------
Tomorrow is coming - and by that I mean only. ...
The future is out there in front of us, waiting for our arrival.
Posts: 2
hello,
I am a little new to Gallery2 and had a question about adding paypal shopping cart buttons to picture descriptions.
How do i insert the HTML? I have tried inserting it under photo descriptions and its not working out....Please Help!
Posts: 1
Thanks for posting this because I also suffered this.
RAW HTML turns out to be some kind of wierd "But even if you allow RAW HTML we will still re-write html tags and exclude others" type of thing.
Including thos PayPal buttons was a real pain and an embarrasssment.
ANother issue I fight here is the ability to include a bog basic Iframe as well.
I post the code.
It totally deletes it??????
Anyone know how I can write in a "RAW HTML" Iframe because I cannot and I have sleected the RAW HTMNL button.
????????????????????????????
Any ideas?
I cant be the only person left in the world who uses Iframes.
We're not all guillible preconditionabnle Firefox suckups you know. :o)