Esempio n. 1
0
 function edit()
 {
     $mainframe = JFactory::getApplication();
     $jshopConfig = JSFactory::getConfig();
     $db = JFactory::getDBO();
     $me = JFactory::getUser();
     $user_id = JRequest::getInt("user_id");
     $user = JTable::getInstance('userShop', 'jshop');
     $user->load($user_id);
     $user_site = new JUser($user_id);
     $_countries = $this->getModel("countries");
     $countries = $_countries->getAllCountries(0);
     $lists['country'] = JHTML::_('select.genericlist', $countries, 'country', 'class = "inputbox" size = "1"', 'country_id', 'name', $user->country);
     $lists['d_country'] = JHTML::_('select.genericlist', $countries, 'd_country', 'class = "inputbox endes" size = "1"', 'country_id', 'name', $user->d_country);
     $user->birthday = getDisplayDate($user->birthday, $jshopConfig->field_birthday_format);
     $user->d_birthday = getDisplayDate($user->d_birthday, $jshopConfig->field_birthday_format);
     $option_title = array();
     foreach ($jshopConfig->user_field_title as $key => $value) {
         $option_title[] = JHTML::_('select.option', $key, $value, 'title_id', 'title_name');
     }
     $lists['select_titles'] = JHTML::_('select.genericlist', $option_title, 'title', 'class = "inputbox"', 'title_id', 'title_name', $user->title);
     $lists['select_d_titles'] = JHTML::_('select.genericlist', $option_title, 'd_title', 'class = "inputbox endes"', 'title_id', 'title_name', $user->d_title);
     $client_types = array();
     foreach ($jshopConfig->user_field_client_type as $key => $value) {
         $client_types[] = JHTML::_('select.option', $key, $value, 'id', 'name');
     }
     $lists['select_client_types'] = JHTML::_('select.genericlist', $client_types, 'client_type', 'class = "inputbox" ', 'id', 'name', $user->client_type);
     $_usergroups = $this->getModel("userGroups");
     $usergroups = $_usergroups->getAllUsergroups();
     $lists['usergroups'] = JHTML::_('select.genericlist', $usergroups, 'usergroup_id', 'class = "inputbox" size = "1"', 'usergroup_id', 'usergroup_name', $user->usergroup_id);
     $lists['block'] = JHTML::_('select.booleanlist', 'block', 'class="inputbox" size="1"', $user_site->get('block'));
     filterHTMLSafe($user, ENT_QUOTES);
     $tmp_fields = $jshopConfig->getListFieldsRegister();
     $config_fields = $tmp_fields['editaccount'];
     $count_filed_delivery = $jshopConfig->getEnableDeliveryFiledRegistration('editaccount');
     JHTML::_('behavior.calendar');
     $view = $this->getView("users", 'html');
     $view->setLayout("edit");
     $view->assign('config', $jshopConfig);
     $view->assign('user', $user);
     $view->assign('me', $me);
     $view->assign('user_site', $user_site);
     $view->assign('lists', $lists);
     $view->assign('etemplatevar', '');
     $view->assign('config_fields', $config_fields);
     $view->assign('count_filed_delivery', $count_filed_delivery);
     JPluginHelper::importPlugin('jshoppingadmin');
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onBeforeEditUsers', array(&$view));
     $view->displayEdit();
 }
