Checkout : a new version of Checkout modules
jayhen
Joined: 2007-02-12
Posts: 159 |
Posted: Mon, 2007-03-12 00:19 |
UPDATE 03/07/2007 : This thread is now out of date and has been replaced by this one. Hello, If you've been following this thread you'll be unsurprised that I'm posting a Release Candidate of the next version of the Checkout modules. This release takes these modules, which were very well written by Daniel Leaberry and Matthew Turnbull, on to the next logical level, with new features making it much more useful. The number of improvements and bug fixes are too great to list in this posting, so I've put them, and some instructions on using and installing it, in the attached file 'checkout0.0.15.html'. Some of the most important changes include : + highly customisable pricing structure including per-album pricing Warning : this is a Release Candidate that I am posting for you to be able to test it and report any errors back to me before I place the official version on sourceforce.net. Do not install it on production sites, or only at your own risk! Update - we seem to have reached a stable state with this release candidate. A slight inconvenience that remains is that the Continue Shopping button displayed when the cart is empty returns the user to the gallery root and not to the last page viewed. Continued testing is appreaciated. I would still appreciate you considering sending me a donation (donation button found in the 'checkout0.0.15.html' file) to help me cover the time spent so far (115 hours) and the work to come, because it represents a month's unearned salary for me. In any case, I hope you find it useful, enjoy! And don't hesitate to give feedback, good or bad! Jay |
|
Posts: 32509
jayhen
I'm sure the users will be very thankful for your contribution. thanks!
As a developer I'm concerned about seeing projects forked.
I didn't follow the recent checkout module developments, but is there a reason not to work together instead of having separate releases, diverging modules?
I'm sure turnbull would be happy to work with you together and add you as dev to http://sourceforge.net/projects/gallerycheckout .
I'd much prefer seeing a joined effort. In the end that will help the end-user the most.
BTW: What are your thought on the redundancy and incompatibility between the cart and the checkout module and their plugins?
Do you think it's worth merging them or would you specialize them even further, i.e. cart for batch / non-commercial features and checkout for commercial features?
--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 159
Hi valiant,
No fork intended, the module stays in the same flow of development, I just liked checkout+ as a nickname to demonstrate a big step forward, but the official name remains of course checkout (now version 0.0.15) and is compatible with previous versions. In fact, on reflection, I've removed the references to 'checkout+', it could lead to confusion.
I don't know if you're also refering to the fact that I'm breaking compatibility with the other plugins. This is certainly not desirable and not ideal, but I'm on an extremely tight timescale (financial & deadline constraints) and spent an hour already trying to make them compatible and failed due to lack of sufficient knowledge of Gallery2. I would certainly welcome help on how to not break the dependencies, I recognise this is of course important, even if I do not personally need it. But I thought it better to release the modifications, as is, so that others could benefit, rather than keep it to myself.
Ultimately cart is as much commercial as checkout in its nature. If you're asking for my opinion on a vision/design strategy, I would have to respond that the two ought to be merged. I haven't worked on the cart code, but I can't imagine any reason as to why they should stay seperate. It's definitely a shame that advances in checkout cannot be of benefit to cart users. I'm not sure if there are other issues, I seem to remember reading that some users like to use each for different purposes. In any case, before that happens checkout would of course need to go through a code review. I've personally tried to stick to conventions where possible, but given my only very recent involvement, I'm still on a steep learning curve.
Does that answer your concerns?
Posts: 32509
Yes, that answers my concerns, thanks!
I think it's important that turnblum can merge your changes into his / the original version of the checkout module(s).
We need to ensure that there are not diverging developments.
Did you already contact turnbulm, is he aware of the new version?
@cart module:
I envisioned merging the checkout and cart modules for a while, just didn't have the time to do it myself yet. Good to see that you share the same vision.
--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 159
turnblum has not been active on the original thread for some time. I haven't contacted him directly yet, but was planning to do so to see how to merge the changes into his original version on sorceforge. Will do so now. I have respected compatibility, so it's just a case of replacing the old with the new version, except of course with regards to the plugin interface, as discussed. In fact I've tried to move a little closer towards the Gallery standard, with respect to the css tags in any case.
Posts: 32509
Excellent, thank you very much for your effort!
--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 1642
valiant
I contacted turnbulm when I was writing CheckoutMBookers as an additional fulfilment module for the Checkout module without any response. I managed to complete the module though.
jayhen
While it has not been a roaring success (126 downloads) I wonder whether you might want to make this module compartible with your update as well since Paypal is difficult for some people to use due to location.
Otherwise I can if you have documetation of what you have done.
.
Gallery Version: 2.1.2
Gallery Theme: PGTheme 1.1.0 (RC01)
Web Site: http://dakanji.com
Posts: 48
Hey all - I like the new checkout module. Thanks for all the work!
Couple of issues though:
1) [Solved]
2) When I set-up the product and prices and check the box for 'Restrict to Custom Field Items' I can't find where to add those custom fields back to specific photos. Some of my images are available in only certain sizes, I need to be able to specify per picture which sizes are available to purchase.
3) (More of a modification issue) Can the 'Paper' option be changed to a 'Frame Style' option, or can another option be added? For each photo, I want the user to be able to purchase in one of four sizes either unframed or framed. No problem with that, but I have several frame styles that I would like to offer for each photo, this is where Checkout seems to be lacking in options. Can the 'Paper' option be modified to allow the for the selection of one of a number of frame options (pictures of the frame style would also be great)?
Thanks again,
Brian
Posts: 159
brianb_adk,
Re: 2) Having added the Custom Fields option, as you worked out in 1), and as described here (but having set it on the Common Fields rather than the Photo Fields), you then use the custom field value of the item as described in that same link, except that you don't have to specify the price.
e.g. Say you created an item as follows:
Internal Reference: MYPROD01
Product Description: Size 10cm x 15cm
Price: 1.00
(and you ticked the 'restrict' box)
In the CheckoutPricing custom field of the item, you would put:
MYPROD01:
(no space after the colon)
Or if you have several products that are hidden that you want to make appear you'd put:
MYPROD1:|MYPROD2:|etc...
This will make your product(s) available for that item. If you want to specify a price that is different to your global setting, put it after the colon. You can do the same for the album, which thus makes the changes apply to all the images contained within. Which you can then also override again on each item...
Re:3) You could always put a copy of the SelectProducts.tpl file (in the 'templates' folder) into a subfolder called 'local', and change the title of the Paper heading of the table yourself. Your local copy should be used in place of the original.
This is a release candidate, for you to be able to test whether the new version works before an official release. Feature requests are best placed on the sourceforge project page.
Posts: 159
Dayo - it's obviously not the best solution (redoing all the plugins), but it's definitely the easiest until someone can explain how to avoid changing the interface. There are 3 lines of code to change.
Have a look at the CheckoutEmailPlugin.class file, and you'll see the first 2 class functions have changed name, and the first now returns a path to a template file. That template file then of course needs to be added, and the text placed within it.
Does that make sense to you?
Jay (Elucidos)
Posts: 48
Ahh! Perfect. That's what I was missing.
As for 3) I ended up doing that, plus editing the Admin.tpl and ConfirmPhotos.tpl to change all headings I could find for 'paper'. I know this is just a release candidate, so I wasn't sure if it was at the point of adding an official 'feature request'. I will do that - thanks for the link.
Thanks for the quick reply and help.
Posts: 32509
Dayo / jayhen:
Maybe contact drhiii as well. He's got access to the checkout project as well.
--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 159
valiant, thanks for the tip, we're already working closely together on testing and documentation so I'll ask him for sourceforge access too.
Posts: 159
The per-album pricing doesn't seem to work as well as I thought. I'm working on a fix.
Posts: 159
Sorry guys, the per-album pricing was all wrong. Too many late nights I think. Although apparently no-one noticed! ;-)
Download the checkout0.0.15RC.zip file again, I've updated it. Or simply unzip the attached patch into your modules folder.
Templates are not affected.
Posts: 48
Ok, I think I've come across a bug. Is this the place for it?
I've set-up 7 products in the 'Products and Prices' section the 'Checkout' module. I also checked the Restrict to Custom Field items box for the 5th, 6th and 7th items. Other than that, they are all set-up similarly. The 5th and 6th items are set up with:
IR - 12x18u
Product name - 12" x 18" unframed
Price - 50
IR - 12x18f
Product name - 12" x 18" framed
Price - 140
When I add an item to the cart, the 5th choice for purchasing reads: 12" x 18" - unframed - $ 12x18f
The price is the next IR, not 50. All the remaining prices and products are fine.
One other issue along the same line.
I edit the custom fields of an album and change the CheckoutProducts field to "Only listed products". Now, when I add an item to the cart from that album, the only choice I have listed for 'Product' is the above messed up option: 12" x 18" - unframed - $ 12x18f.
I hope this is explained well. I can give you admin access to my Gallery if that would help.
I'm really liking the module! Thanks!
Posts: 159
brianb_adk - Yes this is the place to report bugs on the release candidate, thanks for the feedback.
Have you installed the patch in the previous posting?
Could you give me a link to your gallery test site?
Posts: 159
In fact, yes, if you don't mind sending me a private message with admin access details it might be quicker if I go in and have a look.
Posts: 48
Yes I did install the patch, sorry for the lack of info.
Here's the link: http://www.adkgraphicdesign.com/Photography/gallery2/gallery2embedded.php
As a guest you won't have shopping cart access. I'll PM the admin info
Posts: 159
brianb_adk
No bug, the problem is in your use of the CheckoutPricing field. I found this:
12x18u:12x18f:16x24f
Which I replaced with this:
12x18u:|12x18f:|16x24f
i.e. items must be separated by the | character.
Sorry, this is obviously a result of poor documentation, it's a little tricky doing everything at once ;-)
To clarify, the : (colon) character is to separate the product reference from the price. If you don't specify a price, you don't need to include it.
Let me know if you find any other problems, you testers are gold dust.
By the way, those who are tracking this posting will have received your login details by email, before you removed them from the post. If you think it's important, you may want to change the password now to avoid a security risk.
Posts: 48
Thanks! I forgot about checking the CheckoutPricing field.
One other point in the documentation: When I place a check in the "Restrict to Custom Field items" and used the Custom Field "CheckoutProducts: only listed products" in an album I expected the checked choices to not be listed in the product choices, but instead they are the only choices listed. I may have just misunderstood again.
Thanks for the help!
(and I have removed the user)
Posts: 159
brianb_adk - could be a bug. Depends on what you've put in the CheckoutPricing field for that item?
Posts: 48
Hmm, ok. That was part of the issue. But when I remove everything from the CheckoutPricing field and select "CheckoutProducts: only listed products" on a single item nothing is shown in the products list when I add the item to the cart.
Posts: 159
Sorry, it was 1:30am my time and I struggle to stay up late enough for you guys across the water. Um, with a slightly clearer head, your problem is in fact on my To Do list. In this case, the item should display 'No product options currently available for this item'. That seems to me to be the most logical functionality, if you set 'Only listed products' without listing any products (in the CheckoutPricing field). Of course I welcome any opposing points of view.
If this is causing you problems, if you could explain what you are trying to achieve, I can help you find the best method.
Posts: 159
I've added the text for the example mentioned above. The checkout0.0.15RC.zip file is updated.
To apply the changes as a patch, unzip the attached patch in your modules directory.
NOTE: the SelectProducts.tpl file has been modified.
Posts: 159
I had neglected the drop-down product list view a little.
This patch fixes that. The checkout0.0.15RC.zip file is updated.
To apply the changes as a patch, unzip the attached patch in your modules directory.
NOTE: the SelectProducts.tpl file has been modified.
NOTE: if you are applying the patches, you should do so in order of their release.
Posts: 9
Hi jayhen. Thanks for your work on this! I've run into a few issues and hopefully you can either find a solution or tell me what I'm doing wrong.
1) Cannot add the same item to the cart multiple times. This means a customer cannot order 1 - 5x7 print and 4 - 4x6 prints of the same photo on the same order: they would have to do two orders.
2) Checkout page: On the checkout page (Step 2 - Confirm your selection), the text at the bottom of the page beside the 'pay by email' button and the 'PayPal' button shows as: "/var/www/html/gallery2/modules/checkoutemail/classes/../templates/PaymentText.tpl". It does not say 'Send email' or 'Pay by PayPal' or whatever it is supposed to say.
3) Album order: is there any way that if an entire album is ordered, it will just put a reference to the album in the cart and not each individual photo contained within that album (I have some albums with 100-150 images)?
4) Album order: is there any way to select the product being ordered for the entire album, rather than individually specify each product after it hits the cart? In other words, if I order an album, I want all the prints to be 4x6 prints. I would like to specify this at the time I order the album, rather than have to select the size on each individual item once it is in the cart.
5) Postage: is there any way to specify some items have postage but others do not? If a customer orders all items that have no postage, no postage is charged. But if even one item has postage, then postage will be charged. For even more flexibility, what about different postage rates depending on item ordered? For example, a 4x6 print would cost $1 to mail, but a 16x24 print would cost $8.
6) Full path to ordered image: can the full path/name of the item ordered be included in the email (eg. sports/game1/dsc_0009.jpg)? I have hundreds of photos and I don't want to rename them all so they have unique file names.
7) Quantity discounts: I have no idea if this is possible or how it could even be implemented, but I would like to be able to give a special high-volume flat price. For example, if a customer orders 5 different pictures, I would charge $10 each. But if the customer orders 20 different pictures I would charge a flat rate of $30. Like I said, I don't know if this would even be possible but it would be great if it could do it (somehow).
I realize this is all volunteer time on your part, so anything you do or any suggestions you have are greatly appreciated! Thank you!
Posts: 159
alfredjcrabbs
1) Are you using the Table view or the Drop-Down view? With the first you can put quantities of several products against the same item, which is what you want to achieve I think.
2) Have you downloaded the new version (Release Candidate) of checkoutpaypal? The old version is not compatible with this version of checkout unfortunately.
3-7) I'm afraid I can only suggest you put feature requests here. Unless some money magically appears from somewhere, I won't have time to do much more than bug fixes for another week (and the download capability I'm currently working on).
Posts: 9
Hi jayhen,
1) I'm using the Drop-Down view. I'll try it with the table view....
Just tried it: works perfectly in table view. Thanks!
2) I have downloaded and installed all the files and patches in this thread. That's everything, isn't it? If you're not seeing this same behaviour, let me know and I will uninstall all the checkout stuff and then start again from the beginning and let you know if that fixes it.
3-7) Understood. Can you check your link? It doesn't seem to work for me. I'll post my requests there.
Thanks again!
Posts: 159
alfredjcrabbs
2) Works for me! Are you sure you've updated the module on the gallery administrator modules page?
3) Link works for me. Try the project page and thene navigate to feature requests
Posts: 159
In case people are not following the other thread, I've fixed the validation of the email field. Don't have time to do a patch, just download the checkoutemail0.0.8RC.zip file and install it again.
Posts: 9
Hi jayhen,
2) Yup, everything's been updated on the admin modules page. I uninstalled everything checkout related and reinstalled it all, and it still says it. I'll play around with it and see if I can figure out what's going on. I'll post my results back here.
3) Link works now. Honestly, it didn't work before!!! Anways, I'll post my requests there.
Posts: 159
alfredjcrabbs - are you sure you haven't created a local copy of ConfirmPhotos.tpl in your checkoutemail/templates/local folder?
Posts: 9
Nope, I have no local copy of ConfirmPhotos.tpl. When I uninstalled, I deleted all the modules/checkout folders (checkout, checkoutemail, checkoutpaypal) in case I had made a mess somewhere and then reinstalled everything.
If you want to go to my website (www.motionphoto.ca) and see the behaviour, go to a single photo, add it to the cart, and then click on the 'Continue to checkout' button. You will (hopefully) see what I am seeing.
Posts: 159
alfredjcrabbs - I've also tried a fresh install using the files in this post, it works fine for me. I'm guessing either it's a permissions problem (on the files you've installed), or perhaps you're running on a windows server? I'm wondering if it understands the path. Could you confirm your server type (information available in Site Admin > Maintenance > System Information.
Posts: 48
I've updated everything you have posted, and I'm still not seeing anything listed when I set 'only listed products' without listing any products in the CheckoutPricing field.
Thanks for your continued work on this! What I'm wanting to do is have each item have it's own set of pricing. Not all my prints are available in every size and I need to be able to only have certain sizes available for certain prints. Don't know if this is possible with the current set-up.
Posts: 159
brianb_adk - A question; have you updated you local templates? Since I've made changes to the templates, they won't be picked up by your local copies unless you redo them using the new versions.
Posts: 9
Hi jayhen,
Here's my system info:
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 4.3.11 apache2handler
Webserver = Apache
Database = mysqlt 4.1.12, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, NetPBM, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux Apollo.tgisoft.com 2.6.9-27.cc #1 Mon Oct 24 18:48:25 EDT 2005 i686
Default theme = carbon_motionphoto
gettext = enabled
Locale = en_US
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 = 11
Rows in GalleryAccessSubscriberMap table = 40
Rows in GalleryUser table = 2
Rows in GalleryItem table = 38
Rows in GalleryAlbumItem table = 10
Rows in GalleryCacheMap table = 0
Maybe I'll try uninstalling and reinstalling everything again: maybe I missed something the first time around...
Posts: 159
alfredjcrabbs - You needed to delete the template cache via the site admin maintenance section, after installing the new versions.
Posts: 9
Thanks for all your help Jayhen!
Posts: 159
Possible bug highlighted by brianb_adk which I'm unable to reproduce. Is anyone else using the drop-down view of products? And if so, if you tick the restrict box on the checkout admin screen for one or more products, does the drop-down show the list of products without those that you ticked (as it should)? Or does it show all your products, as for brianb_adk?
Posts: 48
Eureka! Everything seems to have worked itself out with a complete uninstall and deletion of files off the server and my computer. Downloading a fresh zip file and a clean install on the server fixed everything. Either I didn't install the patches in the order they were posted as you said to do, or there may be a conflict somewhere in the patches.
Either way, it seems to be working fine now, and it does just what I was wanting. Now I'm trying to tackle a personal modification of this mod so I can show frame image examples that they can choose from instead of the paper option.
I'll let you know if I come across anymore bugs! Thanks!
Posts: 18
I have installed this today and i think i have found a bug when you add a pic to the cart and then go to the cart and click empty cart it removes the pic which is fine but then there ais a button that says continue shopping if i click it i get error 500 no page displayed the link is correct at the top of the page.
i goto my logs but there is no error in the logs
i have seo enabled so i am wondering if seo is messing up this checkout.
any help please.
thanks
swampy
Posts: 159
swampy - works OK for me. Could you post a link to your site? From which page/how did you go to the basket before emptying?
Posts: 18
Hi here is a link
http://www.clubm.clubgallery.co.uk/v/2007/March/10-03-07/
just add to the cart and then empty the cart and hit the conttinue shopping button
thanks
swampy
Posts: 159
swampy - I don't get an error 500 page, I get this:
Authentication Failure
Your change cannot be completed due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in.
It can't be simply your use of SEF links, I have the same setup, with gallery also embedded.
Could you try and play with it a little, like turn SEF off.
Hang on, I spot something funny. Have you got cart installed as well as checkout? Try and disactivate cart. Try also deleting all your session data (Site Admin > Maintenance).
Posts: 18
Hi i have turned uninstalled loads of stuff that was installed but not activated i have turned off seo and cleared everything in cache and sessions it still does it try to go to the main site then go to album 2007 and add a pic to the cart then empty the cart then click the continue shopping button.
http://www.clubm.clubgallery.co.uk
thanks
swampy
Posts: 122
swampy32 said
Hi i have turned uninstalled loads of stuff that was installed but not activated i have turned off seo and cleared everything in cache and sessions it still does it try to go to the main site then go to album 2007 and add a pic to the cart then empty the cart then click the continue shopping button.
http://www.clubm.clubgallery.co.uk
thanks
swampy
Hi, I have tried to do what you asked and get this error
Authentication Failure
Your change cannot be completed due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in.
Back to the Gallery
Hope this may help
Posts: 18
I am at a loss with this i do not have any Authentication turned on i dont understand what it is asking for.
swampy
Posts: 122
Just a thought,
The fact that it is saying log out and in again (which the visitor is not anyway)
It's not a permission issue regarding access to view/purchase items is it?
Can't really think of anything else!
Paul
Posts: 159
Is anyone else using G2.2? Could you confirm whether you have the same problem with the Continue Shopping button. I think it's a problem with swampy32's installation, but can't see what exactly.