Add a new column in the Hikashop Orders listing

  • Posts: 37
  • Thank you received: 0
8 years 7 months ago #235379

-- HikaShop version -- : HikaShop Business 2.3.5
-- Joomla version -- : 3.4.8
-- PHP version -- : 5
-- Browser(s) name and version -- : Firefox

Hi,

We are using hikashop with JMS2WIN multisite extension. So, for both sites the orders, products, customers are same but the frontend template and few settings are different which is handled by multisite extension.

We want to create a new column in admin Orders listing to distinguish order source, we have a parent site (domain.com) and child site (child.com), so we want to add a entry (domain name) on the order table when order is creating and want to show that column in order listing. What is the best way to do it.

We tried by creating a custom field for order using Hikashop custom fields and the column is created on order table but not sure how to add domain name at the time of order creation.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
8 years 7 months ago #235406

Hi,

There is already the column "order_site_id" in the hikashop_order table in recent versions of HikaShop and it's already filled with the site id automatically.
So all you would have to do is to display it in the "listing" file of the "order" view for your backend template via the menu Display>Views.

So just update to the latest version of HikaShop and you should be able to easily do that.

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

Time to create page: 0.035 seconds
Powered by Kunena Forum