Module: Basket Plus - Shopping basket with order handling and html e-mails

jtenkate

Joined: 2010-12-06
Posts: 45
Posted: Fri, 2014-01-03 23:53

The new module Basket Plus (v1) is ready. See the zip-file attached.
Detailed information is available on the Gallery Modules page: http://codex.galleryproject.org/Gallery3:Modules:basket_plus

Some highlights:
- Order workflow with updates to the customer via Html emails
- Offline and PayPal payments
- Localization options (address, date/time and currency formats)

Let me know of any bugs you find, or questions you have at dev AT kidsfotos.nl

Regards,
Jeroen
www.kidsfotos.nl

AttachmentSize
basket_plus.zip87.11 KB
 
jtenkate

Joined: 2010-12-06
Posts: 45
Posted: Fri, 2014-02-28 12:46

Original post: 2014-02-27 here

mikegilmore81 wrote:
OK Jeroen, I'm looking to change over to the Basket Plus module. To get the tax total during checkout, what do I need to add? I could just update the prices for the website, but then there would be two prices lists, and it would just be easier in the end to have the checkout do it automatically. And on another note, my customer also asked me if it would be possible to have the postage set up in a way that if someone orders more than 5 items total, then the shipping would be free. Anything under 5 items would be a flat $2.50 for the order. Just when you think things are working smoothly, they always want something a little different.

Thanks,
Mike

Hi Mike, adding a fixed tax rate quite easy: add a new variable to the configuration, recalculate total cost at the end and optionally display the tax percentage in the order email. If you need more tax rates (depending on state/country) it gets more complex. Let

Your second requirement would require a change to the 'postage bands' code.

Let me know if you need help with the changes.

Jeroen

 
mikegilmore81

Joined: 2012-01-21
Posts: 10
Posted: Sat, 2014-03-01 17:16

Sorry for being a pain, but my coding isn't very good. I'm not sure how to create the new variable. I'm not real sure on which file it needs to be created in. The tax rate would just be a fixed 6% for now. As for the postage bands, it's not that important right now, I will worry about that later.

 
mikegilmore81

Joined: 2012-01-21
Posts: 10
Posted: Tue, 2014-03-04 00:54

Tried editing the Templates through the admin panel and this is what I get:

Quote:
Forbidden

You don't have permission to access /gallery/index.php/admin/configure/templates on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Tried deleting the module and starting over and still doesn't let me edit the templates. Probably something simple.

 
jtenkate

Joined: 2010-12-06
Posts: 45
Posted: Tue, 2014-03-04 22:04

I haven't seen this message before. Do other admin functions work?
You can get more details info by enabling error logging and checking the logs (see here how).

Jeroen

 
mikegilmore81

Joined: 2012-01-21
Posts: 10
Posted: Sun, 2014-03-09 22:34

I can change the configure and email templates and the postage bands and product lines, but still won't let me make changes to the templates. I make all the changes I want and hit save then that message.this is the error log entry afterward:

Quote:
File does not exist: /home/rcphoto/public_html/index.php, referer: http://www.rcsphoto.org/gallery/index.php/admin/configure/templates

My main site has an index.html, not index.php. Not sure what I need to change.

 
jtenkate

Joined: 2010-12-06
Posts: 45
Posted: Mon, 2014-03-10 19:58

It looks to me that gallery is looking for the index.php in the root instead of in the directory 'gallery'. Maybe it has something to do with URL-rewriting.
When I rename the index.php in my gallery directory, the file-not-found error is displayed instantly, but also for the other gallery and basket functions.

Maybe you can try a second, clean Gallery install and see if that makes any difference.

Jeroen

 
jtenkate

Joined: 2010-12-06
Posts: 45
Posted: Mon, 2014-03-10 21:00

Version 1.1 is now available. The DELTA contains the changed files since v1.0.

Changed:
- The use of 'General terms' is now configurable
- Added URL to photo for each order line in the internal order email
- Added translation lines for titles of order email and order update email
- Added translation lines for checkout error messages (used in javascript)

Fixed:
- Add to basket view contained hardcoded Dutch text

Let me know any remarks you have or bugs you find: dev AT kidsfotos.nl.

Jeroen

 
diensthunds

Joined: 2010-09-19
Posts: 9
Posted: Wed, 2014-03-12 19:43

Found the following bugs:
If you click on the settings for basket plus in the modules section you are thrown to a 404 page.
When an order is processed using the smtp of gallery 3 no email is ever sent to the customer.

While not particularly bugs is there any way to have a notification sent to the admin of the gallery so they know a new order has been submitted?
Why are Order Refernce 1 and Order Refernce 2 required fields?

 
draymore

Joined: 2014-03-07
Posts: 1
Posted: Tue, 2014-04-08 01:16

Can anyone please explain what the Paypal Test Mode checkbox in the Basket Plus configuration page does?

 
jtenkate

Joined: 2010-12-06
Posts: 45
Posted: Tue, 2014-04-08 17:20
draymore wrote:
Can anyone please explain what the Paypal Test Mode checkbox in the Basket Plus configuration page does?

As you can read in the module description here, when checked, the module uses the PayPal Sandbox, https://www.sandbox.paypal.com. To use it, you need a free account.

Jeroen

 
maddogcol

Joined: 2014-03-10
Posts: 5
Posted: Sat, 2014-04-26 15:33

I am trying to get the automated emails working in Basket plus and am failing miserably.

I tried accessing settings from the modules page and get an error message that I don't understand - it seems to be expecting an admin directory that doesn't exist.

Any thoughts anyone?

Colin

Kohana_404_Exception [ Page Not Found ]:
The page you requested, admin/basket_plus, could not be found.
SYSPATH/libraries/Kohana_404_Exception.php[ 42

 
Meelistoom

Joined: 2013-03-18
Posts: 6
Posted: Wed, 2014-04-30 17:02

Hi,

i have used basket and i tried to add basket_plus. well the old one had some problems but the new one wont install at all.

i have downloaded v 1.0 and 1.1 and tried to activate those under modules but it gives error msg: An error occurred while installing the Shopping Basket Plus module' and thats it.
am i doing something wrong?

i have:
wordpress 3.4.2
gallery3 3.0.9
Linux 3.2.0-56-generic-pae
Apache: Apache
PHP: 5.3.10-1ubuntu3.11
MySQL: 5.5.37-0ubuntu0.12.04.1

All the best
M

 
Jopho

Joined: 2010-11-27
Posts: 15
Posted: Thu, 2014-08-14 07:06

Hi Jeroen and Basket_plus users.

Thanks heaps Jeroen, for a much needed upgrade to Basket module, and making it user (customer) friendly compared to the original module. Even when the official Gallery site does 'hibernate' I hope to be using my gallery3 website for a year or two, or at least until something else as good becomes available.

I have it [basket_plus v1.1] working happily using a Greydragon theme - and made a few styling changes to suit my site. I do have two issues though - one bug? and a request.

Firstly in Admin. Configure the 'Agree Terms Req' checkbox has no effect and does not display the popup '...need to agree with our General Terms' at the order confirmation . The popup works when I revert to v1.0 , but not since the admin checkbox was added for v1.1 .

Secondly, I have made downloads available for purchase on my site. If a buyer purchases a download they receive the Order confirmation email with a thumbnail image attached. Then, after payment, I need to manually attach the photo file to a new email and send it.
Is there a way a full size purchased file could be attached to an automated email, to be sent after payment (paypal or offline), in a similar way the thumbnail is attached and sent after an order is submitted ?
Looking at the source email code for Order Confirmation I can't see a URL or any obvious link back to the server, which could pose a security issue. So the same could be done for a full-size attachment, maybe?. I realise there may be a problem with Permissions. But could a separate (hidden) folder be made on the server to hold full-size files for download? Is this at all possible?

Any ideas on either issue Jeroen, or anyone?

Many thanks,
Chris

 
jtenkate

Joined: 2010-12-06
Posts: 45
Posted: Sun, 2014-08-17 22:21

Hi Chris,

I'm glad you like my modifications of the module.
Your first point: I discovered these bugs myself already. Today I've finished v1.2 containing a fix for this bug, see the attachment.

On your second point: if you have the original (full res) photo uploaded in G3, it's possible to attach it to an e-mail automatically. But it also means that the customer probably can access the original file already before paying (not a good idea). If you store the originals at another location, it becomes more difficult.
An additional hidden folder in G3 would mean changing core functionality and possible security risks. My dev skills aren't ready for that (yet ;-) ).

Personally, I upload e-mail deliveries to Dropbox and send a link to my customers.

Jeroen