Attention [checkout] users: version 0.4.2 beta

alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Sun, 2008-11-16 18:42

Actually it isn't, I just wanted to get your attention.

Could a few volunteers please test the latest (4.2 beta) version of checkout:

New features: records a "special instructions" field along with each order, from the order page, so customers can input some free text that will be included in the order record

Has a "View Cart" system link, and an "Admin Orders" one (for administrators).

Records and displays the times that orders were cleared/completed/etc.

The upgrade involves some dicking about with the checkout transaction tables in the db, so I'd appreciate it if a few people could try the upgrade first, preferably on a disposable installation or one for which you have a backup. I've upgraded my (live) installation, and it works in tests, but ... wouldn't like any hidden glitches to catch anyone unprepared. (The worst outcome is that you have to uninstall/reinstall checkout.)

Oh, and because of the new Special Instructions field, a few of the templates have changed. So don't forget to re-make anything in your local/ directories.

Please report here problems with (only) this 4.2 beta release.

Thanks

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-11-18 09:10

Attention checkout users: it's *really* important that I get some testing and feedback on this - otherwise I'm just going to upload the code as-is to the repository, and you're all going to be f*cked if there's a problem with it.

 
Dirkii

Joined: 2008-01-16
Posts: 214
Posted: Tue, 2008-11-18 09:39

Hallo Alec,

Argl, gulp...!...okay (this sounds like a serious threat) I will test it today substantially (never had I thought you would use such *words) and report after that, immediately. I have to upgrade Gallery first (I guess, I should) to 2.3.

Until later, nice greetings, Dirk.

---------------------------
www.galerie-der-fotos.de

 
andy_uk

Joined: 2008-02-28
Posts: 32
Posted: Tue, 2008-11-18 19:54

I installed 4.1 ok, but 4.2 gives me the following error:

Database Error

An error has occurred while interacting with the database.
The exact nature of database errors is not captured unless Gallery debug mode is enabled in config.php. Before seeking support for this error please enable buffered debug output and retry the operation. Look near the bottom of the lengthy debug output to find error details.

Back to the Gallery
Error Detail -
Error (ERROR_STORAGE_FAILURE)

* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 959 (GalleryCoreApi::error)
* in modules/core/classes/GalleryStorage.class at line 507 (GalleryStorageExtras::execute)
* in modules/checkout/module.inc at line 563 (GalleryStorage::execute)
* in modules/core/classes/GalleryModule.class at line 175 (CheckoutModule::upgrade)
* in modules/core/PluginCallback.inc at line 230 (GalleryModule::installOrUpgrade)
* in modules/core/PluginCallback.inc at line 67 (PluginCallbackView::handleCallback)
* in main.php at line 450 (PluginCallbackView::renderImmediate)
* in main.php at line 104
* in main.php at line 88

System Information
Gallery version 2.3
PHP version 5.2.6 cgi-fcgi
Webserver Apache/2.0.63 (FreeBSD) DAV/2 SVN/1.5.2 mod_python/3.3.1 Python/2.5.1 PHP/5.2.6 with Suhosin-Patch mod_ssl/2.0.63 OpenSSL/0.9.7e-p1 mod_fastcgi/2.4.6 mod_perl/2.0.3 Perl/v5.8.8
Database mysqli 5.0.51a-log
Toolkits SquareThumb, Gd
Operating system FreeBSD ash.34sp.com 6.3-RELEASE-p5 FreeBSD 6.3-RELEASE-p5 #2: Thu Oct 16 09:27:47 BST 2008

:/usr/obj/usr/src/sys/PAE i386
Browser Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4

 
Dirkii

Joined: 2008-01-16
Posts: 214
Posted: Tue, 2008-11-18 21:38

Yes, the same with me, after uploading the checkout folder, this, checkout-4-2.png (see below), is shown in the admin section, clicking "upgrade" opens a page displaying this:

Quote:
Database Error

An error has occurred while interacting with the database.
The exact nature of database errors is not captured unless Gallery debug mode is enabled in config.php. Before seeking support for this error please enable buffered debug output and retry the operation. Look near the bottom of the lengthy debug output to find error details.

Back to the Gallery
Error Detail -
Error (ERROR_STORAGE_FAILURE)

* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 959 (GalleryCoreApi::error)
* in modules/core/classes/GalleryStorage.class at line 507 (GalleryStorageExtras::execute)
* in modules/checkout/module.inc at line 563 (GalleryStorage::execute)
* in modules/core/classes/GalleryModule.class at line 175 (CheckoutModule::upgrade)
* in modules/core/PluginCallback.inc at line 230 (GalleryModule::installOrUpgrade)
* in modules/core/PluginCallback.inc at line 67 (PluginCallbackView::handleCallback)
* in main.php at line 450 (PluginCallbackView::renderImmediate)
* in main.php at line 104
* in main.php at line 88

System Information
Gallery version 2.3
PHP version 5.2.6 apache2handler
Webserver Apache
Database mysqlt 5.0.51a-community-log
Toolkits Thumbnail, Gd
Operating system Linux dd5036 2.6.24.4-nmm2 #2 SMP Tue Apr 15 18:13:27 CEST 2008 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4

Nice greetings, Dirk.

---------------------------
www.galerie-der-fotos.de

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-11-18 22:29

ok chaps, thanks for trying... back to work on this one for me then.

 
Dirkii

Joined: 2008-01-16
Posts: 214
Posted: Wed, 2008-11-19 15:16

Okay, great Alec,