Esempio n. 2
0
 function step2()
 {
     $checkout = JSFactory::getModel('checkout', 'jshop');
     $checkout->checkStep(2);
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onLoadCheckoutStep2', array());
     $jshopConfig = JSFactory::getConfig();
     $checkLogin = JRequest::getInt('check_login');
     if ($checkLogin) {
         JSFactory::getModel('userlogin', 'jshop')->setPayWithoutReg();
         checkUserLogin();
     }
     JshopHelpersMetadata::checkoutAddress();
     $adv_user = JSFactory::getUser()->loadDataFromEdit();
     $config_fields = $jshopConfig->getListFieldsRegisterType('address');
     $count_filed_delivery = $jshopConfig->getEnableDeliveryFiledRegistration('address');
     $checkout_navigator = $checkout->showCheckoutNavigation(2);
     $small_cart = $checkout->loadSmallCart(2);
     $select_countries = JshopHelpersSelects::getCountry($adv_user->country);
     $select_d_countries = JshopHelpersSelects::getCountry($adv_user->d_country, null, 'd_country');
     $select_titles = JshopHelpersSelects::getTitle($adv_user->title);
     $select_d_titles = JshopHelpersSelects::getTitle($adv_user->d_title, null, 'd_title');
     $select_client_types = JshopHelpersSelects::getClientType($adv_user->client_type);
     filterHTMLSafe($adv_user, ENT_QUOTES);
     if ($config_fields['birthday']['display'] || $config_fields['d_birthday']['display']) {
         JHTML::_('behavior.calendar');
     }
     $view = $this->getView("checkout");
     $view->setLayout("adress");
     $view->assign('select', $jshopConfig->user_field_title);
     $view->assign('config', $jshopConfig);
     $view->assign('select_countries', $select_countries);
     $view->assign('select_d_countries', $select_d_countries);
     $view->assign('select_titles', $select_titles);
     $view->assign('select_d_titles', $select_d_titles);
     $view->assign('select_client_types', $select_client_types);
     $view->assign('live_path', JURI::base());
     $view->assign('config_fields', $config_fields);
     $view->assign('count_filed_delivery', $count_filed_delivery);
     $view->assign('user', $adv_user);
     $view->assign('delivery_adress', $adv_user->delivery_adress);
     $view->assign('checkout_navigator', $checkout_navigator);
     $view->assign('small_cart', $small_cart);
     $view->assign('action', JSFactory::getModel('checkoutStep', 'jshop')->getCheckoutUrl('step2save', 0, 0));
     $dispatcher->trigger('onBeforeDisplayCheckoutStep2View', array(&$view));
     $view->display();
 }
Esempio n. 3
0
 function edit()
 {
     $mainframe = JFactory::getApplication();
     $jshopConfig = JSFactory::getConfig();
     $db = JFactory::getDBO();
     $me = JFactory::getUser();
     $user_id = JRequest::getInt("user_id");
     $user = JSFactory::getTable('userShop', 'jshop');
     $user->load($user_id);
     $user->loadDataFromEdit();
     $user_site = new JUser($user_id);
     $lists['country'] = JshopHelpersSelects::getCountry($user->country);
     $lists['d_country'] = JshopHelpersSelects::getCountry($user->d_country, 'class = "inputbox endes"', 'd_country');
     $lists['select_titles'] = JshopHelpersSelects::getTitle($user->title);
     $lists['select_d_titles'] = JshopHelpersSelects::getTitle($user->d_title, 'class = "inputbox endes"', 'd_title');
     $lists['select_client_types'] = JshopHelpersSelects::getClientType($user->client_type);
     $usergroups = JSFactory::getModel("userGroups")->getAllUsergroups();
     $lists['usergroups'] = JHTML::_('select.genericlist', $usergroups, 'usergroup_id', 'class = "inputbox" size = "1"', 'usergroup_id', 'usergroup_name', $user->usergroup_id);
     $lists['block'] = JHTML::_('select.booleanlist', 'block', 'class="inputbox" size="1"', $user_site->get('block'));
     filterHTMLSafe($user, ENT_QUOTES);
     $tmp_fields = $jshopConfig->getListFieldsRegister();
     $config_fields = $tmp_fields['editaccount'];
     $count_filed_delivery = $jshopConfig->getEnableDeliveryFiledRegistration('editaccount');
     JHTML::_('behavior.calendar');
     $view = $this->getView("users", 'html');
     $view->setLayout("edit");
     $view->assign('config', $jshopConfig);
     $view->assign('user', $user);
     $view->assign('me', $me);
     $view->assign('user_site', $user_site);
     $view->assign('lists', $lists);
     $view->assign('etemplatevar', '');
     $view->assign('config_fields', $config_fields);
     $view->assign('count_filed_delivery', $count_filed_delivery);
     JDispatcher::getInstance()->trigger('onBeforeEditUsers', array(&$view));
     $view->displayEdit();
 }
Esempio n. 4
0
 function editaccount()
 {
     checkUserLogin();
     $user = JFactory::getUser();
     $adv_user = JSFactory::getUserShop();
     $jshopConfig = JSFactory::getConfig();
     $mainframe = JFactory::getApplication();
     $params = $mainframe->getParams();
     appendPathWay(_JSHOP_EDIT_DATA);
     $seo = JTable::getInstance("seo", "jshop");
     $seodata = $seo->loadData("editaccount");
     if ($seodata->title == "") {
         $seodata->title = _JSHOP_EDIT_DATA;
     }
     setMetaData($seodata->title, $seodata->keyword, $seodata->description);
     if (!$adv_user->country) {
         $adv_user->country = $jshopConfig->default_country;
     }
     if (!$adv_user->d_country) {
         $adv_user->d_country = $jshopConfig->default_country;
     }
     $adv_user->birthday = getDisplayDate($adv_user->birthday, $jshopConfig->field_birthday_format);
     $adv_user->d_birthday = getDisplayDate($adv_user->d_birthday, $jshopConfig->field_birthday_format);
     $country = JTable::getInstance('country', 'jshop');
     $list_country = $country->getAllCountries();
     $option_country[] = JHTML::_('select.option', 0, _JSHOP_REG_SELECT, 'country_id', 'name');
     $option_countryes = array_merge($option_country, $list_country);
     $select_countries = JHTML::_('select.genericlist', $option_countryes, 'country', 'class = "inputbox" size = "1"', 'country_id', 'name', $adv_user->country);
     $select_d_countries = JHTML::_('select.genericlist', $option_countryes, 'd_country', 'class = "inputbox" size = "1"', 'country_id', 'name', $adv_user->d_country);
     foreach ($jshopConfig->user_field_title as $key => $value) {
         $option_title[] = JHTML::_('select.option', $key, $value, 'title_id', 'title_name');
     }
     $select_titles = JHTML::_('select.genericlist', $option_title, 'title', 'class = "inputbox"', 'title_id', 'title_name', $adv_user->title);
     $select_d_titles = JHTML::_('select.genericlist', $option_title, 'd_title', 'class = "inputbox"', 'title_id', 'title_name', $adv_user->d_title);
     $client_types = array();
     foreach ($jshopConfig->user_field_client_type as $key => $value) {
         $client_types[] = JHTML::_('select.option', $key, $value, 'id', 'name');
     }
     $select_client_types = JHTML::_('select.genericlist', $client_types, 'client_type', 'class = "inputbox" onchange="showHideFieldFirm(this.value)"', 'id', 'name', $adv_user->client_type);
     $tmp_fields = $jshopConfig->getListFieldsRegister();
     $config_fields = $tmp_fields['editaccount'];
     $count_filed_delivery = $jshopConfig->getEnableDeliveryFiledRegistration('editaccount');
     JPluginHelper::importPlugin('jshoppingcheckout');
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onBeforeDisplayEditUser', array(&$adv_user));
     filterHTMLSafe($adv_user, ENT_QUOTES);
     if ($config_fields['birthday']['display'] || $config_fields['d_birthday']['display']) {
         JHTML::_('behavior.calendar');
     }
     $view_name = "user";
     $view_config = array("template_path" => JPATH_COMPONENT . "/templates/" . $jshopConfig->template . "/" . $view_name);
     $view = $this->getView($view_name, getDocumentType(), '', $view_config);
     $view->setLayout("editaccount");
     $view->assign('config', $jshopConfig);
     $view->assign('select_countries', $select_countries);
     $view->assign('select_d_countries', $select_d_countries);
     $view->assign('select_titles', $select_titles);
     $view->assign('select_d_titles', $select_d_titles);
     $view->assign('select_client_types', $select_client_types);
     $view->assign('live_path', JURI::base());
     $view->assign('user', $adv_user);
     $view->assign('delivery_adress', $adv_user->delivery_adress);
     $view->assign('action', SEFLink('index.php?option=com_jshopping&controller=user&task=accountsave', 0, 0, $jshopConfig->use_ssl));
     $view->assign('config_fields', $config_fields);
     $view->assign('count_filed_delivery', $count_filed_delivery);
     $dispatcher->trigger('onBeforeDisplayEditAccountView', array(&$view));
     $view->display();
 }
