Order History for customers?

  • Posts: 25
  • Thank you received: 0
13 years 5 months ago #17287

Is there an existing feature that can show customers their order history when they login? If so where can I activate it? If not are there plans to implement such a functionality or will this need to be custom built? Thanks!

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 5 months ago #17298

You can go in the joomla menu manager and create a new menu of the type hikashop order listing. That way your users will be able to access their order history.

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

  • Posts: 25
  • Thank you received: 0
13 years 5 months ago #17337

Thank you Nicolas, that's what I was looking for. How can we can add tracking number/info to that page?

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 5 months ago #17339

There is no option for that yet.
You need to go in the menu Display->Custom fields and create a new custom field of the table "order" and the type "text". That will add the field on your order edition screen so that you will be able to enter a tracking number for the orders in the administration.
Then, you will have to edit the file show of the view order via the menu Display->Views and add the code:

<?php $this->fields = $fieldsClass->getFields('',$null,'order');
if(hikashop::level(2) && !empty($this->fields)){?>
<tr>
<td>
<fieldset class="hikashop_order_custom_fields_fieldset">
<legend><?php echo JText::_('ADDITIONAL_INFORMATION'); ?></legend>
<table class="hikashop_order_custom_fields_table adminlist" cellpadding="1" width="100%">
<?php foreach($this->fields[order] as $fieldName => $oneExtraField) {
?>
<tr class="hikashop_order_custom_field_<?php echo $fieldName;?>_line">
<td class="key">
<?php echo $this->fieldsClass->getFieldName($oneExtraField);?>
</td>
<td>
<?php echo $this->fieldsClass->show($oneExtraField,$this->order->$fieldName); ?>
</td>
</tr>
<?php } ?>
</table>
</fieldset>
</td>
</tr>
<?php } ?>


somewhere where you want in the file (near the end for example ?). That way, the users will see their shipping number once you entered it.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum