Discount amount in the PDF Invoice Plugin

  • Posts: 8
  • Thank you received: 0
10 years 3 months ago #166561

-- HikaShop version -- : 2.3.1
-- Joomla version -- : 3.3.1

Hi all,

I am searching the forum for little help.

I want to print the % amount of a discount product in my invoice.
But i saw that the discount is not in the database (jos_hikashop_order->order_discount_code) and is just calculated in hikashop frontend. Is it possible to get it there with the code like the coupons? Or do you have another idea how this whould work for me?

Additional some Screenshots.
(The ammount of "30%" is now just hardcoded)

THX

Attachments:

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
10 years 3 months ago #166575

Hi,

It's quite complex to do if you're not a developer. You first need to load the discount of the product from the jos_hikashop_discount table based on the categories of the products of the order (so it's not a simple query as it will require a few left joins) and then you can display it. That code can be added in the file "invoice" of the view "order" via the menu Display>Views.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum