Change Backend Customer Info

  • Posts: 267
  • Thank you received: 4
10 years 8 months ago #146726

I am using most current Hikashop business.

I would like to know how I can change in the backend the column 'Customer' from showing their email address to instead showing their 'Name'.

Thank you,

Charles

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #146760

Hi,

At which place you want to replace that ?
To edit a view you can use the menu Display > Views and edit the desired view in the backend template.

Please Log in or Create an account to join the conversation.

  • Posts: 267
  • Thank you received: 4
10 years 8 months ago #147129

The column that says 'CUSTOMER' from being email address to instead being the customers name for easier recognition.

Please Log in or Create an account to join the conversation.

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
10 years 8 months ago #147136

Hi,

You have to override the view "backend | your_backend_template | ??? | listing".
Unfortunately it will be difficult to be more precise for the view because you didn't say where you want to change that.
I can suggest the view "order" but it can be in another view. I can't really know.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 267
  • Thank you received: 4
10 years 6 months ago #155290

basically want to be able to see customer NAME rather than email address

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
10 years 6 months ago #155314

Hi,

The name of the Joomla user account of the customer is already displayed in the "Customer" column of the orders listing page (if you're talking about that page). See screenshot:
take.ms/TOJWE
So I'm still not sure if you're talking about that page, or something else, or why you would get the name of the user account already displayed there.

Please Log in or Create an account to join the conversation.

  • Posts: 267
  • Thank you received: 4
10 years 6 months ago #155336

Is there a way to use the first and last name as a field from when they put in their order?

The problem is that my cart is open for non members. So in many cases it only shows email and not user name. It would be best for us if it had customer last and first name field.

Last edit: 10 years 6 months ago by fan4chevy.

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
10 years 6 months ago #155351

Then, it probably means that you're using the guest mode, and thus you don't get the user name since you don't have the user account.
You would have to get the name from the address, but that's complex to do...
We'll actually have a solution for that in the next version of HikaShop which is to be released in a few days.

Please Log in or Create an account to join the conversation.

  • Posts: 267
  • Thank you received: 4
10 years 6 months ago #155471

Yes we are in guest mode as we found we were having many issues with them needing to sign in and make an account. They were finding they were not able to activate the account and we were losing alot of sales.

Now in guest mode the customers are ordering more.

Please Log in or Create an account to join the conversation.

  • Posts: 267
  • Thank you received: 4
10 years 6 months ago #155660

Just updated to 2.3.1 business and dont see how to get guest name in my order page as mentioned.

Please Log in or Create an account to join the conversation.

  • Posts: 267
  • Thank you received: 4
10 years 6 months ago #155774

So I upgraded to 2.3.1 business. Can you show me the solution that as mentioned where I can grab the guest name, etc. and put it in the backend order area?

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
10 years 6 months ago #155694

Then it's either that you don't have any name field in your order addresses, or that you modified the file "listing" of the view "order" via the menu Display>Views before and thus you didn't get the modifications necessary to handle that and you would have to remove your customization of that view file in order to go back to the default view file with the modifications.

Last edit: 10 years 6 months ago by Xavier.

Please Log in or Create an account to join the conversation.

  • Posts: 267
  • Thank you received: 4
10 years 6 months ago #156013

I have it in the order address as can be seen in image attached and I have not modified anything.


here is my listing file:

<?php
/**
 * @package  HikaShop for Joomla!
 * @version  2.3.1
 * @author  hikashop.com
 * @copyright  (C) 2010-2014 HIKARI SOFTWARE. All rights reserved.
 * @license  GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><?php
ob_start();
if(version_compare(JVERSION,'1.6','<')){
  $title = 'show_page_title';
}else{
  $title = 'show_page_heading';
}
$titleType='h1';
if($this->module){
  $title = 'showtitle';
  $titleType='h2';
}

if($this->params->get($title) && JRequest::getVar('hikashop_front_end_main',0)){
  if($this->module){
    $heading = $this->params->get('title');
  }else{
    $heading = $this->params->get('page_title');
    if($this->params->get('page_heading')){
      $heading = $this->params->get('page_heading');
    }
  }
  ?>
  <<?php echo $titleType; ?>>
  <?php echo $heading; ?>
  </<?php echo $titleType; ?>>
  <?php
}
if(!$this->module){
  if(isset($this->element->category_canonical) && !empty($this->element->category_canonical)){
    $canonicalUrl = hikashop_cleanURL($this->element->category_canonical);

    $doc = JFactory::getDocument();
    $doc->addCustomTag( '<link rel="canonical" href="'.$canonicalUrl.'" />' );
  }
  if(($this->params->get('show_image') && !empty($this->element->file_path))|| ($this->params->get('show_description')&&!empty($this->element->category_description))){
    ?>
    <div class="hikashop_category_description">
    <?php
    if($this->params->get('show_image') && !empty($this->element->file_path)){
      jimport('joomla.filesystem.file');
      if(JFile::exists($this->image->getPath($this->element->file_path,false))){
      ?>
      <img src="<?php echo $this->image->getPath($this->element->file_path); ?>" class="hikashop_category_image"/>
      <?php
      }
    }
    if($this->params->get('show_description',1)&&!empty($this->element->category_description)){
      ?>
      <div class="hikashop_category_description_content">
      <?php echo JHTML::_('content.prepare',$this->element->category_description); ?>
      </div>
      <?php
    }
    ?>
    </div>
  <?php
  }
  if(!empty($this->fields)){ ?>
    <div id="hikashop_category_custom_info_main" class="hikashop_category_custom_info_main">
      <h4><?php echo JText::_('CATEGORY_ADDITIONAL_INFORMATION');?></h4>
      <table width="100%">
      <?php
      $this->fieldsClass->prefix = '';
      foreach($this->fields as $fieldName => $oneExtraField) {
        if(!empty($this->element->$fieldName)){ ?>
        <tr class="hikashop_category_custom_<?php echo $oneExtraField->field_namekey;?>_line">
          <td class="key">
            <span id="hikashop_category_custom_name_<?php echo $oneExtraField->field_id;?>" class="hikashop_category_custom_name">
              <?php echo $this->fieldsClass->getFieldName($oneExtraField);?>
            </span>
          </td>
          <td>
            <span id="hikashop_category_custom_value_<?php echo $oneExtraField->field_id;?>" class="hikashop_category_custom_value">
              <?php echo $this->fieldsClass->show($oneExtraField,$this->element->$fieldName); ?>
            </span>
          </td>
        </tr>
      <?php }
        }?>
      </table>
    </div>
<?php }
}

$layout_type = $this->params->get('layout_type');
if(empty($layout_type) || $layout_type=='table') $layout_type = 'div';
$html = $this->loadTemplate($layout_type);
if(!empty($html)) echo '<div class="hikashop_subcategories_listing">'.$html.'</div>';


if(!$this->module){
  if(!empty($this->modules)){
    $html = '';
    jimport('joomla.application.module.helper');
    foreach($this->modules as $module){
      $html .= JModuleHelper::renderModule($module);
    }
    if(!empty($html)){
      echo '<div class="hikashop_submodules" style="clear:both">'.$html.'</div>';
    }
  }
}
$html = ob_get_clean();
if(!empty($html)){ ?>
  <div id="<?php echo $this->params->get('main_div_name');?>" class="hikashop_category_information hikashop_categories_listing_main">
    <?php echo $html; ?>
  </div>
<?php }  ?>

Attachments:
Last edit: 10 years 6 months ago by Xavier. Reason: Thanks to use [code] [/code] tags

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
10 years 6 months ago #156040

Hi,

This is not the order listing view file of the backend but the category listing view file of the frontend.

Could you turn on the debug mode of the joomla configuration and provide the SQL queries debug data of the orders listing page at the bottom ?

Please Log in or Create an account to join the conversation.

Time to create page: 0.095 seconds
Powered by Kunena Forum