[checkout] Version 0.3.5 now in repository
|Posted: Sun, 2008-06-08 15:49|
0.3.5 is now in the repository and should be available for download within a few hours if all goes well. It includes all the below changes as well as some minor code tidying.
There are some minor database structure changes to support some extra plugins, including one (to be released) that allows variable item/qty price bands (1 for $8, 2 for $5 each, 3+ for $4, that kind of thing.) There are also some template changes to the SelectProducts.tpl file, so if you are using a local/ version of this I suggest you reapply your modifications to the new issue.
As usual I look forward to reports of any difficulties or problems, in this thread.
I have attached up to date po files for German and (someone asked for) Turkish as well as French. Please translate and forward so I can include them asap.
0.3.4_beta2 code available now in this thread!
I'm going to interpret the deafening silence accompanying this code as a 100% success rate then. Anyway, I've added another couple of features in 0.3.4_beta2, including improved Product Price info blocks (product names are now links to add one of those to the cart) - a cart contents block that includes thumbnails of the photos in the cart (which link to the relevant place in the cart) and also replacing the "add one of the first product" setting with a new per-product "default quantity". Every time an item is added to the cart it's product quantities are set as per this column. Its overridable as a per-item/album setting too.
There is also a setting to prevent "add to cart" appearing under thumbnails (i.e. only under the main image). This is somewhat theme-dependent, so please let me know if it doesn't behave appropriately. I can' do anything about it but I could label the setting better if I know where and when it works.
Previous enhancements (to 0.3.4_beta) include:
Albums as items: Albums of photos can now be treated as items in their own rights. There's a new checkout permission:"[checkout] Purchase album" - if a gallery viewer has this then they get the purchase Album link just like the purchase photo link depends on the "[checkout] purchase" permission. Rather than setting the new permission on the root album, you'll probably want to be a bit more selective about which albums you add it to (unless you actually have photos in the root album you want to sell all together.)
In the admin page for checkout you can choose whether to treat albums as collections of photos contained (as before) or (new feature!) as single items that can be added to the cart. You can't mix both treatments of albums, it wouldn't make sense to the user. You also need to specify which products apply to albums, and which to 'other' (data) items such as photos. That's done from the product table on the admin page. Products can apply to both of course.
Checkoutdownload has been modified to download the contents of albums where appropriate. Only the direct child data items of an album are downloaded, it's not recursive. Each item will now only be in a download once no matter how many downloadable products it appears in a single order.
Item quantity limits: In the product table (checkout admin page) you can set a max quantity for any product. Mostly this is to prevent people from ordering more than 1 download-type item. For which, put a limit of 1, obviously. Or you can limit promotional items ("no more than 5 per order...") Limits of zero count as no limit at all, as does nothing set in the box, which is the previous behaviour. The limit is enforced (silently) at the 'continue to checkout' page - you'll just see that quantities on that page may differ to what's in the cart.
Please post any bugs in this thread.