(oops, error: Alec`s last posting is gone, try again) I have uploaded the checkout folder and overwritten the existing checkout 4.2, because I couldn`t find any buttons, links to deinstall. When clicking on "upgrade" (to 4.2) the (may be exactly) same error messages came like I posted before.

Then deleting the checkout folder before uploading 4.2 and clicking "upgrade" went wrong, also, same messages.

Then installed 4.1, uninstalled 4.1, installed 4.1, 4.1 seemed to be running well, uploaded 4.2 folder, refreshed "Plugins" page or went to "Plugins" page, clicked "upgrade", this displayed:

Quote:
Database Error

An error has occurred while interacting with the database.
The exact nature of database errors is not captured unless Gallery debug mode is enabled in config.php. Before seeking support for this error please enable buffered debug output and retry the operation. Look near the bottom of the lengthy debug output to find error details.

Back to the Gallery
Error Detail -
Error (ERROR_STORAGE_FAILURE)

* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 959 (GalleryCoreApi::error)
* in modules/core/classes/GalleryStorage.class at line 507 (GalleryStorageExtras::execute)
* in modules/checkout/module.inc at line 563 (GalleryStorage::execute)
* in modules/core/classes/GalleryModule.class at line 175 (CheckoutModule::upgrade)
* in modules/core/PluginCallback.inc at line 230 (GalleryModule::installOrUpgrade)
* in modules/core/PluginCallback.inc at line 67 (PluginCallbackView::handleCallback)
* in main.php at line 450 (PluginCallbackView::renderImmediate)
* in main.php at line 104
* in main.php at line 88

System Information
Gallery version 2.3
PHP version 5.2.6 apache2handler
Webserver Apache
Database mysqlt 5.0.51a-community-log
Toolkits Thumbnail, Gd
Operating system Linux dd5036 2.6.24.4-nmm2 #2 SMP Tue Apr 15 18:13:27 CEST 2008 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4

Do not know, what I might be missing.

Nice greetings, Dirk.

---------------------------
www.galerie-der-fotos.de

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2008-11-19 15:29

Hi Dirk,

I'm rewriting portions of the code, so standby for another version - probably about 20 minutes from now.

 
Dirkii

Joined: 2008-01-16
Posts: 214
Posted: Wed, 2008-11-19 15:40

Okay Alec,

I`ll wait here, take your time.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2008-11-19 15:46

Here it is...

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2008-11-19 15:50

Couple of code changes mean that an update to checkoutdownload is probably required:

 
Dirkii

Joined: 2008-01-16
Posts: 214
Posted: Wed, 2008-11-19 16:19

Hmmm, just to upload the 4.2 folder won`t be enough? It doesn`t work, same error messages. Should I install 4.1 and deinstall?

Installed 4.1 again, seems to work well, uploaded 4.2 (and checkoutdownload): the same error messages.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2008-11-19 16:15

Hi Dirk,

I think you have to copy the old version back, uninstall, reinstall, then upgrade with the new code.

 
Dirkii

Joined: 2008-01-16
Posts: 214
Posted: Wed, 2008-11-19 16:38

...done, Alec...it stays all the same, no changes, same messages...

...after uploading 4.2 I have just refreshed the "Plugin" page and "Version" 4.1 turned into 4.2. (see shot)...

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2008-11-19 17:19

hi Dirkii,

You have to uninstall checkout completely. Then delete the checkout directory. Then refresh the get-more-plugins page. Then download 4.1. Then configure and activate it. Then download the new code. Then hit the upgrade button.

 
Dirkii

Joined: 2008-01-16
Posts: 214
Posted: Wed, 2008-11-19 19:09

Yes, I had done it among other things exactly that way more than one time, Alec,

Don`t know what I could have been missed...okay, I try again.

---------------------------
www.galerie-der-fotos.de

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2008-11-19 19:17

Hi Dirkii,

I've run it through that procedure twice on each of two installations now, and I think the upgrade works ok. But I'd still like someone else to try it - thanks for having another go.

 
Dirkii

Joined: 2008-01-16
Posts: 214
Posted: Wed, 2008-11-19 20:11

Yes Alec,

Sounds like it is anything wrong on my system or the way I do it: next try, another failure. 4.1 always worked fine each time I installed it, but 4.2...

Quote:
Then download the new code. Then hit the upgrade button.

By this you mean download the checkout 4.2 zip file from this page and then upload the unzipped folders and files; so I have done it.

Nice greetings, Dirk.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2008-11-19 20:54

Hi Dirkii

Please post the error message that you get (don't just say "same as last time")

thanks

 
Dirkii

Joined: 2008-01-16
Posts: 214
Posted: Wed, 2008-11-19 21:05

Ah yes, sorry Alec,

Here it is:

Quote:
Database Error

An error has occurred while interacting with the database.
The exact nature of database errors is not captured unless Gallery debug mode is enabled in config.php. Before seeking support for this error please enable buffered debug output and retry the operation. Look near the bottom of the lengthy debug output to find error details.

Back to the Gallery
Error Detail -
Error (ERROR_STORAGE_FAILURE)

* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 959 (GalleryCoreApi::error)
* in modules/core/classes/GalleryStorage.class at line 507 (GalleryStorageExtras::execute)
* in modules/checkout/module.inc at line 563 (GalleryStorage::execute)
* in modules/core/classes/GalleryModule.class at line 175 (CheckoutModule::upgrade)
* in modules/core/PluginCallback.inc at line 230 (GalleryModule::installOrUpgrade)
* in modules/core/PluginCallback.inc at line 67 (PluginCallbackView::handleCallback)
* in main.php at line 450 (PluginCallbackView::renderImmediate)
* in main.php at line 104
* in main.php at line 88

System Information
Gallery version 2.3
PHP version 5.2.6 apache2handler
Webserver Apache
Database mysqlt 5.0.51a-community-log
Toolkits Thumbnail, Gd
Operating system Linux dd5036 2.6.24.4-nmm2 #2 SMP Tue Apr 15 18:13:27 CEST 2008 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4

 
photosinaflash

Joined: 2008-11-23
Posts: 37
Posted: Sun, 2008-11-23 23:50

Hi Alec,

Just installed the 4.2beta and it is running smoothly... The only problems i seem to have is, I can't configure the paper and postage options? I have attached a screenshot of the Checkout Configuration page..

Many Thanks

 
photosinaflash

Joined: 2008-11-23
Posts: 37
Posted: Mon, 2008-11-24 00:25

Another issue aswell, I can't edit the email notification options either? Is it something I've done wrong? Does anyone else have this problem? When I try to view AdminTransactions by click either Checkout Orders or Admin Orders I get the attached error.

 
photosinaflash

Joined: 2008-11-23
Posts: 37
Posted: Mon, 2008-11-24 00:32

Sorry I think I was receiving those errors because I hadn't upgraded correctly, but now when I try to upgrade I receive the following error:

Error Detail -
Error (ERROR_STORAGE_FAILURE)

* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 959 (GalleryCoreApi::error)
* in modules/core/classes/GalleryStorage.class at line 507 (GalleryStorageExtras::execute)
* in modules/checkout/module.inc at line 561 (GalleryStorage::execute)
* in modules/core/classes/GalleryModule.class at line 175 (CheckoutModule::upgrade)
* in modules/core/PluginCallback.inc at line 230 (GalleryModule::installOrUpgrade)
* in modules/core/PluginCallback.inc at line 67 (PluginCallbackView::handleCallback)
* in main.php at line 450 (PluginCallbackView::renderImmediate)
* in main.php at line 104
* in main.php at line 88

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-11-24 08:18

Hi Photosinaflash,

Can you post the details of you gallery installation (version, db type, webserver) as requested?

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2008-11-26 12:18

I've found a minor defect with the 4.2 code. Anyone using it will need to add the following:

checkout/classes/CheckoutTransactionEventHelper.class, line 288: from

     }

to:

 	    } else {
		$toAddress = $recipient['toAddress'];
    	    }
 
