Skip to main content

Adding an order on the backend

13 years 8 months ago #92438 by daveturner101
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.

13 years 8 months ago #92459 by Xavier
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.

13 years 7 months ago #94136 by inkinick
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.

13 years 7 months ago #94152 by nicolas
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.

13 years 7 months ago #94191 by inkinick
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.088 seconds
Powered by Kunena Forum