Latest Orders List

  • Posts: 440
  • Thank you received: 20
  • Hikashop Essential
4 years 6 months ago #318761

-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.18

Hi

when a customer logs in there is an option Your Last Orders, is there a way to increase the length of this list please?

Thanks

Dave B)

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 6 months ago #318767

Hi,

Yes. You can add an entry with the namekey order_number_acc and in the value the number of orders you want there in the table table hikashop_config via your phpmyadmin.

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

  • Posts: 440
  • Thank you received: 20
  • Hikashop Essential
4 years 6 months ago #318853

Hi Nicolas

thanks for that. Change has worked as required

Dave B)

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

  • Posts: 440
  • Thank you received: 20
  • Hikashop Essential
4 years 6 months ago #318856

Hi Nicolas

further to this I also need to add the eta custom field which you kindly gave me the code for to show in user / cpanel_orders.php to be available in the order / listing.php and also the order / show.php

I have tried the code below but no results are returned in the order / listing.php and it shows as a duplicate in the order / show.php

<?php $class = hikashop_get('class.product');
$data = $class->get($product->product_id);
echo $data->eta; ?>

Actually when I add the above code to order show I get a duplicate of the field as per the screenshot. ETA 2020

Thanks

Dave B)

Attachments:
Last edit: 4 years 6 months ago by davec. Reason: Added image file

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 6 months ago #318894

Hi,

For the order listing view file, you need to add your code in the file order / order_products.php and not in order / listing.php

I don't see why you would get it twice in order / show.php unless you add the code twice. Please double check.

The following user(s) said Thank You: davec

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

  • Posts: 440
  • Thank you received: 20
  • Hikashop Essential
4 years 6 months ago #318936

Hi Nicolas

all seems to be working now as expected. The duplicate issue has magically gone away too.

Thanks

Dave B)

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

Time to create page: 0.068 seconds
Powered by Kunena Forum