stevenhale

Joined: 2008-11-13
Posts: 8
Posted: Wed, 2008-11-26 19:13

I've been running 4.2b for the last few days now.

Didn't have any problems upgrading.

No issues so far ...

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2008-11-26 19:19

Hi Steven,

Hurrah. Thanks for letting me know.

Please make the mod in the post above though - otherwise emails go wrong.

Additional point: it may be necessary to clear the template cache on upgrade, as the admin page template has changed. Otherwise the email and postage/paper options don't appear.

 
photosinaflash

Joined: 2008-11-23
Posts: 37
Posted: Thu, 2008-11-27 22:25
alecmyers wrote:
Additional point: it may be necessary to clear the template cache on upgrade, as the admin page template has changed. Otherwise the email and postage/paper options don't appear.

That was the issue I was getting before, just installed 4.2 on a test site and it works perfectly!

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2008-11-28 09:41

4.2 is fine, as a new install. It's the upgrade from an existing 4.1 installation to 4.2 that I want people to test. The upgrade code creates some new table columns, copies data into them then deletes the old columns. It also transfers the email addreses, paper details and postage settings into new formats. Because of the template change, a template cache delete is required.

The 4.2 code is now in the repository, so no need to download it from this thread (I'm removing it). I'm starting work on 4.3, which will have a new 'accessories' feature that you can use to offer things like frames and mounts with every order.

 
Dirkii

Joined: 2008-01-16
Posts: 214
Posted: Fri, 2008-11-28 15:39

Hallo Alec,

Very well done, indeed: it seems to work fine after updating, new to me was this message: "after-clicking-download.png".

Nice greetings, Dirk.

---------------------------
www.galerie-der-fotos.de

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2008-11-28 17:38

Yes, that's fine. Might be a template glitch on the module - have you deleted your template cache?

 
Dirkii

Joined: 2008-01-16
Posts: 214
Posted: Fri, 2008-11-28 20:43

Before installing only, Alec. The "Cache Maintenance" on lib/support.

I tried a new installation, not an update, on another Gallery and all works very well, also.

How can I switch the language used in the "checkout" modules to German? It does not switch automatically according to the language used in Gallery, obviously as I would have thought. My default language in Gallery is German.

Nice greetings, Dirk.

---------------------------
www.galerie-der-fotos.de

 
softco

Joined: 2008-11-30
Posts: 4
Posted: Sun, 2008-11-30 06:00

I tried to upgrade from 0.2.1 to 0.4.1 and now I get nothing but errors AND now my uninstall option is gone. My hope was that I could do a manual install of 0.4.2 and clear up the problem, but I don't see a link for it anywhere on this page. HELP! My checkout is hosed and it seems like my hands are tied. Replacing the directory with the original 0.2.1 doesn't work either. The only other thing I can think to try is to restore my entire site from backup, but that would undo my gallery 2.3 upgrade. I can successfully update, configure and install checkoutpaypal and I have tried installing that fixed CheckoutPaypalHelper class, but none of that affects checkout.

Any help would be greatly appreaciated.

Here are my errors in case that's helpful:
Error (ERROR_STORAGE_FAILURE) : Error trying to run query: ALTER TABLE g2_CheckoutTransaction ADD g_security NVARCHAR(32) NOT NULL
in C:\Inetpub\wwwCIGAC\gallery2\modules\core\classes\GalleryStorage\GalleryStorageExtras.class at line 1707 (GalleryCoreApi::error)
in C:\Inetpub\wwwCIGAC\gallery2\modules\core\classes\GalleryStorage\GalleryStorageExtras.class at line 1363 (GalleryStorageExtras::_executeSql)
in C:\Inetpub\wwwCIGAC\gallery2\modules\core\classes\GalleryStorage.class at line 768 (GalleryStorageExtras::configureStore)
in C:\Inetpub\wwwCIGAC\gallery2\modules\checkout\module.inc at line 370 (GalleryStorage::configureStore)
in C:\Inetpub\wwwCIGAC\gallery2\modules\core\classes\GalleryModule.class at line 175 (CheckoutModule::upgrade)
in C:\Inetpub\wwwCIGAC\gallery2\modules\core\PluginCallback.inc at line 230 (GalleryModule::installOrUpgrade)
in C:\Inetpub\wwwCIGAC\gallery2\modules\core\PluginCallback.inc at line 67 (PluginCallbackView::handleCallback)
in C:\Inetpub\wwwCIGAC\gallery2\main.php at line 450 (PluginCallbackView::renderImmediate)
in C:\Inetpub\wwwCIGAC\gallery2\main.php at line 104
in C:\Inetpub\wwwCIGAC\gallery2\main.php at line 88
System Information
Gallery version 2.3
PHP version 5.2.5 isapi
Webserver Microsoft-IIS/6.0
Database ado_mssql Microsoft SQL Server 2005 - 9.00.3068.00 (Intel X86) Feb 26 2008 18:15:01 Copyright (c) 1988-2005 Microsoft Corporation Standard Edition on Windows NT 5.2 (Build 3790: Service Pack 2)
Toolkits ImageMagick, Thumbnail, NetPBM, Gd
Operating system Windows NT EPWS1 5.2 build 3790
Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)

 
swampy32

