First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
23
sites/all/modules/civicrm/CRM/Event/Cart/Page/ViewCart.php
Normal file
23
sites/all/modules/civicrm/CRM/Event/Cart/Page/ViewCart.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Class CRM_Event_Cart_Page_ViewCart
|
||||
*/
|
||||
class CRM_Event_Cart_Page_ViewCart extends CRM_Core_Page {
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function run() {
|
||||
$transaction = new CRM_Core_Transaction();
|
||||
|
||||
$cart = CRM_Event_Cart_BAO_Cart::find_or_create_for_current_session();
|
||||
$cart->load_associations();
|
||||
$this->assign('events_in_carts', $cart->get_main_events_in_carts());
|
||||
$this->assign('events_count', count($cart->get_main_events_in_carts()));
|
||||
|
||||
$transaction->commit();
|
||||
|
||||
return parent::run();
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue