Don't forget you'll need to make and translate the po file for each of the five modules.
hwilliam
Joined: 2008-04-05
Posts: 21
Posted: Fri, 2008-04-11 22:42
I uploaded the checkout module checkout_0.3.1_beta2 and installed it via FTP. As I said, everything seems to work as it should, everything is there in PayPal checkout...but not the option in the email... I think I got the zip right..the Mac is giving me fits too....is there a full moon?
I uploaded the checkout module checkout_0.3.1_beta2 and installed it via FTP. As I said, everything seems to work as it should, everything is there in PayPal checkout...but not the option in the email... I think I got the zip right..the Mac is giving me fits too....is there a full moon?
I don't think you've done the upgrade correctly. You should make absoulutely sure to upload not only the checkout module but also the very same checkoutemail and checkoutpaypal modules that are included in the zip with it. Your symptoms are consistent with using an old version of the checkoutemail. Delete all three modules and upload the code again to make sure. Secondly, have you ticked the box on the checkout admin config page to display checkoutemail?
hwilliam
Joined: 2008-04-05
Posts: 21
Posted: Sat, 2008-04-12 14:37
I didn't do an upgrade, I did a clean install of all the modules, checkout, checkoutemai, checkoutpaypal that were in the checkout_0.3.1_beta2 zip file. and yes, the checkoutemail box and the checkoutpaypal boxes are both checked and show on the site. www.naturephotographybyhwilliam.com/gallery2/.
I'll download the zip file again....can I just install the checkoutemail module since everything else seems to be working fine?
Thanks for your help.
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Sat, 2008-04-12 14:49
Yes, you can just install the checkoutemail module... but I misunderstood what you were asking.
If it's just the paper option that's not showing in the email, that's nothing to do with checkoutemail, that's in the checkout module. Please check that you don't have a checkout/templates/email/local directory with an old template file in it. Otherwise, let me know if it's still not working and I'll pm you my email address for you to forward me the email that you're getting.
hwilliam
Joined: 2008-04-05
Posts: 21
Posted: Sun, 2008-04-13 04:47
Okay...I went back to square one and deleted the entire checkout module, paypal module and email module from the server, downloaded a new copy including the pdf module and download module and reinstalled them to the sever via ftp. All work fine except the email module which now, when you click on the submit order gives the following error message
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator,
and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I have completely removed and reinstalled twice, deleted the template cache each time, still the same error? Any ideas?
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Sun, 2008-04-13 09:28
Enable debugging to 'buffered' mode and retry. See if you can get hold of a more informative error message. Since it says more information may be available in the server error log, did you look there?
hwilliam
Joined: 2008-04-05
Posts: 21
Posted: Sun, 2008-04-13 21:04
The error log on the server only shows problems from 7/2007 when I first installed the website.....I would love to enable debugging, and I know I did it once but I'll be darned if I can find where to do it... Did another clean install of the email module with the same results....
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Sun, 2008-04-13 21:13
I don't think it's a problem with the email module ... to enable debugging, see the instructions here:
I just noticed one other problem....Add to cart does not appear anywhere when in guest mode....
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Sun, 2008-04-13 21:20
hwilliam wrote:
I just noticed one other problem....Add to cart does not appear anywhere when in guest mode....
Give the "add to cart" permission on the root album to the "Everybody" group.
hwilliam
Joined: 2008-04-05
Posts: 21
Posted: Sun, 2008-04-13 21:24
Does this sound like something?
Error
Error (ERROR_STORAGE_FAILURE)
* in modules/core/classes/GalleryStorage.class at line 226 (GalleryCoreApi::error)
* in modules/core/classes/GalleryStorage.class at line 545 (GalleryStorage::_getConnection)
* in modules/core/classes/GalleryCoreApi.class at line 2800 (GalleryStorage::getMapEntry)
* in modules/core/classes/GallerySession.class at line 851 (GalleryCoreApi::getMapEntry)
* in modules/core/classes/GallerySession.class at line 231 (GallerySession::_loadSessionData)
* in modules/core/classes/Gallery.class at line 287 (GallerySession::init)
* in init.inc at line 118 (Gallery::initSession)
* in main.php at line 76
hwilliam
Joined: 2008-04-05
Posts: 21
Posted: Sun, 2008-04-13 21:26
Does this sound like something?
Error
Error (ERROR_STORAGE_FAILURE)
* in modules/core/classes/GalleryStorage.class at line 226 (GalleryCoreApi::error)
* in modules/core/classes/GalleryStorage.class at line 545 (GalleryStorage::_getConnection)
* in modules/core/classes/GalleryCoreApi.class at line 2800 (GalleryStorage::getMapEntry)
* in modules/core/classes/GallerySession.class at line 851 (GalleryCoreApi::getMapEntry)
* in modules/core/classes/GallerySession.class at line 231 (GallerySession::_loadSessionData)
* in modules/core/classes/Gallery.class at line 287 (GallerySession::init)
* in init.inc at line 118 (Gallery::initSession)
* in main.php at line 76
hwilliam
Joined: 2008-04-05
Posts: 21
Posted: Sun, 2008-04-13 21:28
and after reseting config back to false, I can't get anything but the debug page...no gallery?
jelzo
Joined: 2008-04-10
Posts: 57
Posted: Sun, 2008-04-13 21:39
@hwilliam: probably cache, are you sure the file on the server is set correctly?
@alec: i can't get visitors(for admins it works, is it only visible for registrated users?) to see the 'add to cart' button while i set the theme settings correctly (to display the button on every photopage)
hwilliam
Joined: 2008-04-05
Posts: 21
Posted: Mon, 2008-04-14 04:34
Re: Email checkout module
I installed another copy of Gallery2 in a different directory and installed the checkout modules. The email module still gives the same error.....all other modules works as they should.
this is from the error log file:
[13-Apr-2008 18:35:15] PHP Warning: GalleryCoreApi::requireOnce(/home/natureph/public_html/gallery/modules/core/classes/../../../modules/checkout/classes/CheckoutHelper.class) [<a href='function.requireOnce'>function.requireOnce</a>]: failed to open stream: No such file or directory in /home/natureph/public_html/gallery/modules/core/classes/GalleryCoreApi.class on line 2717
[13-Apr-2008 18:35:15] PHP Fatal error: GalleryCoreApi::requireOnce() [<a href='function.require'>function.require</a>]: Failed opening required '/home/natureph/public_html/gallery/modules/core/classes/../../../modules/checkout/classes/CheckoutHelper.class' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/natureph/public_html/gallery/modules/core/classes/GalleryCoreApi.class on line 2717
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-04-14 08:35
Guys I love to help out, but *you* have to do the first part, and help yourselves...
@jelzo: please see my post (only) 4 above yours, about setting the permissions correct (actually it's called "purchase Item"). For that matter, see also http://gallery.menalto.com/node/57968 http://gallery.menalto.com/node/76155
and about two dozen other identical questions and answers in the support forums (including ones in this very thread.)
@hwillilam:
OK, so read the error message and you will see it says:
Do you have the CheckoutHelper.class file in the gallery/modules/checkout/classes directory? If so, I don't know why your php installation isn't loading it. If not, your installation is still borked. By the way, this message has nothing to do with checkoutemail, it's to do with the main checkout module.
paulcobb
Joined: 2006-05-04
Posts: 122
Posted: Mon, 2008-04-14 12:21
0.3.2 Beta
When trying to access Checkout Downloads in Site Admin
The following error:
Error (ERROR_BAD_PARAMETER) : Smarty error: unable to read resource: "gallery:modules/checkoutDownload/templates/Admin.tpl"
A rogue capital in the path by the look of it!
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-04-14 12:56
Quote:
A rogue capital in the path by the look of it!
Yes I think so, well spotted.
Try changing line 54 of CheckoutDownloadStatusPlugin.class to read as follows:
Copied new module over old one.
Deleted template cache.
Same error:
Error (ERROR_BAD_PARAMETER) : Smarty error: unable to read resource: "gallery:modules/checkoutDownload/templates/Admin.tpl"
* in modules/core/classes/GallerySmarty.class at line 76 (gallerycoreapi::error)
* in lib/smarty/Smarty.class.php at line 1591 (gallerysmarty::trigger_error)
* in lib/smarty/Smarty.class.php at line 1417 (gallerysmarty::_fetch_resource_info)
* in lib/smarty/Smarty.class.php at line 1869 (gallerysmarty::_compile_resource)
* in /home/pcobb/g2data/smarty/templates_c/%%1748731597/%%CD^CD7^CD714190%%SiteAdmin.tpl.php at line 62 (gallerysmarty::_smarty_include)
* in lib/smarty/Smarty.class.php at line 1871
* in /home/pcobb/g2data/smarty/templates_c/%%1748731597/%%54^54D^54D7A448%%admin.tpl.php at line 4 (gallerysmarty::_smarty_include)
* in lib/smarty/Smarty.class.php at line 1871
* in modules/core/classes/GalleryTemplateAdapter.class at line 747 (gallerysmarty::_smarty_include)
* in /home/pcobb/g2data/smarty/templates_c/%%1748731597/%%3A^3A8^3A818B59%%theme.tpl.php at line 53 (gallerytemplateadapter::theme)
* in lib/smarty/Smarty.class.php at line 1265
* in modules/core/classes/GallerySmarty.class at line 61 (smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 186 (gallerysmarty::fetch)
* in main.php at line 486 (gallerytemplate::fetch)
* in main.php at line 94
* in main.php at line 83
EDIT Just noticed new folder (checkoutdownload) of same name inside top level folder.
Installing again
paulcobb
Joined: 2006-05-04
Posts: 122
Posted: Mon, 2008-04-14 13:19
Quote:
OK, here's a new checkoutdownload module with a couple of other typos fixed too.
Ok that's sorted it.
Loads fine now
paulcobb
Joined: 2006-05-04
Posts: 122
Posted: Mon, 2008-04-14 14:29
Quote:
here's a new checkoutdownload module with a couple of other typos fixed too
When setting options then saving generates:
Warning: Invalid argument supplied for foreach() in /var/www/html/gallery2/modules/checkoutdownload/Admin.inc on line 63
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-04-14 15:06
Insert this at line 35 in checkoutdownload/templates/Admin.tpl <input type="hidden" name = "{g->formVar var="form[products][`$product.id`][exists]"}" value = "true">
dirk-m
Joined: 2008-04-02
Posts: 9
Posted: Mon, 2008-04-14 16:45
I like the functionality in Checkout!
I'm not quite sure what this option does: "Ordinarily viewing permissions on items are observed in deciding which derivative to offer for download. You may override permissions and ensure that the original item is always downloaded."
It seems no matter what permissions I have selected, it downloads the original.
What we are really looking for is a way for users to select which resized images they want to add to the cart. Is there a way to tie a Product with a given derivative?
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-04-14 16:58
dirk-m wrote:
I like the functionality in Checkout!
I'm not quite sure what this option does: "Ordinarily viewing permissions on items are observed in deciding which derivative to offer for download. You may override permissions and ensure that the original item is always downloaded."
It seems no matter what permissions I have selected, it downloads the original.
What we are really looking for is a way for users to select which resized images they want to add to the cart. Is there a way to tie a Product with a given derivative?
Hi Dirk,
that option means that you can set permissions only to see small versions but when a download is paid for, send them the full size. It's not exactly what you want.
You could create a plugin for checkout with the interfaces I've added that will do what you want though; I'll have a think then make some suggestions.
dirk-m
Joined: 2008-04-02
Posts: 9
Posted: Mon, 2008-04-14 18:01
Thanks Alec,
Any help would be appreciated. I'm going to see what I can figure out, but I'm by no means a PHP expert. It takes me quite a while to sift through the code and figure out what's going on...
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-04-14 22:44
You're going to need to be reasonably proficient at php, and prepared to learn quite a lot about the Gallery API.
What are you expecting to happen once the purchaser has chosen a particular size of image? To dowload that size? Or just to pass the order along to you to deal with manually?
dirk-m
Joined: 2008-04-02
Posts: 9
Posted: Tue, 2008-04-15 14:32
I'm picking up ground on the Gallery API... I am a very experienced developer, but I've never done anything in PHP to the extent of Gallery. I tend to make my skill set sound worse than it really is.
We would want them to be able to download the chosen size. That seems to be where the difficulty lies for me.
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-04-15 16:25
dirk-m wrote:
We would want them to be able to download the chosen size. That seems to be where the difficulty lies for me.
In that case you will definitely need your own re-written version of the checkoutdownload module. The good news is that you can (now) have that independently of most of the rest of the checkout suite.
Here's a gameplan for you:
1.
Implement a new module that uses the CheckoutProductListInterface to the resizes of the item as different products on-the-fly (refer to CheckoutProductMapHelper.class line 131 on to see where this connects - it's called once for each product that's in the cart at the time)
Adding a new line 136 to this file as follows: echo'<pre>';print_r($products);echo'</pre>';
will shorten the learning curve considerably, showing you what's in the important $products array.
My first thought is to use the derivative item's id (or the original item's id for the full-size) as the productId. They're all unique, so no possibility of confusion. If you build your array of products consistently then the select products page will show the correct dynamic product when the cart contents are re-displayed.
I think that will get you all the way to order completion, in fact. The checkoutItem table will then contain the derivative's (or original's) id in the product column.
2.
Modify checkoutdownload module, file CheckoutDownloadHelper.class: function createDownload() calls getDownloadableItemIds() which normally returns a list of the original items which are suitable for downloading in a transaction. Modify getDownloadableIItemIds() to return instead the list of derivatives (which are now stored as the 'product' ids for each order item, remember). You can then pretty-much, I think, delete lines 181-252 of that file, which are where createDownload() finds the most suitable derivative for download from an itemId.
I think that should do the trick. Essentially what you are doing overall is moving the functionality of lines 181-252 of CheckoutDownloadHelper.class (selecting derivatives of an item) into a new module, and presenting those derivatives as individual products.
To make life (even) easier, here's a module that implements the required interface in 1. above, which I used for testing. It adds 0.27 pence to the price of each product. (It also uses the CheckoutTransactionDetailsInterface to square the postage and add a random number of pence - don't ask why.)
I haven't gotten this done, yet, but just briefly looking at some of what you told me, I was able to download a derivative in the zip.
I will get working on this and, with the help you have provided, I should be able to get this written quickly.
Thanks again!
pigwet
Joined: 2008-03-08
Posts: 16
Posted: Wed, 2008-04-16 05:43
Alec,
Running 0.3.1 on a site and I found a bug - not sure if it is updated yet in 0.3.2.
This pertains to discounts if a certain number of photos have been added to the cart. If a customer adds photos to the cart - then instead of removing them - simply puts in a 0 and then saves the cart - the discount is still applied to the remaining items even though there are not enough to qualify for the discount.
Thanks - I look forward to trying 0.3.2 soon.
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2008-04-16 11:16
pigwet wrote:
If a customer adds photos to the cart - then instead of removing them - simply puts in a 0 and then saves the cart - the discount is still applied to the remaining items even though there are not enough to qualify for the discount.
I wasn't able to replicate this, despite the fact that the code appeared to be incorrect. Regardless, I have refactored it and I think it should be fixed in 0.3.2_beta2 and onwards. Please verify.
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2008-04-16 11:28
I've pretty much come to the end of the series of features I wanted to add to this module. I know we need to sort out the translations - but, apart from that, can anyone think of any must-have features that I've missed? Otherwise I will start looking towards moving this back into the SourceForge repository in the nearish future.
I've been running 0.3.2_beta/beta2 on a production server for the last few days (excepting the download module) and it appears to be performing fine, by the way.
hwilliam
Joined: 2008-04-05
Posts: 21
Posted: Thu, 2008-04-17 04:21
I give up.....I have done everything from scratch...new download of the gallery software, new download of the checkout module, clearing the old stuff off the server and still the email module will not run....so I just put some copy in the checkout page that says email me with a bunch of info if you want to pay by check. Not pretty but at least the gallery works. Not your fault, I'm probably still doing something strange.....But when your almost 70 you don't have a lot of time to waste!! ha!
djpumpkin
Joined: 2006-12-06
Posts: 135
Posted: Sun, 2008-04-20 19:45
This module is fantastic!!
I'm using it with Gallery 2.3 svn - so far no hitches at all. I have just one question - I'd like to prevent the thumbnail of my parent album and description text appearing on the 'view basket' and 'checkout' pages. At the moment this information appears on the left hand column. I can't find anything in the module code. Do I need to add some kind of IF statement to my ICE theme.tpl file?
Thanks in advance for any pointers!
DJ
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Sun, 2008-04-20 19:51
I'm not quite sure what you mean - it sounds like a theme thing, rather than a checkout thing, but if you post a picture it will be easier to see. If it *is* a theme thing, the editing any of the code in the checkout module won't help, and you would indeed have to hack your ICE theme.tpl, but I wouldn't be able to guess at how.
CandlelightWeb
Joined: 2008-04-21
Posts: 4
Posted: Mon, 2008-04-21 03:05
Hi,
I seem to be having a problem I have not yet found on this forum. In dealing with the latest Gallery2.2.4
and the Checkout with PayPal module in particular. This is a complete new install with as updated as I could find
everything. This is the install of the Gallery2.2.4 full .gz
I added the PayPal module from the Community Addons and got it mostly working with one major flaw. After you add
to cart, update the items, and all there does not seem to be anyway to actually checkout. I get Modify Order or Continue Shopping.
Nothing else. If I click on continue shopping, I go right back to the same thing. Add to cart again... same thing. There is nothing
kicking it to PayPal. I have it configured to run in "Live" mode and have selected the PayPal options under the "checkout" settings.
Come to find out, it only works this way logged in as the admin. Guest users, will be able to add to cart and then are faced with the options of either Digibug or empty the cart. This is not supposed to be this difficult. 2 days poking around here and in the Admin section.
I am sure there is a fairly quick fix for this, but I am not finding it. URL is www.photographybypanda.com/gallery2 although there is only 1 album with 2 images. Still trying to get the bugs worked out.
CandlelightWeb
It looks to me that you have the 'Cart' module enabled.
This must be disabled to allow checkout to operate correctly.
In 'Checkout Configuration' - Other Options - Checkout plugins to display, The Checkout by Email & Checkout by PayPal otions need to be checked.
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-04-21 08:11
Candlelightweb:
Firstly this thread is for Checkout 0.3.2 - which isn't available from the community repository at present - please start a new thread in the correct forum asking for help with Checkout 0.1.18 which is the version you will have installed (read the first post in this thread carefully to see what this thread is for - thanks)
Secondly I recommend that you install checkout 0.3.2 which is available from the first post in this thread.
Thirdly it sounds like you still have the 'cart' module installed, as no version of checkout has a digibug module. So anything that references digibug can't be checkout. You should disable 'cart' if you install checkout as they both have an 'add to cart' menu item which will do nothing but cause confusion: 'why are there two add to cart items on my menu...?' etc etc. If you don't have two 'add to cart' items but you do have cart installed then you undoubtedly have the '[cart] add to cart' and '[checkout] purchase items' permissions set wrongly.
Good luck, and I look forward either to helping you with any checkout 0.3.2-specific issues in this thread, or in another new thread that you start if you still have problems with checkout 0.1.18!
pigwet
Joined: 2008-03-08
Posts: 16
Posted: Wed, 2008-04-23 16:39
Error in downloading files in 0.3.2 on fresh gallery install - all permissions are set correctly. This occurs when someone places an order and then clicks on the download as zip button. I currently have the "download enabled before payment cleared" option set in order to test site.
Quote:
Security Violation
The action you attempted is not permitted.
Back to the Gallery
Error Detail -
Error (ERROR_BAD_PARAMETER) : /home/compass4/public_html/derkacsphotography/free/gallery2/modules/checkoutDownload/module.inc
* in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 94 (GalleryCoreApi::error)
* in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 88 (GalleryPluginHelper_simple::loadPlugin)
* in modules/core/classes/GalleryCoreApi.class at line 209 (GalleryPluginHelper_simple::loadPlugin)
* in modules/core/classes/GalleryView.class at line 153 (GalleryCoreApi::loadPlugin)
* in main.php at line 318 (GalleryView::loadView)
* in main.php at line 94
* in main.php at line 83
System Information
Gallery version 2.2.4
PHP version 5.2.5 cgi-fcgi
Webserver Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database mysqli 5.0.45-community-log
Toolkits Thumbnail, SquareThumb, NetPBM, Gd
Operating system Linux host211.hostmonster.com 2.6.22-9_1.BHsmp #1 SMP Sun Feb 10 15:57:22 MST 2008 x86_64
Browser Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.14; .NET CLR 3.5; ffco7) Gecko/20080404 Firefox/2.0.0.14
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2008-04-23 17:18
HI pigwet,
Sorry - possible typo in a file: can you upload this to the modules/checkoutdownload/classes directory and try again?
I have been watching the developments you have been making with great interest. Many, many thanks for the awesome work you have done.
Do you still have plans to implement the zero dollar download feature mentioned in this thread http://gallery.menalto.com/node/74140? This is a feature I could really use. I am currently using the "permit download before payment" option with checkout 0.1.18 but I want to have some paid items in the future in addition to the free ones.
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2008-04-23 20:10
Hi tcphoto,
As things stand (0.3.2) you still have the option to permit download before payment is cleared. The current templates don't offer a download *before* checkout but you can add it with a single line addition to ConfirmPhotos.tpl.
I will also modify checkoutpaypal not to display itself unless the cart total is greater than zero. That will leave checkoutemail the only payment plugin of the two if the cart contents are free - one should be able to choose a suitable text combination to cover both paid and free situations ("Email your address details" or something, perhaps).
I remember you also wanted the option to download free items before payment, and the rest after payment. With the new architecture it should be really quite straightforward to modify checkoutdownload to do that (free downloads until payment is cleared, all files thereafter) although I don't see it as a massively popular feature, so I don't propose to include it myself in the module as released and will leave it to you to make the necessary alterations (I can provide assistance if you get stuck.)
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2008-04-23 20:46
Here's a post of interest to all those who've volunteered (or who would like to) to translate the new Checkout texts ... I'm attaching po files for German, Spanish, Dutch and French for five of the Checkout modules - if anyone cares to translate any of them into the languages they speak them and send them back to me by PM then I will compile them in to the .mo files in the relevant modules.
Thanks for your quick reply. Actually I am not the originator of the other post, however I am looking for similar functionality. I would be happy if the user was taken directly to the download link after confirming their selection in Step 2 if the total is zero, and if the total is greater than zero the payment is processed normally. (I would rather not permit downloads before a payment has cleared. I am only using that as a work-around for now.) Is that what you mean when you say the checkoutpaypal plugin will not display itself unless the cart total is greater than zero? I guess I am having trouble visualizing the user experience. I have not tried to use checkoutemail.
If I can find the time, I would be happy to attempt to modify the checkoutdownload module, but I probably will need some assistance as I am new to PHP. (I am more of a C++ type.)
pigwet
Joined: 2008-03-08
Posts: 16
Posted: Wed, 2008-04-23 21:54
Whatever I just uploaded crashed the servers and they shut down all my sites. I hope it was just an error in the .class file. At this point I can't play around with anything because my site in under watch for the next 24 hours.
When all these small changes are made, is the 0.3.2 zip file updated each time as well? It is tough to keep up with all the updates because there's no timestamp.
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2008-04-23 22:40
Um... you only needed to upload the one .inc file, unpack it on your desktop and replace the equivalent file as instructed - no .class files at all. There should be nothing in Gallery that can have "crashed the servers" - at the most you would get a php error, or a blank page.
You'll know whenever the zip is updated, the filename changes - 0.3.1_alpha to 0.3.1_beta to 0.3.1_beta2 to 0.3.2_alpha to 0.3.2_beta to 0.3.2_beta2 etc etc. No need for timestamps. I also announce the change at the top of the thread, along with any new features that have been rolled in.
A small change like the one I posted won't be rolled in until the next zip file release (hence posting a single file)
EDIT: actually, thinking about it, the download calls an external executable which could (I guess) pull over a flaky server (and I'll pass over making any comment on an ISP whose setup allows one web user to pull over the sytem...)
Have you had downloads working via checkout on this server before?
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2008-04-23 22:45
Quote:
Hi alecmyers,
Thanks for your quick reply. Actually I am not the originator of the other post, however I am looking for similar functionality. I would be happy if the user was taken directly to the download link after confirming their selection in Step 2 if the total is zero, and if the total is greater than zero the payment is processed normally. (I would rather not permit downloads before a payment has cleared. I am only using that as a work-around for now.) Is that what you mean when you say the checkoutpaypal plugin will not display itself unless the cart total is greater than zero?
Actually what I meant was there's no point redirecting someone to paypal if there's nothing to pay (and paypal gives an error page anyway.)
Checkout does require a 'checkout' click - after stage 2 - some payment plugin has to claim the order for it to be processed. However, as you point out, if there's nothing to pay we need to move to the 'payment cleared' stage right away. I'll have a think about the best place/time to do that. Thanks for pointing out the discrepancy!
Luke7799
Joined: 2007-07-10
Posts: 35
Posted: Wed, 2008-04-23 23:54
Hi There,
I can not thank all of you enough! This is exactly what I have been waiting for. I installed the latest beta release into my gallery and it is running beautifully!
There's only one thing I'd like to see implemented into the Checkout Orders section(checkout.AdminOrder&g2_transactionId=XXXXXX), is the ability to be able to print the order off once it has come through, if I print it off how it displays at the moment, it prints the LHS menu(matrix theme) and some unnecessary information. Is it possible to create a button which makes the page printer friendly and only prints the following: the header section(banner), order number + date, customer details, Order Status, Customer Comments and Notes and Order Contents.
Before I used to print off the emails when they got sent to me, but now that all of the transactions are found in the site admin of the website I mays well do it there!
Many Thanks.
Luke.
pigwet
Joined: 2008-03-08
Posts: 16
Posted: Wed, 2008-04-23 23:56
Ok, thanks for the info on how the files are updated.
As per the "crash".
I uploaded the file you attached. Then, when I went to checkout, the page basically sat there so I stopped the browser. When I went to reload the page, the ISP had already shut down my entire domain. This all happened within 3 minutes.
This was the email I got from them.
PID USER PR NI %CPU TIME+ %MEM VIRT RES SHR S COMMAND
21445 compass4 18 0 100 0:00.77 2.3 99.3m 92m 524 R pngtopnm
21408 compass4 22 0 98 0:02.45 2.3 99.3m 92m 520 R pngtopnm
21414 compass4 21 0 95 0:02.21 9.2 371m 366m 396 R pnmcomp
21452 compass4 18 0 22 0:00.14 0.8 99.1m 31m 476 R pngtopnm
21415 compass4 18 0 17 0:00.11 0.0 6672 660 416 S pnmtojpeg
21413 compass4 18 0 16 0:00.10 0.0 6652 708 456 R jpegtopnm
Basically some type of image processing script was running and they said it locked up the whole server. I have 0.3.1 running on a live site (for many weeks now) and I just started tinkering with 0.3.2 this morning on a different URL under the same ISP. I uploaded about 20 pics earlier in the day so I have no idea why the site would freak out hours later. The only thing I changed right before the site crashed was CheckoutDownloadStatusPlugin.zip - so who knows. I temporarily deleted the checkoutDownload files with hopes of not drawing any more attention for a few days.
Posts: 4342
Don't forget you'll need to make and translate the po file for each of the five modules.
Posts: 21
I uploaded the checkout module checkout_0.3.1_beta2 and installed it via FTP. As I said, everything seems to work as it should, everything is there in PayPal checkout...but not the option in the email... I think I got the zip right..the Mac is giving me fits too....is there a full moon?
Posts: 4342
I don't think you've done the upgrade correctly. You should make absoulutely sure to upload not only the checkout module but also the very same checkoutemail and checkoutpaypal modules that are included in the zip with it. Your symptoms are consistent with using an old version of the checkoutemail. Delete all three modules and upload the code again to make sure. Secondly, have you ticked the box on the checkout admin config page to display checkoutemail?
Posts: 21
I didn't do an upgrade, I did a clean install of all the modules, checkout, checkoutemai, checkoutpaypal that were in the checkout_0.3.1_beta2 zip file. and yes, the checkoutemail box and the checkoutpaypal boxes are both checked and show on the site. www.naturephotographybyhwilliam.com/gallery2/.
I'll download the zip file again....can I just install the checkoutemail module since everything else seems to be working fine?
Thanks for your help.
Posts: 4342
Yes, you can just install the checkoutemail module... but I misunderstood what you were asking.
If it's just the paper option that's not showing in the email, that's nothing to do with checkoutemail, that's in the checkout module. Please check that you don't have a checkout/templates/email/local directory with an old template file in it. Otherwise, let me know if it's still not working and I'll pm you my email address for you to forward me the email that you're getting.
Posts: 21
Okay...I went back to square one and deleted the entire checkout module, paypal module and email module from the server, downloaded a new copy including the pdf module and download module and reinstalled them to the sever via ftp. All work fine except the email module which now, when you click on the submit order gives the following error message
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator,
and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I have completely removed and reinstalled twice, deleted the template cache each time, still the same error? Any ideas?
Posts: 4342
Enable debugging to 'buffered' mode and retry. See if you can get hold of a more informative error message. Since it says more information may be available in the server error log, did you look there?
Posts: 21
The error log on the server only shows problems from 7/2007 when I first installed the website.....I would love to enable debugging, and I know I did it once but I'll be darned if I can find where to do it... Did another clean install of the email module with the same results....
Posts: 4342
I don't think it's a problem with the email module ... to enable debugging, see the instructions here:
http://codex.gallery2.org/Gallery2:FAQ#How_to_set.2Fuse_Gallery_in_debug_mode.3F
let me know if it comes up with anything.
Posts: 21
I just noticed one other problem....Add to cart does not appear anywhere when in guest mode....
Posts: 4342
Give the "add to cart" permission on the root album to the "Everybody" group.
Posts: 21
Does this sound like something?
Error
Error (ERROR_STORAGE_FAILURE)
* in modules/core/classes/GalleryStorage.class at line 226 (GalleryCoreApi::error)
* in modules/core/classes/GalleryStorage.class at line 545 (GalleryStorage::_getConnection)
* in modules/core/classes/GalleryCoreApi.class at line 2800 (GalleryStorage::getMapEntry)
* in modules/core/classes/GallerySession.class at line 851 (GalleryCoreApi::getMapEntry)
* in modules/core/classes/GallerySession.class at line 231 (GallerySession::_loadSessionData)
* in modules/core/classes/Gallery.class at line 287 (GallerySession::init)
* in init.inc at line 118 (Gallery::initSession)
* in main.php at line 76
Posts: 21
Does this sound like something?
Error
Error (ERROR_STORAGE_FAILURE)
* in modules/core/classes/GalleryStorage.class at line 226 (GalleryCoreApi::error)
* in modules/core/classes/GalleryStorage.class at line 545 (GalleryStorage::_getConnection)
* in modules/core/classes/GalleryCoreApi.class at line 2800 (GalleryStorage::getMapEntry)
* in modules/core/classes/GallerySession.class at line 851 (GalleryCoreApi::getMapEntry)
* in modules/core/classes/GallerySession.class at line 231 (GallerySession::_loadSessionData)
* in modules/core/classes/Gallery.class at line 287 (GallerySession::init)
* in init.inc at line 118 (Gallery::initSession)
* in main.php at line 76
Posts: 21
and after reseting config back to false, I can't get anything but the debug page...no gallery?
Posts: 57
@hwilliam: probably cache, are you sure the file on the server is set correctly?
@alec: i can't get visitors(for admins it works, is it only visible for registrated users?) to see the 'add to cart' button while i set the theme settings correctly (to display the button on every photopage)
Posts: 21
Re: Email checkout module
I installed another copy of Gallery2 in a different directory and installed the checkout modules. The email module still gives the same error.....all other modules works as they should.
this is from the error log file:
[13-Apr-2008 18:35:15] PHP Warning: GalleryCoreApi::requireOnce(/home/natureph/public_html/gallery/modules/core/classes/../../../modules/checkout/classes/CheckoutHelper.class) [<a href='function.requireOnce'>function.requireOnce</a>]: failed to open stream: No such file or directory in /home/natureph/public_html/gallery/modules/core/classes/GalleryCoreApi.class on line 2717
[13-Apr-2008 18:35:15] PHP Fatal error: GalleryCoreApi::requireOnce() [<a href='function.require'>function.require</a>]: Failed opening required '/home/natureph/public_html/gallery/modules/core/classes/../../../modules/checkout/classes/CheckoutHelper.class' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/natureph/public_html/gallery/modules/core/classes/GalleryCoreApi.class on line 2717
Posts: 4342
Guys I love to help out, but *you* have to do the first part, and help yourselves...
@jelzo: please see my post (only) 4 above yours, about setting the permissions correct (actually it's called "purchase Item"). For that matter, see also
http://gallery.menalto.com/node/57968
http://gallery.menalto.com/node/76155
and about two dozen other identical questions and answers in the support forums (including ones in this very thread.)
@hwillilam:
OK, so read the error message and you will see it says:
Do you have the CheckoutHelper.class file in the gallery/modules/checkout/classes directory? If so, I don't know why your php installation isn't loading it. If not, your installation is still borked. By the way, this message has nothing to do with checkoutemail, it's to do with the main checkout module.
Posts: 122
0.3.2 Beta
When trying to access Checkout Downloads in Site Admin
The following error:
Error (ERROR_BAD_PARAMETER) : Smarty error: unable to read resource: "gallery:modules/checkoutDownload/templates/Admin.tpl"
A rogue capital in the path by the look of it!
Posts: 4342
Yes I think so, well spotted.
Try changing line 54 of CheckoutDownloadStatusPlugin.class to read as follows:
EDIT: no, actually, that can't be it, even though it's an error....
OK, here's a new checkoutdownload module with a couple of other typos fixed too.
Posts: 122
Copied new module over old one.
Deleted template cache.
Same error:
Error (ERROR_BAD_PARAMETER) : Smarty error: unable to read resource: "gallery:modules/checkoutDownload/templates/Admin.tpl"
* in modules/core/classes/GallerySmarty.class at line 76 (gallerycoreapi::error)
* in lib/smarty/Smarty.class.php at line 1591 (gallerysmarty::trigger_error)
* in lib/smarty/Smarty.class.php at line 1417 (gallerysmarty::_fetch_resource_info)
* in lib/smarty/Smarty.class.php at line 1869 (gallerysmarty::_compile_resource)
* in /home/pcobb/g2data/smarty/templates_c/%%1748731597/%%CD^CD7^CD714190%%SiteAdmin.tpl.php at line 62 (gallerysmarty::_smarty_include)
* in lib/smarty/Smarty.class.php at line 1871
* in /home/pcobb/g2data/smarty/templates_c/%%1748731597/%%54^54D^54D7A448%%admin.tpl.php at line 4 (gallerysmarty::_smarty_include)
* in lib/smarty/Smarty.class.php at line 1871
* in modules/core/classes/GalleryTemplateAdapter.class at line 747 (gallerysmarty::_smarty_include)
* in /home/pcobb/g2data/smarty/templates_c/%%1748731597/%%3A^3A8^3A818B59%%theme.tpl.php at line 53 (gallerytemplateadapter::theme)
* in lib/smarty/Smarty.class.php at line 1265
* in modules/core/classes/GallerySmarty.class at line 61 (smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 186 (gallerysmarty::fetch)
* in main.php at line 486 (gallerytemplate::fetch)
* in main.php at line 94
* in main.php at line 83
EDIT Just noticed new folder (checkoutdownload) of same name inside top level folder.
Installing again
Posts: 122
Ok that's sorted it.
Loads fine now
Posts: 122
When setting options then saving generates:
Warning: Invalid argument supplied for foreach() in /var/www/html/gallery2/modules/checkoutdownload/Admin.inc on line 63
Posts: 4342
Insert this at line 35 in checkoutdownload/templates/Admin.tpl
<input type="hidden" name = "{g->formVar var="form[products][`$product.id`][exists]"}" value = "true">Posts: 9
I like the functionality in Checkout!
I'm not quite sure what this option does: "Ordinarily viewing permissions on items are observed in deciding which derivative to offer for download. You may override permissions and ensure that the original item is always downloaded."
It seems no matter what permissions I have selected, it downloads the original.
What we are really looking for is a way for users to select which resized images they want to add to the cart. Is there a way to tie a Product with a given derivative?
Posts: 4342
Hi Dirk,
that option means that you can set permissions only to see small versions but when a download is paid for, send them the full size. It's not exactly what you want.
You could create a plugin for checkout with the interfaces I've added that will do what you want though; I'll have a think then make some suggestions.
Posts: 9
Thanks Alec,
Any help would be appreciated. I'm going to see what I can figure out, but I'm by no means a PHP expert. It takes me quite a while to sift through the code and figure out what's going on...
Posts: 4342
You're going to need to be reasonably proficient at php, and prepared to learn quite a lot about the Gallery API.
What are you expecting to happen once the purchaser has chosen a particular size of image? To dowload that size? Or just to pass the order along to you to deal with manually?
Posts: 9
I'm picking up ground on the Gallery API... I am a very experienced developer, but I've never done anything in PHP to the extent of Gallery. I tend to make my skill set sound worse than it really is.
We would want them to be able to download the chosen size. That seems to be where the difficulty lies for me.
Posts: 4342
In that case you will definitely need your own re-written version of the checkoutdownload module. The good news is that you can (now) have that independently of most of the rest of the checkout suite.
Here's a gameplan for you:
1.
Implement a new module that uses the CheckoutProductListInterface to the resizes of the item as different products on-the-fly (refer to CheckoutProductMapHelper.class line 131 on to see where this connects - it's called once for each product that's in the cart at the time)
Adding a new line 136 to this file as follows:
echo'<pre>';print_r($products);echo'</pre>';will shorten the learning curve considerably, showing you what's in the important $products array.
My first thought is to use the derivative item's id (or the original item's id for the full-size) as the productId. They're all unique, so no possibility of confusion. If you build your array of products consistently then the select products page will show the correct dynamic product when the cart contents are re-displayed.
I think that will get you all the way to order completion, in fact. The checkoutItem table will then contain the derivative's (or original's) id in the product column.
2.
Modify checkoutdownload module, file CheckoutDownloadHelper.class: function createDownload() calls getDownloadableItemIds() which normally returns a list of the original items which are suitable for downloading in a transaction. Modify getDownloadableIItemIds() to return instead the list of derivatives (which are now stored as the 'product' ids for each order item, remember). You can then pretty-much, I think, delete lines 181-252 of that file, which are where createDownload() finds the most suitable derivative for download from an itemId.
I think that should do the trick. Essentially what you are doing overall is moving the functionality of lines 181-252 of CheckoutDownloadHelper.class (selecting derivatives of an item) into a new module, and presenting those derivatives as individual products.
To make life (even) easier, here's a module that implements the required interface in 1. above, which I used for testing. It adds 0.27 pence to the price of each product. (It also uses the CheckoutTransactionDetailsInterface to square the postage and add a random number of pence - don't ask why.)
Good luck
Posts: 9
Alec,
Thanks immensely!
I haven't gotten this done, yet, but just briefly looking at some of what you told me, I was able to download a derivative in the zip.
I will get working on this and, with the help you have provided, I should be able to get this written quickly.
Thanks again!
Posts: 16
Alec,
Running 0.3.1 on a site and I found a bug - not sure if it is updated yet in 0.3.2.
This pertains to discounts if a certain number of photos have been added to the cart. If a customer adds photos to the cart - then instead of removing them - simply puts in a 0 and then saves the cart - the discount is still applied to the remaining items even though there are not enough to qualify for the discount.
Thanks - I look forward to trying 0.3.2 soon.
Posts: 4342
I wasn't able to replicate this, despite the fact that the code appeared to be incorrect. Regardless, I have refactored it and I think it should be fixed in 0.3.2_beta2 and onwards. Please verify.
Posts: 4342
I've pretty much come to the end of the series of features I wanted to add to this module. I know we need to sort out the translations - but, apart from that, can anyone think of any must-have features that I've missed? Otherwise I will start looking towards moving this back into the SourceForge repository in the nearish future.
I've been running 0.3.2_beta/beta2 on a production server for the last few days (excepting the download module) and it appears to be performing fine, by the way.
Posts: 21
I give up.....I have done everything from scratch...new download of the gallery software, new download of the checkout module, clearing the old stuff off the server and still the email module will not run....so I just put some copy in the checkout page that says email me with a bunch of info if you want to pay by check. Not pretty but at least the gallery works. Not your fault, I'm probably still doing something strange.....But when your almost 70 you don't have a lot of time to waste!! ha!
Posts: 135
This module is fantastic!!
I'm using it with Gallery 2.3 svn - so far no hitches at all. I have just one question - I'd like to prevent the thumbnail of my parent album and description text appearing on the 'view basket' and 'checkout' pages. At the moment this information appears on the left hand column. I can't find anything in the module code. Do I need to add some kind of IF statement to my ICE theme.tpl file?
Thanks in advance for any pointers!
DJ
Posts: 4342
I'm not quite sure what you mean - it sounds like a theme thing, rather than a checkout thing, but if you post a picture it will be easier to see. If it *is* a theme thing, the editing any of the code in the checkout module won't help, and you would indeed have to hack your ICE theme.tpl, but I wouldn't be able to guess at how.
Posts: 4
Hi,
I seem to be having a problem I have not yet found on this forum. In dealing with the latest Gallery2.2.4
and the Checkout with PayPal module in particular. This is a complete new install with as updated as I could find
everything. This is the install of the Gallery2.2.4 full .gz
I added the PayPal module from the Community Addons and got it mostly working with one major flaw. After you add
to cart, update the items, and all there does not seem to be anyway to actually checkout. I get Modify Order or Continue Shopping.
Nothing else. If I click on continue shopping, I go right back to the same thing. Add to cart again... same thing. There is nothing
kicking it to PayPal. I have it configured to run in "Live" mode and have selected the PayPal options under the "checkout" settings.
Come to find out, it only works this way logged in as the admin. Guest users, will be able to add to cart and then are faced with the options of either Digibug or empty the cart. This is not supposed to be this difficult. 2 days poking around here and in the Admin section.
I am sure there is a fairly quick fix for this, but I am not finding it. URL is www.photographybypanda.com/gallery2 although there is only 1 album with 2 images. Still trying to get the bugs worked out.
Debug info is accessable here... www.photographybypanda.com/error.txt
Posts: 122
CandlelightWeb
It looks to me that you have the 'Cart' module enabled.
This must be disabled to allow checkout to operate correctly.
In 'Checkout Configuration' - Other Options - Checkout plugins to display, The Checkout by Email & Checkout by PayPal otions need to be checked.
Posts: 4342
Candlelightweb:
Firstly this thread is for Checkout 0.3.2 - which isn't available from the community repository at present - please start a new thread in the correct forum asking for help with Checkout 0.1.18 which is the version you will have installed (read the first post in this thread carefully to see what this thread is for - thanks)
Secondly I recommend that you install checkout 0.3.2 which is available from the first post in this thread.
Thirdly it sounds like you still have the 'cart' module installed, as no version of checkout has a digibug module. So anything that references digibug can't be checkout. You should disable 'cart' if you install checkout as they both have an 'add to cart' menu item which will do nothing but cause confusion: 'why are there two add to cart items on my menu...?' etc etc. If you don't have two 'add to cart' items but you do have cart installed then you undoubtedly have the '[cart] add to cart' and '[checkout] purchase items' permissions set wrongly.
Good luck, and I look forward either to helping you with any checkout 0.3.2-specific issues in this thread, or in another new thread that you start if you still have problems with checkout 0.1.18!
Posts: 16
Error in downloading files in 0.3.2 on fresh gallery install - all permissions are set correctly. This occurs when someone places an order and then clicks on the download as zip button. I currently have the "download enabled before payment cleared" option set in order to test site.
Posts: 4342
HI pigwet,
Sorry - possible typo in a file: can you upload this to the modules/checkoutdownload/classes directory and try again?
Posts: 11
I have been watching the developments you have been making with great interest. Many, many thanks for the awesome work you have done.
Do you still have plans to implement the zero dollar download feature mentioned in this thread http://gallery.menalto.com/node/74140? This is a feature I could really use. I am currently using the "permit download before payment" option with checkout 0.1.18 but I want to have some paid items in the future in addition to the free ones.
Posts: 4342
Hi tcphoto,
As things stand (0.3.2) you still have the option to permit download before payment is cleared. The current templates don't offer a download *before* checkout but you can add it with a single line addition to ConfirmPhotos.tpl.
I will also modify checkoutpaypal not to display itself unless the cart total is greater than zero. That will leave checkoutemail the only payment plugin of the two if the cart contents are free - one should be able to choose a suitable text combination to cover both paid and free situations ("Email your address details" or something, perhaps).
I remember you also wanted the option to download free items before payment, and the rest after payment. With the new architecture it should be really quite straightforward to modify checkoutdownload to do that (free downloads until payment is cleared, all files thereafter) although I don't see it as a massively popular feature, so I don't propose to include it myself in the module as released and will leave it to you to make the necessary alterations (I can provide assistance if you get stuck.)
Posts: 4342
Here's a post of interest to all those who've volunteered (or who would like to) to translate the new Checkout texts ... I'm attaching po files for German, Spanish, Dutch and French for five of the Checkout modules - if anyone cares to translate any of them into the languages they speak them and send them back to me by PM then I will compile them in to the .mo files in the relevant modules.
The en_GB for checkout itself is done, I think.
Thanks all
Posts: 11
Hi alecmyers,
Thanks for your quick reply. Actually I am not the originator of the other post, however I am looking for similar functionality. I would be happy if the user was taken directly to the download link after confirming their selection in Step 2 if the total is zero, and if the total is greater than zero the payment is processed normally. (I would rather not permit downloads before a payment has cleared. I am only using that as a work-around for now.) Is that what you mean when you say the checkoutpaypal plugin will not display itself unless the cart total is greater than zero? I guess I am having trouble visualizing the user experience. I have not tried to use checkoutemail.
If I can find the time, I would be happy to attempt to modify the checkoutdownload module, but I probably will need some assistance as I am new to PHP. (I am more of a C++ type.)
Posts: 16
Whatever I just uploaded crashed the servers and they shut down all my sites. I hope it was just an error in the .class file. At this point I can't play around with anything because my site in under watch for the next 24 hours.
When all these small changes are made, is the 0.3.2 zip file updated each time as well? It is tough to keep up with all the updates because there's no timestamp.
Posts: 4342
Um... you only needed to upload the one .inc file, unpack it on your desktop and replace the equivalent file as instructed - no .class files at all. There should be nothing in Gallery that can have "crashed the servers" - at the most you would get a php error, or a blank page.
You'll know whenever the zip is updated, the filename changes - 0.3.1_alpha to 0.3.1_beta to 0.3.1_beta2 to 0.3.2_alpha to 0.3.2_beta to 0.3.2_beta2 etc etc. No need for timestamps. I also announce the change at the top of the thread, along with any new features that have been rolled in.
A small change like the one I posted won't be rolled in until the next zip file release (hence posting a single file)
EDIT: actually, thinking about it, the download calls an external executable which could (I guess) pull over a flaky server (and I'll pass over making any comment on an ISP whose setup allows one web user to pull over the sytem...)
Have you had downloads working via checkout on this server before?
Posts: 4342
Actually what I meant was there's no point redirecting someone to paypal if there's nothing to pay (and paypal gives an error page anyway.)
Checkout does require a 'checkout' click - after stage 2 - some payment plugin has to claim the order for it to be processed. However, as you point out, if there's nothing to pay we need to move to the 'payment cleared' stage right away. I'll have a think about the best place/time to do that. Thanks for pointing out the discrepancy!
Posts: 35
Hi There,
I can not thank all of you enough! This is exactly what I have been waiting for. I installed the latest beta release into my gallery and it is running beautifully!
There's only one thing I'd like to see implemented into the Checkout Orders section(checkout.AdminOrder&g2_transactionId=XXXXXX), is the ability to be able to print the order off once it has come through, if I print it off how it displays at the moment, it prints the LHS menu(matrix theme) and some unnecessary information. Is it possible to create a button which makes the page printer friendly and only prints the following: the header section(banner), order number + date, customer details, Order Status, Customer Comments and Notes and Order Contents.
Before I used to print off the emails when they got sent to me, but now that all of the transactions are found in the site admin of the website I mays well do it there!
Many Thanks.
Luke.
Posts: 16
Ok, thanks for the info on how the files are updated.
As per the "crash".
I uploaded the file you attached. Then, when I went to checkout, the page basically sat there so I stopped the browser. When I went to reload the page, the ISP had already shut down my entire domain. This all happened within 3 minutes.
This was the email I got from them.
PID USER PR NI %CPU TIME+ %MEM VIRT RES SHR S COMMAND
21445 compass4 18 0 100 0:00.77 2.3 99.3m 92m 524 R pngtopnm
21408 compass4 22 0 98 0:02.45 2.3 99.3m 92m 520 R pngtopnm
21414 compass4 21 0 95 0:02.21 9.2 371m 366m 396 R pnmcomp
21452 compass4 18 0 22 0:00.14 0.8 99.1m 31m 476 R pngtopnm
21415 compass4 18 0 17 0:00.11 0.0 6672 660 416 S pnmtojpeg
21413 compass4 18 0 16 0:00.10 0.0 6652 708 456 R jpegtopnm
Basically some type of image processing script was running and they said it locked up the whole server. I have 0.3.1 running on a live site (for many weeks now) and I just started tinkering with 0.3.2 this morning on a different URL under the same ISP. I uploaded about 20 pics earlier in the day so I have no idea why the site would freak out hours later. The only thing I changed right before the site crashed was CheckoutDownloadStatusPlugin.zip - so who knows. I temporarily deleted the checkoutDownload files with hopes of not drawing any more attention for a few days.