Joined: 2006-03-26
Posts: 18
Posted: Mon, 2008-12-01 09:33

I have tried to upgrade to 4.2 but i got errors so i did an uninstall and did a complete new install of 4.2 but i am having a few problems the download no longer works and the delete order sessions does not work any help to get these working please

Thanks
Swampy

Gallery version = 2.2.6 core 1.2.0.8
PHP version = 5.2.4 cgi
Webserver = Apache
Database = mysql 5.0.67-community, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, ImageMagick, Thumbnail, LinkItemToolkit, Gd, NetPBM
Acceleration = none/21600, none/21600
Operating system = Linux xxxxx.xxxxxxx.co.uk 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:21:39 CDT 2006 i686
Default theme = ebony
gettext = enabled
Locale = en_GB
Browser = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)
Rows in GalleryAccessMap table = 20
Rows in GalleryAccessSubscriberMap table = 28325
Rows in GalleryUser table = 3
Rows in GalleryItem table = 28319
Rows in GalleryAlbumItem table = 1161
Rows in GalleryCacheMap table = 0

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-12-01 14:11

Hi Softco,

As you're upgrading to 4.1, not to 4.2, can you open a new thread with this issue and I'll try to help there.

Hi Swampy:

I need to know about the errors on your upgrade to 4.2 - but it's too late now, as you've uninstalled.
checkoutdownload has also been updated, please download new code for this. Also please be specific about the problem with the delete orders - describe in detail what you do, and what happens (or doesn't happen) and what you see on screen. Thanks.

 
paulcobb

Joined: 2006-05-04
Posts: 122
Posted: Mon, 2008-12-01 17:59

Alec,

Upgraded from 4.1 to 4.2
Also upgraded gallery to 2.3

All seems to work fine in upgrading & testing - no errors seen.

I note though that on the 'Checkout::Order Administration' page the entry for 'Invoice (PDF Format)' section appears twice (one after the other).

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-12-01 18:07

Hi Paul,

Thanks for the update. Hmmm... 2 versions of the PDF section? I'd ask if you have the module installed twice, but (and I've had to to go through this myself) that won't work unless you change quite a lot of the code. Let me think about that one.

 
swampy32

