[checkout] Version 0.3.5 now in repository
alecmyers
Joined: 2006-08-01
Posts: 4342 |
Posted: Sun, 2008-06-08 15:49 | |||
0.3.5 is now in the repository and should be available for download within a few hours if all goes well. It includes all the below changes as well as some minor code tidying. There are some minor database structure changes to support some extra plugins, including one (to be released) that allows variable item/qty price bands (1 for $8, 2 for $5 each, 3+ for $4, that kind of thing.) There are also some template changes to the SelectProducts.tpl file, so if you are using a local/ version of this I suggest you reapply your modifications to the new issue. As usual I look forward to reports of any difficulties or problems, in this thread. I have attached up to date po files for German and (someone asked for) Turkish as well as French. Please translate and forward so I can include them asap. 0.3.4_beta2 code available now in this thread! I'm going to interpret the deafening silence accompanying this code as a 100% success rate then. Anyway, I've added another couple of features in 0.3.4_beta2, including improved Product Price info blocks (product names are now links to add one of those to the cart) - a cart contents block that includes thumbnails of the photos in the cart (which link to the relevant place in the cart) and also replacing the "add one of the first product" setting with a new per-product "default quantity". Every time an item is added to the cart it's product quantities are set as per this column. Its overridable as a per-item/album setting too. There is also a setting to prevent "add to cart" appearing under thumbnails (i.e. only under the main image). This is somewhat theme-dependent, so please let me know if it doesn't behave appropriately. I can' do anything about it but I could label the setting better if I know where and when it works. Previous enhancements (to 0.3.4_beta) include: Albums as items: Albums of photos can now be treated as items in their own rights. There's a new checkout permission:"[checkout] Purchase album" - if a gallery viewer has this then they get the purchase Album link just like the purchase photo link depends on the "[checkout] purchase" permission. Rather than setting the new permission on the root album, you'll probably want to be a bit more selective about which albums you add it to (unless you actually have photos in the root album you want to sell all together.) In the admin page for checkout you can choose whether to treat albums as collections of photos contained (as before) or (new feature!) as single items that can be added to the cart. You can't mix both treatments of albums, it wouldn't make sense to the user. You also need to specify which products apply to albums, and which to 'other' (data) items such as photos. That's done from the product table on the admin page. Products can apply to both of course. Checkoutdownload has been modified to download the contents of albums where appropriate. Only the direct child data items of an album are downloaded, it's not recursive. Each item will now only be in a download once no matter how many downloadable products it appears in a single order. Item quantity limits: In the product table (checkout admin page) you can set a max quantity for any product. Mostly this is to prevent people from ordering more than 1 download-type item. For which, put a limit of 1, obviously. Or you can limit promotional items ("no more than 5 per order...") Limits of zero count as no limit at all, as does nothing set in the box, which is the previous behaviour. The limit is enforced (silently) at the 'continue to checkout' page - you'll just see that quantities on that page may differ to what's in the cart. Please post any bugs in this thread.
|
||||
Posts: 13
hi alecmyers
i think this may be just what i have been looking for
does it allow for me to set prices per album rather than calculating the total album price based on the number of items ?
i have tried to install it here http://www.childmodelacademy.co.uk/gallery
but i am getting an error
can you help me ?
Posts: 4342
I can only help if you give some details about the error you are getting...
Posts: 13
ok,
here is the exact error
Error (ERROR_STORAGE_FAILURE)
in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 205 (gallerycoreapi::error)
in modules/core/classes/GalleryStorage.class at line 298 (gallerystorageextras::loadentities)
in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 71 (mysqlstorage::loadentities)
in modules/core/classes/GalleryCoreApi.class at line 2259 (galleryentityhelper_simple::loadentitiesbyid)
in modules/checkoutpaypal/classes/CheckoutPaypalPlugin.class at line 80 (gallerycoreapi::loadentitiesbyid)
in modules/checkout/classes/CheckoutInterfaceHelper.class at line 82 (checkoutpaypalplugin::getpaymentvariables)
in modules/checkout/classes/CheckoutInterfaceHelper.class at line 100 (checkoutinterfacehelper::getpaymentplugins)
in modules/checkout/classes/CheckoutInterfaceHelper.class at line 117 (checkoutinterfacehelper::getallpaymentplugins)
in modules/checkout/ConfirmPhotos.inc at line 61 (checkoutinterfacehelper::getpaymentpluginstodisplay)
in modules/core/classes/GalleryView.class at line 300 (confirmphotosview::loadtemplate)
in main.php at line 445 (confirmphotosview::doloadtemplate)
in main.php at line 94
in main.php at line 83
System Information
Gallery version 2.2.4
PHP version 4.3.11 cgi
Webserver Apache
Database mysqlt 4.1.19
Toolkits Gd
Operating system FreeBSD ds1039.dedicated.turbodns.co.uk 4.10-STABLE FreeBSD 4.10-STABLE #4: Tue Apr i386
Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Embedded Web Browser from: http://bsalsa.com/; .NET CLR 2.0.50727; .NET CLR 1.1.4322)
Posts: 4342
And what are you doing at the time you get the error? Please try to explain a bit more. Is this a new installation of checkout 0.3.4_beta, or an upgrade from 0.3.3? What other checkout modules do you have installed? what versions are they? Which operations do work? which don't?
Posts: 13
Hi
the album appears to be added to the cart OK
The error happens when i click 'continue to checkout' button
this is an upgrade from 0.3.3 -
i also have;
checkout by paypal 0.3.1
checkout downloads 0.1.0
checkout
Posts: 13
Hi again
I did a fresh install on a spare domain that i have and seems to work fine
it is perfect for my website ! - how can i get it to work on my existing install - as an upgrade - without wiping the data and starting over ?
would it help if i gave you some URL's to look at ?
Posts: 4342
>>would it help if i gave you some URL's to look at ?
Yes, that might help. You can send them to me by PM.
Posts: 13
Hi Again
I went for it, and did a clean install .... and new database
and its working fine now !
thanks again for module !
Posts: 13
another question
is it possible to show the number of items contained in an album on the checkout pages
SelectProducts.tpl
and maybe
ConfirmPhotos.tpl
Posts: 5
How do I donate to Checkout? I've found it to be a good fit for what I need and have used it to make money. I would like to give some back. ([i]It would also make me feel less guilty about a feature request).
Posts: 4342
You can donate to the Gallery project in toto with the link a the bottom of this page. You can't donate to 'checkout' as such. And I am just the last in a line of 4 maintainers/authors/contributors. but you're welcome to buy one of my pictures (http://danceportraits.co.uk) if you wish. Either way, I'll make you a deal: regardless of whether you donate or not, you can not feel guilty about making a feature request, and, regardless of whether you donate or not, I won't feel guilty about not implementing it if it isn't feasible, interesting and widely applicable. Deal?
Posts: 37
Alec,
Thank you for spending your precious time on this project. I, among many here are profiting from the work you've done and I would like to offer you two 8 x 11 (ran out of larger sized paper) prints from my http://www.nocloo.com/gallery2. It's a gallery about children's book illustrators and I have been using the checkout module since last year to help pay for the cost of hosting. I'm sure you will find something to your liking there and I hope many will follow my step and offer you something for your contribution to the community. Just do a regular checkout and I'll issue a Paypal refund to you once your order is in.
Thanks again,
-Minh
--
Posts: 18
WHow does this module make the zip?
Posts: 4342
checkoutdownload is the module also required for zip downloads.
Posts: 22
hi there need help,
I have a gallery hosted on events.jchub.com, which is redirected with url masking to events.lensmanfoto.com.
Using Internet Explorer, there's no problem when I do Paypal payment on events.jchub.com,
[IMG]http://img507.imageshack.us/img507/8469/ie1oj1.th.jpg[/IMG]
But when I want to do Paypal on events.lensmanfoto.com, i see this
[IMG]http://img297.imageshack.us/img297/3892/iero8.th.jpg[/IMG]
How do I rectify this problem? is there a php code to add in? Thanks you!
Posts: 4342
Hi Kiama,
events.lensmanfoto.com works fine for me in FF, and I have just tried it in IE but you've taken the paypal option away so I can't tell you whether it works there or not.
Posts: 22
thanks i 've activated it again as i was trying to upgrade checkout to 0.3.5. Can you pls test. And it works with the latest FF and Opera but not in IE, I want it to work primarily with IE as I believe many of my corporate clients are still using IE. BTW i'm testing it on IE6 can that be a reason?.
Now a second problem, there is still a locked symbol next to the Checkout plugin even after i've deactivated, how to rectify it so i can upgrade CheckOut ? Currently still using 0.3.3 version. Do u have a downloadable version?
Posts: 4342
Locked next to a module is an issue with your file-system permissions: http://gallery.menalto.com/node/70546. There's no downloadable version of checkout (you can always check it out through a SVN client from sourceforge's Subversion server if you want though.)
No, it doesn't appear to work in IE7 either. The problem looks to do with the way you've got the page running in a frame-set. If you get to the checkout page directly, via the jchub.com url it's fine. It might be a security feature at paypal's end, I can't see any reason in the checkout html that would cause any problems.
Posts: 51
Alec, first of all a huge thank you for your immense efforts with Checkout! Well done! I've recently upgraded from jayhen's version directly to 0.3.5 which went smoothly.
Now to my question: In some of my albums I have 'links' to other albums. Is there a way to remove the 'Add Link to Cart' from thumbnails that are links? To see what I mean, take a look at http://www.skylark.co.nz/gallery2/v/nzw/kah/hea/per/.
(I know I could remove 'Add…to Cart' from all thumbnails by deselecting 'Show Add to Cart always' in the Checkout configuration but I quite like the 'Add…to Cart' under thumbnails.)
Gallery version = 2.2.5 core 1.2.0.7
PHP version = 5.2.6 apache
Webserver = Apache/1.3.41 (Unix) FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7e PHP/5.2.6 with Suhosin-Patch
Database = mysqli 5.0.51a-log, lock.system=flock
Toolkits = ArchiveUpload, NetPBM, Gd, ImageMagick, LinkItemToolkit, Thumbnail, Exif
Acceleration = partial/21600, partial/21600
Operating system = Linux ws6 2.6.26.wd-1 #1 SMP Thu Jul 24 05:45:09 NZST 2008 i686
Default theme = ice
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Rows in GalleryAccessMap table = 85
Rows in GalleryAccessSubscriberMap table = 1187
Rows in GalleryUser table = 2
Rows in GalleryItem table = 1173
Rows in GalleryAlbumItem table = 80
Rows in GalleryCacheMap table = 2199
Posts: 4342
Ah...
Try adding this to module.inc at line 672:
There is a bit of hole in checkout in that you can't specify which kind of items add to cart applies to. So someone with collections of videos (not for sale) but photos which are for sale is going to have that problem too.
Maybe something to work on in 0.3.6.
Posts: 51
Excellent! That does the trick. Thank you very much, Alec.
Posts: 5
Thanks. I'll check out your website and the donation to Gallery is done.
So here is what I'm working on right now. I wanted to add sales tax (excise tax) to each order. Here in Hawaii, it is just a flat percentage. I found that the discounts would accept negative numbers, and I thought "Great, that will work!". However, since only the first discount is applied, I can't use discount codes with sales tax. I am planning on spending some time trying to adapt the module so that all applicable discounts are applied, but I thought I would throw the idea out here as well.
I've also had some complaints about customers carts being dumped. I haven't researched it much and I'm not sure it has much to do with the checkout module. If anyone has any tips regarding this, they would be appreciated.
-Nate
"I need to make a signature if I stop lurking."
Posts: 74
I have applied the Checkout and CheckoutEmail to my website http://www.gunstocks.com/gallery2 and would like to know if i can add individual prices to items. Such as *We sell gunstocks* each Photo is of that individual stock, not all of them, and i was hoping there was a way to make it put a different price for each. which can be edited either from G2 interface or mysql. I have a general knowledge of PHP and MySQL however i do not know nearly as much as most of you. I'm learning as i go so please... dumb it down for me a little?
Desired Result:
*Click* Purchase this item
*Load* Mau1-01 (Item price should be 250) Price: $250
*Click* Purchase this item
*Load* Mau1-02 (Price is set at 350) Price: $350
Total: $700
This is on a very active website, so please respond A.S.A.P.
By the way, thanks for the great plugin. Works great!
Posts: 4342
Each individual product+item combo can have it's own price. A product is what's listed in the checkout products table - 6x9 print, 8x12 print etc, and an item is an item in a Gallery Album - typically a photograph. How you adapt those concepts to selling guns, I'm not sure - it's not really designed as a general eCommerce solution. Anyway... to set per-item prices, choose edit photo or edit album then click on the checkout tab for the page where you enter the info specific to that item (or all items in that album and below for information entered at album level.)
Posts: 74
I dont have that on my settings. as the image below will show. I have Checkout and CheckoutEmail installed. do i need CheckoutPaypal in order to use that option? or did it install wrong...
Posts: 4342
Go to the main checkout configuration page and make sure the "Activate Custom Settings" box is checked. You don't need checkoutpaypal unless you want to accept payment via paypal.
Posts: 74
i think i may have an out dated version... anyone have the new one, or maybe a link to it?
Posts: 4342
Full instructions for installing or updating to the latest version are here:
http://codex.gallery2.org/Gallery2:Modules:checkout
Posts: 74
Got it! Thanks!
Now i have another problem. In order to process the order, you need to put a value in the boxes for prices and quantities. is there a way to not require that, or maybe turn them into check boxes so that they can choose 1 of them instead of having to enter a quantity.
Posts: 4342
Not at the moment. But you can set a maximum quantity for any product (such as 1), so if anyone orders more than that the quantity is reduced to the limit at the final checkout stage.
Posts: 74
i was hoping i could eliminate the quantities all together. Because on my site, the one you are looking at, is the ONLY one of its kind.
Posts: 74
ok, got another problem. i can go to the Checkout feature on each image, and see where i am supposed to be able to edit prices on the items. but i cant do anything. All it has are the tables (empty) and what they are. No way to add things, or make changes of any kind...
Posts: 4342
It sounds like you haven't defined any products, in the products table (main checkout admin page).
I think you're misunderstanding the purpose of checkout. It's designed only to sell prints of photographs. Therefore you define multiple products (different sized prints) which apply to every image in your gallery. Checkout allows the customer to purchase their choice of any of the products (any of a range of print sizes) for any photo in any album. It's really not a good fit for selling individual items. Checkout isn't a generic e-commerce solution, it's specifically designed for the needs of professional photographers to sell photographs.
Yep, I understand that. But checkout isn't designed for selling gun stocks, it's designed for selling photographs, which aren't unique, and can be ordered in multiple quantities. So if you really really want to use checkout for selling gun stocks, you have to accept it's going to be a much less than ideal solution.
Posts: 51
Raxinii, sounds like you'd be better off using an e-commerce software like http://www.zencart.com/ which is a free, open source shopping cart software.
Posts: 74
I'm trying out magento at the moment. i just liked the functionality of gallery2 because i have it on my personal site. figured you were turning it into a general shopping cart program and was waiting for the big release of all the new toys.
Posts: 21
Hi Alec
Great to see that you are improving on the great module, I have one very slight problem which concerns the display of postage. When somebody adds a photo to the basket it shows all the prices etc but doesn't display the postage drop down, if you then click on continue to checkout it stays on the basket page and some text in green says "Your order requires postage. Please confirm your selection." and the postage drop down appears. Is there any way to have the postage drop down on there when a photo is added to the basket, I notice on your site it seems to be there all the time.
If none of that makes sense I can pm you url's etc. (by the way I am using the latest versions but it did this on the previous version also)
Cheers
Ian
Posts: 4342
The postage item (or dropdown, if there's a postage choice) is shown as soon as there's a non-zero quantity of any item that requires postage.
To see how this works, set the quantity of any item to 1, and "save changes" rather than "continue to checkout" - you'll see the postage item appear. If you have an initial quantity of at least one on any item that requires postage then you'll even see the postage appear the first time you visit the page.
If you do try to leave the page without the postage item set but with a positive quantity of at least one item that requires postage, yes, you are directed back to it, to confirm the postage charge.
Posts: 20
Hi Alec,
I have just implemeted checkout in our sports & event photography site, so far so good, all tests are working great. Just one little thing you may be able to help me with, I have placed the pricing & the cart info in the photopage block, so that people don't have to go back to the thumbnails to add photo to cart, and it's now showing on all photos in gallery, not just the albums that have been enabled for checkout. Clicking on them just goes to an empty cart, but I don't really want the option on there at all if I can help it, am I doing something wrong, or is it a bug in the software?
Great work on this by the way, we wouldn't have been able to do what we wanted without this.
Mick Brown
www.photoworx.com.au
Posts: 4342
Can you give me an example page of what you mean, along with a description of what's wrong with it?
Posts: 20
Hi Alec,
I am officially an idiot, or sitting up til 2am trying to go live has fried my brain. The album I went into was showing the price list because checkout was turned on for that album. The rest don't have it.
Thanks for the quick response, this product is awesome, orders are flowing through already, time to donate.
Actually one other question, I would like to change the icons for the add photo to cart, and maybe rename it to "buy this photo", can you steer me to the right place to do it, so I don't stuff up the module?
Mike Brown
Posts: 4342
That's two questions...
"Add photo to cart" is in module.inc, look for "Add %s to cart" - %s is replaced at rendering with the item type name. I guess you'd want to change it to "Buy this %s". (If you have any foreign languages installed, that text will fail to translate if you alter it from the original.)
The icon: is in whichever css file you have that defines the icons, maybe an icon pack or similar. It's not included with checkout. The easiest way to find it is with Firebug (in Firefox). Scan the page for the element with the icon you want to change and look at the style for it. The icon is set as part of the background for that element, usually.
Posts: 4342
If anyone who is subscribed to this thread is interested in using Google Checkout, please see http://gallery.menalto.com/node/80489
Posts: 20
Hi Alec,
I am interested in doing some testing for you, but if I keep breaking my live site I don't know how much help I would be. Everything seems to be working except for when I click on re-confirm order in the admin area, I get this come up on the screen.
--checkout48a13da09a6fc Content-Type: text/plain; utf-8 Content-Transfer-Encoding: 8bit Order Number: 4500 Thank You! This is an email to let you know your order has been successfully placed. You can check the status of this order any time, at this location: http://www.photoworx.com.au/gallery/main.php?g2_view=checkout.OrderStatus&g2_transactionId=4500&g2_verify1=1218522130&g2_verify2=85237724248a12c128c65e2.39358238&g2_navId=xf8e38e09
Mike
Posts: 4342
Hi Mike. What do you get if you click on any of the other buttons: :payment cleared, order completed, send admin notification?
Also check on the Gallery Main Admin Page that your gallery+webserver is set up to send emails correctly - use the test email button there to confirm it works.
Re: helping with Google Checkout: I think the service is offered on to merchants in the UK and the US - they only allow payment in US Dollars and Sterling, so I don't think it would be any use to you, nor would you even be able to register with Google. Thanks for the offer though.
Posts: 20
Hi Alec,
All the other buttons work flawlessly, emails are working as well, just that one button does not work. It's not a huge deal, as I can just email the customer directly, just thought you may want to look into it as a bug.
Also I am desperately trying to make a slight modification to the itemprices block, I would like to have a link directly under the heading "Prices" that people can click on to pop up the products page of my website. The reason for this is that we do different types of collages, and different packages, and I would like for them to get the info without having to backout to the main site and search.
I have modified the itemprices.tpl file under /templates/checkout/blocks, but it does not seem to be making any difference, so I am thinking that I am missing something somewhere. I even played with the Heading "Prices" to see if maybe my code was wrong, but that didn't change either.
I must say I have learnt so much in the past week from doing this, but boy it chews the time. But I've come up with some cool solutions that I didn't think was possible thanks to your module.
Mike
Posts: 20
OK Alec,
I take that back, I just had a customer ring me, and she pressed Submit Order in the checkout and it's done the same as above. I haven't actually done anything in the code, so I don't know what could have caused this?
Mike
Posts: 4342
Hi Mike,
Interesting mystery. It's not something I've seen in any of my installations nor has it been reported before. If you want to PM me some admin credentials to your site I will investigate. Also some access to the files via ftp.
Posts: 4342
Syntax errors you'd made in your custom modifications to the checkoutemail/templates/email/confirm.tpl were preventing Smarty from rendering the template. Fixing the errors solved the problem.
Posts: 51
Hi Alec
A question: Is there a reason why the Info shown after Title changes to the file name in Step 2 of checkout?
Please refer to the attached screen shots to see what I mean:
Step 1: The Title is (for example) "313808 · Angelus Hut"
Step 2: The Title changes to "bu313808-reflection-of-angelus-ridge-and-angelus-hut-in-lake-angelus.jpg"
Step 3: The changed Title carries through to PayPal.
I would prefer for the Title to stay the same throughout the whole process (I know this is a "cosmetic" thing but it would look much better for my clients to see "313808 · Angelus Hut" rather than "bu313808-reflection-of-angelus-ridge-and-angelus-hut-in-lake-angelus.jpg").
Posts: 4342
Checkout (as you've probably guessed) is entirely engineered to my own personal preferences and I don't use titles, only filenames, so that's what I have. There's no reason why your installation has to do the same, of course, the code's quite easy to change: for each line-item there are two pieces of textual information stored in the db, and they're set in file Confirm.inc, at lines 169,170:
You can set them however you like.
For instance, you could have the following instead:
PS Checkout 0.4.0 is on the way ... no new features, but some useful bug fixes and better translation code for emails.
PPS is there *really* nobody who's interested in Google Checkout as a payment method?