checkout 0.0.17/18

Kampf Katze
Kampf Katze's picture

Joined: 2006-01-18
Posts: 35
Posted: Sun, 2008-01-20 19:44

Have you installed "Checkout over Mail" or "Checkout over Paypal"?
Or do you made the right setup in the checkup preferences? You must activate one or booth plugins. Open the preferences of checkout and search for: Checkout plugins to display

 
Agent360

Joined: 2008-01-20
Posts: 3
Posted: Mon, 2008-01-21 01:36

Thanks for your response. Yes I have done those things.

The documentation is very sparse so I have been struggling with setting the gallery and all the plugins up. I have spent about 6 hours to day figuring things out by trial and error. Gallery is a wonderful product, badly needed to utilize my stock photo library and to show proofs to clients. I think Gallery is only one of it's kind because all others pale in comparison.

However, the documentation is the worse I have ever seen for such a polished application.

For future reference here is the answer to my question.

Question: How do you add "add photo to cart" buttons and "view cart" after you have properly installed, configured and activated the plugin "checkout 0.0.17/18"

Note: Gallery comes with a core "Cart". Both will show in the list. I have simply deactivated the core "cart" under "plugins". If you leave this activated you will see "Show Cart Info" twice as described below in the steps. This is fine, however make sure to choose the second "Show cart info" from the list, to use this plugin. You can use both if you choose but you will have two "view cart" buttons and two "add photo to cart" under each photo or album. This will confuse your users so I recommend you use only one.

1. Install, configure, and activate the plugin
2. Login as site admin
3. On the left navagation under "Admin Options-->Gallery" click "Themes"
4. On this page scan down to your themes tab. The default theme is "Matrix". If you have other themes installed do the same for those.
5. Find the block "Blocks to show in the sidebar"
6. Select the box dropdown next to "Available"
7. Select "Show Cart Info" from this list - NOTE: choose the second one if you see two of the same.
8. Click "Add" located just to the right of the drop down box.
9. "Shopping cart info" should now show up in the "Selected" box below the drop down box.
10. It will now be the last one in this box. Move it up to the position you want it to show on the left navagation of your gallery. If it is last the "view cart button" will show below all buttons.
11. You may at your choice add this again to the "Album pages" and "Photo pages" in the same way.
12. Click "Save theme settings" at the bottom of this page.
13. You should now see "view cart" in your gallery.

Note: When Gallery is first installed the "add photo to cart" feature is activated and shows under Albums or on the left navagation. However, there is no "view cart" button. This was very confusing. I only figured it out after installing this plugin. It was only then I realized I had to manually add the "Show cart info" under themes as described above to make a "view cart" button show up for the default core "cart" plugin.

Regards

Agent360

 
SimonTuffGuy

Joined: 2006-04-11
Posts: 9
Posted: Thu, 2008-01-24 18:12

I'm running the Siriux theme on my Gallery... For some reason, the "Add Album to Cart" and "Add Photo to Cart" do not display either under the album or photo...

is this something I can code directly into the theme itself?

 
paulcobb

Joined: 2006-05-04
Posts: 122
Posted: Mon, 2008-02-04 22:37

I am trialling the latest versions before going live with my duplicate site.
I notice when I submit an order via email that I am getting this on the client & the confirmation email back to myself.

6" x 4" print £2.00 1 Colour Gloss print - Borderless £2.00

I'm not sure where the character before the pound sign is coming from?

any ideas please ?

Paul

Gallery version = 2.2.4 core 1.2.0.6
PHP version = 4.4.4 cgi
Webserver = Apache
Database = mysqlt 4.1.22-standard, lock.system=flock
Toolkits = Exif, Gd, ImageMagick, ArchiveUpload
Acceleration = none/0, full/1800
Operating system = Linux firefly.unitedhosting.co.uk 2.6.9-55.0.6.ELsmp #1 SMP Tue Sep 4 21:36:00 EDT 2007 i686
Default theme = matrix
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Rows in GalleryAccessMap table = 27
Rows in GalleryAccessSubscriberMap table = 183
Rows in GalleryUser table = 2
Rows in GalleryItem table = 181
Rows in GalleryAlbumItem table = 3
Rows in GalleryCacheMap table = 2

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-02-04 23:09
Quote:
I'm running the Siriux theme on my Gallery... For some reason, the "Add Album to Cart" and "Add Photo to Cart" do not display either under the album or photo...