Joined: 2006-03-26
Posts: 18
Posted: Mon, 2008-12-01 21:25
alecmyers wrote:
Hi Softco,

As you're upgrading to 4.1, not to 4.2, can you open a new thread with this issue and I'll try to help there.

Hi Swampy:

I need to know about the errors on your upgrade to 4.2 - but it's too late now, as you've uninstalled.
checkoutdownload has also been updated, please download new code for this. Also please be specific about the problem with the delete orders - describe in detail what you do, and what happens (or doesn't happen) and what you see on screen. Thanks.

Thanks for your reply

These are the modules i have installed downloaded them early this morning

Checkout 0.4.2
Checkout Downloads 0.1.3
Checkout by Paypal 0.4.0

In the checkout config there is a section that says

Remove orphan transactions older than (days): 2

(Example sessions

9671c… admin Mon 01 Dec 2008 21:13:05 UTC 87.194.140.194

36f00… admin Sun 09 Nov 2008 15:59:57 UTC 86.138.160.149)

i have set this to 2 days and i have saved the settings but when i go to checkout orders and go to show current sessions there are sessions still there and go back a couple of weeks i set the other setting (Remove all other transactions older than (days):)to 2 days also and that setting worked an deleted all orders over 2 days old.

the older version of 4.1 worked with downloads.

thanks
swampy

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-12-01 21:54

Hi Swampy,

Sessions and transactions are not the same thing. Sessions are what's in people's carts, and handled by the Gallery session-handling code. If you start deleting them then people will have to log-in again (if they were logged in), lose their cart contents, language preferences (as if they'd had their browser's cookie cache deleted.) The "session" features of checkout are a bit cheeky, as far as I know checkout is the only module to allow you to alter other people's session contents. There's no checkout method for deleting sessions.

Transactions are created when you go to the final checkout page. They're entirely different to sessions, and entirely under the control of checkout. There's no change to the transaction-handling code between 4.1 and 4.2.

Also you should know that the version number doesn't tell you everything you need to know about the code - you need to look at the code revision number, in the plugins update page. Even if you have the latest 'version' number, you may still need to update.

 
swampy32

Joined: 2006-03-26
Posts: 18
Posted: Mon, 2008-12-01 22:14

This is my revision date Currently Installed: version 0.1.3 (build 1704) i installed all the modules this morning a fresh install
thanks for the info on the sessions but is there any way to delete them all apart from admin are all guests as i do not have registered users

Thanks
for the reply

If you need admin access to have a look pm me please alec

Swampy

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-12-01 22:21

@sessions: no need to delete them, all gallery installations have a long session table. Gallery core has the code to remove them when they age - there's no point worrying about them. I have about 1000 sessions with carts in at any one time, all created by various search bots visiting random "add-to-cart" links. Don't sweat it.

What else is a problem?

 
swampy32

Joined: 2006-03-26
Posts: 18
Posted: Mon, 2008-12-01 22:32

at the moment i am trying to set up the download module i have set it to free for now like i did in version 4.1 but when i add a photo to cart and click checkout no download button apears like there was in version 4.1 i am baffled

Thanks
Swampy

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-12-01 22:57

4.1 doesn't have a download button until after you complete the checkout process. That can be before you pay (if you tick the box in the checkoutdownload admin page) but you do need to go through the checkoutemail or checkoutpaypal or checkoutgoogle process first.

A long time ago there was an option for a download *before* checkout, but it was removed in, I think version 0.2.x.

 
swampy32

Joined: 2006-03-26
Posts: 18
Posted: Mon, 2008-12-01 23:07

mine did i set it up for free download of watermarked image it must have been a code hack off the forum but i cant remember i am sorry for wasing your time i will have to set paypal up in sandbox mode to test

would this be somthing that you could may be add for a fee im willing to pay also do you have a donate any where to help fund your work

Thankyou

Swampy

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-12-02 09:49
Quote:
it must have been a code hack off the forum

Add this code to your confirm.tpl file:

{g->callback type="checkoutdownload.downloadInfo" transactionId=$tpl.id}
<div class="gbBlock">
<h3>
{g->text text="Download Information"}
</h3>
{if $block.checkoutDownload.downloadTest == 'permit'}
 <form action="{g->url}" method="post">
{g->hiddenFormVars}
<p>{g->text text="Please use the button to download your items."}</p>
<input type="submit" class="inputTypeSubmit" name="{g->formVar var="form[downloadZip]"}" value="{g->text text="Download Items in ZIP format"}"/>
<input type="hidden" name="{g->formVar var=transactionId"}" value="{$tpl.id}">
<input type="hidden" name="{g->formVar var="verify1"}" value="{$block.checkoutDownload.verify1}">
<input type="hidden" name="{g->formVar var="verify2"}" value="{$block.checkoutDownload.verify2}"> 
<input type="hidden" name="{g->formVar var="controller"}" value="checkoutdownload.BuildDownload"/> 
<br/>
<p>{g->text text="No. of times downloading has been attempted:"}{$block.checkoutDownload.downloadAttempts}</p>
{elseif $block.checkoutDownload.downloadTest == 'empty'}
<p>{g->text text="This order does not include any downloadable items."}</p>
{elseif $block.checkoutDownload.downloadTest == 'outOfTime'}
<p>{g->text text="The time period for downloading items in this order has expired."}</p>
{elseif $block.checkoutDownload.downloadTest == 'notPaid'}
<p>{g->text text="Items in this order can be downloaded when payment is cleared."}</p>
{elseif $block.checkoutDownload.downloadTest == 'tooManyDownloads'}
<p>{g->text text="The limit on the number of times this order may be downloaded has already been reached."}</p>
{else}
<p>{g->text text="Oh wie!"}</p>
{/if}
{if $block.checkoutDownload.downloaded > 1}
<p>{g->text text="The last download attempt was at"} {g->date timestamp=$block.checkoutDownload.downloaded style = "datetime"}</p>
{/if}
</div>
 