Esempio n. 5
0
 function step2()
 {
     $checkout = JModelLegacy::getInstance('checkout', 'jshop');
     $checkout->checkStep(2);
     JPluginHelper::importPlugin('jshoppingcheckout');
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onLoadCheckoutStep2', array());
     $session = JFactory::getSession();
     $user = JFactory::getUser();
     $jshopConfig = JSFactory::getConfig();
     $country = JTable::getInstance('country', 'jshop');
     $checkLogin = JRequest::getInt('check_login');
     if ($checkLogin) {
         $session->set("show_pay_without_reg", 1);
         checkUserLogin();
     }
     appendPathWay(_JSHOP_CHECKOUT_ADDRESS);
     $seo = JTable::getInstance("seo", "jshop");
     $seodata = $seo->loadData("checkout-address");
     if ($seodata->title == "") {
         $seodata->title = _JSHOP_CHECKOUT_ADDRESS;
     }
     setMetaData($seodata->title, $seodata->keyword, $seodata->description);
     $cart = JModelLegacy::getInstance('cart', 'jshop');
     $cart->load();
     $cart->getSum();
     if ($user->id) {
         $adv_user = JSFactory::getUserShop();
     } else {
         $adv_user = JSFactory::getUserShopGuest();
     }
     $adv_user->birthday = getDisplayDate($adv_user->birthday, $jshopConfig->field_birthday_format);
     $adv_user->d_birthday = getDisplayDate($adv_user->d_birthday, $jshopConfig->field_birthday_format);
     $tmp_fields = $jshopConfig->getListFieldsRegister();
     $config_fields = $tmp_fields['address'];
     $count_filed_delivery = $jshopConfig->getEnableDeliveryFiledRegistration('address');
     $checkout_navigator = $this->_showCheckoutNavigation(2);
     if ($jshopConfig->show_cart_all_step_checkout) {
         $small_cart = $this->_showSmallCart(2);
     } else {
         $small_cart = '';
     }
     $view_name = "checkout";
     $view_config = array("template_path" => JPATH_COMPONENT . "/templates/" . $jshopConfig->template . "/" . $view_name);
     $view = $this->getView($view_name, getDocumentType(), '', $view_config);
     $view->setLayout("adress");
     $view->assign('select', $jshopConfig->user_field_title);
     if (!$adv_user->country) {
         $adv_user->country = $jshopConfig->default_country;
     }
     if (!$adv_user->d_country) {
         $adv_user->d_country = $jshopConfig->default_country;
     }
     $option_country[] = JHTML::_('select.option', '0', _JSHOP_REG_SELECT, 'country_id', 'name');
     $option_countryes = array_merge($option_country, $country->getAllCountries());
     $select_countries = JHTML::_('select.genericlist', $option_countryes, 'country', 'class = "inputbox" size = "1"', 'country_id', 'name', $adv_user->country);
     $select_d_countries = JHTML::_('select.genericlist', $option_countryes, 'd_country', 'class = "inputbox" size = "1"', 'country_id', 'name', $adv_user->d_country);
     foreach ($jshopConfig->user_field_title as $key => $value) {
         $option_title[] = JHTML::_('select.option', $key, $value, 'title_id', 'title_name');
     }
     $select_titles = JHTML::_('select.genericlist', $option_title, 'title', 'class = "inputbox"', 'title_id', 'title_name', $adv_user->title);
     $select_d_titles = JHTML::_('select.genericlist', $option_title, 'd_title', 'class = "inputbox"', 'title_id', 'title_name', $adv_user->d_title);
     $client_types = array();
     foreach ($jshopConfig->user_field_client_type as $key => $value) {
         $client_types[] = JHTML::_('select.option', $key, $value, 'id', 'name');
     }
     $select_client_types = JHTML::_('select.genericlist', $client_types, 'client_type', 'class = "inputbox" onchange="showHideFieldFirm(this.value)"', 'id', 'name', $adv_user->client_type);
     filterHTMLSafe($adv_user, ENT_QUOTES);
     if ($config_fields['birthday']['display'] || $config_fields['d_birthday']['display']) {
         JHTML::_('behavior.calendar');
     }
     $view->assign('config', $jshopConfig);
     $view->assign('select_countries', $select_countries);
     $view->assign('select_d_countries', $select_d_countries);
     $view->assign('select_titles', $select_titles);
     $view->assign('select_d_titles', $select_d_titles);
     $view->assign('select_client_types', $select_client_types);
     $view->assign('live_path', JURI::base());
     $view->assign('config_fields', $config_fields);
     $view->assign('count_filed_delivery', $count_filed_delivery);
     $view->assign('user', $adv_user);
     $view->assign('delivery_adress', $adv_user->delivery_adress);
     $view->assign('checkout_navigator', $checkout_navigator);
     $view->assign('small_cart', $small_cart);
     $view->assign('action', SEFLink('index.php?option=com_jshopping&controller=checkout&task=step2save', 0, 0, $jshopConfig->use_ssl));
     $dispatcher->trigger('onBeforeDisplayCheckoutStep2View', array(&$view));
     $view->display();
 }
