Closed (fixed)
Project:
e-Commerce
Version:
master
Component:
cart
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Mar 2006 at 02:20 UTC
Updated:
1 Mar 2007 at 09:45 UTC
It is not 100% intuitive that a donation should simply add the amount to the shopping cart. There should be an option for sending the user straight to checkout after putting in the amount. Most people donating simply want to leave an amount, and not feel as if they are going through an online shop.
This is based on the feedback from a few of my users.
Anyone know how to rewrite the hook for theme_product_donate_view to send the user to checkout instead of reloading same page?
Any guidance on whether this can be added from within the donate.module, or whether it requires some more rewriting of the shopping cart module?
Thanks!
Comments
Comment #1
steffen commentedI changed line 129 in donate.module from
$form['#action'] = url("donate/cart/$node->nid");to $form['#action'] = url("cart/checkout");. Quite simple, really.Comment #2
steffen commentedThis quickfix obviously didn't work. I'm forwarded to checkout, but the donation is not placed in shopping cart.
If anyone has suggestions, please let me know.
Comment #3
neclimdulquick fix, not tested but should work.
Add:
I might change the layout of the code a little as a larger fix to remove some un-needed logic and to use the form api better but even so, something similar to that would be part of the solution.
Comment #4
steffen commentedThanks! Worked great neclimdul.
Comment #5
lunas commentedI tried this and it worked once and then subsequent attempts kept referring me to a page saying my cart was empty. Any idea why?
Comment #6
simemarking fixed.
Comment #7
(not verified) commented