swampy32

Joined: 2006-03-26
Posts: 18
Posted: Tue, 2008-12-02 10:00

Thanks alec is there anything i need to add to this as it is allowing the image un watermarked

Thanks
Swampy

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-12-02 10:08

The last update to checkoutdownload changed the way downloads are created, by always building them from the original image so that they could be resized (so you can have different sized downloads at different prices.) That means, however, that there's no longer a way to have a watermark added to the downloaded image.

It would be possible in future to extend checkoutdownload so you can have a watermark added, including per-user watermarks, watermarks with the date of download, or other exciting stuff, but it would be a lot of work.

 
swampy32

Joined: 2006-03-26
Posts: 18
Posted: Tue, 2008-12-02 10:24

Thanks again alec for your support this would be a good addon ps sent you a pm

Swampy

 
paulcobb

Joined: 2006-05-04
Posts: 122
Posted: Tue, 2008-12-09 15:18

Alec,

Maybe this is not specific to this version but,
I'm getting a regular number of orders where people opt to pay by cheque then enter no details (pressing a CR on the enter details page I assume. Is there any way to fool-proof this?

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-12-09 15:46

HI Paul,

As far as I remember at least the email field has be non-blank (actually it has to match a regexp for a valid email address) - you can sanity test the inputs by doing a bit of refactoring in Details.inc along these lines (I copied this from the checkoutnochex module):

	    /* Parse form for required fields */
	    $form['custEmail'] = trim($form['custEmail']);
	    if (empty($form['custEmail']) || !GalleryUtilities::isValidEmailString($form['custEmail'])) { 
		$error[] = 'form[error][badEmail]';
	    }
	    $form['custFirstName'] = trim($form['custFirstName']);
	    if (empty($form['custFirstName'])) {
	    	$error[] = 'form[error][badFirstName]';
    	    }
    	    $form['custLastName'] = trim($form['custLastName']);
	    if (empty($form['custLastName'])) {
	    	$error[] = 'form[error][badLastName]';
    	    }
    	    $form['custAddress1'] = trim($form['custAddress1']);   	    
	    if (empty($form['custAddress1'])) {
	    	$error[] = 'form[error][badLine1]';
    	    }
    	    $form['custAddress2'] = trim($form['custAddress2']);   
	    if (empty($form['custAddress2'])) {
	    	$error[] = 'form[error][badLine2]';
    	    }
    	    $form['telephone'] = trim($form['telephone']);   
	    if (empty($form['telephone'])) {
	    	$error[] = 'form[error][badTelephone]';
    	    }
    	    $form['custZip'] = trim($form['custZip']);  
	    if (empty($form['custZip'])) {
	    	$error[] = 'form[error][badPostcode]';
    	    }
    	    
	    if (!$error) { 
              .
              .
              .
     	     $ret = GalleryCheckoutApi::setPaymentPlugin($transaction, 'checkoutemail');
	     if ($ret) {
	         return array($ret, null);
             }
             /* continue with good form input */
              .
              .
              .
            } else /* error parsing form */
	    	$results['delegate']['view'] = 'checkoutemail.Details';
	    }
         

