Checkout 0.3.3 now in repository

alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Thu, 2008-02-21 14:58

0.3.3 Now available from the community repository. Please use the 'get more plugins' section of your Gallery's admin/plugins page.

0.3.3 beta3 available
Interim release including some bug fixes, and the option to edit the Notes/Comments fields for orders.

0.3.3 beta2 available

New features: Numeric format field in the admin page of checkout for currency display - you can choose integer prices, two decimals etc - whatever your preference. Also the comma versus point decimal separator issue - should now always follow the locale preferences.

There are a few bug-fixes included too, especially with checkoutdownload.

Italian translations have been provided for all modules. I'm still waiting for any other languages.

The 'continue shopping' buttons should now return you to the correct page more reliably - the one from which you entered checkout. Please let me know particularly if there are any glitches with this.

Enjoy!

0.3.3 beta available

New features:

Checkout now includes customer phone numbers. (note you'll have to adjust your paypal account settings to collect them from paypal)

Per-item configuration now allows 'local' names for products

The paypal plugin doesn't display unless there is an amount to pay greater than zero

Orders with zero (or negative) amounts to pay progress straight to the 'payment cleared' stage

Other changes:

Downloads should now work correctly.

Errors in selecting which per-plugin email templates to include fixed.

Internal data structures have changes slightly, so if you've been experimenting with any custom plugins that alter the cart '$items' array you will need to adjust them.

Notes:

I don't recommend this release for production sites (yet).

Use of quotes in product names still displays incorrectly ('"') in pdf invoices - this needs further investigation.

Once again, *all* included modules (if you're using them) should be upgraded together.

Looking forward to hearing problem reports from this release.

0.3.2 beta2 available

New feature: you can edit the customer details in a transaction (from the Admin Order page) and also delete individual transactions.

Also includes various bug fixes, including problems with links in plain-text rendering of emails.

0.3.2 beta available

Checkout is now modular: the download and pdf features have been moved to their own plugins, and there is a new checkoutgroups plugin - which automates the process of adding a customer to an existing group when they pay for a particular product. (Naturally they need to be a logged-in user when the user is placed for this to happen.) Groups are configured from an extension to the checkout tab on the item/album configuration page. If you don't want any of these features you don't need to keep the code associated with them on your server.

Each of these three feature plugins uses a different combination of (new) interfaces that the checkout modules offers to 'hook-in' at different points: modules can now, for instance, adjust the list of products before display, alter the contents of the basket before the order is confirmed, add sections to the outgoing emails and/or display extra components on the order administration and order confirmation pages. This means that some of the ideas floated recently for checkout (I'm thinking of stock-keeping - taking a product off sale when it's out of stock - or offering different prices/products for members of different groups, to take just two examples) can now be coded easily as plugins and without modification to the core code. I don't have time to write full documentation, and I've no doubt that some of the interfaces will change with time (as well as new ones appear), but you can get a long way by looking at the examples (checkoutdownload, checkoutgroups, checkoutpdfinvoice) included.

Other changes include:

transaction table pruning:Configure the number of days after which the details of a transaction will be purged from the database

override email templates: Checkout now obeys Gallery tradition in respect of the email templates: they can be overridden by files of the same name in a local/ subdirectory. This is true for email section templates included in the sub-plugins too.

discounts now have a 'group' criterion so, for instance, you can give registered users free p&p, or combine it with the checkoutgroups plugin to give returning customers a 10% discount. (Again, it's only meaningful if the user is logged in)

Emails can be sent in different languages. Note: I've not been able to test this feature properly as I don't have po files for any languages. I will contact those who have volunteered with translations soon, so we can work towards a situation where this feature is testable.

You will need to replace the checkoutemail and checkoutpaypal modules from the previous updates with the ones included here as some important details have changed - even though the module versions are the same. You can just copy the code over the old module. However, from the point of view of keeping installations tidy you might also consider removing the old module directories (including the checkout module) entirely before uploading the new ones. Many files have new names, and some have been removed - a plain copy-over operation will leave the old unused files intact on your server. While I don't expect this will compromise the operation it's untidy and may make fault-finding harder.

As usual, this upgrade makes various database schema changes so please don't install it on a live site. I will be looking for reports of problems with the upgrade procedure particularly, and it may be that recovery will involve uninstalling checkout and reinstalling (or possibly even reinstalling Gallery entirely) and I'd hate for anyone to have to do that on a site where it would cause undue inconvenience.

Looking forward to hearing reports of any problems or difficulties from anyone so I can sort them out.

0.3.1 beta2 available

Including a couple of bug-fixes to date, and now... Checkout will produce a pdf invoice/packing list for your order from the order admin page. You will have to edit the invoice template (which is checkout/templates/pdf/invoice_master.pdf at present) with say Illustrator or any other pdf editor, or produce your own. The Code uses fpdf, a freeware pdf library which is included, hence the jump in size. Fpdf doesn't support utf-8 so at present special characters in image names will render wrongly. I've bodged the case for the currency symbol at present so that field is ok. Cousins across the pond will want US letter rather than A4 so should replace the template file and also jiggle the column positions and widths set in PDFOut.inc. It would be nicer to use a smarty template with the pdf contents in postscript rather than a library, but I think it might be a bit tricky. Is there anyone with experience at producing pdf files with smarty who can advise?

Note: checkout still doesn't have a way to delete old transactions, and since a new one is created every time you hit the confirm button, they do tend to build up. I'll look at this next.

0.3.1 beta available

There's quite a lot of new code in this release, so please help me test it out.

New for 0.3.1:

Discounts, as discussed in this thread. There's an expanding table to enter the parameters in the admin page. I've tested this feature out, but there are plenty of combinations of criteria and I've not been able to test them all. Make sure your discounts are ordered priority wise from large to small, or someone who qualifies for a small discount will not be able to match a big one - it's the first match only that counts.

Products are now individually selectable for drop-down or bdisplay so you can have a table for the most popular products and consign the rest to a drop-down. They'll be added to the table part of the user's cart as and when they're selected.

There's a button to re-send the order confirmation email on the admin page; mainly for testing purposes, but it might prove useful.

Note regarding Paypal and discounts: Paypal doesn't support a discount item for each order, nor does it permit negative price line items. So there is a problem with redistributing (say) a £10 discount across a variable number of line items. The approach I have taken is to reduce the price of items - beginning at the end of the order, in sequence - and to zero if necessary - until the discount is all "used up". That's not enough though: it's not always possible to distribute an amount correctly where line-item quantities are greater than one - for instance, a discount of £10 cannot be equally distributed over a line of seven identically-priced items. I have had to fudge this by rounding down the item price, then adding the balance back on to the order with another item. Ugly, but necessary to get the order total to be correct. If anyone has an alternative idea, I'd be very pleased to hear it.

0.3.0 beta available

New features for 0.3.0:

Automated configurable emails for order-confirm, order-paid, and order-completed events. At present only checkoutpaypal will trigger an order-paid event automatically, and both checkoutpaypal and checkoutemail will trigger order-confirmed events. Order-paid and order-completed (and admin notifications, mainly for testing) can be triggered manually from the order admin page. You can't at the moment 'roll-back' an order from paid, to unpaid, or from completed to payment-cleared etc, but you can re-trigger order-paid and order-confirmed emails as many times as you like, to test.

All email settings are now made in the main checkout admin page.

Emails are built from a series of template sections. I will try to write up (or persuade someone else to write up) how it works so you can adjust the emails to suit, but I've tried to make the default contents at least reasonable. Note that you *will* have to edit checkoutemail/templates/email/confirm.tpl to include your own payment instructions or to remove the blank ones that are there. If you look at the text as it stands, you'll see what I mean.

To save hassle, if you suspect there's a bug in this version and it's not 100% to do with a new feature, please uninstall checkout entirely, and reinstall version 0.1.18 that's available from the SVN server and see if the same fault exists with your installation of that version. If so please consider that you might have a borked Gallery installation, or that it's a pre-existing 'feature' that I might not be able to deal with soon. Otherwise - please post your comments and reports here.

This is also probably a sensible place to say thank-you to Paul Cobb who has been very helpful in testing alpha versions of this code. Thank you Paul.

0.2.1 beta 2 now available, including minor bug fixes to date.

New features for 0.2.1:

Banded Postage: (enter more than postage rate/product on the admin page). Orders that have one or more products marked as 'require postage' will force the customer to select a postage rate, or if only one postage rate, to acknowledge it.

Order management: yes, folks, for the first time in, what, 5 years, Gallery now has a cart system that lets you actually see what people have ordered! Amazing! It's a little rudimentary at present and there are no editing options (or deleting options) so those transactions and transactionitems are going to *keep* piling up in your database, but hey, you've managed for the last 5 years, so what's another week or so?

Other changes:
the 'confirm' screen, and the order details passed to both checkoutemail and checkoutpaypal (yes you need to upgrade both of those too) are now drawn from the transaction record that is written when the 'confirm' button is hit. That means that item price changes at the wrong instant will no longer result in inconsistent order totals and sub-totals. It does mean however that the item titles no longer include the summary field, and some other minor changes to template contents. Let me know if this causes grief for you and I will see what I can do.

This is still a beta release, and a cock-up with schema numbers in 0.1.18 (wasn't me, guv, honest) means that a bit of fiddling has been necessary in the upgrade code. So try this out first on a Gallery installation you don't really care about. And please, please, let me know how it goes, huh? I'm getting lonely in this thread.


New features: for 0.2.0:

-per-album and per-product prices and product-visibility are set on a new 'checkout' tab on the edit album/photo page. These settings override global settings in the admin page.

-Paper choices are made per-product, rather than per-item. Note: previous 'custom' settings involving the customfields module will be ignored, and may be deleted at your leisure.

-Apart from price and description, fields for each product are now: 'visible' (to show or not - designed to be overridden in particular albums for selective product offerings) - 'requires Postage' - an order with no products that 'require postage' will not incur a postage charge and 'download' - as before. There is no longer a requirement for any (externally visible) internal product reference.

Some minor changes have been made to templates to accommodate these differences.

Upgrade instructions: copy the checkout folder over your existing checkout folder replacing files where necessary. Run the upgrade from the plugins admin page (please post in this thread if you have any difficulties with this stage.) You should be offered to 'configure' the module. The template for the admin page should look 'new' - if you see the old template you may need to empty your template cache (maintenance page). Again if this is the case please post on this thread and let me know.

Your old global products and prices should be carried forward to the new page.

After upgrading the main checkout module, please upgrade the checkoutemail and checkoutpaypal modules, also to versions 0.2.0 both. Checkout 0.2.0 is not compatible with the previous versions of these modules.

IMPORTANT NOTE: if you wish to revert to the old version you should uninstall *both* the new checkoutemail and checkoutpaypal BEFORE removing checkout to avoid problems.

Please post bug reports and problems to this thread.

Volunteers are also sought to translate the module for different locales - an en_GB is now included, substituting 'basket' for 'cart'.

Thanks

oh yes - and please post a note if you try it and can't find any problems, that will be useful information too.

 
paulcobb

Joined: 2006-05-04
Posts: 122
Posted: Thu, 2008-02-21 19:09

Installed Checkout 0.2.0 beta.
This looks to be working well so far.
I am still trying to 'break' it!
GB locale looks fine too.

One thing that I have noticed, which required a manual fix previously, to get the 'basket' icons to display correctly on the album pages etc.
I know that the fixes were applied to the relevant cart links within the .css files in the icon pack.
Is there any way that this can be fixed via the checkout modules?

Paul

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Thu, 2008-02-21 23:25

OK you've lost me... I know nothing about icons so I will have to investigate.

 
paulcobb

Joined: 2006-05-04
Posts: 122
Posted: Fri, 2008-02-22 07:16

This gives background:

http://gallery.menalto.com/node/45022

Paul

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-02-25 19:34

Paul,

From a brief recce, I don't think that's anything that can be addressed in the module itself.

I'm hard at work on 0.2.1, which includes multiple postage options, and fixes a few potential issues with cart integrity.

 
paulcobb

Joined: 2006-05-04
Posts: 122
Posted: Mon, 2008-02-25 19:47

I thought that maybe not - but best to flag up any issues.
I'll wait for the next installment then!

Paul

 
wbarek

Joined: 2007-05-02
Posts: 155
Posted: Thu, 2008-02-28 03:47

Alec,
Great job, no problem with installation!
I will have to digest the usage process to comment.

 
alessioga

Joined: 2008-02-25
Posts: 1
Posted: Thu, 2008-02-28 17:32

i'm triyng it. i can't find any mistake.
it is a good version because it is not necessary use the plugin "custom field" to change singolar product price.
does some other have any problem???
i'm italian and if you send me the original english text i can make the translation file.

i found a problem, i don't see the download button after i bye a prodocut.
i check Download in "Products and Prices", i check "Override Permissions?"

i read
"PayPal::Payment Being Processed

Thank you - your payment is being processed by PayPal.

You will shortly receive confirmation of your payment and order details directly from PayPal at the email address you provided.

You have ordered downloadable items but your payment has not yet been cleared. Please click the Refresh button on your browser to try again.If you have any problems, please contact us. "

i see the $_POST [payment_status] => Completed
but the variable $pay in the PaypalComplete.inc is not true and i don't see the button download

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Thu, 2008-02-28 11:06

I'm aware of a minor issue with Gallery 2.2.1 - something which may have been fixed in core code since I can't reproduce it on 2.2.4 - that prevents the order viewing page (via the new Checkout Orders admin page) from opening. Instead any attempt to view the details of an individual order fails with an Object Not Found Error. If this affects you drop me a pm and I'll send you the fix. If it doesn't, don't worry about it and it should all be sorted in the next code release anyway.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Thu, 2008-02-28 11:20

Hi Alessi,

I will send you the po file with instructions of how to translate it, when the current round of upgrades is done (to save you having to do it again and again.)

@downloads: This portion of code has not been altered by me, but I will investigate over the next day or so. Did you receive independent confirmation from paypal that the payment had actually cleared?

 
kingstog

Joined: 2007-10-08
Posts: 13
Posted: Thu, 2008-02-28 13:22

Hi, I love the new changes, great work! Thanks for this!

 
Xanthumer

Joined: 2008-02-26
Posts: 7
Posted: Thu, 2008-02-28 23:39

I've just installed Gallery2 for the first time (virgin) and am adding Checkout for the first time. I did install 0.1.x and upgraded it to 0.2.1. I went through the configuration of Checkout, PayPal, and Email w/o difficulty. Now when I actually "Continue to checkout" I get a HTTP 500 Internal Server Error whether I use PayPal, email, or none of the above. I get the same error page when I click the Checkout Orders link from the Site Admin navbar. I have deactivated and reinstalled and the error persists. Is it a permissions problem on the server?
Here's the address that's pulling up the 500 page:
http://wwwdotmysitedotcom/gallery2/main.php?g2_view=core.SiteAdmin&g2_subView=checkout.AdminTransactions&g2_navId=x61c4b18a
I'm running on MS Server 2003 SP2 with IIS6, and MS SQLServer 2005 as the database. Every other aspect of my Gallery2 install appears to be working perfectly.
BTW - I assume I have to deactivate the default Cart plugin to use Checkout.
Thank you for all your work. It'll be incredible once I get this up and running.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Thu, 2008-02-28 23:35

Yes, you should deactivate the cart plugin (although I don't think they conflict exactly but you don't need two such plugins running at once.)

The firs thing is to enble php error logging (edit your config.php, look for the bit about errors and follow the instruction to set debugging to 'buffered'. Re-run the link, and see if you can get a more informative error message ... additionally and alternatively find out where your server's php error log is written to (I have no idea on IIS, but it must be somewhere) and see if there are some clues there. Whatever you find, post here or send to me in a private message, please.

Just to clarify hen you say you've "deactivated and reinstalled", do you mean you deactivated and reactivated, or you deinstalled and reinstalled (the internals of the two are different.) If the former, try the latter too.

 
deepsingh

Joined: 2008-02-19
Posts: 17
Posted: Fri, 2008-02-29 04:42

hi,

guy you have include maximum required feature, which is now very easy for end users.

i have a query :- i want to display all price(s) of a product/image under image only for view so a guest/registered user can see the price of product/image without click on 'add to card' option. other features will remain same, user select the product catg. in cart page, as currently.

deepsingh

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2008-02-29 12:14

Ok, I've added an "Item Prices" Block that you can show on item pages or in the sidebar (you can also show it on album pages, although depending on how your prices work that might not make much sense.)

You'll find it in the theme configuration settings, with all the other Blocks.

Copy the attached files to the following locations, overwriting the existing ones where necessary.

Callbacks.inc -> modules/checkout
blocks.inc -> modules/checkout/templates/blocks
Itemprices.tpl -> modules/checkout/templates/blocks

I'll include them in the next revision, which (so far) has a couple of minor bug fixes.

 
SpainAlex

Joined: 2008-02-09
Posts: 14
Posted: Fri, 2008-02-29 15:43

Ey!!new modifications of the module! ;) thanks!! I will test it.

 
SpainAlex

Joined: 2008-02-09
Posts: 14
Posted: Fri, 2008-02-29 16:44

Could be possible to add pagination in visualization of cart? By example, every ten photos new page. If there are many photos into the cart, page is very long.
Maybe with tabs in javascript...???

Thx, your help is very appreciated.

 
wbarek

Joined: 2007-05-02
Posts: 155
Posted: Fri, 2008-02-29 16:49

Works like a charm! Good work and very useful mod.
Thanks Alec WB

 
Xanthumer

Joined: 2008-02-26
Posts: 7
Posted: Sat, 2008-03-01 19:14
alecmyers wrote:
Yes, you should deactivate the cart plugin (although I don't think they conflict exactly but you don't need two such plugins running at once.)

The firs thing is to enble php error logging (edit your config.php, look for the bit about errors and follow the instruction to set debugging to 'buffered'. Re-run the link, and see if you can get a more informative error message ... additionally and alternatively find out where your server's php error log is written to (I have no idea on IIS, but it must be somewhere) and see if there are some clues there. Whatever you find, post here or send to me in a private message, please.

Just to clarify hen you say you've "deactivated and reinstalled", do you mean you deactivated and reactivated, or you deinstalled and reinstalled (the internals of the two are different.) If the former, try the latter too.

OK, it took a little while, but I've done all that you suggested, including deactivating AND deinstalling, neither fixed the problem. Attached are 5 debuglogs with explanatory file names. They all terminate in exactly the same way. For reference I included a log showing the same cart activity using G2Cart (G2s default cart) which does not generate an error.
Thank you again and let me know what more I can do to help.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2008-02-29 23:06

This bit looks a little fishy to me:

2008-02-29 13:19:52 [38b9c51fb3dda9db3fb033c3d9fb91e9] ado_mssql error: [156: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'WHERE'.] in EXECUTE("SELECT 
		g2_CheckoutTransaction.g_date,
		g2_CheckoutTransaction.g_id,
		g2_User.g_fullName,
		g2_User.g_userName,
		g2_CheckoutTransaction.g_recipientName,
		g2_CheckoutTransaction.g_host,
		g2_CheckoutTransaction.g_paymentPlugin,
		g2_CheckoutTransaction.g_amount
		
		FROM g2_CheckoutTransaction
		INNER JOIN g2_User
		WHERE g2_User.g_id = g2_CheckoutTransaction.g_buyerId
		    AND
		      g2_CheckoutTransaction.g_paymentPlugin IS NOT NULL
		ORDER BY g2_CheckoutTransaction.g_date DESC
		")

Although nothing inherently wrong with that query jumps out at me - the more so because it runs fine on MySQL. I don't suppose you feel like installing MySQL and trying that instead, just to nail down MS SQL Server as the incompatibility? Are there any MS SQL specialists reading this thread who could comment? :whistle:

 
Xanthumer

Joined: 2008-02-26
Posts: 7
Posted: Sat, 2008-03-01 07:52

Truth is I've never touched MySQL, but I've been using SQL Server for years. I'm sure I could figure out MySQL, but it would take time.
I did try the same checking out procedure on my Mac and got a different result. A debug page with specific information on what files were being called and on what line the error occurred. I'll attach it and maybe it'll shed some additional light (It might be helpful to change the .txt to .html). In the meantime, maybe I'll try downgrading to an earlier version of Checkout and see what happens.
Continued thanks

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Sat, 2008-03-01 12:03

That page was failing on a different query to the one I flagged up previously (and the previous query doesn't run when you hit confirm - it's part of a different page). Never mind, let's focus on this one. Are you saing you reinstalled Gallery on your Mac (in which case you can't be using MS SQL Server) or are you saying you're getting a different error page browsing the same server on the mac as you do on the PC? What you've just posted is much more like what I expect to see when there's a database error (I.E. a Gallery Error code) than a 500 Internal Server Error Page.

So, keep using the Mac, are there any MS SQL log files (independent of Gallery) that will record the error in more detail? You are loooking for more information about this event:

2008-02-29 13:01:58 [38b9c51fb3dda9db3fb033c3d9fb91e9] 
ado_mssql error: [3621: [Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been terminated.] 
in EXECUTE("INSERT INTO g2_CheckoutTransaction (g_date, g_buyerId, g_host, g_amount, g_id) VALUES (1204315318,6,'166.70.243.20','3.00',88)")

Specifically I want to know why it was terminated by SQL server. I gather you can run a Profiler Trace to capture error events. That might be helpful.

Alternatively you could try running that query manually in whatever admin tools MS SQL provides you with:

INSERT INTO g2_CheckoutTransaction (g_date, g_buyerId, g_host, g_amount, g_id) VALUES (1204315318,6,'166.70.243.20','3.00',88)

And see what error comes back.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Sat, 2008-03-01 15:37

@Xanthummer,

Please try these two files replacing their namesakes in modules/checkout. I haven't tested whether the modified SQL syntaxes still work with MySQL though.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2008-03-01 16:36

@alecmyers:
your syntax for inner join is incorrect.

FROM g2_CheckoutTransaction
		INNER JOIN g2_User
		WHERE g2_User.g_id = g2_CheckoutTransaction.g_buyerId
		    AND
		      g2_CheckoutTransaction.g_paymentPlugin IS NOT NULL

that should be:

FROM g2_CheckoutTransaction
		INNER JOIN g2_User ON g2_CheckoutTransaction.g_buyerId = g2_User.g_id
		WHERE g2_CheckoutTransaction.g_paymentPlugin IS NOT NULL

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Sat, 2008-03-01 17:31

Yep figured that one out this afternoon - although MySQL parses it, MS SQL throws it out.

 
Xanthumer

Joined: 2008-02-26
Posts: 7
Posted: Sat, 2008-03-01 18:32

Woohoo, partial success! I now get through the checkout procedure without error, but so far I haven't received the order information from the email module. I assume it uses all the outgoing server information in G2 General Settings, which tested fine and was received quickly. Where does Checkout try to put/stage the images for download? Do I need to set up a directory/permissions?
Additionally, there has been partial success in the Checkout Orders screen. It starts to come up and the problem SQL query is shown. I tried it twice, once before successfully checking out and once after, and got two different results. I'll attach both files.
FYI - I'm only using my Mac to browse. Apparently, it's better about receiving error output from IIS than IE7...go figure.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Sat, 2008-03-01 18:55

I still haven't got the query syntax quite right in the files I uploaded today - don't sweat it. I'll go through them all and upload a complete new fileset some time tomorrow, with a couple of other misc. bug fixes too.

Checkoutemail (as far as I know) doesn't support automatic downloading, and doesn't bundle files for download. Your options for downloading are before payment, or via the checkoutpaypal plugin, which is automatic. This is not an area of the code I have modified, or even looked at in great detail yet. Discussions are ongoing about how to tidy up this end of things.

Checkoutemail uses the server information in the G2 General settings, yes. Have you set all the options in the checkoutemail admin page? In particular, have you set the email subject?

 
scottybabe

Joined: 2008-02-22
Posts: 3
Posted: Sun, 2008-03-02 16:59

Hi

Great update !

Could someone let me know if I can only add a photo to the cart from the Thumbnail view ? If I'm viewing a photo I cannot find a way to display the Add to Cart button. Am I missing something obvious ?

Thanks

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Sun, 2008-03-02 17:18

You might be missing the "add photo to cart" link which should appear alongside, for instance, edit photo, make hilight, move photo etc. The exact location will depend on your theme.

 
scottybabe

Joined: 2008-02-22
Posts: 3
Posted: Sun, 2008-03-02 17:40

Thanks !! I was looking for an item called Add to Cart and had already removed the Action Items link before installing the checkout code. Put the Action Items back and there is the Add to Cart...thanks

 
belmont123

Joined: 2008-03-03
Posts: 16
Posted: Mon, 2008-03-03 21:08

Concerning the "Product selection display type" option, currently the 2 choices are Table and Drop-down. Is it possible that the Drop-down option is broken ? If I select the Drop-down option, it looks like only one product can be ordered for each image. In the past multiple products can be ordered. e.g. I can order both a 4x6 print as well as a 5x7 print for the same image. I'm running with the latest versions as of yesterday (03/02/08).

Thanks,
-- John

 
kferranti4

Joined: 2008-02-10
Posts: 26
Posted: Mon, 2008-03-03 23:37

Great Mod! I love the new features
Is it possible to add more than one drop-down box or a combination of a table and drop-down boxes. I would like to add popular print sizes in a table then add different drop-downs for various gifts. It would really be great it you could add a heading over the drop-down box.

Also Where would I edit the link text that is in the item actions under the thumbnails?

Thanks Karen

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-03-04 00:04
belmont123 wrote:
Concerning the "Product selection display type" option, currently the 2 choices are Table and Drop-down. Is it possible that the Drop-down option is broken ? If I select the Drop-down option, it looks like only one product can be ordered for each image.

Refresh the page after you've added the first product. That product should appear in a table line by itself, the drop-down reappears underneath (& one item shorter). When you've added all but product from the drop down (there's only one left) the last product gets a table line automatically. I had a discussion today about whether products with zero quantity entered should be rolled back into the drop-down or not. I think not - but I'm open to persuasion.

If that's *not* what happens on your browser, then there's a bug - in which case a detailed description of what you did and what you see (with screenshots) would really help.

Quote:
s it possible to add more than one drop-down box or a combination of a table and drop-down boxes. I would like to add popular print sizes in a table then add different drop-downs for various gifts.

Interesting idea. How would you distinguish between which products to show in a drop-down, and which in a table?

Quote:
It would really be great it you could add a heading over the drop-down box.

Give me an example. Where would you set this heading? Does it vary item-to-item, or is it fixed (in which case you can add it to the template yourself)?

Quote:
Also Where would I edit the link text that is in the item actions under the thumbnails?

In the module.inc file - scan through it and it should be quite obvious where the text is coded. Alternatively (and probably better) you can edit the .po file which has the translations which will work if you're not using the default US text.

 
belmont123

Joined: 2008-03-03
Posts: 16
Posted: Tue, 2008-03-04 00:43
Quote:
Refresh the page after you've added the first product. That product should appear in a table line by itself, the drop-down reappears underneath (& one item shorter). When you've added all but product from the drop down (there's only one left) the last product gets a table line automatically. I had a discussion today about whether products with zero quantity entered should be rolled back into the drop-down or not. I think not - but I'm open to persuasion.

If that's *not* what happens on your browser, then there's a bug - in which case a detailed description of what you did and what you see (with screenshots) would really help.

This is how it used to work with earlier versions. The most recent version does not work this way.

You can try it out with the gallery I setup here ... Just try to add a couple of items to the shopping cart ...
http://www.foxtravaganza.com/gallery

Also, looks like the later post/suggestions came from Karen.

Thanks,

-- John

 
belmont123

Joined: 2008-03-03
Posts: 16
Posted: Tue, 2008-03-04 03:05

Can you use this link instead to test ?

http://www.foxtravaganza.com/test_gallery

The other site will go live soon, so I had to set back to "Table" mode since table mode does work, but I'd rather go back to "Drop-down" mode since the list will be long.

Thanks for looking into this.

Checkout is definitely a killer app for G2 !

-- John

 
kferranti4

Joined: 2008-02-10
Posts: 26
Posted: Tue, 2008-03-04 05:29
Quote:
Interesting idea. How would you distinguish between which products to show in a drop-down, and which in a table?

I am not a programmer but my thoughts were after main products and prices have been set have a box "Add New Drop-down" Once saved a new set of Products and prices list would appear labeled Set B first box in the set would be product header which would be what the box shows in the drop-down instead of "select a product". I do not know if this is possible but it sure would be great. I would probably use the main as a list then 3 extra drop-downs for poster prints, packages and gifts.

Thanks I found the item action text.

Can the mini icon that shows under photo thumbs be changed? I would just save over the image but it does not seem to be an actual image that I can find so I am guessing it is a special character or code.

Thanks,
Karen

 
paulcobb

Joined: 2006-05-04
Posts: 122
Posted: Tue, 2008-03-04 08:45
Quote:
Refresh the page after you've added the first product. That product should appear in a table line by itself, the drop-down reappears underneath (& one item shorter). When you've added all but product from the drop down (there's only one left) the last product gets a table line automatically. I had a discussion today about whether products with zero quantity entered should be rolled back into the drop-down or not. I think not - but I'm open to persuasion.

If that's *not* what happens on your browser, then there's a bug - in which case a detailed description of what you did and what you see (with screenshots) would really help.

Quote:
Can you use this link instead to test ?

http://www.foxtravaganza.com/test_gallery

The other site will go live soon, so I had to set back to "Table" mode since table mode does work, but I'd rather go back to "Drop-down" mode since the list will be long.

The drop-down menu in the latest version (available at the top of this thread) does work.
I have it installed and it works perfectly.

Firstly double-check that you have upgraded correctly.

Then do as alecmyers suggests:
turn on 'buffered' degug mode and see what is happening and post the results

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-03-04 09:18
belmont123 wrote:
Can you use this link instead to test ?

http://www.foxtravaganza.com/test_gallery

The other site will go live soon, so I had to set back to "Table" mode since table mode does work, but I'd rather go back to "Drop-down" mode since the list will be long.

Thanks for looking into this.

Checkout is definitely a killer app for G2 !

-- John

You're back on table mode, so there's nothing for me to test. Any chance you can put it back to drop-down, for the next few hours?

kferranti4 wrote:
Quote:
Interesting idea. How would you distinguish between which products to show in a drop-down, and which in a table?

I am not a programmer but my thoughts were after main products and prices have been set have a box "Add New Drop-down" Once saved a new set of Products and prices list would appear labeled Set B first box in the set would be product header which would be what the box shows in the drop-down instead of "select a product". I do not know if this is possible but it sure would be great. I would probably use the main as a list then 3 extra drop-downs for poster prints, packages and gifts.

How about one table and one drop-down? In fact there's no great difficulty about having as many as you like (if you want to rewrite a little php and some Smarty template code) but I'm treading the line between have *so* many options that it could suit anyone but will in fact confuse everyone! The "(select a product)" text is in the smarty template selectPhotos.tpl (off the top of my head) so you can easily change it to "(select other products") - the usual advice for editing template files applies, put the edited version in a subdirectory called 'local' and it will be used in preference to the original.

Quote:
Can the mini icon that shows under photo thumbs be changed?

Almost certainly, but icons are not included in the Gallery set up as part of the module so I can't offer any particular advice. If you find out how, you can post some instructions here and I'll make sure they get included in the codex when this module gets documented next.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-03-04 11:44
belmont123 wrote:
Can you use this link instead to test ?

http://www.foxtravaganza.com/test_gallery

Ok, we're back on drop-down mode on this Gallery, and as you say, it isn't functioning as it should, although it works fine on my test systems.

Can you plealse add the following at line 164 of your SelectProducts.inc file and let me know by PM when you've done that?

        echo '<pre>';print_r($tpl['items']);echo'</pre>';
 
Dwemer

Joined: 2008-03-04
Posts: 3
Posted: Tue, 2008-03-04 12:37

Hello!

First of all: I've been looking for such a piece of software for more than 2 weeks now, great i finally found this!

I have 2 issues with my fresh checkout installation. I can't find a link to the checkout-cart on the main page of gallery2. The only way to the cart is by clicking on the "Add to cart"-link below the images, which makes the option "Send user to cart when adding items?" pretty useless. I'm not sure if this solves my problem? http://gallery.menalto.com/node/45022
Edit: i think i solved this by activating a new block in the theme. Confusing..

My second issue is a blank page after clicking on "Continue to Checkout". Does anyone know a solution for this problem?

Here's a link to the thing i'm working on. It's a UNIX server with MySQL and the gallery2 interface is in german (that's why the button "Continue to Checkout" is labeled with "Weiter zur Bestellung").
http://www.mejta-arts.at/shop/gallery2/main.php

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-03-04 12:37

@link to cart: will come up wherever you configure it. (And if you haven't configured it, it won't come up at all.) Here's how to configure it: go to the Admin page, select Themes, and choose the "Shopping Cart Info" block to be added to your sidebar, your album pages, your photo pages or wherever your current theme allows. In general Gallery doesn't assume much about what you want to display and where - you have to set it up to your own tastes.

@blank page: this is usually indicative of a php error. Please enable php error output by changing line 28 of your config.php to read as follows:

@ini_set('display_errors', 1);

That is, change the 0 to 1. You will probably want to change this back at some stage - it's not suitable for a production website as error messages can (possibly) leak information about your website. But in the short term I don't think it will do any harm. Then "Continue to Checkout" again, and you should see an error message - please post it, or send it to me by PM.

As far as the German goes, are you willing to translate the .po file into German (when the strings settle down) for the benefit of other users?

 
Dwemer

Joined: 2008-03-04
Posts: 3
Posted: Tue, 2008-03-04 12:44
Quote:
Then "Continue to Checkout" again, and you should see an error message

Here's the error message i got:

Fatal error: Call to undefined function: loadcheckoutitems() in /www/htdocs/w008c467/shop/gallery2/modules/checkout/classes/CheckoutCartHelper.class on line 69

Quote:
As far as the German goes, are you willing to translate the .po file into German (when the strings settle down) for the benefit of other users?

Of course i can help you with that, just give me a short howto. ;)

 
belmont123

Joined: 2008-03-03
Posts: 16
Posted: Tue, 2008-03-04 12:50

Yes, Paul was right, I was running with the 0.1.18 repository version. I upgraded to 0.2.1 and the drop-down does work great. As you noted above for the 0.2.1 upgrade, I did have to perform "Site Admin > Maintenance > Delete template cache" since the old config page was showing. The postage message caught me by surprise until I saw the newly added "Needs Postage" checkbox (nice feature). All in all this is a very nice upgrade. Thanks, again !

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-03-04 13:03

@Dwemer: I'm going to take a wild stab in the dark and guess that in the admin page you ticked the box that says "Cart-compatible plugins (experimental)". Unless you have a particular cart plugin that you need to use (and if you do please tell me which one), please untick the box. As it is an 'experimental' feature that was added by a previous contributor to the module it has not been updated as it should have been, hence the error. I will add it to the to-do list.

 
Dwemer

Joined: 2008-03-04
Posts: 3
Posted: Tue, 2008-03-04 13:26
Quote:
please untick "Cart-compatible plugins (experimental)"

That's it. Great! Thanks for your support.

I'll send you a PM regarding the translations.

 
paulcobb

Joined: 2006-05-04
Posts: 122
Posted: Tue, 2008-03-04 15:18
Quote:
Can the mini icon that shows under photo thumbs be changed? I would just save over the image but it does not seem to be an actual image that I can find so I am guessing it is a special character or code.

This is because the IconPack you are using doesn't have an icon for the "checkout" links.
The modules themselves don't call the icons - the icon packs provide icons that Gallery puts against various links.

Depending on which Icon pack you are using go to:

gallery2/modules/icons/iconpacks/paularmstrongdesigns/icons.css
(or simliar depending on your particuar icon pack)

Find the section marked
/* Commerce */

The lines below need to be modifed

.gbLink-cart_ViewCart {
background: url(cart.gif) left center no-repeat;
}
.gbLink-cart_AddToCart {
background: url(add_cart.gif) left center no-repeat;
}

Amend to read as below

.gbLink-checkout_ViewCart {
background: url(cart.gif) left center no-repeat;
}
.gbLink-checkout_AddToCart {
background: url(add_cart.gif) left center no-repeat;
}

Now save.
Go to Site Admin, Maintenance, Delete Template Cache, & Run.
Now reload page and icons will be displayed.

Paul

 
iso3200

Joined: 2006-09-12
Posts: 5
Posted: Tue, 2008-03-04 23:01

This is great. After a long wait very very welcome. Can you confirm that the 20 item limit has been dealt with *properly* as I've just managed to order 57 items with no bother at all :) Small bug found though, my order totalled £1,935 and whilst it appeared fine on the automated email, at the bottom of the cart screen showed the total as just £1

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-03-04 23:12

I don't know what the 20 item limit is... I'll check the order totals, can you test is it every order over £1000 that's wrong, maybe?

 
paulcobb

Joined: 2006-05-04
Posts: 122
Posted: Tue, 2008-03-04 23:24
Quote:
I don't know what the 20 item limit is...

The 20 item limit (historically) is a bug that set the cart to zero if you entered more than 20 items

 
paulcobb

Joined: 2006-05-04
Posts: 122
Posted: Tue, 2008-03-04 23:30

Maybe not a bug - more a limitation

 
iso3200

Joined: 2006-09-12
Posts: 5
Posted: Wed, 2008-03-05 00:07

A bit more testing now. Looks like its for orders over £1000 (see attached JPG)

If I order 2 copies of the guy against the crates, it all adds up fine and displays £930 as the cost. If I add 3 copies of him at £90 to make the order £1020, it just shows £1.

The costs themselves appear to be adding up correctly as placing an order makes the email land in my inbox with the correct figures on them, but for some reason the sums are going a bit wrong when displaying the cart - a bit confusing for any customer.....