PDA

View Full Version : Buy from PayPal addon


RobbieMc
11-28-2006, 02:12 AM
I finally uploaded the Buy with PayPal addon that I promised some time ago: http://pixelpost.org/v1/index.php?x=downloads&details=191

You can see a slightly more sophisticated version of it at: http://www.sophiepasquet.com.

If there is interest, I may try to convert the more sophisticated version into an addon.

Rob

GeoS
11-28-2006, 05:19 PM
As I wrote in other topic - interesting addon :)

dakwegmo
11-28-2006, 08:34 PM
Thanks for releasing this to the public. It's exactly what I've been waiting for.

Care to share the differences between the addon and the one running on your site? For all intents and purposes they appear to be the same.

RobbieMc
11-28-2006, 09:33 PM
Care to share the differences between the addon and the one running on your site? For all intents and purposes they appear to be the same.

The one on the site has two additional features, which require new dbase fields and admin file changes (which I have done through hacks but which may be done through an addon). These are:

1) there are five new fields in the main dbase tables (i.e., card; small; medium; large; exlarge). On the "new image" and "edit image" admin pages, there are check boxes to indicate that an image is available for sale in that size (because some aspect ratios are not available as art cards, and some tight crops cannot be blown up to large and exlarge size). If you look at the buy page for some images, it says "Not available" beside some sizes. That is determined by these additional fields. Here is what the additional section on the image edit page looks like (and there is a similar section on the new image page):

http://www.sophiepasquet.com/templates/purchase.jpg

And,

2) in the buy addon running on the site, the aspect ratio of a given image is calculated from the .jpg file and is converted to an integer. Depending on the resulting number, the dimensions of the images available for order are different, as is the price. Click on the purchase button of a "square" image and note the available order sizes and price, then click on the purchase button of another aspect ratio and compare the available sizes and prices. They are customized to the aspect ratio (of which Sophie shoots five)

Rob

dakwegmo
11-29-2006, 02:03 PM
I hadn't noticed that, but it is a pretty cool feature. I hate hacking code, because it makes upgrading so difficult, but I would definitely be interested in seeing that as an addon. Don't go to any extra effort just for me. If nobody else is interested, would you mind just sharing the modifications you've made?

RobbieMc
11-29-2006, 03:20 PM
I am happy to share with anybody who wants it. The challenge is that because I have made so many little tweaks to the admin files to support my other mods (which isn't ideal, I know), it is hard for me to just distribute the files without running the risk that something else will get mucked up for you. With the assistance of the PP developers, I will try to develop this into an addon in the next while -- although I said that about the basic buy script about 6 months ago and look how long it took me :)

Rob

jimdugan
11-29-2006, 04:00 PM
Sorry to be dense but...

I can't figure out what is meant by:

"6) You need to add a few lines to your language file or replace those variables in the addon (They are identified by the $lang_... code)."

in your instructions.

Can you elaborate? What should those lines look like?

Dennis
11-29-2006, 05:30 PM
Pixelpost uses language files for messages.

jimdugan
11-29-2006, 05:56 PM
I think I've figured it out:

//PayPal info
$lang_buy_this = "Purchase This Photo";

RobbieMc
11-29-2006, 06:03 PM
I agree, jimdugan, that it is not immediately obvious what has to go in the language file. And yes "Purchase this photo" would be one of the right lines. I am not at home so have not looked at the code of the addon, but that might in fact be the only one.

I will update the addon and the instructions this evening to make it more clear what needs to go into the language file. In fact, it need not necessarily go into the language file. You can replace the variable itself in the body of the addon, or you can assign the language variable at the beginning of the addon, or you can put a new line in the language file. Since Sophie's site switches out the language files, I need to put everything the language files. But others may not need to.

Rob

djaef
11-30-2006, 04:53 AM
I'd also be very interested in this if it got to the stage of a fully featured add-on. It looks cool and works great. Good work.

Dennis
11-30-2006, 05:21 AM
Rob, please make your addon compatible with version 1.6 (which means using language files) :)

RobbieMc
11-30-2006, 05:43 AM
Will do. Since Sophie's entire site is already language switchable, everything I do has to use language files.

RobbieMc
11-30-2006, 05:51 AM
I updated the addon with clearer instructions and the inclusion of the required language variable:

http://pixelpost.org/v1/index.php?x=downloads&details=191

mdunmore
12-01-2006, 02:00 PM
I am very excited about this addon but the download link doesnt see to work for me. It takes me to a blank page... any ideas?

RobbieMc
12-01-2006, 04:49 PM
I see that too. Unfortunately, I am not at home now to re-upload the file, so I will have to fix it this evening. Will do as soon as I get home.

Rob

mdunmore
12-01-2006, 05:10 PM
Great Thanks!

mdunmore
12-01-2006, 07:17 PM
Hey my friend the genius just informed me if I change the link to be ...buypaypal.zip it will grab the addon! Brilliant. I cant wait to try this out! Thanks for the addon.

RobbieMc
12-01-2006, 11:48 PM
All fixed. In fact, I realized that I had completely screwed up the instructions, so anyone who is having trouble with this addon may wish to download again to get the correct instructions. Sorry for the confusion. This is my first documented addon.

Rob

Sentenza
12-02-2006, 01:00 AM
Just when I was about to program that addon, you come and save me precious time. :)

Same as the language switch... which I was still brainstorming on possibles ways to figure it out when I noticed the thread!

RobbieMc
12-02-2006, 01:05 AM
Glad to see this addon will be useful. Re the language switch, I am happy to wlak you through switching the dbase entries if you wish, but note that 1.6 will have that inlcuded if you are prepared to wait.

persianpix
03-15-2007, 02:40 AM
hi. i have installed the add-on and still trying to make it to work. my number one question is how can i get to the database tables in the admin page just like the snapshot that is posted as the 4th comment on this thread. i am looking at addons tab and i see no options.

thank you :)

oz_sprog
03-18-2007, 11:44 PM
I second that! I love the feature that you have on example site.

persianpix
03-19-2007, 03:54 PM
just hoping for a reply. i am still not able to get to the admin interface of this add on. is there something that i am missing out?

inophoto
04-10-2007, 10:06 PM
I would third that request!

jchabalk
06-08-2007, 02:47 AM
Hey there - i've been implementing this addon and i thought i'd toss out this idea - it's probably pretty easy to implement - i may take a stab at it.

The current addon allows one set of pricing - and the additional tweaks allow some options pertaining to that. I would like to be able to offer certain images at one price-level and others at another price level etc..

This should be pretty easy to accomplish given the current configuration with the addition of some categories for each.

eg:
Category: Level_1 = PriceA
Categoty: Level_2 = PriceB
etc..

I love the addon - looking forward to seeing some of the developments mentioned below/above.

-john
http://www.ebokeh.com

Josef Renklint
06-16-2007, 03:47 PM
Hmm. I'm completely new to the whole buy via paypal concept.. Do I (the seller) need a paypal account? How do I write the form for the buy_template.html? I just want some hint as to how to build the form and rest of the page..

/J

Finner
06-24-2007, 02:43 AM
I too am hoping to use this addon for a new site, but am unfamiliar with how to get it set up with paypal? Any advice would be greatly appreciated!

Edit: is there any way to select which images have prints available and which don't?

jchabalk
08-26-2007, 03:27 AM
Hi there - after getting this about half-done a few months ago i've finally closed it out. Implementing it was really easy - i made a few minor tweaks here and there to get things going the way i needed them, but it's 98% stock.

If you want to take a look please do - my site is located at

http://www.ebokeh.com

Looking forward to tracking the progress of this feature, this should be made part of the pixelpost core.. ;)

-john

StatVoid
08-26-2007, 07:42 AM
I haven't implemented it into my site fully yet, but I'm certainly working on it. Although I would love to see the sophisticated version, as I feel it'd better suit what I'm thinking of doing.

I believe someone also mentioned this before, but I'd like an option when making a new image to check whether I want the picture to be available for purchase. In my case, I only want to sell the ones that I feel are worthy. And maybe if there's an option to make selected ones sellable, maybe there's a way to create a mini store? Like a store_template.html where I can have the thumbnails of just the one's for sale available. Granted, I'm going into what may (or may not be) a very complicated thing to implement, but I think it'd be great and valuable for those interested in my works who don't want to go to every picture just to see whether or not it's for sale.

(As a side note: I love Pixelpost because of all the potential it has, and while the base install doesn't need to be bloated with all the features that addons provide, the fact that there are addons to help mold it into what I need it to be are great. I just wish I knew how to write PHP. :( )

zac
09-10-2007, 03:41 AM
The one on the site has two additional features, which require new dbase fields and admin file changes (which I have done through hacks but which may be done through an addon). These are:

1) there are five new fields in the main dbase tables . . .

2) in the buy addon running on the site, the aspect ratio of a given image is calculated from the .jpg file and is converted to an integer.


wowie! i would love it if i could have this working like that. unfortunately i cant figure out your hacks on my own. your site looks great, one of the smoother print purchase setups i have seen.

I am happy to share with anybody who wants it.

any plans to still do that?

RobbieMc
02-21-2008, 07:58 PM
Sorry for the silence for the last 14 months, especially for those who contacted me through the forum for information on this addon. Having moved house, continent and job in the last year, I have not done anything with PixelPost for all that tome (Sophie's site is still on 1.5). I have shared the enhanced paypal hacks with the Pixelpost developers. I leave it to them to confirm whether they intend to develop a new addon or integrate it into new versions.

In the meantime, I will respond to anyone who sends a request through the contact page on my partner's site attaching the hacked admin pages and the enhanced paypal addon, on the condition that you understand that I will not be able to reply to follow-up email or to provide additional advice on getting it working. Basically, you should know what to do with the files before contacting me to get them.

Sorry again for the silence and for my inability to provide any support, but my day job and personal life just do not allow that right now.

Good luck.
Rob

Headinstars
01-29-2009, 12:29 PM
Hello,

I installed BuyfromPaypal's addon, and everything works perfectly. But I do not want to put all my photos for sale. How do I proceed?

For example: http://www.j-roumagnac.net/index.php

Thank you in advance

Erick

zac
01-29-2009, 04:39 PM
Good luck.. I have been trying to get support for this addon for like 2 years :P