and then putting this kind of thing in the template

<table cellspacing="5" class="gbDataTable gcBorder1 checkoutEmailDetailsTable" width="80%">
	  {if isset($form.error.badFirstName)}
	  <tr><td colspan="2" align="center">
	    <span class="checkoutErrorText" style="color:Red;font-weight:bold;">
	    {g->text text="You must enter a first name."}
	    </span>
	  </td>
	  </tr>
	{/if}
	  <tr>
	    <td align="right"><strong>{g->text text="First Name"}:*</strong></td>
	    <td><input type="text" name="{g->formVar var="form[custFirstName]"}" value="{if isset($form.custFirstName)}{$form.custFirstName}{/if}" size="30" /></td>
	  </tr>
	  {if isset($form.error.badLastName)}
	  <tr><td colspan="2" align="center">
	    <span class="checkoutErrorText" style="color:Red;font-weight:bold;">
	    {g->text text="You must enter a last name."}
	    </span>
	  </td>
	  </tr>
	{/if}
	  <tr>
	    <td align="right"><strong>{g->text text="Last Name"}:*</strong></td>
	    <td><input type="text" name="{g->formVar var="form[custLastName]"}" value="{if isset($form.custLastName)}{$form.custLastName}{/if}" size="30" /></td>
	  </tr>
	  {if isset($form.error.badEmail)}
	  <tr><td colspan="2" align="center">
	    <span class="checkoutErrorText" style="color:Red;font-weight:bold;">
	    {g->text text="You must enter a valid email address."}
	    </span>
	    </td>
	  </tr>
.
.
.
.

So, yes, not hard, but I think the code needs a bit of refactoring to make it more obvious. I'll put it on the to-do list...

 
maiaradis

Joined: 2008-12-11
Posts: 17
Posted: Thu, 2008-12-11 10:39

Hello,

I installed checkout 0.4.2 and checkout e-mail 0.4.0 with 4 other languages but it remain alwais in english. In fact in modules/checkout/po there is no other languages. Where can I found this missing files? When I uninstall and install again nothing changes.

Thanks

maiaradis

URL di Gallery = http://maiaradis.ch/foto/main.php
Versione di Gallery = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
Versione PHP = 5.1.6 apache2handler
Webserver = Apache/2.2.3 (CentOS)
Database = mysqli 5.0.22, lock.system=flock
Strumenti = Exif, Gd, LinkItemToolkit
Accelerazione = partial/172800, partial/900
Sistema operativo = Linux I1.hightechbits.com 2.6.18-53.el5 #1 SMP Mon Nov 12 02:22:48 EST 2007 i686
Tema predefinito = carbon
gettext = abilitato
Locale = it_IT
Browser = Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; it-it) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1
Righe nella tabella GalleryAccessMap = 21
Righe nella tabella GalleryAccessSubscriberMap = 185
Righe nella tabella GalleryUser = 2
Righe nella tabella GalleryItem = 185
Righe nella tabella GalleryAlbumItem = 19
Righe nella tabella GalleryCacheMap = 8

www.maiaradis.ch
www.maiaradis.ch/foto