|
#1
|
|||
|
|||
|
Addon: Buy from PayPal
I finally uploaded the Buy with PayPal addon that I promised some time ago: http://pixelpost.org/v1/index.php?x=...ds&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 Last edited by RobbieMc; 11-29-2006 at 07:04 PM. |
|
#3
|
||||
|
||||
|
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.
__________________
My Photoblog If you find my help useful please consider feeding the PixelPost Kitty If you're short on cash just feed my ego |
|
#4
|
|||
|
|||
|
Quote:
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): ![]() 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 Last edited by RobbieMc; 11-29-2006 at 03:56 AM. Reason: Added screen shot |
|
#5
|
||||
|
||||
|
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?
__________________
My Photoblog If you find my help useful please consider feeding the PixelPost Kitty If you're short on cash just feed my ego |
|
#6
|
|||
|
|||
|
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 Last edited by RobbieMc; 12-01-2006 at 08:03 PM. |
|
#7
|
|||
|
|||
|
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? |
|
#8
|
||||
|
||||
|
Pixelpost uses language files for messages.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
|
|
#9
|
|||
|
|||
|
I think I've figured it out:
//PayPal info $lang_buy_this = "Purchase This Photo"; |
|
#10
|
|||
|
|||
|
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 |
| Post Reply |
| Thread Tools | |
|
|