Esempio n. 6
0
 function edit()
 {
     $mainframe = JFactory::getApplication();
     $order_id = JRequest::getVar("order_id");
     $client_id = JRequest::getInt('client_id', 0);
     $lang = JSFactory::getLang();
     $db = JFactory::getDBO();
     $jshopConfig = JSFactory::getConfig();
     $orders = $this->getModel("orders");
     $order = JTable::getInstance('order', 'jshop');
     $order->load($order_id);
     $name = $lang->get("name");
     $id_vendor_cuser = getIdVendorForCUser();
     if ($jshopConfig->admin_show_vendors && $id_vendor_cuser) {
         if ($order->vendor_id != $id_vendor_cuser) {
             $mainframe->redirect('index.php', JText::_('ALERTNOTAUTH'));
             return 0;
         }
     }
     $order_items = $order->getAllItems();
     $_languages = $this->getModel("languages");
     $languages = $_languages->getAllLanguages(1);
     $select_language = JHTML::_('select.genericlist', $languages, 'lang', 'class = "inputbox" style="float:none"', 'language', 'name', $order->lang);
     $country = JTable::getInstance('country', 'jshop');
     $countries = $country->getAllCountries();
     $select_countries = JHTML::_('select.genericlist', $countries, 'country', 'class = "inputbox"', 'country_id', 'name', $order->country);
     $select_d_countries = JHTML::_('select.genericlist', $countries, 'd_country', 'class = "inputbox"', 'country_id', 'name', $order->d_country);
     $option_title = array();
     foreach ($jshopConfig->user_field_title as $key => $value) {
         if ($key > 0) {
             $option_title[] = JHTML::_('select.option', $key, $value, 'title_id', 'title_name');
         }
     }
     $select_titles = JHTML::_('select.genericlist', $option_title, 'title', 'class = "inputbox"', 'title_id', 'title_name', $order->title);
     $select_d_titles = JHTML::_('select.genericlist', $option_title, 'd_title', 'class = "inputbox endes"', 'title_id', 'title_name', $order->d_title);
     $order->birthday = getDisplayDate($order->birthday, $jshopConfig->field_birthday_format);
     $order->d_birthday = getDisplayDate($order->d_birthday, $jshopConfig->field_birthday_format);
     $client_types = array();
     foreach ($jshopConfig->user_field_client_type as $key => $value) {
         $client_types[] = JHTML::_('select.option', $key, $value, 'id', 'name');
     }
     $select_client_types = JHTML::_('select.genericlist', $client_types, 'client_type', 'class = "inputbox" onchange="showHideFieldFirm(this.value)"', 'id', 'name', $order->client_type);
     $jshopConfig->user_field_client_type[0] = "";
     if (isset($jshopConfig->user_field_client_type[$order->client_type])) {
         $order->client_type_name = $jshopConfig->user_field_client_type[$order->client_type];
     } else {
         $order->client_type_name = '';
     }
     $tmp_fields = $jshopConfig->getListFieldsRegister();
     $config_fields = $tmp_fields["address"];
     $count_filed_delivery = $jshopConfig->getEnableDeliveryFiledRegistration('address');
     $pm_method = JTable::getInstance('paymentMethod', 'jshop');
     $pm_method->load($order->payment_method_id);
     $order->payment_name = $pm_method->{$name};
     $order->order_tax_list = $order->getTaxExt();
     $_currency = $this->getModel("currencies");
     $currency_list = $_currency->getAllCurrencies();
     $order_currency = 0;
     foreach ($currency_list as $k => $v) {
         if ($v->currency_code_iso == $order->currency_code_iso) {
             $order_currency = $v->currency_id;
         }
     }
     $select_currency = JHTML::_('select.genericlist', $currency_list, 'currency_id', 'class = "inputbox"', 'currency_id', 'currency_code', $order_currency);
     $display_price_list = array();
     $display_price_list[] = JHTML::_('select.option', 0, _JSHOP_PRODUCT_BRUTTO_PRICE, 'id', 'name');
     $display_price_list[] = JHTML::_('select.option', 1, _JSHOP_PRODUCT_NETTO_PRICE, 'id', 'name');
     $display_price_select = JHTML::_('select.genericlist', $display_price_list, 'display_price', 'onchange="updateOrderTotalValue();"', 'id', 'name', $order->display_price);
     $shippings = $this->getModel("shippings");
     $shippings_list = $shippings->getAllShippings(0);
     $shippings_select = JHTML::_('select.genericlist', $shippings_list, 'shipping_method_id', '', 'shipping_id', 'name', $order->shipping_method_id);
     $payments = $this->getModel("payments");
     $payments_list = $payments->getAllPaymentMethods(0);
     $payments_select = JHTML::_('select.genericlist', $payments_list, 'payment_method_id', '', 'payment_id', 'name', $order->payment_method_id);
     $deliverytimes = JSFactory::getAllDeliveryTime();
     $first = array(0 => "- - -");
     $delivery_time_select = JHTML::_('select.genericlist', array_merge($first, $deliverytimes), 'delivery_times_id', '', 'id', 'name', $order->delivery_times_id);
     $users = $this->getModel('users');
     $users_list = $users->getUsers();
     $first = array(0 => '- - -');
     $users_list_select = JHTML::_('select.genericlist', array_merge($first, $users_list), 'user_id', 'onchange="updateBillingShippingForUser(this.value);"', 'user_id', 'name', $order->user_id);
     filterHTMLSafe($order);
     foreach ($order_items as $k => $v) {
         JFilterOutput::objectHTMLSafe($order_items[$k]);
     }
     JHTML::_('behavior.calendar');
     $view = $this->getView("orders", 'html');
     $view->setLayout("edit");
     $view->assign('config', $jshopConfig);
     $view->assign('order', $order);
     $view->assign('order_items', $order_items);
     $view->assign('config_fields', $config_fields);
     $view->assign('etemplatevar', '');
     $view->assign('count_filed_delivery', $count_filed_delivery);
     $view->assign('order_id', $order_id);
     $view->assign('select_countries', $select_countries);
     $view->assign('select_d_countries', $select_d_countries);
     $view->assign('select_titles', $select_titles);
     $view->assign('select_d_titles', $select_d_titles);
     $view->assign('select_client_types', $select_client_types);
     $view->assign('select_currency', $select_currency);
     $view->assign('display_price_select', $display_price_select);
     $view->assign('shippings_select', $shippings_select);
     $view->assign('payments_select', $payments_select);
     $view->assign('select_language', $select_language);
     $view->assign('delivery_time_select', $delivery_time_select);
     $view->assign('users_list_select', $users_list_select);
     $view->assign('client_id', $client_id);
     JPluginHelper::importPlugin('jshoppingadmin');
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onBeforeEditOrders', array(&$view));
     $view->displayEdit();
 }
