Skip to main content

Discount amount in the PDF Invoice Plugin

More
12 years 1 month ago #166561 by idh-webdesign
-- 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

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

More
12 years 1 month ago #166575 by nicolas
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.169 seconds
Powered by Kunena Forum