Adding an order on the backend

  • Posts: 72
  • Thank you received: 0
11 years 8 months ago #92438

hi,

when manually adding an order to the backend does the customer already have to exist in joomla in order to add them?

is there no way of manually entering name and address info while on the add order page?

thanks

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #92459

Hi,

The customer must exist, because we use the customer id for the address, and in the order table.
If we create orders without existing customern then when any change is made on the order it will return a 500 error, or another error.

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

  • Posts: 5
  • Thank you received: 0
11 years 8 months ago #94136

Hi,

when adding an order in the backend the user selection dropdown displays E-mail / user_id. Is it possible to see Username in this dropdown?

Thanks,

Nick

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

  • Posts: 82795
  • Thank you received: 13356
  • MODERATOR
11 years 8 months ago #94152

Hi,

There is no option for that.
It would require to change the code of the file administrator/components/com_hikashop/types/user.php
You would need to change:
$query = 'SELECT user_id,user_email FROM '.hikashop_table('user');

to:
$query = 'SELECT a.user_id,b.username FROM '.hikashop_table('user').' AS a LEFT JOIN #__users AS b ON a.user_cms_id=b.id';

and:
$this->values[] = JHTML::_('select.option', (int)$user->user_id, $user->user_email. ' ' .$user->user_id );

to:
$this->values[] = JHTML::_('select.option', (int)$user->user_id, $user->username. ' ' .$user->user_id );

The following user(s) said Thank You: inkinick

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

  • Posts: 5
  • Thank you received: 0
11 years 8 months ago #94191

Hi nicolas,

this worked fine for me. Thanks for excellent & prompt support.

Nick

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

Time to create page: 0.078 seconds
Powered by Kunena Forum