CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Confirm button workflow improvements
Pages: [1]

Author Topic: Confirm button workflow improvements  (Read 1490 times)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Confirm button workflow improvements
March 11, 2011, 01:17:38 pm
Issue has been raised a couple of times with us about users not completing process of registering for events, esp free ones, and similar sign up processes because they aren't completing the second step, and suggestion has been made to use a process similar to eg UC checkout where the step you are in on the process is clearly relayed to users, as per the image below.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Confirm button workflow improvements
April 13, 2011, 04:34:01 pm
bump - anyone any input on this?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Confirm button workflow improvements
April 13, 2011, 04:45:58 pm

isnt a free event or contribution a 2 step process? we skip the confirmation page if no payment is required (or at least we used to as my fastly fading memory remembers)

i think for a 3 step process it makes sense to do what UC / Amazon / others do. We do have all the info and generating that image/css should not be too hard (most likely this is just a tpl change). Wanna investigate and submit a patch?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Confirm button workflow improvements
April 13, 2011, 04:47:21 pm
Yes will do - though the client just pushed it down to Low Priority for us  :-\
So maybe if i can get some of their High ones off the list I can get to it.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Confirm button workflow improvements
May 18, 2011, 03:42:15 pm
Just updating that it seems that the issue here is that Members get a full discount ie it becomes a $0 event - but they still have to CONFIRM.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Confirm button workflow improvements
May 23, 2011, 05:54:24 pm
Re the issue on people having to confirm for free events - I think this should have the same behaviour as for non -monetary events - I got somewhere but at the moment am abandoning as am in quickform hell. Where I got to

Code: [Select]
Index: CRM/Event/Form/Registration/Register.php
===================================================================
--- CRM/Event/Form/Registration/Register.php (revision 34404)
+++ CRM/Event/Form/Registration/Register.php (working copy)
@@ -899,8 +899,11 @@
 
         $config = CRM_Core_Config::singleton( );
         $params['currencyID'] = $config->defaultCurrency;
-       
-        if ($this->_values['event']['is_monetary']) {
+        $this->calculateEventFeeAmountandLevel(&$params);
+        if (empty($params['amount'])){
*****this line is not right - need to be whatever really will unset the page**********
+           unset( $this->controller->_pages['CRM_Event_Form_Registration_Confirm'] );
+        }
+        if ($this->_values['event']['is_monetary'] && !empty($params['amount'])) {
             // we first reset the confirm page so it accepts new values
             $this->controller->resetPage( 'Confirm' );
             
@@ -908,20 +911,8 @@
             require_once 'CRM/Core/BAO/Discount.php';
             $discountId = CRM_Core_BAO_Discount::findSet( $this->_eventId, 'civicrm_event' );
             
-            if ( ! empty( $this->_values['discount'][$discountId] ) ) {
-                $params['discount_id'] = $discountId;
-                $params['amount_level'] =
-                    $this->_values['discount'][$discountId][$params['amount']]['label'];
-               
-                $params['amount'] =
-                    $this->_values['discount'][$discountId][$params['amount']]['value'];
-               
-            } else if ( empty( $params['priceSetId'] ) ) {
-                $params['amount_level'] =
-                    $this->_values['fee'][$params['amount']]['label'];
-                $params['amount'] =
-                    $this->_values['fee'][$params['amount']]['value'];
-            } else {
+
+            if (!empty( $params['priceSetId'] )) {
                 $lineItem = array( );
                 require_once 'CRM/Price/BAO/Set.php';
                 CRM_Price_BAO_Set::processAmount( $this->_values['fee'], $params, $lineItem );
@@ -1291,6 +1282,28 @@
             }
         }
     }
+    function calculateEventFeeAmountandLevel(&$params){
+            // get discount
+            require_once 'CRM/Core/BAO/Discount.php';
+            $discountId = CRM_Core_BAO_Discount::findSet( $this->_eventId, 'civicrm_event' );
     
+             if ( ! empty( $this->_values['discount'][$discountId] ) ) {
+                $params['discount_id'] = $discountId;
+                $params['amount_level'] =
+                    $this->_values['discount'][$discountId][$params['amount']]['label'];
+               
+                $params['amount'] =
+                    $this->_values['discount'][$discountId][$params['amount']]['value'];
+               
+            } else if ( empty( $params['priceSetId'] ) ) {
+                $params['amount_level'] =
+                    $this->_values['fee'][$params['amount']]['label'];
+                $params['amount'] =
+                    $this->_values['fee'][$params['amount']]['value'];
+                   
+            }
+     
+    }
 }
 
+
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Confirm button workflow improvements

This forum was archived on 2017-11-26.