is this something I can code directly into the theme itself?

I run Siriux, and they should (do) show up under the album/photo respectively, no theme editing required. Check that the relevant user has the "add item to cart" permission (or whatever exactly it's called.)

 
paulcobb

Joined: 2006-05-04
Posts: 122
Posted: Thu, 2008-02-07 17:49
Quote:
notice when I submit an order via email that I am getting this on the client & the confirmation email back to myself.
6" x 4" print £2.00 1 Colour Gloss print - Borderless £2.00
I'm not sure where the character before the pound sign is coming from?

Does anyone have any suggestions regarding this issue - I'm stuck at the moment!

Paul

 
jayhen

Joined: 2007-02-12
Posts: 159
Posted: Fri, 2008-02-08 00:55

Paul - have you tried deleting your pound sign from the admin page and typing it again? Can't think how, but perhaps a special character has slipped in there somehow.

 
paulcobb

Joined: 2006-05-04
Posts: 122
Posted: Fri, 2008-02-08 10:19

Jay,
I tried what you suggested.
Deleted template cache.
Tried again - same result.

Then deleted checkout, reinstalled and re-configured.

Same result!
Any suggestions?

Paul

 
alecmyers

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

This is because of a mismatch in the character encoding between the database and the email. Your sql database in which the currency symbol is stored is likely UTF-8, in which the encoding for £ is 0xC2A3. The email is notated in the template as being encoded charset="iso-8859-1", and in iso-8859-1 0xC2A3 is two characters, 0xC2 which is  and 0xA3 which is £, hence the extra character.

I'm not sure what the correct or best resolution is - but at least you know the cause.

Edit: not that it really helps, but if you're using a mail client that allows you to change the encoding type for emails being displayed (like Outlook Express does) then changing to UTF-8 makes the extra character disappear.

 
paulcobb

Joined: 2006-05-04
Posts: 122
Posted: Fri, 2008-02-08 12:45

Thanks for that!
I'm surprised that this hasn't been flagged up before?
I'm sure that what I am doing is not out of the ordinary for lots of other folks.
Maybe Jayhen may have a solution (I'm hoping so anyway)

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2008-02-08 13:10

I'll stick my neck out and suggest that it's a slightly deeper problem, in that special characters in photo titles and item names will also be displayed wrongly. Maybe it's not been flagged up because it didn't bother anyone enough ... certainly I've never really fussed about it, although it's interesting.

With a little (two minutes) digging, I found some correspondence that suggests that gallery demands UTF-8 internally throughout, so if the email is explicitly written as iso-8859-1 (and it is, as things stand) then I think it might be appropriate to call utf_decode(...) (http://uk2.php.net/manual/en/function.utf8-decode.php) on everything returned from the database before the email is written - that would be in modules/checkoutemail/email.inc and possible other files too.

If anyone knows different, please jump in and say so.

 
paulcobb

Joined: 2006-05-04
Posts: 122
Posted: Fri, 2008-02-08 16:10

The thing that I found confusing was that the email on my current production gallery works perfectly
checkout 0.1.15 checkoutemail 0.0.8 checkoutpaypal 0.1.10

Gallery version = 2.1.1 core 1.1.0.1
PHP version = 4.3.10 cgi
Webserver = Apache
Database = mysql 4.1.11-Debian_4sarge7-log, lock.system=database
Toolkits = ArchiveUpload, Exif, NetPBM, Gd, ImageMagick
Acceleration = full/1800, full/900
Operating system = Linux ccgi01.plus.net 2.6.11-plusnet-cgi #15 SMP Wed May 25 18:26:16 BST 2005 i686
Default theme = matrix
Locale = en_GB

whereas the latest version
checkout 0.1.18 checkoutemail 0.0.10 checkoutpaypal 0.1.12
Gallery version = 2.2.4 core 1.2.0.6
PHP version = 4.4.4 cgi
Webserver = Apache
Database = mysqlt 4.1.22-standard, lock.system=flock
Toolkits = Exif, Gd, ImageMagick, ArchiveUpload
Acceleration = none/0, full/1800
Operating system = Linux firefly.unitedhosting.co.uk 2.6.9-55.0.6.ELsmp #1 SMP Tue Sep 4 21:36:00 EDT 2007 i686
Default theme = matrix
gettext = enabled
Locale = en_GB

has the problem

Paul

 
SpainAlex

Joined: 2008-02-09
Posts: 14
Posted: Sat, 2008-02-09 09:41

Paul, Alec...I have the same problem. Very Very annoying for Spanish buyers. And it is not minor bug because buyer doesn't trust with unreadable bills. I cannot use this plugin :( so sad....Please, Some solution???
Is a pity....

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Sat, 2008-02-09 14:13

If you insert this at line 79 of the file /modules/checkoutemail/email.inc:

			$csymbol = utf8_decode($csymbol); //convert symbol to iso8859

that seems to fix the problem. I don't think this is "the" solution as diacrits in other places like photo and product titles are still likely to be wrong, but it's a quick-fix for now.

Paul: As to why it doesn't appear in earlier versions: I don't know, and I don't have an installation on which I can check. It may be down to differences in the database setup rather than something in the Gallery code that's changed. The symbol is stored in the MySQL database in a row of the g_parameterValue column of the g2_PluginParameterMap table, which in my installation has a collation type of "utf8_general_ci" - and that would be the first place I would start looking for differences between the two.

 
SpainAlex

Joined: 2008-02-09
Posts: 14
Posted: Sat, 2008-02-09 15:08

Think, the best solution in "checkoutemail" is to change:

/templates/message.tpl

line 2
Content-Type: text/plain; charset=iso-8859-1
to
line 2
Content-Type: text/plain; charset=utf-8

The problem is "checkoutpaypal"....??? I do not know patch it...:(

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Sat, 2008-02-09 15:51

I guess that would do it. I was (maybe over-generously) assuming that whoever chose iso8859-1 had done so for a good reason...

What's the problem with Checkoutpaypal?

 
SpainAlex

Joined: 2008-02-09
Posts: 14
Posted: Sat, 2008-02-09 16:02

In "Checkoutpaypal", characters of photo titles and item names also are displayed wrongly in Paypal.

Example:

Otoño, í ¿? ¡! (Otoño 2007)

to

Otoño, í á ¿? ¡! (Otoño 2007)

 
SpainAlex

Joined: 2008-02-09
Posts: 14
Posted: Sat, 2008-02-09 17:39

Is very strange!!!....because final form prepared to send to Paypal is correct!!!!!!

<input type="hidden" name="item_name_1" value="Otoño, í á ¿? ¡! (Otoño 2007)" />

What is happening??

AAAh!!!!! Saturday and in front of PC!!! :S 4 hours!!!!

 
SpainAlex

Joined: 2008-02-09
Posts: 14
Posted: Sat, 2008-02-09 18:15

Paypal not accept UTF8!!!!! :O.....

 
SpainAlex

Joined: 2008-02-09
Posts: 14
Posted: Sat, 2008-02-09 18:29

OK Ok...Paypal accept UTF8...go to profile, Language Encoding...more options....select UTF8.....

NOooo!!! my characters are again...Otoño, í á ¿? ¡! (Otoño 2007)!!!

Why??
So strange!!!

 
jayhen

Joined: 2007-02-12
Posts: 159
Posted: Sun, 2008-02-10 23:49
Quote:
Think, the best solution in "checkoutemail" is to change:

/templates/message.tpl

line 2
Content-Type: text/plain; charset=iso-8859-1
to
line 2
Content-Type: text/plain; charset=utf-8

The character set should not be iso-8859-1, but utf-8 as stated. It got in there due to problems with AOL not working properly with utf8, but should not have got into the official release, apologies.

Jay

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2008-02-13 13:09

I have started a new thread regarding some forthcoming updates to Checkout - please find it at:

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

 
CandlelightWeb

Joined: 2008-04-21
Posts: 4
Posted: Tue, 2008-04-22 01:21

Hi,

I have a really dumb question. I have been at this for days and I am so very close.
Anyway, Checkout with Paypal works in Admin only. I understand I need to check the permissions
but here's the dumb question. Where do I find that?

New install of the new 2.2.4 full and the checkout stuff from the downloader so it is
Checkout 0.1.18 and PayPal 0.1.12

I am so close.

 
scuffedshoes
scuffedshoes's picture

Joined: 2006-02-07
Posts: 9
Posted: Tue, 2008-04-22 02:10

You'll find "Edit Permissions" wherever you've got your "Edit Item" or "Edit Album" set to show: sidebar, dropdown menus, etc. Permissions are not set in the Site Admin pages.
Permissions cascade down, so you can set them site-wide then change them per-album or per-item.

The closer you are to the code, the happier you are.
- Ancient Geek Proverb

 
CandlelightWeb

Joined: 2008-04-21
Posts: 4
Posted: Tue, 2008-04-22 03:12

Yeah, thanks I found it about a half hour ago, added "Guest" as a group, added all nessicary permissions for them to be able to add to cart, make purchases through the checkout, add comments, add ratings... No change. Still unable to do anything but view the image.

I am going nuts tryinmg to figure this thing out. PayPal is easy, Gallery is easy, I don't understand why it seems so difficult to get the 2 to work together.

www.zsuzsannaluciano.com/gallery2

UPDATE: I got it... had to give "Everybody" the permissions to purchase items. Wasn't good enough to allow them to "Add to Cart" - Add to Cart did not show up until I added the Purchase Item.

Figured I would add this tidbit for the next guy with the same problem. I could not find it here that is for sure.

Now I can let the hair I ripped out grow back.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-04-22 08:14

Just for the next person who has this problem:

Checkout *DOESN'T* have (or need) an 'add to cart' permission - there is a '[cart] Add to Cart' permission, but as it says, it's for the cart module, which you should uninstall if you're using checkout.

Checkout has/requires the '[checkout] Purchase Item' permission instead, give it to the Everybody group if that's your intention.

There's no need to create a Guest group, there's already a Guest user which is everyone who isn't logged in as a registered user.

 
holeepassion

Joined: 2008-12-03
Posts: 9
Posted: Mon, 2009-01-12 23:14

i have issues downloading community repository for checkout from GET MORE PLUGIN menu .. using gallery 2.2.5 I think. Is there a way around this ???

thanks

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2009-01-12 23:21
Quote:
i have issues downloading community repository for checkout from GET MORE PLUGIN menu

Please start a *new* thread and describe your problem in detail, and someone may be able to help. Thanks.

 
R.kuenen

Joined: 2009-07-17
Posts: 1
Posted: Fri, 2009-07-17 20:14

I have installed Gallery 2.3
It seems that the checkout module is not supported with this version. Will there be a future upgrade or can i modify it easely by my self?

Kind regards, René Kuenen

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2009-07-17 20:24

Did you install it from Site Admin > Plugins > Get More Plugins (tab) ?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2009-07-17 21:33
Quote:
It seems that the checkout module is not supported with this version.

As the current module author/maintainer, I'm happy to confirm that all the checkout- series of modules in the repository at present are 100% compatible with Gallery 2.3.

By the way this thread is long-dead - if you're having current problems with checkout, please open a new thread, give the requested information and someone (me or someone else) will try to help.

 
hwilliam

Joined: 2008-04-05
Posts: 21
Posted: Sat, 2009-11-21 04:35

Why am I getting this error message when I try to put info in the checkout module?

Error Detail -
Error (ERROR_PERMISSION_DENIED)

* in modules/core/classes/helpers/GalleryUserHelper_medium.class at line 202 (gallerycoreapi::error)
* in modules/core/classes/GalleryCoreApi.class at line 617 (galleryuserhelper_medium::assertsiteadministrator)
* in modules/core/classes/GalleryController.class at line 142 (gallerycoreapi::assertuserissiteadministrator)
* in main.php at line 206 (gallerycontroller::loadcontroller)
* in main.php at line 104
* in main.php at line 88

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Sat, 2009-11-21 10:32
Quote:
Why am I getting this error message when I try to put info in the checkout module?

Please refer to this comment in the previous post to yours:

Quote:
By the way this thread is long-dead - if you're having current problems with checkout, please open a new thread, give the requested information and someone (me or someone else) will try to help.

Thanks!