Esempio n. 7
0
 function editaccount()
 {
     checkUserLogin();
     $adv_user = JSFactory::getUserShop()->loadDataFromEdit();
     $jshopConfig = JSFactory::getConfig();
     JshopHelpersMetadata::userEditaccount();
     $select_countries = JshopHelpersSelects::getCountry($adv_user->country);
     $select_d_countries = JshopHelpersSelects::getCountry($adv_user->d_country, null, 'd_country');
     $select_titles = JshopHelpersSelects::getTitle($adv_user->title);
     $select_d_titles = JshopHelpersSelects::getTitle($adv_user->d_title, null, 'd_title');
     $select_client_types = JshopHelpersSelects::getClientType($adv_user->client_type);
     $config_fields = $jshopConfig->getListFieldsRegisterType('editaccount');
     $count_filed_delivery = $jshopConfig->getEnableDeliveryFiledRegistration('editaccount');
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onBeforeDisplayEditUser', array(&$adv_user));
     filterHTMLSafe($adv_user, ENT_QUOTES);
     if ($config_fields['birthday']['display'] || $config_fields['d_birthday']['display']) {
         JHTML::_('behavior.calendar');
     }
     $view = $this->getView('user');
     $view->setLayout("editaccount");
     $view->assign('config', $jshopConfig);
     $view->assign('select_countries', $select_countries);
     $view->assign('select_d_countries', $select_d_countries);
     $view->assign('select_titles', $select_titles);
     $view->assign('select_d_titles', $select_d_titles);
     $view->assign('select_client_types', $select_client_types);
     $view->assign('live_path', JURI::base());
     $view->assign('user', $adv_user);
     $view->assign('delivery_adress', $adv_user->delivery_adress);
     $view->assign('action', SEFLink('index.php?option=com_jshopping&controller=user&task=accountsave', 0, 0, $jshopConfig->use_ssl));
     $view->assign('config_fields', $config_fields);
     $view->assign('count_filed_delivery', $count_filed_delivery);
     $dispatcher->trigger('onBeforeDisplayEditAccountView', array(&$view));
     $view->display();
 }